]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
eee79d345aba161c8d30aeec884f29d62720edfb
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="src/version.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_header_list=
744 ac_subst_vars='LTLIBOBJS
745 DISTVER
746 DISTNAME
747 MACOSX
748 WIN32
749 PSCMD
750 TAPEDRIVE
751 OBJLIST
752 WRAPLIBS
753 WLDFLAGS
754 WCFLAGS
755 DB_LIBS
756 DLIB
757 DINCLUDE
758 DEBUG
759 FDLIBS
760 CAP_LIBS
761 LIBOBJS
762 X_EXTRA_LIBS
763 X_LIBS
764 X_PRE_LIBS
765 X_CFLAGS
766 XMKMF
767 GETCONF
768 DB_TYPE
769 cats
770 DB_PROG_LIB
771 DB_PROG
772 uncomment_dbi
773 DBI_DBD_DRIVERDIR
774 SQL_BINDIR
775 SQL_INCLUDE
776 SQL_LFLAGS
777 SBINPERM
778 fd_group
779 fd_user
780 sd_group
781 sd_user
782 dir_group
783 dir_user
784 db_port
785 db_password
786 db_user
787 db_name
788 mon_sd_password
789 mon_fd_password
790 mon_dir_password
791 sd_password
792 fd_password
793 dir_password
794 sd_port
795 fd_port
796 dir_port
797 baseport
798 subsysdir
799 piddir
800 smtp_host
801 job_email
802 dump_email
803 plugindir
804 logdir
805 bsrdir
806 scriptdir
807 hostname
808 basename
809 archivedir
810 working_dir
811 OPENSSL_INC
812 OPENSSL_LIBS
813 PYTHON_INCDIR
814 PYTHON_LIBS
815 READLINE_SRC
816 CONS_LDFLAGS
817 CONS_LIBS
818 CONS_SRC
819 CONS_OBJ
820 CONS_INC
821 STORED_DIR
822 DIR_TOOLS
823 DIRD_DIR
824 ALL_DIRS
825 STATIC_WX_CONS
826 STATIC_GNOME_CONS
827 STATIC_CONS
828 STATIC_DIR
829 STATIC_SD
830 STATIC_FD
831 TTOOL_LDFLAGS
832 TRAY_MONITOR_DIR
833 TRAY_MONITOR_LDFLAGS
834 TRAY_MONITOR_CPPFLAGS
835 WX_DIR
836 WXCONS_LDFLAGS
837 WXCONS_CPPFLAGS
838 QWT
839 QWT_LIB
840 QWT_LDFLAGS
841 QWT_INC
842 BAT_DIR
843 INTL_LIBTOOL_SUFFIX_PREFIX
844 INTLOBJS
845 GENCAT
846 INSTOBJEXT
847 DATADIRNAME
848 CATOBJEXT
849 USE_INCLUDED_LIBINTL
850 BUILD_INCLUDED_LIBINTL
851 INTLBISON
852 HAVE_WPRINTF
853 HAVE_SNPRINTF
854 HAVE_ASPRINTF
855 HAVE_POSIX_PRINTF
856 GLIBC21
857 ALLOCA
858 GLIBC2
859 POSUB
860 LTLIBINTL
861 LIBINTL
862 INTLLIBS
863 LTLIBICONV
864 LIBICONV
865 INTL_MACOSX_LIBS
866 MSGMERGE
867 XGETTEXT
868 GMSGFMT
869 MSGFMT
870 USE_NLS
871 MKINSTALLDIRS
872 SET_MAKE
873 HAVE_DARWIN_OS_FALSE
874 HAVE_DARWIN_OS_TRUE
875 HAVE_IRIX_OS_FALSE
876 HAVE_IRIX_OS_TRUE
877 HAVE_SGI_OS_FALSE
878 HAVE_SGI_OS_TRUE
879 HAVE_BSDI_OS_FALSE
880 HAVE_BSDI_OS_TRUE
881 HAVE_OPENBSD_OS_FALSE
882 HAVE_OPENBSD_OS_TRUE
883 HAVE_NETBSD_OS_FALSE
884 HAVE_NETBSD_OS_TRUE
885 HAVE_FREEBSD_OS_FALSE
886 HAVE_FREEBSD_OS_TRUE
887 HAVE_LINUX_OS_FALSE
888 HAVE_LINUX_OS_TRUE
889 HAVE_HPUX_OS_FALSE
890 HAVE_HPUX_OS_TRUE
891 HAVE_AIX_OS_FALSE
892 HAVE_AIX_OS_TRUE
893 HAVE_OSF1_OS_FALSE
894 HAVE_OSF1_OS_TRUE
895 HAVE_SUN_OS_FALSE
896 HAVE_SUN_OS_TRUE
897 INCLUDE_UNINSTALL_TARGET
898 INCLUDE_INSTALL_TARGET
899 FD_PLUGIN_DIR
900 QMAKE_LIBTOOL
901 LIBTOOL_CLEAN_TARGET
902 LIBTOOL_UNINSTALL_TARGET
903 LIBTOOL_INSTALL_TARGET
904 DEFAULT_SHARED_OBJECT_TYPE
905 DEFAULT_ARCHIVE_TYPE
906 DEFAULT_OBJECT_TYPE
907 CXXCPP
908 OTOOL64
909 OTOOL
910 LIPO
911 NMEDIT
912 DSYMUTIL
913 lt_ECHO
914 RANLIB
915 STRIP
916 OBJDUMP
917 LN_S
918 NM
919 ac_ct_DUMPBIN
920 DUMPBIN
921 LD
922 FGREP
923 host_os
924 host_vendor
925 host_cpu
926 host
927 build_os
928 build_vendor
929 build_cpu
930 build
931 LIBTOOL
932 LOCAL_DEFS
933 LOCAL_LDFLAGS
934 LOCAL_CFLAGS
935 LOCAL_LIBS
936 MAKE_SHELL
937 ARFLAGS
938 AWK
939 PIDOF
940 CDRECORD
941 WXFLAGS
942 WXCONFIG
943 GMAKE
944 QMAKEQT4
945 QMAKE
946 PKGCONFIG
947 DVDRWFORMAT
948 DVDRWMEDIAINFO
949 GROWISOFS
950 PYTHON
951 MKISOFS
952 DD
953 MTX
954 OPENSSL
955 AR
956 TBL
957 CMP
958 ECHO
959 SED
960 CP
961 REMOVE
962 MV
963 INSTALL_DATA
964 INSTALL_SCRIPT
965 INSTALL_PROGRAM
966 EGREP
967 GREP
968 CPP
969 ac_ct_CXX
970 CXXFLAGS
971 CXX
972 OBJEXT
973 EXEEXT
974 ac_ct_CC
975 CPPFLAGS
976 LDFLAGS
977 CFLAGS
978 CC
979 post_host
980 BACULA
981 LSMDATE
982 DATE
983 VERSION
984 FALSEPRG
985 TRUEPRG
986 WIN32TOPDIR
987 WIN32MAINDIR
988 WIN32BUILDDIR
989 TOP_DIR
990 BUILD_DIR
991 target_alias
992 host_alias
993 build_alias
994 LIBS
995 ECHO_T
996 ECHO_N
997 ECHO_C
998 DEFS
999 mandir
1000 localedir
1001 libdir
1002 psdir
1003 pdfdir
1004 dvidir
1005 htmldir
1006 infodir
1007 docdir
1008 oldincludedir
1009 includedir
1010 localstatedir
1011 sharedstatedir
1012 sysconfdir
1013 datadir
1014 datarootdir
1015 libexecdir
1016 sbindir
1017 bindir
1018 program_transform_name
1019 prefix
1020 exec_prefix
1021 PACKAGE_URL
1022 PACKAGE_BUGREPORT
1023 PACKAGE_STRING
1024 PACKAGE_VERSION
1025 PACKAGE_TARNAME
1026 PACKAGE_NAME
1027 PATH_SEPARATOR
1028 SHELL'
1029 ac_subst_files='MCOMMON'
1030 ac_user_opts='
1031 enable_option_checking
1032 enable_libtool
1033 enable_shared
1034 enable_static
1035 with_pic
1036 enable_fast_install
1037 with_gnu_ld
1038 enable_libtool_lock
1039 enable_includes
1040 enable_nls
1041 enable_rpath
1042 with_libiconv_prefix
1043 with_libintl_prefix
1044 with_included_gettext
1045 enable_gnome
1046 enable_bat
1047 enable_bwx_console
1048 enable_tray_monitor
1049 enable_smartalloc
1050 enable_lockmgr
1051 enable_static_tools
1052 enable_static_fd
1053 enable_static_sd
1054 enable_static_dir
1055 enable_static_cons
1056 enable_client_only
1057 enable_build_dird
1058 enable_build_stored
1059 enable_conio
1060 enable_ipv6
1061 enable_readline
1062 with_readline
1063 with_python
1064 with_tcp_wrappers
1065 with_openssl
1066 with_working_dir
1067 with_archivedir
1068 with_basename
1069 with_hostname
1070 with_scriptdir
1071 with_bsrdir
1072 with_logdir
1073 with_plugindir
1074 with_dump_email
1075 with_job_email
1076 with_smtp_host
1077 with_pid_dir
1078 with_subsys_dir
1079 with_baseport
1080 with_dir_password
1081 with_fd_password
1082 with_sd_password
1083 with_mon_dir_password
1084 with_mon_fd_password
1085 with_mon_sd_password
1086 with_db_name
1087 with_db_user
1088 with_db_password
1089 with_db_port
1090 with_dir_user
1091 with_dir_group
1092 with_sd_user
1093 with_sd_group
1094 with_fd_user
1095 with_fd_group
1096 with_sbin_perm
1097 with_postgresql
1098 with_mysql
1099 with_embedded_mysql
1100 with_ingres
1101 with_sqlite3
1102 with_dbi
1103 with_dbi_driver
1104 enable_batch_insert
1105 enable_largefile
1106 with_x
1107 enable_acl
1108 enable_xattr
1109 '
1110       ac_precious_vars='build_alias
1111 host_alias
1112 target_alias
1113 CC
1114 CFLAGS
1115 LDFLAGS
1116 LIBS
1117 CPPFLAGS
1118 CXX
1119 CXXFLAGS
1120 CCC
1121 CPP
1122 WXCONFIG
1123 WXFLAGS
1124 CXXCPP
1125 XMKMF'
1126
1127
1128 # Initialize some variables set by options.
1129 ac_init_help=
1130 ac_init_version=false
1131 ac_unrecognized_opts=
1132 ac_unrecognized_sep=
1133 # The variables have the same names as the options, with
1134 # dashes changed to underlines.
1135 cache_file=/dev/null
1136 exec_prefix=NONE
1137 no_create=
1138 no_recursion=
1139 prefix=NONE
1140 program_prefix=NONE
1141 program_suffix=NONE
1142 program_transform_name=s,x,x,
1143 silent=
1144 site=
1145 srcdir=
1146 verbose=
1147 x_includes=NONE
1148 x_libraries=NONE
1149
1150 # Installation directory options.
1151 # These are left unexpanded so users can "make install exec_prefix=/foo"
1152 # and all the variables that are supposed to be based on exec_prefix
1153 # by default will actually change.
1154 # Use braces instead of parens because sh, perl, etc. also accept them.
1155 # (The list follows the same order as the GNU Coding Standards.)
1156 bindir='${exec_prefix}/bin'
1157 sbindir='${exec_prefix}/sbin'
1158 libexecdir='${exec_prefix}/libexec'
1159 datarootdir='${prefix}/share'
1160 datadir='${datarootdir}'
1161 sysconfdir='${prefix}/etc'
1162 sharedstatedir='${prefix}/com'
1163 localstatedir='${prefix}/var'
1164 includedir='${prefix}/include'
1165 oldincludedir='/usr/include'
1166 docdir='${datarootdir}/doc/${PACKAGE}'
1167 infodir='${datarootdir}/info'
1168 htmldir='${docdir}'
1169 dvidir='${docdir}'
1170 pdfdir='${docdir}'
1171 psdir='${docdir}'
1172 libdir='${exec_prefix}/lib'
1173 localedir='${datarootdir}/locale'
1174 mandir='${datarootdir}/man'
1175
1176 ac_prev=
1177 ac_dashdash=
1178 for ac_option
1179 do
1180   # If the previous option needs an argument, assign it.
1181   if test -n "$ac_prev"; then
1182     eval $ac_prev=\$ac_option
1183     ac_prev=
1184     continue
1185   fi
1186
1187   case $ac_option in
1188   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1189   *)    ac_optarg=yes ;;
1190   esac
1191
1192   # Accept the important Cygnus configure options, so we can diagnose typos.
1193
1194   case $ac_dashdash$ac_option in
1195   --)
1196     ac_dashdash=yes ;;
1197
1198   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1199     ac_prev=bindir ;;
1200   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1201     bindir=$ac_optarg ;;
1202
1203   -build | --build | --buil | --bui | --bu)
1204     ac_prev=build_alias ;;
1205   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1206     build_alias=$ac_optarg ;;
1207
1208   -cache-file | --cache-file | --cache-fil | --cache-fi \
1209   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1210     ac_prev=cache_file ;;
1211   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1212   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1213     cache_file=$ac_optarg ;;
1214
1215   --config-cache | -C)
1216     cache_file=config.cache ;;
1217
1218   -datadir | --datadir | --datadi | --datad)
1219     ac_prev=datadir ;;
1220   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1221     datadir=$ac_optarg ;;
1222
1223   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1224   | --dataroo | --dataro | --datar)
1225     ac_prev=datarootdir ;;
1226   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1227   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1228     datarootdir=$ac_optarg ;;
1229
1230   -disable-* | --disable-*)
1231     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1232     # Reject names that are not valid shell variable names.
1233     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234       as_fn_error "invalid feature name: $ac_useropt"
1235     ac_useropt_orig=$ac_useropt
1236     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237     case $ac_user_opts in
1238       *"
1239 "enable_$ac_useropt"
1240 "*) ;;
1241       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1242          ac_unrecognized_sep=', ';;
1243     esac
1244     eval enable_$ac_useropt=no ;;
1245
1246   -docdir | --docdir | --docdi | --doc | --do)
1247     ac_prev=docdir ;;
1248   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1249     docdir=$ac_optarg ;;
1250
1251   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1252     ac_prev=dvidir ;;
1253   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1254     dvidir=$ac_optarg ;;
1255
1256   -enable-* | --enable-*)
1257     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260       as_fn_error "invalid feature name: $ac_useropt"
1261     ac_useropt_orig=$ac_useropt
1262     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263     case $ac_user_opts in
1264       *"
1265 "enable_$ac_useropt"
1266 "*) ;;
1267       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1268          ac_unrecognized_sep=', ';;
1269     esac
1270     eval enable_$ac_useropt=\$ac_optarg ;;
1271
1272   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1273   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1274   | --exec | --exe | --ex)
1275     ac_prev=exec_prefix ;;
1276   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1277   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1278   | --exec=* | --exe=* | --ex=*)
1279     exec_prefix=$ac_optarg ;;
1280
1281   -gas | --gas | --ga | --g)
1282     # Obsolete; use --with-gas.
1283     with_gas=yes ;;
1284
1285   -help | --help | --hel | --he | -h)
1286     ac_init_help=long ;;
1287   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1288     ac_init_help=recursive ;;
1289   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1290     ac_init_help=short ;;
1291
1292   -host | --host | --hos | --ho)
1293     ac_prev=host_alias ;;
1294   -host=* | --host=* | --hos=* | --ho=*)
1295     host_alias=$ac_optarg ;;
1296
1297   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1298     ac_prev=htmldir ;;
1299   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1300   | --ht=*)
1301     htmldir=$ac_optarg ;;
1302
1303   -includedir | --includedir | --includedi | --included | --include \
1304   | --includ | --inclu | --incl | --inc)
1305     ac_prev=includedir ;;
1306   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1307   | --includ=* | --inclu=* | --incl=* | --inc=*)
1308     includedir=$ac_optarg ;;
1309
1310   -infodir | --infodir | --infodi | --infod | --info | --inf)
1311     ac_prev=infodir ;;
1312   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1313     infodir=$ac_optarg ;;
1314
1315   -libdir | --libdir | --libdi | --libd)
1316     ac_prev=libdir ;;
1317   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1318     libdir=$ac_optarg ;;
1319
1320   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1321   | --libexe | --libex | --libe)
1322     ac_prev=libexecdir ;;
1323   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1324   | --libexe=* | --libex=* | --libe=*)
1325     libexecdir=$ac_optarg ;;
1326
1327   -localedir | --localedir | --localedi | --localed | --locale)
1328     ac_prev=localedir ;;
1329   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1330     localedir=$ac_optarg ;;
1331
1332   -localstatedir | --localstatedir | --localstatedi | --localstated \
1333   | --localstate | --localstat | --localsta | --localst | --locals)
1334     ac_prev=localstatedir ;;
1335   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1336   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1337     localstatedir=$ac_optarg ;;
1338
1339   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1340     ac_prev=mandir ;;
1341   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1342     mandir=$ac_optarg ;;
1343
1344   -nfp | --nfp | --nf)
1345     # Obsolete; use --without-fp.
1346     with_fp=no ;;
1347
1348   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1349   | --no-cr | --no-c | -n)
1350     no_create=yes ;;
1351
1352   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1353   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1354     no_recursion=yes ;;
1355
1356   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1357   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1358   | --oldin | --oldi | --old | --ol | --o)
1359     ac_prev=oldincludedir ;;
1360   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1361   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1362   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1363     oldincludedir=$ac_optarg ;;
1364
1365   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1366     ac_prev=prefix ;;
1367   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1368     prefix=$ac_optarg ;;
1369
1370   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1371   | --program-pre | --program-pr | --program-p)
1372     ac_prev=program_prefix ;;
1373   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1374   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1375     program_prefix=$ac_optarg ;;
1376
1377   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1378   | --program-suf | --program-su | --program-s)
1379     ac_prev=program_suffix ;;
1380   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1381   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1382     program_suffix=$ac_optarg ;;
1383
1384   -program-transform-name | --program-transform-name \
1385   | --program-transform-nam | --program-transform-na \
1386   | --program-transform-n | --program-transform- \
1387   | --program-transform | --program-transfor \
1388   | --program-transfo | --program-transf \
1389   | --program-trans | --program-tran \
1390   | --progr-tra | --program-tr | --program-t)
1391     ac_prev=program_transform_name ;;
1392   -program-transform-name=* | --program-transform-name=* \
1393   | --program-transform-nam=* | --program-transform-na=* \
1394   | --program-transform-n=* | --program-transform-=* \
1395   | --program-transform=* | --program-transfor=* \
1396   | --program-transfo=* | --program-transf=* \
1397   | --program-trans=* | --program-tran=* \
1398   | --progr-tra=* | --program-tr=* | --program-t=*)
1399     program_transform_name=$ac_optarg ;;
1400
1401   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1402     ac_prev=pdfdir ;;
1403   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1404     pdfdir=$ac_optarg ;;
1405
1406   -psdir | --psdir | --psdi | --psd | --ps)
1407     ac_prev=psdir ;;
1408   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1409     psdir=$ac_optarg ;;
1410
1411   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1412   | -silent | --silent | --silen | --sile | --sil)
1413     silent=yes ;;
1414
1415   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1416     ac_prev=sbindir ;;
1417   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1418   | --sbi=* | --sb=*)
1419     sbindir=$ac_optarg ;;
1420
1421   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1422   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1423   | --sharedst | --shareds | --shared | --share | --shar \
1424   | --sha | --sh)
1425     ac_prev=sharedstatedir ;;
1426   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1427   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1428   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1429   | --sha=* | --sh=*)
1430     sharedstatedir=$ac_optarg ;;
1431
1432   -site | --site | --sit)
1433     ac_prev=site ;;
1434   -site=* | --site=* | --sit=*)
1435     site=$ac_optarg ;;
1436
1437   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1438     ac_prev=srcdir ;;
1439   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1440     srcdir=$ac_optarg ;;
1441
1442   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1443   | --syscon | --sysco | --sysc | --sys | --sy)
1444     ac_prev=sysconfdir ;;
1445   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1446   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1447     sysconfdir=$ac_optarg ;;
1448
1449   -target | --target | --targe | --targ | --tar | --ta | --t)
1450     ac_prev=target_alias ;;
1451   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1452     target_alias=$ac_optarg ;;
1453
1454   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1455     verbose=yes ;;
1456
1457   -version | --version | --versio | --versi | --vers | -V)
1458     ac_init_version=: ;;
1459
1460   -with-* | --with-*)
1461     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1462     # Reject names that are not valid shell variable names.
1463     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1464       as_fn_error "invalid package name: $ac_useropt"
1465     ac_useropt_orig=$ac_useropt
1466     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1467     case $ac_user_opts in
1468       *"
1469 "with_$ac_useropt"
1470 "*) ;;
1471       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1472          ac_unrecognized_sep=', ';;
1473     esac
1474     eval with_$ac_useropt=\$ac_optarg ;;
1475
1476   -without-* | --without-*)
1477     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1478     # Reject names that are not valid shell variable names.
1479     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1480       as_fn_error "invalid package name: $ac_useropt"
1481     ac_useropt_orig=$ac_useropt
1482     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1483     case $ac_user_opts in
1484       *"
1485 "with_$ac_useropt"
1486 "*) ;;
1487       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1488          ac_unrecognized_sep=', ';;
1489     esac
1490     eval with_$ac_useropt=no ;;
1491
1492   --x)
1493     # Obsolete; use --with-x.
1494     with_x=yes ;;
1495
1496   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1497   | --x-incl | --x-inc | --x-in | --x-i)
1498     ac_prev=x_includes ;;
1499   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1500   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1501     x_includes=$ac_optarg ;;
1502
1503   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1504   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1505     ac_prev=x_libraries ;;
1506   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1507   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1508     x_libraries=$ac_optarg ;;
1509
1510   -*) as_fn_error "unrecognized option: \`$ac_option'
1511 Try \`$0 --help' for more information."
1512     ;;
1513
1514   *=*)
1515     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1516     # Reject names that are not valid shell variable names.
1517     case $ac_envvar in #(
1518       '' | [0-9]* | *[!_$as_cr_alnum]* )
1519       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1520     esac
1521     eval $ac_envvar=\$ac_optarg
1522     export $ac_envvar ;;
1523
1524   *)
1525     # FIXME: should be removed in autoconf 3.0.
1526     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1527     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1528       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1529     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1530     ;;
1531
1532   esac
1533 done
1534
1535 if test -n "$ac_prev"; then
1536   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1537   as_fn_error "missing argument to $ac_option"
1538 fi
1539
1540 if test -n "$ac_unrecognized_opts"; then
1541   case $enable_option_checking in
1542     no) ;;
1543     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1544     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1545   esac
1546 fi
1547
1548 # Check all directory arguments for consistency.
1549 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1550                 datadir sysconfdir sharedstatedir localstatedir includedir \
1551                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1552                 libdir localedir mandir
1553 do
1554   eval ac_val=\$$ac_var
1555   # Remove trailing slashes.
1556   case $ac_val in
1557     */ )
1558       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1559       eval $ac_var=\$ac_val;;
1560   esac
1561   # Be sure to have absolute directory names.
1562   case $ac_val in
1563     [\\/$]* | ?:[\\/]* )  continue;;
1564     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1565   esac
1566   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1567 done
1568
1569 # There might be people who depend on the old broken behavior: `$host'
1570 # used to hold the argument of --host etc.
1571 # FIXME: To remove some day.
1572 build=$build_alias
1573 host=$host_alias
1574 target=$target_alias
1575
1576 # FIXME: To remove some day.
1577 if test "x$host_alias" != x; then
1578   if test "x$build_alias" = x; then
1579     cross_compiling=maybe
1580     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1581     If a cross compiler is detected then cross compile mode will be used." >&2
1582   elif test "x$build_alias" != "x$host_alias"; then
1583     cross_compiling=yes
1584   fi
1585 fi
1586
1587 ac_tool_prefix=
1588 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1589
1590 test "$silent" = yes && exec 6>/dev/null
1591
1592
1593 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1594 ac_ls_di=`ls -di .` &&
1595 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1596   as_fn_error "working directory cannot be determined"
1597 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1598   as_fn_error "pwd does not report name of working directory"
1599
1600
1601 # Find the source files, if location was not specified.
1602 if test -z "$srcdir"; then
1603   ac_srcdir_defaulted=yes
1604   # Try the directory containing this script, then the parent directory.
1605   ac_confdir=`$as_dirname -- "$as_myself" ||
1606 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1607          X"$as_myself" : 'X\(//\)[^/]' \| \
1608          X"$as_myself" : 'X\(//\)$' \| \
1609          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1610 $as_echo X"$as_myself" |
1611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1612             s//\1/
1613             q
1614           }
1615           /^X\(\/\/\)[^/].*/{
1616             s//\1/
1617             q
1618           }
1619           /^X\(\/\/\)$/{
1620             s//\1/
1621             q
1622           }
1623           /^X\(\/\).*/{
1624             s//\1/
1625             q
1626           }
1627           s/.*/./; q'`
1628   srcdir=$ac_confdir
1629   if test ! -r "$srcdir/$ac_unique_file"; then
1630     srcdir=..
1631   fi
1632 else
1633   ac_srcdir_defaulted=no
1634 fi
1635 if test ! -r "$srcdir/$ac_unique_file"; then
1636   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1637   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1638 fi
1639 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1640 ac_abs_confdir=`(
1641         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1642         pwd)`
1643 # When building in place, set srcdir=.
1644 if test "$ac_abs_confdir" = "$ac_pwd"; then
1645   srcdir=.
1646 fi
1647 # Remove unnecessary trailing slashes from srcdir.
1648 # Double slashes in file names in object file debugging info
1649 # mess up M-x gdb in Emacs.
1650 case $srcdir in
1651 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1652 esac
1653 for ac_var in $ac_precious_vars; do
1654   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1655   eval ac_env_${ac_var}_value=\$${ac_var}
1656   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1657   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1658 done
1659
1660 #
1661 # Report the --help message.
1662 #
1663 if test "$ac_init_help" = "long"; then
1664   # Omit some internal or obsolete options to make the list less imposing.
1665   # This message is too long to be a string in the A/UX 3.1 sh.
1666   cat <<_ACEOF
1667 \`configure' configures this package to adapt to many kinds of systems.
1668
1669 Usage: $0 [OPTION]... [VAR=VALUE]...
1670
1671 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1672 VAR=VALUE.  See below for descriptions of some of the useful variables.
1673
1674 Defaults for the options are specified in brackets.
1675
1676 Configuration:
1677   -h, --help              display this help and exit
1678       --help=short        display options specific to this package
1679       --help=recursive    display the short help of all the included packages
1680   -V, --version           display version information and exit
1681   -q, --quiet, --silent   do not print \`checking...' messages
1682       --cache-file=FILE   cache test results in FILE [disabled]
1683   -C, --config-cache      alias for \`--cache-file=config.cache'
1684   -n, --no-create         do not create output files
1685       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1686
1687 Installation directories:
1688   --prefix=PREFIX         install architecture-independent files in PREFIX
1689                           [$ac_default_prefix]
1690   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1691                           [PREFIX]
1692
1693 By default, \`make install' will install all the files in
1694 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1695 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1696 for instance \`--prefix=\$HOME'.
1697
1698 For better control, use the options below.
1699
1700 Fine tuning of the installation directories:
1701   --bindir=DIR            user executables [EPREFIX/bin]
1702   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1703   --libexecdir=DIR        program executables [EPREFIX/libexec]
1704   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1705   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1706   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1707   --libdir=DIR            object code libraries [EPREFIX/lib]
1708   --includedir=DIR        C header files [PREFIX/include]
1709   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1710   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1711   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1712   --infodir=DIR           info documentation [DATAROOTDIR/info]
1713   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1714   --mandir=DIR            man documentation [DATAROOTDIR/man]
1715   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1716   --htmldir=DIR           html documentation [DOCDIR]
1717   --dvidir=DIR            dvi documentation [DOCDIR]
1718   --pdfdir=DIR            pdf documentation [DOCDIR]
1719   --psdir=DIR             ps documentation [DOCDIR]
1720 _ACEOF
1721
1722   cat <<\_ACEOF
1723
1724 X features:
1725   --x-includes=DIR    X include files are in DIR
1726   --x-libraries=DIR   X library files are in DIR
1727
1728 System types:
1729   --build=BUILD     configure for building on BUILD [guessed]
1730   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1731 _ACEOF
1732 fi
1733
1734 if test -n "$ac_init_help"; then
1735
1736   cat <<\_ACEOF
1737
1738 Optional Features:
1739   --disable-option-checking  ignore unrecognized --enable/--with options
1740   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1741   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1742   --enable-libtool        enable building using GNU libtool [default=yes]
1743   --enable-shared[=PKGS]  build shared libraries [default=yes]
1744   --enable-static[=PKGS]  build static libraries [default=no]
1745   --enable-fast-install[=PKGS]
1746                           optimize for fast installation [default=yes]
1747   --disable-libtool-lock  avoid locking (might break parallel builds)
1748   --enable-includes       enable installing of include files [default=no]
1749   --disable-nls           do not use Native Language Support
1750   --disable-rpath         do not hardcode runtime library paths
1751   --enable-gnome          enable build of bgnome-console GUI [default=no]
1752   --enable-bat            enable build of bat Qt4 GUI [default=no]
1753   --enable-bwx-console    enable build of wxWidgets console [default=no]
1754   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1755                           KDE [default=no]
1756   --enable-smartalloc     enable smartalloc debugging support [default=no]
1757   --enable-lockmgr        enable lock manager support [default=no]
1758   --enable-static-tools   enable static tape tools [default=no]
1759   --enable-static-fd      enable static File daemon [default=no]
1760   --enable-static-sd      enable static Storage daemon [default=no]
1761   --enable-static-dir     enable static Director [default=no]
1762   --enable-static-cons    enable static Console [default=no]
1763   --enable-client-only    build client (File daemon) only [default=no]
1764   --enable-build-dird     enable building of dird (Director) [default=yes]
1765   --enable-build-stored   enable building of stored (Storage daemon)
1766                           [default=yes]
1767   --disable-conio         disable conio support [default=no]
1768   --enable-ipv6           enable ipv6 support [default=yes]
1769   --disable-readline      disable readline support [default=yes]
1770   --enable-batch-insert   enable the DB batch insert code [default=no]
1771   --disable-largefile     omit support for large files
1772   --disable-acl           disable acl support [default=auto]
1773   --disable-xattr         disable xattr support [default=auto]
1774
1775 Optional Packages:
1776   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1777   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1778   --with-pic              try to use only PIC/non-PIC objects [default=use
1779                           both]
1780   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1781   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1782   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1783   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1784   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1785   --without-libintl-prefix     don't search for libintl in includedir and libdir
1786   --with-included-gettext use the GNU gettext library included here
1787   --with-readline[=DIR]   specify readline library directory
1788   --with-python[=DIR]     Include Python support. DIR is the Python base
1789                           install directory, default is to search through a
1790                           number of common places for the Python files.
1791   --with-tcp-wrappers[=DIR]
1792                           enable tcpwrappers support
1793   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1794   --with-working-dir=PATH specify path of Bacula working directory
1795   --with-archivedir=PATH  specify path of SD archive directory
1796   --with-basename=RESNAME specify base resource name for daemons
1797   --with-hostname=RESNAME specify host name for daemons
1798   --with-scriptdir=PATH   specify path of Bacula scripts directory
1799   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1800   --with-logdir=PATH      specify path of Bacula logs directory
1801   --with-plugindir=PATH   specify path of Bacula plugins directory
1802   --with-dump-email=EMAIL dump email address
1803   --with-job-email=EMAIL  job output email address
1804   --with-smtp-host=HOST   SMTP mail host address
1805   --with-pid-dir=PATH     specify location of Bacula pid files
1806   --with-subsys-dir=PATH  specify location of Bacula subsys file
1807   --with-baseport=PORT    specify base port address for daemons
1808   --with-dir-password=PASSWORD
1809                           specify Director's password
1810   --with-fd-password=PASSWORD
1811                           specify Client's password
1812   --with-sd-password=PASSWORD
1813                           specify Storage daemon's password
1814   --with-mon-dir-password=PASSWORD
1815                           specify Director's password used by the monitor
1816   --with-mon-fd-password=PASSWORD
1817                           specify Client's password used by the monitor
1818   --with-mon-sd-password=PASSWORD
1819                           specify Storage daemon's password used by the
1820                           monitor
1821   --with-db-name=DBNAME   specify database name [default=bacula]
1822   --with-db-user=UNAME    specify database user [default=bacula]
1823   --with-db-password=PWD  specify database password [default=*none*]
1824   --with-db-port=DBPORT   specify a database port [default=null]
1825   --with-dir-user=USER    specify user for Director daemon
1826   --with-dir-group=GROUP  specify group for Director daemon
1827   --with-sd-user=USER     specify user for Storage daemon
1828   --with-sd-group=GROUP   specify group for Storage daemon
1829   --with-fd-user=USER     specify user for File daemon
1830   --with-fd-group=GROUP   specify group for File daemon
1831   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1832   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1833                           base install directory, [default=/usr/local/pgsql]
1834   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1835                           directory, default is to search through a number of
1836                           common places for the MySQL files.
1837   --with-embedded-mysql[=DIR]
1838                           Include MySQL support. DIR is the MySQL base install
1839                           directory, default is to search through a number of
1840                           common places for the MySQL files.
1841   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1842                           install directory, default is to search through a
1843                           number of common places for the Ingres files.
1844   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1845                           install directory, default is to search through a
1846                           number of common places for the SQLite3 files.
1847   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1848                           directory, default is to search through a number of
1849                           common places for the DBI files.
1850   --with-dbi-driver[=DRIVER]
1851                           Suport for DBI driver. DRIVER is the one DBI driver
1852                           like Mysql, Postgresql, others. Default is to not
1853                           configure any driver.
1854   --with-x                use the X Window System
1855
1856 Some influential environment variables:
1857   CC          C compiler command
1858   CFLAGS      C compiler flags
1859   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1860               nonstandard directory <lib dir>
1861   LIBS        libraries to pass to the linker, e.g. -l<library>
1862   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1863               you have headers in a nonstandard directory <include dir>
1864   CXX         C++ compiler command
1865   CXXFLAGS    C++ compiler flags
1866   CPP         C preprocessor
1867   WXCONFIG    wx-config command. On some systems, you must set it to
1868               wx-config-2.6 to use wxWidgets 2.6.
1869   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1870   CXXCPP      C++ preprocessor
1871   XMKMF       Path to xmkmf, Makefile generator for X Window System
1872
1873 Use these variables to override the choices made by `configure' or to help
1874 it to find libraries and programs with nonstandard names/locations.
1875
1876 Report bugs to the package provider.
1877 _ACEOF
1878 ac_status=$?
1879 fi
1880
1881 if test "$ac_init_help" = "recursive"; then
1882   # If there are subdirs, report their specific --help.
1883   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1884     test -d "$ac_dir" ||
1885       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1886       continue
1887     ac_builddir=.
1888
1889 case "$ac_dir" in
1890 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1891 *)
1892   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1893   # A ".." for each directory in $ac_dir_suffix.
1894   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1895   case $ac_top_builddir_sub in
1896   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1897   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1898   esac ;;
1899 esac
1900 ac_abs_top_builddir=$ac_pwd
1901 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1902 # for backward compatibility:
1903 ac_top_builddir=$ac_top_build_prefix
1904
1905 case $srcdir in
1906   .)  # We are building in place.
1907     ac_srcdir=.
1908     ac_top_srcdir=$ac_top_builddir_sub
1909     ac_abs_top_srcdir=$ac_pwd ;;
1910   [\\/]* | ?:[\\/]* )  # Absolute name.
1911     ac_srcdir=$srcdir$ac_dir_suffix;
1912     ac_top_srcdir=$srcdir
1913     ac_abs_top_srcdir=$srcdir ;;
1914   *) # Relative name.
1915     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1916     ac_top_srcdir=$ac_top_build_prefix$srcdir
1917     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1918 esac
1919 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1920
1921     cd "$ac_dir" || { ac_status=$?; continue; }
1922     # Check for guested configure.
1923     if test -f "$ac_srcdir/configure.gnu"; then
1924       echo &&
1925       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1926     elif test -f "$ac_srcdir/configure"; then
1927       echo &&
1928       $SHELL "$ac_srcdir/configure" --help=recursive
1929     else
1930       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1931     fi || ac_status=$?
1932     cd "$ac_pwd" || { ac_status=$?; break; }
1933   done
1934 fi
1935
1936 test -n "$ac_init_help" && exit $ac_status
1937 if $ac_init_version; then
1938   cat <<\_ACEOF
1939 configure
1940 generated by GNU Autoconf 2.65
1941
1942 Copyright (C) 2009 Free Software Foundation, Inc.
1943 This configure script is free software; the Free Software Foundation
1944 gives unlimited permission to copy, distribute and modify it.
1945 _ACEOF
1946   exit
1947 fi
1948
1949 ## ------------------------ ##
1950 ## Autoconf initialization. ##
1951 ## ------------------------ ##
1952
1953 # ac_fn_c_try_compile LINENO
1954 # --------------------------
1955 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_c_try_compile ()
1957 {
1958   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959   rm -f conftest.$ac_objext
1960   if { { ac_try="$ac_compile"
1961 case "(($ac_try" in
1962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963   *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967   (eval "$ac_compile") 2>conftest.err
1968   ac_status=$?
1969   if test -s conftest.err; then
1970     grep -v '^ *+' conftest.err >conftest.er1
1971     cat conftest.er1 >&5
1972     mv -f conftest.er1 conftest.err
1973   fi
1974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975   test $ac_status = 0; } && {
1976          test -z "$ac_c_werror_flag" ||
1977          test ! -s conftest.err
1978        } && test -s conftest.$ac_objext; then :
1979   ac_retval=0
1980 else
1981   $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1983
1984         ac_retval=1
1985 fi
1986   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987   as_fn_set_status $ac_retval
1988
1989 } # ac_fn_c_try_compile
1990
1991 # ac_fn_cxx_try_compile LINENO
1992 # ----------------------------
1993 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1994 ac_fn_cxx_try_compile ()
1995 {
1996   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997   rm -f conftest.$ac_objext
1998   if { { ac_try="$ac_compile"
1999 case "(($ac_try" in
2000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001   *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005   (eval "$ac_compile") 2>conftest.err
2006   ac_status=$?
2007   if test -s conftest.err; then
2008     grep -v '^ *+' conftest.err >conftest.er1
2009     cat conftest.er1 >&5
2010     mv -f conftest.er1 conftest.err
2011   fi
2012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013   test $ac_status = 0; } && {
2014          test -z "$ac_cxx_werror_flag" ||
2015          test ! -s conftest.err
2016        } && test -s conftest.$ac_objext; then :
2017   ac_retval=0
2018 else
2019   $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022         ac_retval=1
2023 fi
2024   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025   as_fn_set_status $ac_retval
2026
2027 } # ac_fn_cxx_try_compile
2028
2029 # ac_fn_c_try_cpp LINENO
2030 # ----------------------
2031 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_c_try_cpp ()
2033 {
2034   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035   if { { ac_try="$ac_cpp conftest.$ac_ext"
2036 case "(($ac_try" in
2037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038   *) ac_try_echo=$ac_try;;
2039 esac
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2043   ac_status=$?
2044   if test -s conftest.err; then
2045     grep -v '^ *+' conftest.err >conftest.er1
2046     cat conftest.er1 >&5
2047     mv -f conftest.er1 conftest.err
2048   fi
2049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050   test $ac_status = 0; } >/dev/null && {
2051          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2052          test ! -s conftest.err
2053        }; then :
2054   ac_retval=0
2055 else
2056   $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059     ac_retval=1
2060 fi
2061   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062   as_fn_set_status $ac_retval
2063
2064 } # ac_fn_c_try_cpp
2065
2066 # ac_fn_c_try_link LINENO
2067 # -----------------------
2068 # Try to link conftest.$ac_ext, and return whether this succeeded.
2069 ac_fn_c_try_link ()
2070 {
2071   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072   rm -f conftest.$ac_objext conftest$ac_exeext
2073   if { { ac_try="$ac_link"
2074 case "(($ac_try" in
2075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076   *) ac_try_echo=$ac_try;;
2077 esac
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080   (eval "$ac_link") 2>conftest.err
2081   ac_status=$?
2082   if test -s conftest.err; then
2083     grep -v '^ *+' conftest.err >conftest.er1
2084     cat conftest.er1 >&5
2085     mv -f conftest.er1 conftest.err
2086   fi
2087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088   test $ac_status = 0; } && {
2089          test -z "$ac_c_werror_flag" ||
2090          test ! -s conftest.err
2091        } && test -s conftest$ac_exeext && {
2092          test "$cross_compiling" = yes ||
2093          $as_test_x conftest$ac_exeext
2094        }; then :
2095   ac_retval=0
2096 else
2097   $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2099
2100         ac_retval=1
2101 fi
2102   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2103   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2104   # interfere with the next link command; also delete a directory that is
2105   # left behind by Apple's compiler.  We do this before executing the actions.
2106   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108   as_fn_set_status $ac_retval
2109
2110 } # ac_fn_c_try_link
2111
2112 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2113 # -------------------------------------------------------
2114 # Tests whether HEADER exists and can be compiled using the include files in
2115 # INCLUDES, setting the cache variable VAR accordingly.
2116 ac_fn_c_check_header_compile ()
2117 {
2118   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2122   $as_echo_n "(cached) " >&6
2123 else
2124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h.  */
2126 $4
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130   eval "$3=yes"
2131 else
2132   eval "$3=no"
2133 fi
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 fi
2136 eval ac_res=\$$3
2137                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2140
2141 } # ac_fn_c_check_header_compile
2142
2143 # ac_fn_c_try_run LINENO
2144 # ----------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2146 # that executables *can* be run.
2147 ac_fn_c_try_run ()
2148 {
2149   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150   if { { ac_try="$ac_link"
2151 case "(($ac_try" in
2152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153   *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157   (eval "$ac_link") 2>&5
2158   ac_status=$?
2159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2161   { { case "(($ac_try" in
2162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163   *) ac_try_echo=$ac_try;;
2164 esac
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167   (eval "$ac_try") 2>&5
2168   ac_status=$?
2169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170   test $ac_status = 0; }; }; then :
2171   ac_retval=0
2172 else
2173   $as_echo "$as_me: program exited with status $ac_status" >&5
2174        $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177        ac_retval=$ac_status
2178 fi
2179   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2180   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181   as_fn_set_status $ac_retval
2182
2183 } # ac_fn_c_try_run
2184
2185 # ac_fn_c_check_func LINENO FUNC VAR
2186 # ----------------------------------
2187 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2188 ac_fn_c_check_func ()
2189 {
2190   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2194   $as_echo_n "(cached) " >&6
2195 else
2196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2200 #define $2 innocuous_$2
2201
2202 /* System header to define __stub macros and hopefully few prototypes,
2203     which can conflict with char $2 (); below.
2204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2205     <limits.h> exists even on freestanding compilers.  */
2206
2207 #ifdef __STDC__
2208 # include <limits.h>
2209 #else
2210 # include <assert.h>
2211 #endif
2212
2213 #undef $2
2214
2215 /* Override any GCC internal prototype to avoid an error.
2216    Use char because int might match the return type of a GCC
2217    builtin and then its argument prototype would still apply.  */
2218 #ifdef __cplusplus
2219 extern "C"
2220 #endif
2221 char $2 ();
2222 /* The GNU C library defines this for functions which it implements
2223     to always fail with ENOSYS.  Some functions are actually named
2224     something starting with __ and the normal name is an alias.  */
2225 #if defined __stub_$2 || defined __stub___$2
2226 choke me
2227 #endif
2228
2229 int
2230 main ()
2231 {
2232 return $2 ();
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_link "$LINENO"; then :
2238   eval "$3=yes"
2239 else
2240   eval "$3=no"
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext \
2243     conftest$ac_exeext conftest.$ac_ext
2244 fi
2245 eval ac_res=\$$3
2246                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249
2250 } # ac_fn_c_check_func
2251
2252 # ac_fn_cxx_try_cpp LINENO
2253 # ------------------------
2254 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2255 ac_fn_cxx_try_cpp ()
2256 {
2257   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258   if { { ac_try="$ac_cpp conftest.$ac_ext"
2259 case "(($ac_try" in
2260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261   *) ac_try_echo=$ac_try;;
2262 esac
2263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 $as_echo "$ac_try_echo"; } >&5
2265   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2266   ac_status=$?
2267   if test -s conftest.err; then
2268     grep -v '^ *+' conftest.err >conftest.er1
2269     cat conftest.er1 >&5
2270     mv -f conftest.er1 conftest.err
2271   fi
2272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273   test $ac_status = 0; } >/dev/null && {
2274          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2275          test ! -s conftest.err
2276        }; then :
2277   ac_retval=0
2278 else
2279   $as_echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282     ac_retval=1
2283 fi
2284   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285   as_fn_set_status $ac_retval
2286
2287 } # ac_fn_cxx_try_cpp
2288
2289 # ac_fn_cxx_try_link LINENO
2290 # -------------------------
2291 # Try to link conftest.$ac_ext, and return whether this succeeded.
2292 ac_fn_cxx_try_link ()
2293 {
2294   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295   rm -f conftest.$ac_objext conftest$ac_exeext
2296   if { { ac_try="$ac_link"
2297 case "(($ac_try" in
2298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299   *) ac_try_echo=$ac_try;;
2300 esac
2301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302 $as_echo "$ac_try_echo"; } >&5
2303   (eval "$ac_link") 2>conftest.err
2304   ac_status=$?
2305   if test -s conftest.err; then
2306     grep -v '^ *+' conftest.err >conftest.er1
2307     cat conftest.er1 >&5
2308     mv -f conftest.er1 conftest.err
2309   fi
2310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311   test $ac_status = 0; } && {
2312          test -z "$ac_cxx_werror_flag" ||
2313          test ! -s conftest.err
2314        } && test -s conftest$ac_exeext && {
2315          test "$cross_compiling" = yes ||
2316          $as_test_x conftest$ac_exeext
2317        }; then :
2318   ac_retval=0
2319 else
2320   $as_echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2322
2323         ac_retval=1
2324 fi
2325   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2326   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2327   # interfere with the next link command; also delete a directory that is
2328   # left behind by Apple's compiler.  We do this before executing the actions.
2329   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331   as_fn_set_status $ac_retval
2332
2333 } # ac_fn_cxx_try_link
2334
2335 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2336 # -------------------------------------------
2337 # Tests whether TYPE exists after having included INCLUDES, setting cache
2338 # variable VAR accordingly.
2339 ac_fn_c_check_type ()
2340 {
2341   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2345   $as_echo_n "(cached) " >&6
2346 else
2347   eval "$3=no"
2348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h.  */
2350 $4
2351 int
2352 main ()
2353 {
2354 if (sizeof ($2))
2355          return 0;
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 if ac_fn_c_try_compile "$LINENO"; then :
2361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h.  */
2363 $4
2364 int
2365 main ()
2366 {
2367 if (sizeof (($2)))
2368             return 0;
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 if ac_fn_c_try_compile "$LINENO"; then :
2374
2375 else
2376   eval "$3=yes"
2377 fi
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 fi
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 fi
2382 eval ac_res=\$$3
2383                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2385   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386
2387 } # ac_fn_c_check_type
2388
2389 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2390 # -------------------------------------------------------
2391 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2392 # the include files in INCLUDES and setting the cache variable VAR
2393 # accordingly.
2394 ac_fn_c_check_header_mongrel ()
2395 {
2396   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399 $as_echo_n "checking for $2... " >&6; }
2400 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2401   $as_echo_n "(cached) " >&6
2402 fi
2403 eval ac_res=\$$3
2404                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 else
2407   # Is the header compilable?
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2409 $as_echo_n "checking $2 usability... " >&6; }
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h.  */
2412 $4
2413 #include <$2>
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416   ac_header_compiler=yes
2417 else
2418   ac_header_compiler=no
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2422 $as_echo "$ac_header_compiler" >&6; }
2423
2424 # Is the header present?
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2426 $as_echo_n "checking $2 presence... " >&6; }
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h.  */
2429 #include <$2>
2430 _ACEOF
2431 if ac_fn_c_try_cpp "$LINENO"; then :
2432   ac_header_preproc=yes
2433 else
2434   ac_header_preproc=no
2435 fi
2436 rm -f conftest.err conftest.$ac_ext
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2438 $as_echo "$ac_header_preproc" >&6; }
2439
2440 # So?  What about this header?
2441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2442   yes:no: )
2443     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2444 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2445     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2446 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2447     ;;
2448   no:yes:* )
2449     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2450 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2451     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2452 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2453     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2454 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2455     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2456 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2458 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2459     ;;
2460 esac
2461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   eval "$3=\$ac_header_compiler"
2467 fi
2468 eval ac_res=\$$3
2469                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 fi
2472   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_c_check_header_mongrel
2475
2476 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2477 # --------------------------------------------
2478 # Tries to find the compile-time value of EXPR in a program that includes
2479 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2480 # computed
2481 ac_fn_c_compute_int ()
2482 {
2483   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484   if test "$cross_compiling" = yes; then
2485     # Depending upon the size, compute the lo and hi bounds.
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h.  */
2488 $4
2489 int
2490 main ()
2491 {
2492 static int test_array [1 - 2 * !(($2) >= 0)];
2493 test_array [0] = 0
2494
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 if ac_fn_c_try_compile "$LINENO"; then :
2500   ac_lo=0 ac_mid=0
2501   while :; do
2502     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h.  */
2504 $4
2505 int
2506 main ()
2507 {
2508 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2509 test_array [0] = 0
2510
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
2515 if ac_fn_c_try_compile "$LINENO"; then :
2516   ac_hi=$ac_mid; break
2517 else
2518   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2519                         if test $ac_lo -le $ac_mid; then
2520                           ac_lo= ac_hi=
2521                           break
2522                         fi
2523                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2524 fi
2525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526   done
2527 else
2528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h.  */
2530 $4
2531 int
2532 main ()
2533 {
2534 static int test_array [1 - 2 * !(($2) < 0)];
2535 test_array [0] = 0
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542   ac_hi=-1 ac_mid=-1
2543   while :; do
2544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h.  */
2546 $4
2547 int
2548 main ()
2549 {
2550 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2551 test_array [0] = 0
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 if ac_fn_c_try_compile "$LINENO"; then :
2558   ac_lo=$ac_mid; break
2559 else
2560   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2561                         if test $ac_mid -le $ac_hi; then
2562                           ac_lo= ac_hi=
2563                           break
2564                         fi
2565                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2566 fi
2567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568   done
2569 else
2570   ac_lo= ac_hi=
2571 fi
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 fi
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575 # Binary search between lo and hi bounds.
2576 while test "x$ac_lo" != "x$ac_hi"; do
2577   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h.  */
2580 $4
2581 int
2582 main ()
2583 {
2584 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2585 test_array [0] = 0
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 if ac_fn_c_try_compile "$LINENO"; then :
2592   ac_hi=$ac_mid
2593 else
2594   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2595 fi
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 done
2598 case $ac_lo in #((
2599 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2600 '') ac_retval=1 ;;
2601 esac
2602   else
2603     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 $4
2606 static long int longval () { return $2; }
2607 static unsigned long int ulongval () { return $2; }
2608 #include <stdio.h>
2609 #include <stdlib.h>
2610 int
2611 main ()
2612 {
2613
2614   FILE *f = fopen ("conftest.val", "w");
2615   if (! f)
2616     return 1;
2617   if (($2) < 0)
2618     {
2619       long int i = longval ();
2620       if (i != ($2))
2621         return 1;
2622       fprintf (f, "%ld", i);
2623     }
2624   else
2625     {
2626       unsigned long int i = ulongval ();
2627       if (i != ($2))
2628         return 1;
2629       fprintf (f, "%lu", i);
2630     }
2631   /* Do not output a trailing newline, as this causes \r\n confusion
2632      on some platforms.  */
2633   return ferror (f) || fclose (f) != 0;
2634
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 if ac_fn_c_try_run "$LINENO"; then :
2640   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2641 else
2642   ac_retval=1
2643 fi
2644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2645   conftest.$ac_objext conftest.beam conftest.$ac_ext
2646 rm -f conftest.val
2647
2648   fi
2649   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2650   as_fn_set_status $ac_retval
2651
2652 } # ac_fn_c_compute_int
2653
2654 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2655 # ----------------------------------------------------
2656 # Tries to find if the field MEMBER exists in type AGGR, after including
2657 # INCLUDES, setting cache variable VAR accordingly.
2658 ac_fn_c_check_member ()
2659 {
2660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2662 $as_echo_n "checking for $2.$3... " >&6; }
2663 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2664   $as_echo_n "(cached) " >&6
2665 else
2666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h.  */
2668 $5
2669 int
2670 main ()
2671 {
2672 static $2 ac_aggr;
2673 if (ac_aggr.$3)
2674 return 0;
2675   ;
2676   return 0;
2677 }
2678 _ACEOF
2679 if ac_fn_c_try_compile "$LINENO"; then :
2680   eval "$4=yes"
2681 else
2682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h.  */
2684 $5
2685 int
2686 main ()
2687 {
2688 static $2 ac_aggr;
2689 if (sizeof ac_aggr.$3)
2690 return 0;
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 if ac_fn_c_try_compile "$LINENO"; then :
2696   eval "$4=yes"
2697 else
2698   eval "$4=no"
2699 fi
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 fi
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 fi
2704 eval ac_res=\$$4
2705                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2708
2709 } # ac_fn_c_check_member
2710
2711 # ac_fn_c_check_decl LINENO SYMBOL VAR
2712 # ------------------------------------
2713 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2714 ac_fn_c_check_decl ()
2715 {
2716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2718 $as_echo_n "checking whether $2 is declared... " >&6; }
2719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h.  */
2724 $4
2725 int
2726 main ()
2727 {
2728 #ifndef $2
2729   (void) $2;
2730 #endif
2731
2732   ;
2733   return 0;
2734 }
2735 _ACEOF
2736 if ac_fn_c_try_compile "$LINENO"; then :
2737   eval "$3=yes"
2738 else
2739   eval "$3=no"
2740 fi
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 fi
2743 eval ac_res=\$$3
2744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745 $as_echo "$ac_res" >&6; }
2746   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2747
2748 } # ac_fn_c_check_decl
2749
2750 # ac_fn_cxx_try_run LINENO
2751 # ------------------------
2752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2753 # that executables *can* be run.
2754 ac_fn_cxx_try_run ()
2755 {
2756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757   if { { ac_try="$ac_link"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763 $as_echo "$ac_try_echo"; } >&5
2764   (eval "$ac_link") 2>&5
2765   ac_status=$?
2766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2768   { { case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2773 $as_echo "$ac_try_echo"; } >&5
2774   (eval "$ac_try") 2>&5
2775   ac_status=$?
2776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777   test $ac_status = 0; }; }; then :
2778   ac_retval=0
2779 else
2780   $as_echo "$as_me: program exited with status $ac_status" >&5
2781        $as_echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2783
2784        ac_retval=$ac_status
2785 fi
2786   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2787   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2788   as_fn_set_status $ac_retval
2789
2790 } # ac_fn_cxx_try_run
2791 cat >config.log <<_ACEOF
2792 This file contains any messages produced by compilers while
2793 running configure, to aid debugging if configure makes a mistake.
2794
2795 It was created by $as_me, which was
2796 generated by GNU Autoconf 2.65.  Invocation command line was
2797
2798   $ $0 $@
2799
2800 _ACEOF
2801 exec 5>>config.log
2802 {
2803 cat <<_ASUNAME
2804 ## --------- ##
2805 ## Platform. ##
2806 ## --------- ##
2807
2808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2813
2814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2815 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2816
2817 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2818 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2820 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2821 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2822 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2823 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2824
2825 _ASUNAME
2826
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830   IFS=$as_save_IFS
2831   test -z "$as_dir" && as_dir=.
2832     $as_echo "PATH: $as_dir"
2833   done
2834 IFS=$as_save_IFS
2835
2836 } >&5
2837
2838 cat >&5 <<_ACEOF
2839
2840
2841 ## ----------- ##
2842 ## Core tests. ##
2843 ## ----------- ##
2844
2845 _ACEOF
2846
2847
2848 # Keep a trace of the command line.
2849 # Strip out --no-create and --no-recursion so they do not pile up.
2850 # Strip out --silent because we don't want to record it for future runs.
2851 # Also quote any args containing shell meta-characters.
2852 # Make two passes to allow for proper duplicate-argument suppression.
2853 ac_configure_args=
2854 ac_configure_args0=
2855 ac_configure_args1=
2856 ac_must_keep_next=false
2857 for ac_pass in 1 2
2858 do
2859   for ac_arg
2860   do
2861     case $ac_arg in
2862     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2863     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2864     | -silent | --silent | --silen | --sile | --sil)
2865       continue ;;
2866     *\'*)
2867       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2868     esac
2869     case $ac_pass in
2870     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2871     2)
2872       as_fn_append ac_configure_args1 " '$ac_arg'"
2873       if test $ac_must_keep_next = true; then
2874         ac_must_keep_next=false # Got value, back to normal.
2875       else
2876         case $ac_arg in
2877           *=* | --config-cache | -C | -disable-* | --disable-* \
2878           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2879           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2880           | -with-* | --with-* | -without-* | --without-* | --x)
2881             case "$ac_configure_args0 " in
2882               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2883             esac
2884             ;;
2885           -* ) ac_must_keep_next=true ;;
2886         esac
2887       fi
2888       as_fn_append ac_configure_args " '$ac_arg'"
2889       ;;
2890     esac
2891   done
2892 done
2893 { ac_configure_args0=; unset ac_configure_args0;}
2894 { ac_configure_args1=; unset ac_configure_args1;}
2895
2896 # When interrupted or exit'd, cleanup temporary files, and complete
2897 # config.log.  We remove comments because anyway the quotes in there
2898 # would cause problems or look ugly.
2899 # WARNING: Use '\'' to represent an apostrophe within the trap.
2900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2901 trap 'exit_status=$?
2902   # Save into config.log some information that might help in debugging.
2903   {
2904     echo
2905
2906     cat <<\_ASBOX
2907 ## ---------------- ##
2908 ## Cache variables. ##
2909 ## ---------------- ##
2910 _ASBOX
2911     echo
2912     # The following way of writing the cache mishandles newlines in values,
2913 (
2914   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2915     eval ac_val=\$$ac_var
2916     case $ac_val in #(
2917     *${as_nl}*)
2918       case $ac_var in #(
2919       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2920 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2921       esac
2922       case $ac_var in #(
2923       _ | IFS | as_nl) ;; #(
2924       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2925       *) { eval $ac_var=; unset $ac_var;} ;;
2926       esac ;;
2927     esac
2928   done
2929   (set) 2>&1 |
2930     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2931     *${as_nl}ac_space=\ *)
2932       sed -n \
2933         "s/'\''/'\''\\\\'\'''\''/g;
2934           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2935       ;; #(
2936     *)
2937       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2938       ;;
2939     esac |
2940     sort
2941 )
2942     echo
2943
2944     cat <<\_ASBOX
2945 ## ----------------- ##
2946 ## Output variables. ##
2947 ## ----------------- ##
2948 _ASBOX
2949     echo
2950     for ac_var in $ac_subst_vars
2951     do
2952       eval ac_val=\$$ac_var
2953       case $ac_val in
2954       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2955       esac
2956       $as_echo "$ac_var='\''$ac_val'\''"
2957     done | sort
2958     echo
2959
2960     if test -n "$ac_subst_files"; then
2961       cat <<\_ASBOX
2962 ## ------------------- ##
2963 ## File substitutions. ##
2964 ## ------------------- ##
2965 _ASBOX
2966       echo
2967       for ac_var in $ac_subst_files
2968       do
2969         eval ac_val=\$$ac_var
2970         case $ac_val in
2971         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2972         esac
2973         $as_echo "$ac_var='\''$ac_val'\''"
2974       done | sort
2975       echo
2976     fi
2977
2978     if test -s confdefs.h; then
2979       cat <<\_ASBOX
2980 ## ----------- ##
2981 ## confdefs.h. ##
2982 ## ----------- ##
2983 _ASBOX
2984       echo
2985       cat confdefs.h
2986       echo
2987     fi
2988     test "$ac_signal" != 0 &&
2989       $as_echo "$as_me: caught signal $ac_signal"
2990     $as_echo "$as_me: exit $exit_status"
2991   } >&5
2992   rm -f core *.core core.conftest.* &&
2993     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2994     exit $exit_status
2995 ' 0
2996 for ac_signal in 1 2 13 15; do
2997   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2998 done
2999 ac_signal=0
3000
3001 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3002 rm -f -r conftest* confdefs.h
3003
3004 $as_echo "/* confdefs.h */" > confdefs.h
3005
3006 # Predefined preprocessor variables.
3007
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE_NAME "$PACKAGE_NAME"
3010 _ACEOF
3011
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3014 _ACEOF
3015
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3018 _ACEOF
3019
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_STRING "$PACKAGE_STRING"
3022 _ACEOF
3023
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3026 _ACEOF
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_URL "$PACKAGE_URL"
3030 _ACEOF
3031
3032
3033 # Let the site file select an alternate cache file if it wants to.
3034 # Prefer an explicitly selected file to automatically selected ones.
3035 ac_site_file1=NONE
3036 ac_site_file2=NONE
3037 if test -n "$CONFIG_SITE"; then
3038   ac_site_file1=$CONFIG_SITE
3039 elif test "x$prefix" != xNONE; then
3040   ac_site_file1=$prefix/share/config.site
3041   ac_site_file2=$prefix/etc/config.site
3042 else
3043   ac_site_file1=$ac_default_prefix/share/config.site
3044   ac_site_file2=$ac_default_prefix/etc/config.site
3045 fi
3046 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3047 do
3048   test "x$ac_site_file" = xNONE && continue
3049   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3050     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3051 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3052     sed 's/^/| /' "$ac_site_file" >&5
3053     . "$ac_site_file"
3054   fi
3055 done
3056
3057 if test -r "$cache_file"; then
3058   # Some versions of bash will fail to source /dev/null (special files
3059   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3060   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3061     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3062 $as_echo "$as_me: loading cache $cache_file" >&6;}
3063     case $cache_file in
3064       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3065       *)                      . "./$cache_file";;
3066     esac
3067   fi
3068 else
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3070 $as_echo "$as_me: creating cache $cache_file" >&6;}
3071   >$cache_file
3072 fi
3073
3074 as_fn_append ac_header_list " stdlib.h"
3075 as_fn_append ac_header_list " unistd.h"
3076 as_fn_append ac_header_list " sys/param.h"
3077 # Check that the precious variables saved in the cache have kept the same
3078 # value.
3079 ac_cache_corrupted=false
3080 for ac_var in $ac_precious_vars; do
3081   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3082   eval ac_new_set=\$ac_env_${ac_var}_set
3083   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3084   eval ac_new_val=\$ac_env_${ac_var}_value
3085   case $ac_old_set,$ac_new_set in
3086     set,)
3087       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3088 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3089       ac_cache_corrupted=: ;;
3090     ,set)
3091       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3092 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3093       ac_cache_corrupted=: ;;
3094     ,);;
3095     *)
3096       if test "x$ac_old_val" != "x$ac_new_val"; then
3097         # differences in whitespace do not lead to failure.
3098         ac_old_val_w=`echo x $ac_old_val`
3099         ac_new_val_w=`echo x $ac_new_val`
3100         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3101           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3102 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3103           ac_cache_corrupted=:
3104         else
3105           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3106 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3107           eval $ac_var=\$ac_old_val
3108         fi
3109         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3110 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3111         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3112 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3113       fi;;
3114   esac
3115   # Pass precious variables to config.status.
3116   if test "$ac_new_set" = set; then
3117     case $ac_new_val in
3118     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3119     *) ac_arg=$ac_var=$ac_new_val ;;
3120     esac
3121     case " $ac_configure_args " in
3122       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3123       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3124     esac
3125   fi
3126 done
3127 if $ac_cache_corrupted; then
3128   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3131 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3132   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3133 fi
3134 ## -------------------- ##
3135 ## Main body of script. ##
3136 ## -------------------- ##
3137
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143
3144
3145 BUILD_DIR=`pwd`
3146 cd ..
3147 TOP_DIR=`pwd`
3148 cd ${BUILD_DIR}
3149
3150
3151 ac_aux_dir=
3152 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3153   for ac_t in install-sh install.sh shtool; do
3154     if test -f "$ac_dir/$ac_t"; then
3155       ac_aux_dir=$ac_dir
3156       ac_install_sh="$ac_aux_dir/$ac_t -c"
3157       break 2
3158     fi
3159   done
3160 done
3161 if test -z "$ac_aux_dir"; then
3162   as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3163 fi
3164
3165 # These three variables are undocumented and unsupported,
3166 # and are intended to be withdrawn in a future Autoconf release.
3167 # They can cause serious problems if a builder's source tree is in a directory
3168 # whose full name contains unusual characters.
3169 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3170 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3171 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3172
3173
3174 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3175
3176
3177 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3178 WIN32MAINDIR=${BUILD_DIR}
3179 WIN32TOPDIR=${TOP_DIR}
3180
3181
3182
3183
3184
3185
3186
3187 for ac_prog in true
3188 do
3189   # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   case $TRUEPRG in
3197   [\\/]* | ?:[\\/]*)
3198   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3199   ;;
3200   *)
3201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204   IFS=$as_save_IFS
3205   test -z "$as_dir" && as_dir=.
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210     break 2
3211   fi
3212 done
3213   done
3214 IFS=$as_save_IFS
3215
3216   ;;
3217 esac
3218 fi
3219 TRUEPRG=$ac_cv_path_TRUEPRG
3220 if test -n "$TRUEPRG"; then
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3222 $as_echo "$TRUEPRG" >&6; }
3223 else
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229   test -n "$TRUEPRG" && break
3230 done
3231 test -n "$TRUEPRG" || TRUEPRG=":"
3232
3233 for ac_prog in false
3234 do
3235   # Extract the first word of "$ac_prog", so it can be a program name with args.
3236 set dummy $ac_prog; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3240   $as_echo_n "(cached) " >&6
3241 else
3242   case $FALSEPRG in
3243   [\\/]* | ?:[\\/]*)
3244   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3245   ;;
3246   *)
3247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262   ;;
3263 esac
3264 fi
3265 FALSEPRG=$ac_cv_path_FALSEPRG
3266 if test -n "$FALSEPRG"; then
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3268 $as_echo "$FALSEPRG" >&6; }
3269 else
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 fi
3273
3274
3275   test -n "$FALSEPRG" && break
3276 done
3277 test -n "$FALSEPRG" || FALSEPRG=":"
3278
3279
3280
3281 post_host=
3282 if test "x$BACULA" != x; then
3283    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3284 fi
3285 BACULA=${BACULA:-Bacula}
3286 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3287 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3288 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3289 echo "configuring for ${BACULA} $VERSION ($DATE)"
3290
3291
3292 ac_ext=c
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 if test -n "$ac_tool_prefix"; then
3298   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if test "${ac_cv_prog_CC+set}" = set; then :
3303   $as_echo_n "(cached) " >&6
3304 else
3305   if test -n "$CC"; then
3306   ac_cv_prog_CC="$CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311   IFS=$as_save_IFS
3312   test -z "$as_dir" && as_dir=.
3313     for ac_exec_ext in '' $ac_executable_extensions; do
3314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317     break 2
3318   fi
3319 done
3320   done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 CC=$ac_cv_prog_CC
3326 if test -n "$CC"; then
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3329 else
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335 fi
3336 if test -z "$ac_cv_prog_CC"; then
3337   ac_ct_CC=$CC
3338   # Extract the first word of "gcc", so it can be a program name with args.
3339 set dummy gcc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3343   $as_echo_n "(cached) " >&6
3344 else
3345   if test -n "$ac_ct_CC"; then
3346   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353     for ac_exec_ext in '' $ac_executable_extensions; do
3354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355     ac_cv_prog_ac_ct_CC="gcc"
3356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357     break 2
3358   fi
3359 done
3360   done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3366 if test -n "$ac_ct_CC"; then
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3368 $as_echo "$ac_ct_CC" >&6; }
3369 else
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373
3374   if test "x$ac_ct_CC" = x; then
3375     CC=""
3376   else
3377     case $cross_compiling:$ac_tool_warned in
3378 yes:)
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3381 ac_tool_warned=yes ;;
3382 esac
3383     CC=$ac_ct_CC
3384   fi
3385 else
3386   CC="$ac_cv_prog_CC"
3387 fi
3388
3389 if test -z "$CC"; then
3390           if test -n "$ac_tool_prefix"; then
3391     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}cc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if test "${ac_cv_prog_CC+set}" = set; then :
3396   $as_echo_n "(cached) " >&6
3397 else
3398   if test -n "$CC"; then
3399   ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404   IFS=$as_save_IFS
3405   test -z "$as_dir" && as_dir=.
3406     for ac_exec_ext in '' $ac_executable_extensions; do
3407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408     ac_cv_prog_CC="${ac_tool_prefix}cc"
3409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410     break 2
3411   fi
3412 done
3413   done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3422 else
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428   fi
3429 fi
3430 if test -z "$CC"; then
3431   # Extract the first word of "cc", so it can be a program name with args.
3432 set dummy cc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if test "${ac_cv_prog_CC+set}" = set; then :
3436   $as_echo_n "(cached) " >&6
3437 else
3438   if test -n "$CC"; then
3439   ac_cv_prog_CC="$CC" # Let the user override the test.
3440 else
3441   ac_prog_rejected=no
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445   IFS=$as_save_IFS
3446   test -z "$as_dir" && as_dir=.
3447     for ac_exec_ext in '' $ac_executable_extensions; do
3448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450        ac_prog_rejected=yes
3451        continue
3452      fi
3453     ac_cv_prog_CC="cc"
3454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455     break 2
3456   fi
3457 done
3458   done
3459 IFS=$as_save_IFS
3460
3461 if test $ac_prog_rejected = yes; then
3462   # We found a bogon in the path, so make sure we never use it.
3463   set dummy $ac_cv_prog_CC
3464   shift
3465   if test $# != 0; then
3466     # We chose a different compiler from the bogus one.
3467     # However, it has the same basename, so the bogon will be chosen
3468     # first if we set CC to just the basename; use the full file name.
3469     shift
3470     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3471   fi
3472 fi
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3479 else
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 fi
3483
3484
3485 fi
3486 if test -z "$CC"; then
3487   if test -n "$ac_tool_prefix"; then
3488   for ac_prog in cl.exe
3489   do
3490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_CC+set}" = set; then :
3495   $as_echo_n "(cached) " >&6
3496 else
3497   if test -n "$CC"; then
3498   ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503   IFS=$as_save_IFS
3504   test -z "$as_dir" && as_dir=.
3505     for ac_exec_ext in '' $ac_executable_extensions; do
3506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512   done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 CC=$ac_cv_prog_CC
3518 if test -n "$CC"; then
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3521 else
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3524 fi
3525
3526
3527     test -n "$CC" && break
3528   done
3529 fi
3530 if test -z "$CC"; then
3531   ac_ct_CC=$CC
3532   for ac_prog in cl.exe
3533 do
3534   # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   if test -n "$ac_ct_CC"; then
3542   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547   IFS=$as_save_IFS
3548   test -z "$as_dir" && as_dir=.
3549     for ac_exec_ext in '' $ac_executable_extensions; do
3550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551     ac_cv_prog_ac_ct_CC="$ac_prog"
3552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553     break 2
3554   fi
3555 done
3556   done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3565 else
3566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570
3571   test -n "$ac_ct_CC" && break
3572 done
3573
3574   if test "x$ac_ct_CC" = x; then
3575     CC=""
3576   else
3577     case $cross_compiling:$ac_tool_warned in
3578 yes:)
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3582 esac
3583     CC=$ac_ct_CC
3584   fi
3585 fi
3586
3587 fi
3588
3589
3590 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error "no acceptable C compiler found in \$PATH
3593 See \`config.log' for more details." "$LINENO" 5; }
3594
3595 # Provide some information about the compiler.
3596 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3597 set X $ac_compile
3598 ac_compiler=$2
3599 for ac_option in --version -v -V -qversion; do
3600   { { ac_try="$ac_compiler $ac_option >&5"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3608   ac_status=$?
3609   if test -s conftest.err; then
3610     sed '10a\
3611 ... rest of stderr output deleted ...
3612          10q' conftest.err >conftest.er1
3613     cat conftest.er1 >&5
3614   fi
3615   rm -f conftest.er1 conftest.err
3616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617   test $ac_status = 0; }
3618 done
3619
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622
3623 int
3624 main ()
3625 {
3626
3627   ;
3628   return 0;
3629 }
3630 _ACEOF
3631 ac_clean_files_save=$ac_clean_files
3632 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3633 # Try to create an executable without -o first, disregard a.out.
3634 # It will help us diagnose broken compilers, and finding out an intuition
3635 # of exeext.
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3637 $as_echo_n "checking whether the C compiler works... " >&6; }
3638 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3639
3640 # The possible output files:
3641 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3642
3643 ac_rmfiles=
3644 for ac_file in $ac_files
3645 do
3646   case $ac_file in
3647     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3648     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3649   esac
3650 done
3651 rm -f $ac_rmfiles
3652
3653 if { { ac_try="$ac_link_default"
3654 case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660   (eval "$ac_link_default") 2>&5
3661   ac_status=$?
3662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663   test $ac_status = 0; }; then :
3664   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3665 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3666 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3667 # so that the user can short-circuit this test for compilers unknown to
3668 # Autoconf.
3669 for ac_file in $ac_files ''
3670 do
3671   test -f "$ac_file" || continue
3672   case $ac_file in
3673     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3674         ;;
3675     [ab].out )
3676         # We found the default executable, but exeext='' is most
3677         # certainly right.
3678         break;;
3679     *.* )
3680         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3681         then :; else
3682            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3683         fi
3684         # We set ac_cv_exeext here because the later test for it is not
3685         # safe: cross compilers may not add the suffix if given an `-o'
3686         # argument, so we may need to know it at that point already.
3687         # Even if this section looks crufty: it has the advantage of
3688         # actually working.
3689         break;;
3690     * )
3691         break;;
3692   esac
3693 done
3694 test "$ac_cv_exeext" = no && ac_cv_exeext=
3695
3696 else
3697   ac_file=''
3698 fi
3699 if test -z "$ac_file"; then :
3700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 $as_echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 { as_fn_set_status 77
3708 as_fn_error "C compiler cannot create executables
3709 See \`config.log' for more details." "$LINENO" 5; }; }
3710 else
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3715 $as_echo_n "checking for C compiler default output file name... " >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 ac_exeext=$ac_cv_exeext
3719
3720 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3723 $as_echo_n "checking for suffix of executables... " >&6; }
3724 if { { ac_try="$ac_link"
3725 case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731   (eval "$ac_link") 2>&5
3732   ac_status=$?
3733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734   test $ac_status = 0; }; then :
3735   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3736 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe'), while it won't with
3738 # `rm'.
3739 for ac_file in conftest.exe conftest conftest.*; do
3740   test -f "$ac_file" || continue
3741   case $ac_file in
3742     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744           break;;
3745     * ) break;;
3746   esac
3747 done
3748 else
3749   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error "cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details." "$LINENO" 5; }
3753 fi
3754 rm -f conftest conftest$ac_cv_exeext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3756 $as_echo "$ac_cv_exeext" >&6; }
3757
3758 rm -f conftest.$ac_ext
3759 EXEEXT=$ac_cv_exeext
3760 ac_exeext=$EXEEXT
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763 #include <stdio.h>
3764 int
3765 main ()
3766 {
3767 FILE *f = fopen ("conftest.out", "w");
3768  return ferror (f) || fclose (f) != 0;
3769
3770   ;
3771   return 0;
3772 }
3773 _ACEOF
3774 ac_clean_files="$ac_clean_files conftest.out"
3775 # Check that the compiler produces executables we can run.  If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3778 $as_echo_n "checking whether we are cross compiling... " >&6; }
3779 if test "$cross_compiling" != yes; then
3780   { { ac_try="$ac_link"
3781 case "(($ac_try" in
3782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783   *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787   (eval "$ac_link") 2>&5
3788   ac_status=$?
3789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790   test $ac_status = 0; }
3791   if { ac_try='./conftest$ac_cv_exeext'
3792   { { case "(($ac_try" in
3793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794   *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798   (eval "$ac_try") 2>&5
3799   ac_status=$?
3800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801   test $ac_status = 0; }; }; then
3802     cross_compiling=no
3803   else
3804     if test "$cross_compiling" = maybe; then
3805         cross_compiling=yes
3806     else
3807         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error "cannot run C compiled programs.
3810 If you meant to cross compile, use \`--host'.
3811 See \`config.log' for more details." "$LINENO" 5; }
3812     fi
3813   fi
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3816 $as_echo "$cross_compiling" >&6; }
3817
3818 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3819 ac_clean_files=$ac_clean_files_save
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3821 $as_echo_n "checking for suffix of object files... " >&6; }
3822 if test "${ac_cv_objext+set}" = set; then :
3823   $as_echo_n "(cached) " >&6
3824 else
3825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h.  */
3827
3828 int
3829 main ()
3830 {
3831
3832   ;
3833   return 0;
3834 }
3835 _ACEOF
3836 rm -f conftest.o conftest.obj
3837 if { { ac_try="$ac_compile"
3838 case "(($ac_try" in
3839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840   *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844   (eval "$ac_compile") 2>&5
3845   ac_status=$?
3846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847   test $ac_status = 0; }; then :
3848   for ac_file in conftest.o conftest.obj conftest.*; do
3849   test -f "$ac_file" || continue;
3850   case $ac_file in
3851     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3852     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3853        break;;
3854   esac
3855 done
3856 else
3857   $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3859
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error "cannot compute suffix of object files: cannot compile
3863 See \`config.log' for more details." "$LINENO" 5; }
3864 fi
3865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3868 $as_echo "$ac_cv_objext" >&6; }
3869 OBJEXT=$ac_cv_objext
3870 ac_objext=$OBJEXT
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3872 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3873 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882 #ifndef __GNUC__
3883        choke me
3884 #endif
3885
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891   ac_compiler_gnu=yes
3892 else
3893   ac_compiler_gnu=no
3894 fi
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3897
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3900 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3901 if test $ac_compiler_gnu = yes; then
3902   GCC=yes
3903 else
3904   GCC=
3905 fi
3906 ac_test_CFLAGS=${CFLAGS+set}
3907 ac_save_CFLAGS=$CFLAGS
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3909 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3910 if test "${ac_cv_prog_cc_g+set}" = set; then :
3911   $as_echo_n "(cached) " >&6
3912 else
3913   ac_save_c_werror_flag=$ac_c_werror_flag
3914    ac_c_werror_flag=yes
3915    ac_cv_prog_cc_g=no
3916    CFLAGS="-g"
3917    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h.  */
3919
3920 int
3921 main ()
3922 {
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929   ac_cv_prog_cc_g=yes
3930 else
3931   CFLAGS=""
3932       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h.  */
3934
3935 int
3936 main ()
3937 {
3938
3939   ;
3940   return 0;
3941 }
3942 _ACEOF
3943 if ac_fn_c_try_compile "$LINENO"; then :
3944
3945 else
3946   ac_c_werror_flag=$ac_save_c_werror_flag
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 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967    ac_c_werror_flag=$ac_save_c_werror_flag
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3970 $as_echo "$ac_cv_prog_cc_g" >&6; }
3971 if test "$ac_test_CFLAGS" = set; then
3972   CFLAGS=$ac_save_CFLAGS
3973 elif test $ac_cv_prog_cc_g = yes; then
3974   if test "$GCC" = yes; then
3975     CFLAGS="-g -O2"
3976   else
3977     CFLAGS="-g"
3978   fi
3979 else
3980   if test "$GCC" = yes; then
3981     CFLAGS="-O2"
3982   else
3983     CFLAGS=
3984   fi
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3988 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   ac_cv_prog_cc_c89=no
3992 ac_save_CC=$CC
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h.  */
3995 #include <stdarg.h>
3996 #include <stdio.h>
3997 #include <sys/types.h>
3998 #include <sys/stat.h>
3999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4000 struct buf { int x; };
4001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4002 static char *e (p, i)
4003      char **p;
4004      int i;
4005 {
4006   return p[i];
4007 }
4008 static char *f (char * (*g) (char **, int), char **p, ...)
4009 {
4010   char *s;
4011   va_list v;
4012   va_start (v,p);
4013   s = g (p, va_arg (v,int));
4014   va_end (v);
4015   return s;
4016 }
4017
4018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4019    function prototypes and stuff, but not '\xHH' hex character constants.
4020    These don't provoke an error unfortunately, instead are silently treated
4021    as 'x'.  The following induces an error, until -std is added to get
4022    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4023    array size at least.  It's necessary to write '\x00'==0 to get something
4024    that's true only with -std.  */
4025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4026
4027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4028    inside strings and character constants.  */
4029 #define FOO(x) 'x'
4030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4031
4032 int test (int i, double x);
4033 struct s1 {int (*f) (int a);};
4034 struct s2 {int (*f) (double a);};
4035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4036 int argc;
4037 char **argv;
4038 int
4039 main ()
4040 {
4041 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4047         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4048 do
4049   CC="$ac_save_CC $ac_arg"
4050   if ac_fn_c_try_compile "$LINENO"; then :
4051   ac_cv_prog_cc_c89=$ac_arg
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext
4054   test "x$ac_cv_prog_cc_c89" != "xno" && break
4055 done
4056 rm -f conftest.$ac_ext
4057 CC=$ac_save_CC
4058
4059 fi
4060 # AC_CACHE_VAL
4061 case "x$ac_cv_prog_cc_c89" in
4062   x)
4063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4064 $as_echo "none needed" >&6; } ;;
4065   xno)
4066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4067 $as_echo "unsupported" >&6; } ;;
4068   *)
4069     CC="$CC $ac_cv_prog_cc_c89"
4070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4072 esac
4073 if test "x$ac_cv_prog_cc_c89" != xno; then :
4074
4075 fi
4076
4077 ac_ext=c
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082
4083 ac_ext=cpp
4084 ac_cpp='$CXXCPP $CPPFLAGS'
4085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4088 if test -z "$CXX"; then
4089   if test -n "$CCC"; then
4090     CXX=$CCC
4091   else
4092     if test -n "$ac_tool_prefix"; then
4093   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4094   do
4095     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if test "${ac_cv_prog_CXX+set}" = set; then :
4100   $as_echo_n "(cached) " >&6
4101 else
4102   if test -n "$CXX"; then
4103   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108   IFS=$as_save_IFS
4109   test -z "$as_dir" && as_dir=.
4110     for ac_exec_ext in '' $ac_executable_extensions; do
4111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114     break 2
4115   fi
4116 done
4117   done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 CXX=$ac_cv_prog_CXX
4123 if test -n "$CXX"; then
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4125 $as_echo "$CXX" >&6; }
4126 else
4127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4130
4131
4132     test -n "$CXX" && break
4133   done
4134 fi
4135 if test -z "$CXX"; then
4136   ac_ct_CXX=$CXX
4137   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4138 do
4139   # Extract the first word of "$ac_prog", so it can be a program name with args.
4140 set dummy $ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   if test -n "$ac_ct_CXX"; then
4147   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154     for ac_exec_ext in '' $ac_executable_extensions; do
4155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156     ac_cv_prog_ac_ct_CXX="$ac_prog"
4157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161   done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4167 if test -n "$ac_ct_CXX"; then
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4169 $as_echo "$ac_ct_CXX" >&6; }
4170 else
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175
4176   test -n "$ac_ct_CXX" && break
4177 done
4178
4179   if test "x$ac_ct_CXX" = x; then
4180     CXX="g++"
4181   else
4182     case $cross_compiling:$ac_tool_warned in
4183 yes:)
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4187 esac
4188     CXX=$ac_ct_CXX
4189   fi
4190 fi
4191
4192   fi
4193 fi
4194 # Provide some information about the compiler.
4195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4196 set X $ac_compile
4197 ac_compiler=$2
4198 for ac_option in --version -v -V -qversion; do
4199   { { ac_try="$ac_compiler $ac_option >&5"
4200 case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4207   ac_status=$?
4208   if test -s conftest.err; then
4209     sed '10a\
4210 ... rest of stderr output deleted ...
4211          10q' conftest.err >conftest.er1
4212     cat conftest.er1 >&5
4213   fi
4214   rm -f conftest.er1 conftest.err
4215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216   test $ac_status = 0; }
4217 done
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4220 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4221 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4222   $as_echo_n "(cached) " >&6
4223 else
4224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h.  */
4226
4227 int
4228 main ()
4229 {
4230 #ifndef __GNUC__
4231        choke me
4232 #endif
4233
4234   ;
4235   return 0;
4236 }
4237 _ACEOF
4238 if ac_fn_cxx_try_compile "$LINENO"; then :
4239   ac_compiler_gnu=yes
4240 else
4241   ac_compiler_gnu=no
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4245
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4248 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4249 if test $ac_compiler_gnu = yes; then
4250   GXX=yes
4251 else
4252   GXX=
4253 fi
4254 ac_test_CXXFLAGS=${CXXFLAGS+set}
4255 ac_save_CXXFLAGS=$CXXFLAGS
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4257 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4258 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4259   $as_echo_n "(cached) " >&6
4260 else
4261   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4262    ac_cxx_werror_flag=yes
4263    ac_cv_prog_cxx_g=no
4264    CXXFLAGS="-g"
4265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h.  */
4267
4268 int
4269 main ()
4270 {
4271
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 if ac_fn_cxx_try_compile "$LINENO"; then :
4277   ac_cv_prog_cxx_g=yes
4278 else
4279   CXXFLAGS=""
4280       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h.  */
4282
4283 int
4284 main ()
4285 {
4286
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 if ac_fn_cxx_try_compile "$LINENO"; then :
4292
4293 else
4294   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
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 fi
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4318 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4319 if test "$ac_test_CXXFLAGS" = set; then
4320   CXXFLAGS=$ac_save_CXXFLAGS
4321 elif test $ac_cv_prog_cxx_g = yes; then
4322   if test "$GXX" = yes; then
4323     CXXFLAGS="-g -O2"
4324   else
4325     CXXFLAGS="-g"
4326   fi
4327 else
4328   if test "$GXX" = yes; then
4329     CXXFLAGS="-O2"
4330   else
4331     CXXFLAGS=
4332   fi
4333 fi
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340 if test "x$CC" != xcc; then
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4342 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4343 else
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4345 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4346 fi
4347 set dummy $CC; ac_cc=`$as_echo "$2" |
4348                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4349 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h.  */
4354
4355 int
4356 main ()
4357 {
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 # Make sure it works both with $CC and with simple cc.
4364 # We do the test twice because some compilers refuse to overwrite an
4365 # existing .o file with -o, though they will create one.
4366 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4367 rm -f conftest2.*
4368 if { { case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4373 $as_echo "$ac_try_echo"; } >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377   test $ac_status = 0; } &&
4378    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384   (eval "$ac_try") 2>&5
4385   ac_status=$?
4386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387   test $ac_status = 0; };
4388 then
4389   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4390   if test "x$CC" != xcc; then
4391     # Test first that cc exists at all.
4392     if { ac_try='cc -c conftest.$ac_ext >&5'
4393   { { case "(($ac_try" in
4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395   *) ac_try_echo=$ac_try;;
4396 esac
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399   (eval "$ac_try") 2>&5
4400   ac_status=$?
4401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402   test $ac_status = 0; }; }; then
4403       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4404       rm -f conftest2.*
4405       if { { case "(($ac_try" in
4406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407   *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 $as_echo "$ac_try_echo"; } >&5
4411   (eval "$ac_try") 2>&5
4412   ac_status=$?
4413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414   test $ac_status = 0; } &&
4415          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421   (eval "$ac_try") 2>&5
4422   ac_status=$?
4423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424   test $ac_status = 0; };
4425       then
4426         # cc works too.
4427         :
4428       else
4429         # cc exists but doesn't like -o.
4430         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4431       fi
4432     fi
4433   fi
4434 else
4435   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4436 fi
4437 rm -f core conftest*
4438
4439 fi
4440 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442 $as_echo "yes" >&6; }
4443 else
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446
4447 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4448
4449 fi
4450
4451 ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4458 # On Suns, sometimes $CPP names a directory.
4459 if test -n "$CPP" && test -d "$CPP"; then
4460   CPP=
4461 fi
4462 if test -z "$CPP"; then
4463   if test "${ac_cv_prog_CPP+set}" = set; then :
4464   $as_echo_n "(cached) " >&6
4465 else
4466       # Double quotes because CPP needs to be expanded
4467     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4468     do
4469       ac_preproc_ok=false
4470 for ac_c_preproc_warn_flag in '' yes
4471 do
4472   # Use a header file that comes with gcc, so configuring glibc
4473   # with a fresh cross-compiler works.
4474   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475   # <limits.h> exists even on freestanding compilers.
4476   # On the NeXT, cc -E runs the code through the compiler's parser,
4477   # not just through cpp. "Syntax error" is here to catch this case.
4478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h.  */
4480 #ifdef __STDC__
4481 # include <limits.h>
4482 #else
4483 # include <assert.h>
4484 #endif
4485                      Syntax error
4486 _ACEOF
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4488
4489 else
4490   # Broken: fails on valid input.
4491 continue
4492 fi
4493 rm -f conftest.err conftest.$ac_ext
4494
4495   # OK, works on sane cases.  Now check whether nonexistent headers
4496   # can be detected and how.
4497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h.  */
4499 #include <ac_nonexistent.h>
4500 _ACEOF
4501 if ac_fn_c_try_cpp "$LINENO"; then :
4502   # Broken: success on invalid input.
4503 continue
4504 else
4505   # Passes both tests.
4506 ac_preproc_ok=:
4507 break
4508 fi
4509 rm -f conftest.err conftest.$ac_ext
4510
4511 done
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then :
4515   break
4516 fi
4517
4518     done
4519     ac_cv_prog_CPP=$CPP
4520
4521 fi
4522   CPP=$ac_cv_prog_CPP
4523 else
4524   ac_cv_prog_CPP=$CPP
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4527 $as_echo "$CPP" >&6; }
4528 ac_preproc_ok=false
4529 for ac_c_preproc_warn_flag in '' yes
4530 do
4531   # Use a header file that comes with gcc, so configuring glibc
4532   # with a fresh cross-compiler works.
4533   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4534   # <limits.h> exists even on freestanding compilers.
4535   # On the NeXT, cc -E runs the code through the compiler's parser,
4536   # not just through cpp. "Syntax error" is here to catch this case.
4537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h.  */
4539 #ifdef __STDC__
4540 # include <limits.h>
4541 #else
4542 # include <assert.h>
4543 #endif
4544                      Syntax error
4545 _ACEOF
4546 if ac_fn_c_try_cpp "$LINENO"; then :
4547
4548 else
4549   # Broken: fails on valid input.
4550 continue
4551 fi
4552 rm -f conftest.err conftest.$ac_ext
4553
4554   # OK, works on sane cases.  Now check whether nonexistent headers
4555   # can be detected and how.
4556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558 #include <ac_nonexistent.h>
4559 _ACEOF
4560 if ac_fn_c_try_cpp "$LINENO"; then :
4561   # Broken: success on invalid input.
4562 continue
4563 else
4564   # Passes both tests.
4565 ac_preproc_ok=:
4566 break
4567 fi
4568 rm -f conftest.err conftest.$ac_ext
4569
4570 done
4571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4572 rm -f conftest.err conftest.$ac_ext
4573 if $ac_preproc_ok; then :
4574
4575 else
4576   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4579 See \`config.log' for more details." "$LINENO" 5; }
4580 fi
4581
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587
4588
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4590 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4591 if test "${ac_cv_path_GREP+set}" = set; then :
4592   $as_echo_n "(cached) " >&6
4593 else
4594   if test -z "$GREP"; then
4595   ac_path_GREP_found=false
4596   # Loop through the user's path and test for each of PROGNAME-LIST
4597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599 do
4600   IFS=$as_save_IFS
4601   test -z "$as_dir" && as_dir=.
4602     for ac_prog in grep ggrep; do
4603     for ac_exec_ext in '' $ac_executable_extensions; do
4604       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4605       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4606 # Check for GNU ac_path_GREP and select it if it is found.
4607   # Check for GNU $ac_path_GREP
4608 case `"$ac_path_GREP" --version 2>&1` in
4609 *GNU*)
4610   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4611 *)
4612   ac_count=0
4613   $as_echo_n 0123456789 >"conftest.in"
4614   while :
4615   do
4616     cat "conftest.in" "conftest.in" >"conftest.tmp"
4617     mv "conftest.tmp" "conftest.in"
4618     cp "conftest.in" "conftest.nl"
4619     $as_echo 'GREP' >> "conftest.nl"
4620     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622     as_fn_arith $ac_count + 1 && ac_count=$as_val
4623     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4624       # Best one so far, save it but keep looking for a better one
4625       ac_cv_path_GREP="$ac_path_GREP"
4626       ac_path_GREP_max=$ac_count
4627     fi
4628     # 10*(2^10) chars as input seems more than enough
4629     test $ac_count -gt 10 && break
4630   done
4631   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632 esac
4633
4634       $ac_path_GREP_found && break 3
4635     done
4636   done
4637   done
4638 IFS=$as_save_IFS
4639   if test -z "$ac_cv_path_GREP"; then
4640     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4641   fi
4642 else
4643   ac_cv_path_GREP=$GREP
4644 fi
4645
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4648 $as_echo "$ac_cv_path_GREP" >&6; }
4649  GREP="$ac_cv_path_GREP"
4650
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4653 $as_echo_n "checking for egrep... " >&6; }
4654 if test "${ac_cv_path_EGREP+set}" = set; then :
4655   $as_echo_n "(cached) " >&6
4656 else
4657   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4658    then ac_cv_path_EGREP="$GREP -E"
4659    else
4660      if test -z "$EGREP"; then
4661   ac_path_EGREP_found=false
4662   # Loop through the user's path and test for each of PROGNAME-LIST
4663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668     for ac_prog in egrep; do
4669     for ac_exec_ext in '' $ac_executable_extensions; do
4670       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4671       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4672 # Check for GNU ac_path_EGREP and select it if it is found.
4673   # Check for GNU $ac_path_EGREP
4674 case `"$ac_path_EGREP" --version 2>&1` in
4675 *GNU*)
4676   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4677 *)
4678   ac_count=0
4679   $as_echo_n 0123456789 >"conftest.in"
4680   while :
4681   do
4682     cat "conftest.in" "conftest.in" >"conftest.tmp"
4683     mv "conftest.tmp" "conftest.in"
4684     cp "conftest.in" "conftest.nl"
4685     $as_echo 'EGREP' >> "conftest.nl"
4686     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688     as_fn_arith $ac_count + 1 && ac_count=$as_val
4689     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4690       # Best one so far, save it but keep looking for a better one
4691       ac_cv_path_EGREP="$ac_path_EGREP"
4692       ac_path_EGREP_max=$ac_count
4693     fi
4694     # 10*(2^10) chars as input seems more than enough
4695     test $ac_count -gt 10 && break
4696   done
4697   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 esac
4699
4700       $ac_path_EGREP_found && break 3
4701     done
4702   done
4703   done
4704 IFS=$as_save_IFS
4705   if test -z "$ac_cv_path_EGREP"; then
4706     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707   fi
4708 else
4709   ac_cv_path_EGREP=$EGREP
4710 fi
4711
4712    fi
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4715 $as_echo "$ac_cv_path_EGREP" >&6; }
4716  EGREP="$ac_cv_path_EGREP"
4717
4718
4719 if test $ac_cv_c_compiler_gnu = yes; then
4720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4721 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4722 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4723   $as_echo_n "(cached) " >&6
4724 else
4725     ac_pattern="Autoconf.*'x'"
4726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h.  */
4728 #include <sgtty.h>
4729 Autoconf TIOCGETP
4730 _ACEOF
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4733   ac_cv_prog_gcc_traditional=yes
4734 else
4735   ac_cv_prog_gcc_traditional=no
4736 fi
4737 rm -f conftest*
4738
4739
4740   if test $ac_cv_prog_gcc_traditional = no; then
4741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h.  */
4743 #include <termio.h>
4744 Autoconf TCGETA
4745 _ACEOF
4746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4748   ac_cv_prog_gcc_traditional=yes
4749 fi
4750 rm -f conftest*
4751
4752   fi
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4755 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4756   if test $ac_cv_prog_gcc_traditional = yes; then
4757     CC="$CC -traditional"
4758   fi
4759 fi
4760
4761 BASECC=`basename $CC`
4762 have_gcc=no
4763 if test "x$BASECC" = xgcc; then
4764    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4765
4766    have_gcc=yes
4767 fi
4768 # Extract the first word of "$CXX", so it can be a program name with args.
4769 set dummy $CXX; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_path_CXX+set}" = set; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   case $CXX in
4776   [\\/]* | ?:[\\/]*)
4777   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4778   ;;
4779   *)
4780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783   IFS=$as_save_IFS
4784   test -z "$as_dir" && as_dir=.
4785     for ac_exec_ext in '' $ac_executable_extensions; do
4786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789     break 2
4790   fi
4791 done
4792   done
4793 IFS=$as_save_IFS
4794
4795   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4796   ;;
4797 esac
4798 fi
4799 CXX=$ac_cv_path_CXX
4800 if test -n "$CXX"; then
4801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4802 $as_echo "$CXX" >&6; }
4803 else
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 fi
4807
4808
4809 if test ! -e $CXX; then
4810    as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4811 fi
4812
4813 # Find a good install program.  We prefer a C program (faster),
4814 # so one script is as good as another.  But avoid the broken or
4815 # incompatible versions:
4816 # SysV /etc/install, /usr/sbin/install
4817 # SunOS /usr/etc/install
4818 # IRIX /sbin/install
4819 # AIX /bin/install
4820 # AmigaOS /C/install, which installs bootblocks on floppy discs
4821 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4824 # OS/2's system install, which has a completely different semantic
4825 # ./install, which can be erroneously created by make from ./install.sh.
4826 # Reject install programs that cannot install multiple files.
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4828 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4829 if test -z "$INSTALL"; then
4830 if test "${ac_cv_path_install+set}" = set; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838     # Account for people who put trailing slashes in PATH elements.
4839 case $as_dir/ in #((
4840   ./ | .// | /[cC]/* | \
4841   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4842   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4843   /usr/ucb/* ) ;;
4844   *)
4845     # OSF1 and SCO ODT 3.0 have their own names for install.
4846     # Don't use installbsd from OSF since it installs stuff as root
4847     # by default.
4848     for ac_prog in ginstall scoinst install; do
4849       for ac_exec_ext in '' $ac_executable_extensions; do
4850         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4851           if test $ac_prog = install &&
4852             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4853             # AIX install.  It has an incompatible calling convention.
4854             :
4855           elif test $ac_prog = install &&
4856             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4857             # program-specific install script used by HP pwplus--don't use.
4858             :
4859           else
4860             rm -rf conftest.one conftest.two conftest.dir
4861             echo one > conftest.one
4862             echo two > conftest.two
4863             mkdir conftest.dir
4864             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4865               test -s conftest.one && test -s conftest.two &&
4866               test -s conftest.dir/conftest.one &&
4867               test -s conftest.dir/conftest.two
4868             then
4869               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4870               break 3
4871             fi
4872           fi
4873         fi
4874       done
4875     done
4876     ;;
4877 esac
4878
4879   done
4880 IFS=$as_save_IFS
4881
4882 rm -rf conftest.one conftest.two conftest.dir
4883
4884 fi
4885   if test "${ac_cv_path_install+set}" = set; then
4886     INSTALL=$ac_cv_path_install
4887   else
4888     # As a last resort, use the slow shell script.  Don't cache a
4889     # value for INSTALL within a source directory, because that will
4890     # break other packages using the cache if that directory is
4891     # removed, or if the value is a relative name.
4892     INSTALL=$ac_install_sh
4893   fi
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4896 $as_echo "$INSTALL" >&6; }
4897
4898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4899 # It thinks the first close brace ends the variable substitution.
4900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4901
4902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4903
4904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4905
4906 # Extract the first word of "mv", so it can be a program name with args.
4907 set dummy mv; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_path_MV+set}" = set; then :
4911   $as_echo_n "(cached) " >&6
4912 else
4913   case $MV in
4914   [\\/]* | ?:[\\/]*)
4915   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4916   ;;
4917   *)
4918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921   IFS=$as_save_IFS
4922   test -z "$as_dir" && as_dir=.
4923     for ac_exec_ext in '' $ac_executable_extensions; do
4924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927     break 2
4928   fi
4929 done
4930   done
4931 IFS=$as_save_IFS
4932
4933   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4934   ;;
4935 esac
4936 fi
4937 MV=$ac_cv_path_MV
4938 if test -n "$MV"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4940 $as_echo "$MV" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947 # Extract the first word of "rm", so it can be a program name with args.
4948 set dummy rm; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if test "${ac_cv_path_REMOVE+set}" = set; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   case $REMOVE in
4955   [\\/]* | ?:[\\/]*)
4956   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4957   ;;
4958   *)
4959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962   IFS=$as_save_IFS
4963   test -z "$as_dir" && as_dir=.
4964     for ac_exec_ext in '' $ac_executable_extensions; do
4965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968     break 2
4969   fi
4970 done
4971   done
4972 IFS=$as_save_IFS
4973
4974   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4975   ;;
4976 esac
4977 fi
4978 REMOVE=$ac_cv_path_REMOVE
4979 if test -n "$REMOVE"; then
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4981 $as_echo "$REMOVE" >&6; }
4982 else
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987
4988 # Extract the first word of "cp", so it can be a program name with args.
4989 set dummy cp; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_path_CP+set}" = set; then :
4993   $as_echo_n "(cached) " >&6
4994 else
4995   case $CP in
4996   [\\/]* | ?:[\\/]*)
4997   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4998   ;;
4999   *)
5000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005     for ac_exec_ext in '' $ac_executable_extensions; do
5006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012   done
5013 IFS=$as_save_IFS
5014
5015   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5016   ;;
5017 esac
5018 fi
5019 CP=$ac_cv_path_CP
5020 if test -n "$CP"; then
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5022 $as_echo "$CP" >&6; }
5023 else
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 fi
5027
5028
5029 # Extract the first word of "sed", so it can be a program name with args.
5030 set dummy sed; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_path_SED+set}" = set; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   case $SED in
5037   [\\/]* | ?:[\\/]*)
5038   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5039   ;;
5040   *)
5041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046     for ac_exec_ext in '' $ac_executable_extensions; do
5047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053   done
5054 IFS=$as_save_IFS
5055
5056   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5057   ;;
5058 esac
5059 fi
5060 SED=$ac_cv_path_SED
5061 if test -n "$SED"; then
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5063 $as_echo "$SED" >&6; }
5064 else
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069
5070 # Extract the first word of "echo", so it can be a program name with args.
5071 set dummy echo; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if test "${ac_cv_path_ECHO+set}" = set; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   case $ECHO in
5078   [\\/]* | ?:[\\/]*)
5079   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5080   ;;
5081   *)
5082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096
5097   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5098   ;;
5099 esac
5100 fi
5101 ECHO=$ac_cv_path_ECHO
5102 if test -n "$ECHO"; then
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5104 $as_echo "$ECHO" >&6; }
5105 else
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5108 fi
5109
5110
5111 # Extract the first word of "cmp", so it can be a program name with args.
5112 set dummy cmp; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_path_CMP+set}" = set; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   case $CMP in
5119   [\\/]* | ?:[\\/]*)
5120   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5121   ;;
5122   *)
5123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128     for ac_exec_ext in '' $ac_executable_extensions; do
5129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132     break 2
5133   fi
5134 done
5135   done
5136 IFS=$as_save_IFS
5137
5138   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5139   ;;
5140 esac
5141 fi
5142 CMP=$ac_cv_path_CMP
5143 if test -n "$CMP"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5145 $as_echo "$CMP" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152 # Extract the first word of "tbl", so it can be a program name with args.
5153 set dummy tbl; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if test "${ac_cv_path_TBL+set}" = set; then :
5157   $as_echo_n "(cached) " >&6
5158 else
5159   case $TBL in
5160   [\\/]* | ?:[\\/]*)
5161   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5162   ;;
5163   *)
5164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169     for ac_exec_ext in '' $ac_executable_extensions; do
5170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173     break 2
5174   fi
5175 done
5176   done
5177 IFS=$as_save_IFS
5178
5179   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5180   ;;
5181 esac
5182 fi
5183 TBL=$ac_cv_path_TBL
5184 if test -n "$TBL"; then
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5186 $as_echo "$TBL" >&6; }
5187 else
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192
5193 # Extract the first word of "ar", so it can be a program name with args.
5194 set dummy ar; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if test "${ac_cv_path_AR+set}" = set; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   case $AR in
5201   [\\/]* | ?:[\\/]*)
5202   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5203   ;;
5204   *)
5205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208   IFS=$as_save_IFS
5209   test -z "$as_dir" && as_dir=.
5210     for ac_exec_ext in '' $ac_executable_extensions; do
5211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214     break 2
5215   fi
5216 done
5217   done
5218 IFS=$as_save_IFS
5219
5220   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5221   ;;
5222 esac
5223 fi
5224 AR=$ac_cv_path_AR
5225 if test -n "$AR"; then
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5227 $as_echo "$AR" >&6; }
5228 else
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5231 fi
5232
5233
5234 # Extract the first word of "openssl", so it can be a program name with args.
5235 set dummy openssl; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   case $OPENSSL in
5242   [\\/]* | ?:[\\/]*)
5243   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5244   ;;
5245   *)
5246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251     for ac_exec_ext in '' $ac_executable_extensions; do
5252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258   done
5259 IFS=$as_save_IFS
5260
5261   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5262   ;;
5263 esac
5264 fi
5265 OPENSSL=$ac_cv_path_OPENSSL
5266 if test -n "$OPENSSL"; then
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5268 $as_echo "$OPENSSL" >&6; }
5269 else
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274
5275 # Extract the first word of "mtx", so it can be a program name with args.
5276 set dummy mtx; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if test "${ac_cv_path_MTX+set}" = set; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   case $MTX in
5283   [\\/]* | ?:[\\/]*)
5284   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5285   ;;
5286   *)
5287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292     for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299   done
5300 IFS=$as_save_IFS
5301
5302   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5303   ;;
5304 esac
5305 fi
5306 MTX=$ac_cv_path_MTX
5307 if test -n "$MTX"; then
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5309 $as_echo "$MTX" >&6; }
5310 else
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314
5315
5316 # Extract the first word of "dd", so it can be a program name with args.
5317 set dummy dd; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if test "${ac_cv_path_DD+set}" = set; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   case $DD in
5324   [\\/]* | ?:[\\/]*)
5325   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5326   ;;
5327   *)
5328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331   IFS=$as_save_IFS
5332   test -z "$as_dir" && as_dir=.
5333     for ac_exec_ext in '' $ac_executable_extensions; do
5334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337     break 2
5338   fi
5339 done
5340   done
5341 IFS=$as_save_IFS
5342
5343   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5344   ;;
5345 esac
5346 fi
5347 DD=$ac_cv_path_DD
5348 if test -n "$DD"; then
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5350 $as_echo "$DD" >&6; }
5351 else
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356
5357 # Extract the first word of "mkisofs", so it can be a program name with args.
5358 set dummy mkisofs; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364   case $MKISOFS in
5365   [\\/]* | ?:[\\/]*)
5366   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5367   ;;
5368   *)
5369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372   IFS=$as_save_IFS
5373   test -z "$as_dir" && as_dir=.
5374     for ac_exec_ext in '' $ac_executable_extensions; do
5375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5376     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378     break 2
5379   fi
5380 done
5381   done
5382 IFS=$as_save_IFS
5383
5384   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5385   ;;
5386 esac
5387 fi
5388 MKISOFS=$ac_cv_path_MKISOFS
5389 if test -n "$MKISOFS"; then
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5391 $as_echo "$MKISOFS" >&6; }
5392 else
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 fi
5396
5397
5398 # Extract the first word of "python", so it can be a program name with args.
5399 set dummy python; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if test "${ac_cv_path_PYTHON+set}" = set; then :
5403   $as_echo_n "(cached) " >&6
5404 else
5405   case $PYTHON in
5406   [\\/]* | ?:[\\/]*)
5407   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5408   ;;
5409   *)
5410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413   IFS=$as_save_IFS
5414   test -z "$as_dir" && as_dir=.
5415     for ac_exec_ext in '' $ac_executable_extensions; do
5416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419     break 2
5420   fi
5421 done
5422   done
5423 IFS=$as_save_IFS
5424
5425   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5426   ;;
5427 esac
5428 fi
5429 PYTHON=$ac_cv_path_PYTHON
5430 if test -n "$PYTHON"; then
5431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5432 $as_echo "$PYTHON" >&6; }
5433 else
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438
5439 # Extract the first word of "growisofs", so it can be a program name with args.
5440 set dummy growisofs; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   case $GROWISOFS in
5447   [\\/]* | ?:[\\/]*)
5448   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5449   ;;
5450   *)
5451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456     for ac_exec_ext in '' $ac_executable_extensions; do
5457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463   done
5464 IFS=$as_save_IFS
5465
5466   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5467   ;;
5468 esac
5469 fi
5470 GROWISOFS=$ac_cv_path_GROWISOFS
5471 if test -n "$GROWISOFS"; then
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5473 $as_echo "$GROWISOFS" >&6; }
5474 else
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477 fi
5478
5479
5480 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5481 set dummy dvd+rw-mediainfo; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   case $DVDRWMEDIAINFO in
5488   [\\/]* | ?:[\\/]*)
5489   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5490   ;;
5491   *)
5492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497     for ac_exec_ext in '' $ac_executable_extensions; do
5498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504   done
5505 IFS=$as_save_IFS
5506
5507   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5508   ;;
5509 esac
5510 fi
5511 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5512 if test -n "$DVDRWMEDIAINFO"; then
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5514 $as_echo "$DVDRWMEDIAINFO" >&6; }
5515 else
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520
5521 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5522 set dummy dvd+rw-format; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   case $DVDRWFORMAT in
5529   [\\/]* | ?:[\\/]*)
5530   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5531   ;;
5532   *)
5533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536   IFS=$as_save_IFS
5537   test -z "$as_dir" && as_dir=.
5538     for ac_exec_ext in '' $ac_executable_extensions; do
5539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542     break 2
5543   fi
5544 done
5545   done
5546 IFS=$as_save_IFS
5547
5548   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5549   ;;
5550 esac
5551 fi
5552 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5553 if test -n "$DVDRWFORMAT"; then
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5555 $as_echo "$DVDRWFORMAT" >&6; }
5556 else
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561
5562 # Extract the first word of "pkg-config", so it can be a program name with args.
5563 set dummy pkg-config; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5567   $as_echo_n "(cached) " >&6
5568 else
5569   case $PKGCONFIG in
5570   [\\/]* | ?:[\\/]*)
5571   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5572   ;;
5573   *)
5574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577   IFS=$as_save_IFS
5578   test -z "$as_dir" && as_dir=.
5579     for ac_exec_ext in '' $ac_executable_extensions; do
5580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583     break 2
5584   fi
5585 done
5586   done
5587 IFS=$as_save_IFS
5588
5589   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5590   ;;
5591 esac
5592 fi
5593 PKGCONFIG=$ac_cv_path_PKGCONFIG
5594 if test -n "$PKGCONFIG"; then
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5596 $as_echo "$PKGCONFIG" >&6; }
5597 else
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600 fi
5601
5602
5603 # Extract the first word of "qmake", so it can be a program name with args.
5604 set dummy qmake; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_path_QMAKE+set}" = set; then :
5608   $as_echo_n "(cached) " >&6
5609 else
5610   case $QMAKE in
5611   [\\/]* | ?:[\\/]*)
5612   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5613   ;;
5614   *)
5615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620     for ac_exec_ext in '' $ac_executable_extensions; do
5621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627   done
5628 IFS=$as_save_IFS
5629
5630   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5631   ;;
5632 esac
5633 fi
5634 QMAKE=$ac_cv_path_QMAKE
5635 if test -n "$QMAKE"; then
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5637 $as_echo "$QMAKE" >&6; }
5638 else
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643
5644 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5645 set dummy qmake-qt4; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_path_QMAKEQT4+set}" = set; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   case $QMAKEQT4 in
5652   [\\/]* | ?:[\\/]*)
5653   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5654   ;;
5655   *)
5656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659   IFS=$as_save_IFS
5660   test -z "$as_dir" && as_dir=.
5661     for ac_exec_ext in '' $ac_executable_extensions; do
5662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665     break 2
5666   fi
5667 done
5668   done
5669 IFS=$as_save_IFS
5670
5671   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5672   ;;
5673 esac
5674 fi
5675 QMAKEQT4=$ac_cv_path_QMAKEQT4
5676 if test -n "$QMAKEQT4"; then
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKEQT4" >&5
5678 $as_echo "$QMAKEQT4" >&6; }
5679 else
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683
5684
5685 # Extract the first word of "gmake", so it can be a program name with args.
5686 set dummy gmake; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if test "${ac_cv_path_GMAKE+set}" = set; then :
5690   $as_echo_n "(cached) " >&6
5691 else
5692   case $GMAKE in
5693   [\\/]* | ?:[\\/]*)
5694   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5695   ;;
5696   *)
5697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700   IFS=$as_save_IFS
5701   test -z "$as_dir" && as_dir=.
5702     for ac_exec_ext in '' $ac_executable_extensions; do
5703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706     break 2
5707   fi
5708 done
5709   done
5710 IFS=$as_save_IFS
5711
5712   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5713   ;;
5714 esac
5715 fi
5716 GMAKE=$ac_cv_path_GMAKE
5717 if test -n "$GMAKE"; then
5718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5719 $as_echo "$GMAKE" >&6; }
5720 else
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5723 fi
5724
5725
5726
5727 if test "x$WXCONFIG" = x; then
5728    WXCONFIG=wx-config
5729 fi
5730 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5731 set dummy ${WXCONFIG}; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   case $WXCONFIG in
5738   [\\/]* | ?:[\\/]*)
5739   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5740   ;;
5741   *)
5742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747     for ac_exec_ext in '' $ac_executable_extensions; do
5748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754   done
5755 IFS=$as_save_IFS
5756
5757   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5758   ;;
5759 esac
5760 fi
5761 WXCONFIG=$ac_cv_path_WXCONFIG
5762 if test -n "$WXCONFIG"; then
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5764 $as_echo "$WXCONFIG" >&6; }
5765 else
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769
5770
5771
5772 # Extract the first word of "cdrecord", so it can be a program name with args.
5773 set dummy cdrecord; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5777   $as_echo_n "(cached) " >&6
5778 else
5779   case $CDRECORD in
5780   [\\/]* | ?:[\\/]*)
5781   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5782   ;;
5783   *)
5784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789     for ac_exec_ext in '' $ac_executable_extensions; do
5790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796   done
5797 IFS=$as_save_IFS
5798
5799   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5800   ;;
5801 esac
5802 fi
5803 CDRECORD=$ac_cv_path_CDRECORD
5804 if test -n "$CDRECORD"; then
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5806 $as_echo "$CDRECORD" >&6; }
5807 else
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5810 fi
5811
5812
5813 # Extract the first word of "pidof", so it can be a program name with args.
5814 set dummy pidof; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if test "${ac_cv_path_PIDOF+set}" = set; then :
5818   $as_echo_n "(cached) " >&6
5819 else
5820   case $PIDOF in
5821   [\\/]* | ?:[\\/]*)
5822   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5823   ;;
5824   *)
5825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828   IFS=$as_save_IFS
5829   test -z "$as_dir" && as_dir=.
5830     for ac_exec_ext in '' $ac_executable_extensions; do
5831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834     break 2
5835   fi
5836 done
5837   done
5838 IFS=$as_save_IFS
5839
5840   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5841   ;;
5842 esac
5843 fi
5844 PIDOF=$ac_cv_path_PIDOF
5845 if test -n "$PIDOF"; then
5846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5847 $as_echo "$PIDOF" >&6; }
5848 else
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5851 fi
5852
5853
5854 for ac_prog in gawk mawk nawk awk
5855 do
5856   # Extract the first word of "$ac_prog", so it can be a program name with args.
5857 set dummy $ac_prog; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if test "${ac_cv_prog_AWK+set}" = set; then :
5861   $as_echo_n "(cached) " >&6
5862 else
5863   if test -n "$AWK"; then
5864   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869   IFS=$as_save_IFS
5870   test -z "$as_dir" && as_dir=.
5871     for ac_exec_ext in '' $ac_executable_extensions; do
5872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873     ac_cv_prog_AWK="$ac_prog"
5874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875     break 2
5876   fi
5877 done
5878   done
5879 IFS=$as_save_IFS
5880
5881 fi
5882 fi
5883 AWK=$ac_cv_prog_AWK
5884 if test -n "$AWK"; then
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5886 $as_echo "$AWK" >&6; }
5887 else
5888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5890 fi
5891
5892
5893   test -n "$AWK" && break
5894 done
5895
5896 # Some AWK programs fail, so test it and warn the user
5897 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5898       { if ((prog == $2) || (("(" prog ")") == $2) ||
5899       (("" prog "") == $2) ||
5900       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5901 else
5902   as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5903    The regex engine of $AWK is too broken to be used you
5904    might want to install GNU AWK.
5905    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5906 fi
5907 THE_AWK=$AWK
5908 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5909 set dummy $THE_AWK; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if test "${ac_cv_path_AWK+set}" = set; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   case $AWK in
5916   [\\/]* | ?:[\\/]*)
5917   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5918   ;;
5919   *)
5920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925     for ac_exec_ext in '' $ac_executable_extensions; do
5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932   done
5933 IFS=$as_save_IFS
5934
5935   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5936   ;;
5937 esac
5938 fi
5939 AWK=$ac_cv_path_AWK
5940 if test -n "$AWK"; then
5941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5942 $as_echo "$AWK" >&6; }
5943 else
5944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948
5949
5950
5951 test -n "$ARFLAG" || ARFLAGS="cr"
5952
5953
5954 MAKE_SHELL=/bin/sh
5955
5956
5957
5958
5959
5960
5961
5962 use_libtool=yes
5963 # Check whether --enable-libtool was given.
5964 if test "${enable_libtool+set}" = set; then :
5965   enableval=$enable_libtool;
5966        if test x$enableval = xno; then
5967           use_libtool=no
5968        fi
5969
5970
5971 fi
5972
5973 case `pwd` in
5974   *\ * | *\     *)
5975     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5976 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5977 esac
5978
5979
5980
5981 macro_version='2.2.6'
5982 macro_revision='1.3012'
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996 ltmain="$ac_aux_dir/ltmain.sh"
5997
5998 # Make sure we can run config.sub.
5999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6000   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6001
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6003 $as_echo_n "checking build system type... " >&6; }
6004 if test "${ac_cv_build+set}" = set; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007   ac_build_alias=$build_alias
6008 test "x$ac_build_alias" = x &&
6009   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6010 test "x$ac_build_alias" = x &&
6011   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6013   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6014
6015 fi
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6017 $as_echo "$ac_cv_build" >&6; }
6018 case $ac_cv_build in
6019 *-*-*) ;;
6020 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6021 esac
6022 build=$ac_cv_build
6023 ac_save_IFS=$IFS; IFS='-'
6024 set x $ac_cv_build
6025 shift
6026 build_cpu=$1
6027 build_vendor=$2
6028 shift; shift
6029 # Remember, the first character of IFS is used to create $*,
6030 # except with old shells:
6031 build_os=$*
6032 IFS=$ac_save_IFS
6033 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6034
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6037 $as_echo_n "checking host system type... " >&6; }
6038 if test "${ac_cv_host+set}" = set; then :
6039   $as_echo_n "(cached) " >&6
6040 else
6041   if test "x$host_alias" = x; then
6042   ac_cv_host=$ac_cv_build
6043 else
6044   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6045     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6046 fi
6047
6048 fi
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6050 $as_echo "$ac_cv_host" >&6; }
6051 case $ac_cv_host in
6052 *-*-*) ;;
6053 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6054 esac
6055 host=$ac_cv_host
6056 ac_save_IFS=$IFS; IFS='-'
6057 set x $ac_cv_host
6058 shift
6059 host_cpu=$1
6060 host_vendor=$2
6061 shift; shift
6062 # Remember, the first character of IFS is used to create $*,
6063 # except with old shells:
6064 host_os=$*
6065 IFS=$ac_save_IFS
6066 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6067
6068
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6070 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6071 if test "${ac_cv_path_SED+set}" = set; then :
6072   $as_echo_n "(cached) " >&6
6073 else
6074             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6075      for ac_i in 1 2 3 4 5 6 7; do
6076        ac_script="$ac_script$as_nl$ac_script"
6077      done
6078      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6079      { ac_script=; unset ac_script;}
6080      if test -z "$SED"; then
6081   ac_path_SED_found=false
6082   # Loop through the user's path and test for each of PROGNAME-LIST
6083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086   IFS=$as_save_IFS
6087   test -z "$as_dir" && as_dir=.
6088     for ac_prog in sed gsed; do
6089     for ac_exec_ext in '' $ac_executable_extensions; do
6090       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6091       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6092 # Check for GNU ac_path_SED and select it if it is found.
6093   # Check for GNU $ac_path_SED
6094 case `"$ac_path_SED" --version 2>&1` in
6095 *GNU*)
6096   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6097 *)
6098   ac_count=0
6099   $as_echo_n 0123456789 >"conftest.in"
6100   while :
6101   do
6102     cat "conftest.in" "conftest.in" >"conftest.tmp"
6103     mv "conftest.tmp" "conftest.in"
6104     cp "conftest.in" "conftest.nl"
6105     $as_echo '' >> "conftest.nl"
6106     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6107     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6108     as_fn_arith $ac_count + 1 && ac_count=$as_val
6109     if test $ac_count -gt ${ac_path_SED_max-0}; then
6110       # Best one so far, save it but keep looking for a better one
6111       ac_cv_path_SED="$ac_path_SED"
6112       ac_path_SED_max=$ac_count
6113     fi
6114     # 10*(2^10) chars as input seems more than enough
6115     test $ac_count -gt 10 && break
6116   done
6117   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6118 esac
6119
6120       $ac_path_SED_found && break 3
6121     done
6122   done
6123   done
6124 IFS=$as_save_IFS
6125   if test -z "$ac_cv_path_SED"; then
6126     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6127   fi
6128 else
6129   ac_cv_path_SED=$SED
6130 fi
6131
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6134 $as_echo "$ac_cv_path_SED" >&6; }
6135  SED="$ac_cv_path_SED"
6136   rm -f conftest.sed
6137
6138 test -z "$SED" && SED=sed
6139 Xsed="$SED -e 1s/^X//"
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6152 $as_echo_n "checking for fgrep... " >&6; }
6153 if test "${ac_cv_path_FGREP+set}" = set; then :
6154   $as_echo_n "(cached) " >&6
6155 else
6156   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6157    then ac_cv_path_FGREP="$GREP -F"
6158    else
6159      if test -z "$FGREP"; then
6160   ac_path_FGREP_found=false
6161   # Loop through the user's path and test for each of PROGNAME-LIST
6162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6164 do
6165   IFS=$as_save_IFS
6166   test -z "$as_dir" && as_dir=.
6167     for ac_prog in fgrep; do
6168     for ac_exec_ext in '' $ac_executable_extensions; do
6169       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6170       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6171 # Check for GNU ac_path_FGREP and select it if it is found.
6172   # Check for GNU $ac_path_FGREP
6173 case `"$ac_path_FGREP" --version 2>&1` in
6174 *GNU*)
6175   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6176 *)
6177   ac_count=0
6178   $as_echo_n 0123456789 >"conftest.in"
6179   while :
6180   do
6181     cat "conftest.in" "conftest.in" >"conftest.tmp"
6182     mv "conftest.tmp" "conftest.in"
6183     cp "conftest.in" "conftest.nl"
6184     $as_echo 'FGREP' >> "conftest.nl"
6185     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6186     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6187     as_fn_arith $ac_count + 1 && ac_count=$as_val
6188     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6189       # Best one so far, save it but keep looking for a better one
6190       ac_cv_path_FGREP="$ac_path_FGREP"
6191       ac_path_FGREP_max=$ac_count
6192     fi
6193     # 10*(2^10) chars as input seems more than enough
6194     test $ac_count -gt 10 && break
6195   done
6196   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6197 esac
6198
6199       $ac_path_FGREP_found && break 3
6200     done
6201   done
6202   done
6203 IFS=$as_save_IFS
6204   if test -z "$ac_cv_path_FGREP"; then
6205     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6206   fi
6207 else
6208   ac_cv_path_FGREP=$FGREP
6209 fi
6210
6211    fi
6212 fi
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6214 $as_echo "$ac_cv_path_FGREP" >&6; }
6215  FGREP="$ac_cv_path_FGREP"
6216
6217
6218 test -z "$GREP" && GREP=grep
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238 # Check whether --with-gnu-ld was given.
6239 if test "${with_gnu_ld+set}" = set; then :
6240   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6241 else
6242   with_gnu_ld=no
6243 fi
6244
6245 ac_prog=ld
6246 if test "$GCC" = yes; then
6247   # Check if gcc -print-prog-name=ld gives a path.
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6249 $as_echo_n "checking for ld used by $CC... " >&6; }
6250   case $host in
6251   *-*-mingw*)
6252     # gcc leaves a trailing carriage return which upsets mingw
6253     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6254   *)
6255     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6256   esac
6257   case $ac_prog in
6258     # Accept absolute paths.
6259     [\\/]* | ?:[\\/]*)
6260       re_direlt='/[^/][^/]*/\.\./'
6261       # Canonicalize the pathname of ld
6262       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6263       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6264         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6265       done
6266       test -z "$LD" && LD="$ac_prog"
6267       ;;
6268   "")
6269     # If it fails, then pretend we aren't using GCC.
6270     ac_prog=ld
6271     ;;
6272   *)
6273     # If it is relative, then search for the first ld in PATH.
6274     with_gnu_ld=unknown
6275     ;;
6276   esac
6277 elif test "$with_gnu_ld" = yes; then
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6279 $as_echo_n "checking for GNU ld... " >&6; }
6280 else
6281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6282 $as_echo_n "checking for non-GNU ld... " >&6; }
6283 fi
6284 if test "${lt_cv_path_LD+set}" = set; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   if test -z "$LD"; then
6288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6289   for ac_dir in $PATH; do
6290     IFS="$lt_save_ifs"
6291     test -z "$ac_dir" && ac_dir=.
6292     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6293       lt_cv_path_LD="$ac_dir/$ac_prog"
6294       # Check to see if the program is GNU ld.  I'd rather use --version,
6295       # but apparently some variants of GNU ld only accept -v.
6296       # Break only if it was the GNU/non-GNU ld that we prefer.
6297       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6298       *GNU* | *'with BFD'*)
6299         test "$with_gnu_ld" != no && break
6300         ;;
6301       *)
6302         test "$with_gnu_ld" != yes && break
6303         ;;
6304       esac
6305     fi
6306   done
6307   IFS="$lt_save_ifs"
6308 else
6309   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6310 fi
6311 fi
6312
6313 LD="$lt_cv_path_LD"
6314 if test -n "$LD"; then
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6316 $as_echo "$LD" >&6; }
6317 else
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6324 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6328 case `$LD -v 2>&1 </dev/null` in
6329 *GNU* | *'with BFD'*)
6330   lt_cv_prog_gnu_ld=yes
6331   ;;
6332 *)
6333   lt_cv_prog_gnu_ld=no
6334   ;;
6335 esac
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6338 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6339 with_gnu_ld=$lt_cv_prog_gnu_ld
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6350 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6351 if test "${lt_cv_path_NM+set}" = set; then :
6352   $as_echo_n "(cached) " >&6
6353 else
6354   if test -n "$NM"; then
6355   # Let the user override the test.
6356   lt_cv_path_NM="$NM"
6357 else
6358   lt_nm_to_check="${ac_tool_prefix}nm"
6359   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6360     lt_nm_to_check="$lt_nm_to_check nm"
6361   fi
6362   for lt_tmp_nm in $lt_nm_to_check; do
6363     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6364     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6365       IFS="$lt_save_ifs"
6366       test -z "$ac_dir" && ac_dir=.
6367       tmp_nm="$ac_dir/$lt_tmp_nm"
6368       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6369         # Check to see if the nm accepts a BSD-compat flag.
6370         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6371         #   nm: unknown option "B" ignored
6372         # Tru64's nm complains that /dev/null is an invalid object file
6373         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6374         */dev/null* | *'Invalid file or object type'*)
6375           lt_cv_path_NM="$tmp_nm -B"
6376           break
6377           ;;
6378         *)
6379           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6380           */dev/null*)
6381             lt_cv_path_NM="$tmp_nm -p"
6382             break
6383             ;;
6384           *)
6385             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6386             continue # so that we can try to find one that supports BSD flags
6387             ;;
6388           esac
6389           ;;
6390         esac
6391       fi
6392     done
6393     IFS="$lt_save_ifs"
6394   done
6395   : ${lt_cv_path_NM=no}
6396 fi
6397 fi
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6399 $as_echo "$lt_cv_path_NM" >&6; }
6400 if test "$lt_cv_path_NM" != "no"; then
6401   NM="$lt_cv_path_NM"
6402 else
6403   # Didn't find any BSD compatible name lister, look for dumpbin.
6404   if test -n "$ac_tool_prefix"; then
6405   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6406   do
6407     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6412   $as_echo_n "(cached) " >&6
6413 else
6414   if test -n "$DUMPBIN"; then
6415   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420   IFS=$as_save_IFS
6421   test -z "$as_dir" && as_dir=.
6422     for ac_exec_ext in '' $ac_executable_extensions; do
6423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426     break 2
6427   fi
6428 done
6429   done
6430 IFS=$as_save_IFS
6431
6432 fi
6433 fi
6434 DUMPBIN=$ac_cv_prog_DUMPBIN
6435 if test -n "$DUMPBIN"; then
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6437 $as_echo "$DUMPBIN" >&6; }
6438 else
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6441 fi
6442
6443
6444     test -n "$DUMPBIN" && break
6445   done
6446 fi
6447 if test -z "$DUMPBIN"; then
6448   ac_ct_DUMPBIN=$DUMPBIN
6449   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6450 do
6451   # Extract the first word of "$ac_prog", so it can be a program name with args.
6452 set dummy $ac_prog; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458   if test -n "$ac_ct_DUMPBIN"; then
6459   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464   IFS=$as_save_IFS
6465   test -z "$as_dir" && as_dir=.
6466     for ac_exec_ext in '' $ac_executable_extensions; do
6467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470     break 2
6471   fi
6472 done
6473   done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6479 if test -n "$ac_ct_DUMPBIN"; then
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6481 $as_echo "$ac_ct_DUMPBIN" >&6; }
6482 else
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487
6488   test -n "$ac_ct_DUMPBIN" && break
6489 done
6490
6491   if test "x$ac_ct_DUMPBIN" = x; then
6492     DUMPBIN=":"
6493   else
6494     case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6499 esac
6500     DUMPBIN=$ac_ct_DUMPBIN
6501   fi
6502 fi
6503
6504
6505   if test "$DUMPBIN" != ":"; then
6506     NM="$DUMPBIN"
6507   fi
6508 fi
6509 test -z "$NM" && NM=nm
6510
6511
6512
6513
6514
6515
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6517 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6518 if test "${lt_cv_nm_interface+set}" = set; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521   lt_cv_nm_interface="BSD nm"
6522   echo "int some_variable = 0;" > conftest.$ac_ext
6523   (eval echo "\"\$as_me:6523: $ac_compile\"" >&5)
6524   (eval "$ac_compile" 2>conftest.err)
6525   cat conftest.err >&5
6526   (eval echo "\"\$as_me:6526: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6527   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6528   cat conftest.err >&5
6529   (eval echo "\"\$as_me:6529: output\"" >&5)
6530   cat conftest.out >&5
6531   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6532     lt_cv_nm_interface="MS dumpbin"
6533   fi
6534   rm -f conftest*
6535 fi
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6537 $as_echo "$lt_cv_nm_interface" >&6; }
6538
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6540 $as_echo_n "checking whether ln -s works... " >&6; }
6541 LN_S=$as_ln_s
6542 if test "$LN_S" = "ln -s"; then
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6544 $as_echo "yes" >&6; }
6545 else
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6547 $as_echo "no, using $LN_S" >&6; }
6548 fi
6549
6550 # find the maximum length of command line arguments
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6552 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6553 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6554   $as_echo_n "(cached) " >&6
6555 else
6556     i=0
6557   teststring="ABCD"
6558
6559   case $build_os in
6560   msdosdjgpp*)
6561     # On DJGPP, this test can blow up pretty badly due to problems in libc
6562     # (any single argument exceeding 2000 bytes causes a buffer overrun
6563     # during glob expansion).  Even if it were fixed, the result of this
6564     # check would be larger than it should be.
6565     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6566     ;;
6567
6568   gnu*)
6569     # Under GNU Hurd, this test is not required because there is
6570     # no limit to the length of command line arguments.
6571     # Libtool will interpret -1 as no limit whatsoever
6572     lt_cv_sys_max_cmd_len=-1;
6573     ;;
6574
6575   cygwin* | mingw* | cegcc*)
6576     # On Win9x/ME, this test blows up -- it succeeds, but takes
6577     # about 5 minutes as the teststring grows exponentially.
6578     # Worse, since 9x/ME are not pre-emptively multitasking,
6579     # you end up with a "frozen" computer, even though with patience
6580     # the test eventually succeeds (with a max line length of 256k).
6581     # Instead, let's just punt: use the minimum linelength reported by
6582     # all of the supported platforms: 8192 (on NT/2K/XP).
6583     lt_cv_sys_max_cmd_len=8192;
6584     ;;
6585
6586   amigaos*)
6587     # On AmigaOS with pdksh, this test takes hours, literally.
6588     # So we just punt and use a minimum line length of 8192.
6589     lt_cv_sys_max_cmd_len=8192;
6590     ;;
6591
6592   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6593     # This has been around since 386BSD, at least.  Likely further.
6594     if test -x /sbin/sysctl; then
6595       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6596     elif test -x /usr/sbin/sysctl; then
6597       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6598     else
6599       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6600     fi
6601     # And add a safety zone
6602     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6603     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6604     ;;
6605
6606   interix*)
6607     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6608     lt_cv_sys_max_cmd_len=196608
6609     ;;
6610
6611   osf*)
6612     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6613     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6614     # nice to cause kernel panics so lets avoid the loop below.
6615     # First set a reasonable default.
6616     lt_cv_sys_max_cmd_len=16384
6617     #
6618     if test -x /sbin/sysconfig; then
6619       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6620         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6621       esac
6622     fi
6623     ;;
6624   sco3.2v5*)
6625     lt_cv_sys_max_cmd_len=102400
6626     ;;
6627   sysv5* | sco5v6* | sysv4.2uw2*)
6628     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6629     if test -n "$kargmax"; then
6630       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6631     else
6632       lt_cv_sys_max_cmd_len=32768
6633     fi
6634     ;;
6635   *)
6636     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6637     if test -n "$lt_cv_sys_max_cmd_len"; then
6638       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6639       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6640     else
6641       # Make teststring a little bigger before we do anything with it.
6642       # a 1K string should be a reasonable start.
6643       for i in 1 2 3 4 5 6 7 8 ; do
6644         teststring=$teststring$teststring
6645       done
6646       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6647       # If test is not a shell built-in, we'll probably end up computing a
6648       # maximum length that is only half of the actual maximum length, but
6649       # we can't tell.
6650       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6651                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6652               test $i != 17 # 1/2 MB should be enough
6653       do
6654         i=`expr $i + 1`
6655         teststring=$teststring$teststring
6656       done
6657       # Only check the string length outside the loop.
6658       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6659       teststring=
6660       # Add a significant safety factor because C++ compilers can tack on
6661       # massive amounts of additional arguments before passing them to the
6662       # linker.  It appears as though 1/2 is a usable value.
6663       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6664     fi
6665     ;;
6666   esac
6667
6668 fi
6669
6670 if test -n $lt_cv_sys_max_cmd_len ; then
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6672 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6673 else
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6675 $as_echo "none" >&6; }
6676 fi
6677 max_cmd_len=$lt_cv_sys_max_cmd_len
6678
6679
6680
6681
6682
6683
6684 : ${CP="cp -f"}
6685 : ${MV="mv -f"}
6686 : ${RM="rm -f"}
6687
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6689 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6690 # Try some XSI features
6691 xsi_shell=no
6692 ( _lt_dummy="a/b/c"
6693   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6694       = c,a/b,, \
6695     && eval 'test $(( 1 + 1 )) -eq 2 \
6696     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6697   && xsi_shell=yes
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6699 $as_echo "$xsi_shell" >&6; }
6700
6701
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6703 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6704 lt_shell_append=no
6705 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6706     >/dev/null 2>&1 \
6707   && lt_shell_append=yes
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6709 $as_echo "$lt_shell_append" >&6; }
6710
6711
6712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6713   lt_unset=unset
6714 else
6715   lt_unset=false
6716 fi
6717
6718
6719
6720
6721
6722 # test EBCDIC or ASCII
6723 case `echo X|tr X '\101'` in
6724  A) # ASCII based system
6725     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6726   lt_SP2NL='tr \040 \012'
6727   lt_NL2SP='tr \015\012 \040\040'
6728   ;;
6729  *) # EBCDIC based system
6730   lt_SP2NL='tr \100 \n'
6731   lt_NL2SP='tr \r\n \100\100'
6732   ;;
6733 esac
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6744 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6745 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6746   $as_echo_n "(cached) " >&6
6747 else
6748   lt_cv_ld_reload_flag='-r'
6749 fi
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6751 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6752 reload_flag=$lt_cv_ld_reload_flag
6753 case $reload_flag in
6754 "" | " "*) ;;
6755 *) reload_flag=" $reload_flag" ;;
6756 esac
6757 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6758 case $host_os in
6759   darwin*)
6760     if test "$GCC" = yes; then
6761       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6762     else
6763       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6764     fi
6765     ;;
6766 esac
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776 if test -n "$ac_tool_prefix"; then
6777   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6782   $as_echo_n "(cached) " >&6
6783 else
6784   if test -n "$OBJDUMP"; then
6785   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790   IFS=$as_save_IFS
6791   test -z "$as_dir" && as_dir=.
6792     for ac_exec_ext in '' $ac_executable_extensions; do
6793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796     break 2
6797   fi
6798 done
6799   done
6800 IFS=$as_save_IFS
6801
6802 fi
6803 fi
6804 OBJDUMP=$ac_cv_prog_OBJDUMP
6805 if test -n "$OBJDUMP"; then
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6807 $as_echo "$OBJDUMP" >&6; }
6808 else
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6811 fi
6812
6813
6814 fi
6815 if test -z "$ac_cv_prog_OBJDUMP"; then
6816   ac_ct_OBJDUMP=$OBJDUMP
6817   # Extract the first word of "objdump", so it can be a program name with args.
6818 set dummy objdump; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6822   $as_echo_n "(cached) " >&6
6823 else
6824   if test -n "$ac_ct_OBJDUMP"; then
6825   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832     for ac_exec_ext in '' $ac_executable_extensions; do
6833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839   done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6845 if test -n "$ac_ct_OBJDUMP"; then
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6847 $as_echo "$ac_ct_OBJDUMP" >&6; }
6848 else
6849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853   if test "x$ac_ct_OBJDUMP" = x; then
6854     OBJDUMP="false"
6855   else
6856     case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860 ac_tool_warned=yes ;;
6861 esac
6862     OBJDUMP=$ac_ct_OBJDUMP
6863   fi
6864 else
6865   OBJDUMP="$ac_cv_prog_OBJDUMP"
6866 fi
6867
6868 test -z "$OBJDUMP" && OBJDUMP=objdump
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6879 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6880 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   lt_cv_file_magic_cmd='$MAGIC_CMD'
6884 lt_cv_file_magic_test_file=
6885 lt_cv_deplibs_check_method='unknown'
6886 # Need to set the preceding variable on all platforms that support
6887 # interlibrary dependencies.
6888 # 'none' -- dependencies not supported.
6889 # `unknown' -- same as none, but documents that we really don't know.
6890 # 'pass_all' -- all dependencies passed with no checks.
6891 # 'test_compile' -- check by making test program.
6892 # 'file_magic [[regex]]' -- check by looking for files in library path
6893 # which responds to the $file_magic_cmd with a given extended regex.
6894 # If you have `file' or equivalent on your system and you're not sure
6895 # whether `pass_all' will *always* work, you probably want this one.
6896
6897 case $host_os in
6898 aix[4-9]*)
6899   lt_cv_deplibs_check_method=pass_all
6900   ;;
6901
6902 beos*)
6903   lt_cv_deplibs_check_method=pass_all
6904   ;;
6905
6906 bsdi[45]*)
6907   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6908   lt_cv_file_magic_cmd='/usr/bin/file -L'
6909   lt_cv_file_magic_test_file=/shlib/libc.so
6910   ;;
6911
6912 cygwin*)
6913   # func_win32_libid is a shell function defined in ltmain.sh
6914   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6915   lt_cv_file_magic_cmd='func_win32_libid'
6916   ;;
6917
6918 mingw* | pw32*)
6919   # Base MSYS/MinGW do not provide the 'file' command needed by
6920   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6921   # unless we find 'file', for example because we are cross-compiling.
6922   if ( file / ) >/dev/null 2>&1; then
6923     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6924     lt_cv_file_magic_cmd='func_win32_libid'
6925   else
6926     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6927     lt_cv_file_magic_cmd='$OBJDUMP -f'
6928   fi
6929   ;;
6930
6931 cegcc)
6932   # use the weaker test based on 'objdump'. See mingw*.
6933   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6934   lt_cv_file_magic_cmd='$OBJDUMP -f'
6935   ;;
6936
6937 darwin* | rhapsody*)
6938   lt_cv_deplibs_check_method=pass_all
6939   ;;
6940
6941 freebsd* | dragonfly*)
6942   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6943     case $host_cpu in
6944     i*86 )
6945       # Not sure whether the presence of OpenBSD here was a mistake.
6946       # Let's accept both of them until this is cleared up.
6947       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6948       lt_cv_file_magic_cmd=/usr/bin/file
6949       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6950       ;;
6951     esac
6952   else
6953     lt_cv_deplibs_check_method=pass_all
6954   fi
6955   ;;
6956
6957 gnu*)
6958   lt_cv_deplibs_check_method=pass_all
6959   ;;
6960
6961 hpux10.20* | hpux11*)
6962   lt_cv_file_magic_cmd=/usr/bin/file
6963   case $host_cpu in
6964   ia64*)
6965     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6966     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6967     ;;
6968   hppa*64*)
6969     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]'
6970     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6971     ;;
6972   *)
6973     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6974     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6975     ;;
6976   esac
6977   ;;
6978
6979 interix[3-9]*)
6980   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6981   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6982   ;;
6983
6984 irix5* | irix6* | nonstopux*)
6985   case $LD in
6986   *-32|*"-32 ") libmagic=32-bit;;
6987   *-n32|*"-n32 ") libmagic=N32;;
6988   *-64|*"-64 ") libmagic=64-bit;;
6989   *) libmagic=never-match;;
6990   esac
6991   lt_cv_deplibs_check_method=pass_all
6992   ;;
6993
6994 # This must be Linux ELF.
6995 linux* | k*bsd*-gnu)
6996   lt_cv_deplibs_check_method=pass_all
6997   ;;
6998
6999 netbsd*)
7000   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7001     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7002   else
7003     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7004   fi
7005   ;;
7006
7007 newos6*)
7008   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7009   lt_cv_file_magic_cmd=/usr/bin/file
7010   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7011   ;;
7012
7013 *nto* | *qnx*)
7014   lt_cv_deplibs_check_method=pass_all
7015   ;;
7016
7017 openbsd*)
7018   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7019     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7020   else
7021     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7022   fi
7023   ;;
7024
7025 osf3* | osf4* | osf5*)
7026   lt_cv_deplibs_check_method=pass_all
7027   ;;
7028
7029 rdos*)
7030   lt_cv_deplibs_check_method=pass_all
7031   ;;
7032
7033 solaris*)
7034   lt_cv_deplibs_check_method=pass_all
7035   ;;
7036
7037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7038   lt_cv_deplibs_check_method=pass_all
7039   ;;
7040
7041 sysv4 | sysv4.3*)
7042   case $host_vendor in
7043   motorola)
7044     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]'
7045     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7046     ;;
7047   ncr)
7048     lt_cv_deplibs_check_method=pass_all
7049     ;;
7050   sequent)
7051     lt_cv_file_magic_cmd='/bin/file'
7052     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7053     ;;
7054   sni)
7055     lt_cv_file_magic_cmd='/bin/file'
7056     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7057     lt_cv_file_magic_test_file=/lib/libc.so
7058     ;;
7059   siemens)
7060     lt_cv_deplibs_check_method=pass_all
7061     ;;
7062   pc)
7063     lt_cv_deplibs_check_method=pass_all
7064     ;;
7065   esac
7066   ;;
7067
7068 tpf*)
7069   lt_cv_deplibs_check_method=pass_all
7070   ;;
7071 esac
7072
7073 fi
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7075 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7076 file_magic_cmd=$lt_cv_file_magic_cmd
7077 deplibs_check_method=$lt_cv_deplibs_check_method
7078 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091 if test -n "$ac_tool_prefix"; then
7092   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7093 set dummy ${ac_tool_prefix}ar; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if test "${ac_cv_prog_AR+set}" = set; then :
7097   $as_echo_n "(cached) " >&6
7098 else
7099   if test -n "$AR"; then
7100   ac_cv_prog_AR="$AR" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107     for ac_exec_ext in '' $ac_executable_extensions; do
7108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109     ac_cv_prog_AR="${ac_tool_prefix}ar"
7110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114   done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 AR=$ac_cv_prog_AR
7120 if test -n "$AR"; then
7121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7122 $as_echo "$AR" >&6; }
7123 else
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7126 fi
7127
7128
7129 fi
7130 if test -z "$ac_cv_prog_AR"; then
7131   ac_ct_AR=$AR
7132   # Extract the first word of "ar", so it can be a program name with args.
7133 set dummy ar; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7137   $as_echo_n "(cached) " >&6
7138 else
7139   if test -n "$ac_ct_AR"; then
7140   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147     for ac_exec_ext in '' $ac_executable_extensions; do
7148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149     ac_cv_prog_ac_ct_AR="ar"
7150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154   done
7155 IFS=$as_save_IFS
7156
7157 fi
7158 fi
7159 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7160 if test -n "$ac_ct_AR"; then
7161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7162 $as_echo "$ac_ct_AR" >&6; }
7163 else
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7166 fi
7167
7168   if test "x$ac_ct_AR" = x; then
7169     AR="false"
7170   else
7171     case $cross_compiling:$ac_tool_warned in
7172 yes:)
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7175 ac_tool_warned=yes ;;
7176 esac
7177     AR=$ac_ct_AR
7178   fi
7179 else
7180   AR="$ac_cv_prog_AR"
7181 fi
7182
7183 test -z "$AR" && AR=ar
7184 test -z "$AR_FLAGS" && AR_FLAGS=cru
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 if test -n "$ac_tool_prefix"; then
7197   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}strip; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if test "${ac_cv_prog_STRIP+set}" = set; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   if test -n "$STRIP"; then
7205   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210   IFS=$as_save_IFS
7211   test -z "$as_dir" && as_dir=.
7212     for ac_exec_ext in '' $ac_executable_extensions; do
7213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216     break 2
7217   fi
7218 done
7219   done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 STRIP=$ac_cv_prog_STRIP
7225 if test -n "$STRIP"; then
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7227 $as_echo "$STRIP" >&6; }
7228 else
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233
7234 fi
7235 if test -z "$ac_cv_prog_STRIP"; then
7236   ac_ct_STRIP=$STRIP
7237   # Extract the first word of "strip", so it can be a program name with args.
7238 set dummy strip; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7242   $as_echo_n "(cached) " >&6
7243 else
7244   if test -n "$ac_ct_STRIP"; then
7245   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   test -z "$as_dir" && as_dir=.
7252     for ac_exec_ext in '' $ac_executable_extensions; do
7253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254     ac_cv_prog_ac_ct_STRIP="strip"
7255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259   done
7260 IFS=$as_save_IFS
7261
7262 fi
7263 fi
7264 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7265 if test -n "$ac_ct_STRIP"; then
7266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7267 $as_echo "$ac_ct_STRIP" >&6; }
7268 else
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7271 fi
7272
7273   if test "x$ac_ct_STRIP" = x; then
7274     STRIP=":"
7275   else
7276     case $cross_compiling:$ac_tool_warned in
7277 yes:)
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280 ac_tool_warned=yes ;;
7281 esac
7282     STRIP=$ac_ct_STRIP
7283   fi
7284 else
7285   STRIP="$ac_cv_prog_STRIP"
7286 fi
7287
7288 test -z "$STRIP" && STRIP=:
7289
7290
7291
7292
7293
7294
7295 if test -n "$ac_tool_prefix"; then
7296   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7297 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7301   $as_echo_n "(cached) " >&6
7302 else
7303   if test -n "$RANLIB"; then
7304   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309   IFS=$as_save_IFS
7310   test -z "$as_dir" && as_dir=.
7311     for ac_exec_ext in '' $ac_executable_extensions; do
7312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7313     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315     break 2
7316   fi
7317 done
7318   done
7319 IFS=$as_save_IFS
7320
7321 fi
7322 fi
7323 RANLIB=$ac_cv_prog_RANLIB
7324 if test -n "$RANLIB"; then
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7326 $as_echo "$RANLIB" >&6; }
7327 else
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330 fi
7331
7332
7333 fi
7334 if test -z "$ac_cv_prog_RANLIB"; then
7335   ac_ct_RANLIB=$RANLIB
7336   # Extract the first word of "ranlib", so it can be a program name with args.
7337 set dummy ranlib; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7341   $as_echo_n "(cached) " >&6
7342 else
7343   if test -n "$ac_ct_RANLIB"; then
7344   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7345 else
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349   IFS=$as_save_IFS
7350   test -z "$as_dir" && as_dir=.
7351     for ac_exec_ext in '' $ac_executable_extensions; do
7352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7353     ac_cv_prog_ac_ct_RANLIB="ranlib"
7354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355     break 2
7356   fi
7357 done
7358   done
7359 IFS=$as_save_IFS
7360
7361 fi
7362 fi
7363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7364 if test -n "$ac_ct_RANLIB"; then
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7366 $as_echo "$ac_ct_RANLIB" >&6; }
7367 else
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7370 fi
7371
7372   if test "x$ac_ct_RANLIB" = x; then
7373     RANLIB=":"
7374   else
7375     case $cross_compiling:$ac_tool_warned in
7376 yes:)
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7379 ac_tool_warned=yes ;;
7380 esac
7381     RANLIB=$ac_ct_RANLIB
7382   fi
7383 else
7384   RANLIB="$ac_cv_prog_RANLIB"
7385 fi
7386
7387 test -z "$RANLIB" && RANLIB=:
7388
7389
7390
7391
7392
7393
7394 # Determine commands to create old-style static archives.
7395 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7396 old_postinstall_cmds='chmod 644 $oldlib'
7397 old_postuninstall_cmds=
7398
7399 if test -n "$RANLIB"; then
7400   case $host_os in
7401   openbsd*)
7402     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7403     ;;
7404   *)
7405     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7406     ;;
7407   esac
7408   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7409 fi
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
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444 # If no C compiler was specified, use CC.
7445 LTCC=${LTCC-"$CC"}
7446
7447 # If no C compiler flags were specified, use CFLAGS.
7448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7449
7450 # Allow CC to be a program name with arguments.
7451 compiler=$CC
7452
7453
7454 # Check for command to grab the raw symbol name followed by C symbol from nm.
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7456 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7457 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460
7461 # These are sane defaults that work on at least a few old systems.
7462 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7463
7464 # Character class describing NM global symbol codes.
7465 symcode='[BCDEGRST]'
7466
7467 # Regexp to match symbols that can be accessed directly from C.
7468 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7469
7470 # Define system-specific variables.
7471 case $host_os in
7472 aix*)
7473   symcode='[BCDT]'
7474   ;;
7475 cygwin* | mingw* | pw32* | cegcc*)
7476   symcode='[ABCDGISTW]'
7477   ;;
7478 hpux*)
7479   if test "$host_cpu" = ia64; then
7480     symcode='[ABCDEGRST]'
7481   fi
7482   ;;
7483 irix* | nonstopux*)
7484   symcode='[BCDEGRST]'
7485   ;;
7486 osf*)
7487   symcode='[BCDEGQRST]'
7488   ;;
7489 solaris*)
7490   symcode='[BDRT]'
7491   ;;
7492 sco3.2v5*)
7493   symcode='[DT]'
7494   ;;
7495 sysv4.2uw2*)
7496   symcode='[DT]'
7497   ;;
7498 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7499   symcode='[ABDT]'
7500   ;;
7501 sysv4)
7502   symcode='[DFNSTU]'
7503   ;;
7504 esac
7505
7506 # If we're using GNU nm, then use its standard symbol codes.
7507 case `$NM -V 2>&1` in
7508 *GNU* | *'with BFD'*)
7509   symcode='[ABCDGIRSTW]' ;;
7510 esac
7511
7512 # Transform an extracted symbol line into a proper C declaration.
7513 # Some systems (esp. on ia64) link data and code symbols differently,
7514 # so use this general approach.
7515 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7516
7517 # Transform an extracted symbol line into symbol name and symbol address
7518 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7519 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'"
7520
7521 # Handle CRLF in mingw tool chain
7522 opt_cr=
7523 case $build_os in
7524 mingw*)
7525   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7526   ;;
7527 esac
7528
7529 # Try without a prefix underscore, then with it.
7530 for ac_symprfx in "" "_"; do
7531
7532   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7533   symxfrm="\\1 $ac_symprfx\\2 \\2"
7534
7535   # Write the raw and C identifiers.
7536   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7537     # Fake it for dumpbin and say T for any non-static function
7538     # and D for any global variable.
7539     # Also find C++ and __fastcall symbols from MSVC++,
7540     # which start with @ or ?.
7541     lt_cv_sys_global_symbol_pipe="$AWK '"\
7542 "     {last_section=section; section=\$ 3};"\
7543 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7544 "     \$ 0!~/External *\|/{next};"\
7545 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7546 "     {if(hide[section]) next};"\
7547 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7548 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7549 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7550 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7551 "     ' prfx=^$ac_symprfx"
7552   else
7553     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7554   fi
7555
7556   # Check to see that the pipe works correctly.
7557   pipe_works=no
7558
7559   rm -f conftest*
7560   cat > conftest.$ac_ext <<_LT_EOF
7561 #ifdef __cplusplus
7562 extern "C" {
7563 #endif
7564 char nm_test_var;
7565 void nm_test_func(void);
7566 void nm_test_func(void){}
7567 #ifdef __cplusplus
7568 }
7569 #endif
7570 int main(){nm_test_var='a';nm_test_func();return(0);}
7571 _LT_EOF
7572
7573   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7574   (eval $ac_compile) 2>&5
7575   ac_status=$?
7576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7577   test $ac_status = 0; }; then
7578     # Now try to grab the symbols.
7579     nlist=conftest.nm
7580     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7581   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7582   ac_status=$?
7583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584   test $ac_status = 0; } && test -s "$nlist"; then
7585       # Try sorting and uniquifying the output.
7586       if sort "$nlist" | uniq > "$nlist"T; then
7587         mv -f "$nlist"T "$nlist"
7588       else
7589         rm -f "$nlist"T
7590       fi
7591
7592       # Make sure that we snagged all the symbols we need.
7593       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7594         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7595           cat <<_LT_EOF > conftest.$ac_ext
7596 #ifdef __cplusplus
7597 extern "C" {
7598 #endif
7599
7600 _LT_EOF
7601           # Now generate the symbol file.
7602           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7603
7604           cat <<_LT_EOF >> conftest.$ac_ext
7605
7606 /* The mapping between symbol names and symbols.  */
7607 const struct {
7608   const char *name;
7609   void       *address;
7610 }
7611 lt__PROGRAM__LTX_preloaded_symbols[] =
7612 {
7613   { "@PROGRAM@", (void *) 0 },
7614 _LT_EOF
7615           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7616           cat <<\_LT_EOF >> conftest.$ac_ext
7617   {0, (void *) 0}
7618 };
7619
7620 /* This works around a problem in FreeBSD linker */
7621 #ifdef FREEBSD_WORKAROUND
7622 static const void *lt_preloaded_setup() {
7623   return lt__PROGRAM__LTX_preloaded_symbols;
7624 }
7625 #endif
7626
7627 #ifdef __cplusplus
7628 }
7629 #endif
7630 _LT_EOF
7631           # Now try linking the two files.
7632           mv conftest.$ac_objext conftstm.$ac_objext
7633           lt_save_LIBS="$LIBS"
7634           lt_save_CFLAGS="$CFLAGS"
7635           LIBS="conftstm.$ac_objext"
7636           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7637           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7638   (eval $ac_link) 2>&5
7639   ac_status=$?
7640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7641   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7642             pipe_works=yes
7643           fi
7644           LIBS="$lt_save_LIBS"
7645           CFLAGS="$lt_save_CFLAGS"
7646         else
7647           echo "cannot find nm_test_func in $nlist" >&5
7648         fi
7649       else
7650         echo "cannot find nm_test_var in $nlist" >&5
7651       fi
7652     else
7653       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7654     fi
7655   else
7656     echo "$progname: failed program was:" >&5
7657     cat conftest.$ac_ext >&5
7658   fi
7659   rm -rf conftest* conftst*
7660
7661   # Do not use the global_symbol_pipe unless it works.
7662   if test "$pipe_works" = yes; then
7663     break
7664   else
7665     lt_cv_sys_global_symbol_pipe=
7666   fi
7667 done
7668
7669 fi
7670
7671 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7672   lt_cv_sys_global_symbol_to_cdecl=
7673 fi
7674 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7676 $as_echo "failed" >&6; }
7677 else
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7679 $as_echo "ok" >&6; }
7680 fi
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703 # Check whether --enable-libtool-lock was given.
7704 if test "${enable_libtool_lock+set}" = set; then :
7705   enableval=$enable_libtool_lock;
7706 fi
7707
7708 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7709
7710 # Some flags need to be propagated to the compiler or linker for good
7711 # libtool support.
7712 case $host in
7713 ia64-*-hpux*)
7714   # Find out which ABI we are using.
7715   echo 'int i;' > conftest.$ac_ext
7716   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7717   (eval $ac_compile) 2>&5
7718   ac_status=$?
7719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720   test $ac_status = 0; }; then
7721     case `/usr/bin/file conftest.$ac_objext` in
7722       *ELF-32*)
7723         HPUX_IA64_MODE="32"
7724         ;;
7725       *ELF-64*)
7726         HPUX_IA64_MODE="64"
7727         ;;
7728     esac
7729   fi
7730   rm -rf conftest*
7731   ;;
7732 *-*-irix6*)
7733   # Find out which ABI we are using.
7734   echo '#line 7734 "configure"' > conftest.$ac_ext
7735   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7736   (eval $ac_compile) 2>&5
7737   ac_status=$?
7738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739   test $ac_status = 0; }; then
7740     if test "$lt_cv_prog_gnu_ld" = yes; then
7741       case `/usr/bin/file conftest.$ac_objext` in
7742         *32-bit*)
7743           LD="${LD-ld} -melf32bsmip"
7744           ;;
7745         *N32*)
7746           LD="${LD-ld} -melf32bmipn32"
7747           ;;
7748         *64-bit*)
7749           LD="${LD-ld} -melf64bmip"
7750         ;;
7751       esac
7752     else
7753       case `/usr/bin/file conftest.$ac_objext` in
7754         *32-bit*)
7755           LD="${LD-ld} -32"
7756           ;;
7757         *N32*)
7758           LD="${LD-ld} -n32"
7759           ;;
7760         *64-bit*)
7761           LD="${LD-ld} -64"
7762           ;;
7763       esac
7764     fi
7765   fi
7766   rm -rf conftest*
7767   ;;
7768
7769 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7770 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7771   # Find out which ABI we are using.
7772   echo 'int i;' > conftest.$ac_ext
7773   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7774   (eval $ac_compile) 2>&5
7775   ac_status=$?
7776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777   test $ac_status = 0; }; then
7778     case `/usr/bin/file conftest.o` in
7779       *32-bit*)
7780         case $host in
7781           x86_64-*kfreebsd*-gnu)
7782             LD="${LD-ld} -m elf_i386_fbsd"
7783             ;;
7784           x86_64-*linux*)
7785             LD="${LD-ld} -m elf_i386"
7786             ;;
7787           ppc64-*linux*|powerpc64-*linux*)
7788             LD="${LD-ld} -m elf32ppclinux"
7789             ;;
7790           s390x-*linux*)
7791             LD="${LD-ld} -m elf_s390"
7792             ;;
7793           sparc64-*linux*)
7794             LD="${LD-ld} -m elf32_sparc"
7795             ;;
7796         esac
7797         ;;
7798       *64-bit*)
7799         case $host in
7800           x86_64-*kfreebsd*-gnu)
7801             LD="${LD-ld} -m elf_x86_64_fbsd"
7802             ;;
7803           x86_64-*linux*)
7804             LD="${LD-ld} -m elf_x86_64"
7805             ;;
7806           ppc*-*linux*|powerpc*-*linux*)
7807             LD="${LD-ld} -m elf64ppc"
7808             ;;
7809           s390*-*linux*|s390*-*tpf*)
7810             LD="${LD-ld} -m elf64_s390"
7811             ;;
7812           sparc*-*linux*)
7813             LD="${LD-ld} -m elf64_sparc"
7814             ;;
7815         esac
7816         ;;
7817     esac
7818   fi
7819   rm -rf conftest*
7820   ;;
7821
7822 *-*-sco3.2v5*)
7823   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7824   SAVE_CFLAGS="$CFLAGS"
7825   CFLAGS="$CFLAGS -belf"
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7827 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7828 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   ac_ext=c
7832 ac_cpp='$CPP $CPPFLAGS'
7833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836
7837      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h.  */
7839
7840 int
7841 main ()
7842 {
7843
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 if ac_fn_c_try_link "$LINENO"; then :
7849   lt_cv_cc_needs_belf=yes
7850 else
7851   lt_cv_cc_needs_belf=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext \
7854     conftest$ac_exeext conftest.$ac_ext
7855      ac_ext=c
7856 ac_cpp='$CPP $CPPFLAGS'
7857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7860
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7863 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7864   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7865     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7866     CFLAGS="$SAVE_CFLAGS"
7867   fi
7868   ;;
7869 sparc*-*solaris*)
7870   # Find out which ABI we are using.
7871   echo 'int i;' > conftest.$ac_ext
7872   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7873   (eval $ac_compile) 2>&5
7874   ac_status=$?
7875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876   test $ac_status = 0; }; then
7877     case `/usr/bin/file conftest.o` in
7878     *64-bit*)
7879       case $lt_cv_prog_gnu_ld in
7880       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7881       *)
7882         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7883           LD="${LD-ld} -64"
7884         fi
7885         ;;
7886       esac
7887       ;;
7888     esac
7889   fi
7890   rm -rf conftest*
7891   ;;
7892 esac
7893
7894 need_locks="$enable_libtool_lock"
7895
7896
7897   case $host_os in
7898     rhapsody* | darwin*)
7899     if test -n "$ac_tool_prefix"; then
7900   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7901 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7905   $as_echo_n "(cached) " >&6
7906 else
7907   if test -n "$DSYMUTIL"; then
7908   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913   IFS=$as_save_IFS
7914   test -z "$as_dir" && as_dir=.
7915     for ac_exec_ext in '' $ac_executable_extensions; do
7916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919     break 2
7920   fi
7921 done
7922   done
7923 IFS=$as_save_IFS
7924
7925 fi
7926 fi
7927 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7928 if test -n "$DSYMUTIL"; then
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7930 $as_echo "$DSYMUTIL" >&6; }
7931 else
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936
7937 fi
7938 if test -z "$ac_cv_prog_DSYMUTIL"; then
7939   ac_ct_DSYMUTIL=$DSYMUTIL
7940   # Extract the first word of "dsymutil", so it can be a program name with args.
7941 set dummy dsymutil; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7945   $as_echo_n "(cached) " >&6
7946 else
7947   if test -n "$ac_ct_DSYMUTIL"; then
7948   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953   IFS=$as_save_IFS
7954   test -z "$as_dir" && as_dir=.
7955     for ac_exec_ext in '' $ac_executable_extensions; do
7956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7957     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959     break 2
7960   fi
7961 done
7962   done
7963 IFS=$as_save_IFS
7964
7965 fi
7966 fi
7967 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7968 if test -n "$ac_ct_DSYMUTIL"; then
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7970 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7971 else
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7974 fi
7975
7976   if test "x$ac_ct_DSYMUTIL" = x; then
7977     DSYMUTIL=":"
7978   else
7979     case $cross_compiling:$ac_tool_warned in
7980 yes:)
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983 ac_tool_warned=yes ;;
7984 esac
7985     DSYMUTIL=$ac_ct_DSYMUTIL
7986   fi
7987 else
7988   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7989 fi
7990
7991     if test -n "$ac_tool_prefix"; then
7992   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7997   $as_echo_n "(cached) " >&6
7998 else
7999   if test -n "$NMEDIT"; then
8000   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005   IFS=$as_save_IFS
8006   test -z "$as_dir" && as_dir=.
8007     for ac_exec_ext in '' $ac_executable_extensions; do
8008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011     break 2
8012   fi
8013 done
8014   done
8015 IFS=$as_save_IFS
8016
8017 fi
8018 fi
8019 NMEDIT=$ac_cv_prog_NMEDIT
8020 if test -n "$NMEDIT"; then
8021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8022 $as_echo "$NMEDIT" >&6; }
8023 else
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8026 fi
8027
8028
8029 fi
8030 if test -z "$ac_cv_prog_NMEDIT"; then
8031   ac_ct_NMEDIT=$NMEDIT
8032   # Extract the first word of "nmedit", so it can be a program name with args.
8033 set dummy nmedit; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   if test -n "$ac_ct_NMEDIT"; then
8040   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047     for ac_exec_ext in '' $ac_executable_extensions; do
8048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051     break 2
8052   fi
8053 done
8054   done
8055 IFS=$as_save_IFS
8056
8057 fi
8058 fi
8059 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8060 if test -n "$ac_ct_NMEDIT"; then
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8062 $as_echo "$ac_ct_NMEDIT" >&6; }
8063 else
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068   if test "x$ac_ct_NMEDIT" = x; then
8069     NMEDIT=":"
8070   else
8071     case $cross_compiling:$ac_tool_warned in
8072 yes:)
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075 ac_tool_warned=yes ;;
8076 esac
8077     NMEDIT=$ac_ct_NMEDIT
8078   fi
8079 else
8080   NMEDIT="$ac_cv_prog_NMEDIT"
8081 fi
8082
8083     if test -n "$ac_tool_prefix"; then
8084   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if test "${ac_cv_prog_LIPO+set}" = set; then :
8089   $as_echo_n "(cached) " >&6
8090 else
8091   if test -n "$LIPO"; then
8092   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097   IFS=$as_save_IFS
8098   test -z "$as_dir" && as_dir=.
8099     for ac_exec_ext in '' $ac_executable_extensions; do
8100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103     break 2
8104   fi
8105 done
8106   done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 LIPO=$ac_cv_prog_LIPO
8112 if test -n "$LIPO"; then
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8114 $as_echo "$LIPO" >&6; }
8115 else
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120
8121 fi
8122 if test -z "$ac_cv_prog_LIPO"; then
8123   ac_ct_LIPO=$LIPO
8124   # Extract the first word of "lipo", so it can be a program name with args.
8125 set dummy lipo; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8129   $as_echo_n "(cached) " >&6
8130 else
8131   if test -n "$ac_ct_LIPO"; then
8132   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137   IFS=$as_save_IFS
8138   test -z "$as_dir" && as_dir=.
8139     for ac_exec_ext in '' $ac_executable_extensions; do
8140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141     ac_cv_prog_ac_ct_LIPO="lipo"
8142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143     break 2
8144   fi
8145 done
8146   done
8147 IFS=$as_save_IFS
8148
8149 fi
8150 fi
8151 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8152 if test -n "$ac_ct_LIPO"; then
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8154 $as_echo "$ac_ct_LIPO" >&6; }
8155 else
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159
8160   if test "x$ac_ct_LIPO" = x; then
8161     LIPO=":"
8162   else
8163     case $cross_compiling:$ac_tool_warned in
8164 yes:)
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8168 esac
8169     LIPO=$ac_ct_LIPO
8170   fi
8171 else
8172   LIPO="$ac_cv_prog_LIPO"
8173 fi
8174
8175     if test -n "$ac_tool_prefix"; then
8176   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}otool; ac_word=$2
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 $as_echo_n "checking for $ac_word... " >&6; }
8180 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8181   $as_echo_n "(cached) " >&6
8182 else
8183   if test -n "$OTOOL"; then
8184   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8185 else
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189   IFS=$as_save_IFS
8190   test -z "$as_dir" && as_dir=.
8191     for ac_exec_ext in '' $ac_executable_extensions; do
8192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8193     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195     break 2
8196   fi
8197 done
8198   done
8199 IFS=$as_save_IFS
8200
8201 fi
8202 fi
8203 OTOOL=$ac_cv_prog_OTOOL
8204 if test -n "$OTOOL"; then
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8206 $as_echo "$OTOOL" >&6; }
8207 else
8208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8210 fi
8211
8212
8213 fi
8214 if test -z "$ac_cv_prog_OTOOL"; then
8215   ac_ct_OTOOL=$OTOOL
8216   # Extract the first word of "otool", so it can be a program name with args.
8217 set dummy otool; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8221   $as_echo_n "(cached) " >&6
8222 else
8223   if test -n "$ac_ct_OTOOL"; then
8224   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229   IFS=$as_save_IFS
8230   test -z "$as_dir" && as_dir=.
8231     for ac_exec_ext in '' $ac_executable_extensions; do
8232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233     ac_cv_prog_ac_ct_OTOOL="otool"
8234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235     break 2
8236   fi
8237 done
8238   done
8239 IFS=$as_save_IFS
8240
8241 fi
8242 fi
8243 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8244 if test -n "$ac_ct_OTOOL"; then
8245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8246 $as_echo "$ac_ct_OTOOL" >&6; }
8247 else
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8250 fi
8251
8252   if test "x$ac_ct_OTOOL" = x; then
8253     OTOOL=":"
8254   else
8255     case $cross_compiling:$ac_tool_warned in
8256 yes:)
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8259 ac_tool_warned=yes ;;
8260 esac
8261     OTOOL=$ac_ct_OTOOL
8262   fi
8263 else
8264   OTOOL="$ac_cv_prog_OTOOL"
8265 fi
8266
8267     if test -n "$ac_tool_prefix"; then
8268   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8269 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8273   $as_echo_n "(cached) " >&6
8274 else
8275   if test -n "$OTOOL64"; then
8276   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281   IFS=$as_save_IFS
8282   test -z "$as_dir" && as_dir=.
8283     for ac_exec_ext in '' $ac_executable_extensions; do
8284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287     break 2
8288   fi
8289 done
8290   done
8291 IFS=$as_save_IFS
8292
8293 fi
8294 fi
8295 OTOOL64=$ac_cv_prog_OTOOL64
8296 if test -n "$OTOOL64"; then
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8298 $as_echo "$OTOOL64" >&6; }
8299 else
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8302 fi
8303
8304
8305 fi
8306 if test -z "$ac_cv_prog_OTOOL64"; then
8307   ac_ct_OTOOL64=$OTOOL64
8308   # Extract the first word of "otool64", so it can be a program name with args.
8309 set dummy otool64; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315   if test -n "$ac_ct_OTOOL64"; then
8316   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321   IFS=$as_save_IFS
8322   test -z "$as_dir" && as_dir=.
8323     for ac_exec_ext in '' $ac_executable_extensions; do
8324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325     ac_cv_prog_ac_ct_OTOOL64="otool64"
8326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327     break 2
8328   fi
8329 done
8330   done
8331 IFS=$as_save_IFS
8332
8333 fi
8334 fi
8335 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8336 if test -n "$ac_ct_OTOOL64"; then
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8338 $as_echo "$ac_ct_OTOOL64" >&6; }
8339 else
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 fi
8343
8344   if test "x$ac_ct_OTOOL64" = x; then
8345     OTOOL64=":"
8346   else
8347     case $cross_compiling:$ac_tool_warned in
8348 yes:)
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8351 ac_tool_warned=yes ;;
8352 esac
8353     OTOOL64=$ac_ct_OTOOL64
8354   fi
8355 else
8356   OTOOL64="$ac_cv_prog_OTOOL64"
8357 fi
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8386 $as_echo_n "checking for -single_module linker flag... " >&6; }
8387 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8388   $as_echo_n "(cached) " >&6
8389 else
8390   lt_cv_apple_cc_single_mod=no
8391       if test -z "${LT_MULTI_MODULE}"; then
8392         # By default we will add the -single_module flag. You can override
8393         # by either setting the environment variable LT_MULTI_MODULE
8394         # non-empty at configure time, or by adding -multi_module to the
8395         # link flags.
8396         rm -rf libconftest.dylib*
8397         echo "int foo(void){return 1;}" > conftest.c
8398         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8399 -dynamiclib -Wl,-single_module conftest.c" >&5
8400         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8401           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8402         _lt_result=$?
8403         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8404           lt_cv_apple_cc_single_mod=yes
8405         else
8406           cat conftest.err >&5
8407         fi
8408         rm -rf libconftest.dylib*
8409         rm -f conftest.*
8410       fi
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8413 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8415 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8416 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8417   $as_echo_n "(cached) " >&6
8418 else
8419   lt_cv_ld_exported_symbols_list=no
8420       save_LDFLAGS=$LDFLAGS
8421       echo "_main" > conftest.sym
8422       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8423       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h.  */
8425
8426 int
8427 main ()
8428 {
8429
8430   ;
8431   return 0;
8432 }
8433 _ACEOF
8434 if ac_fn_c_try_link "$LINENO"; then :
8435   lt_cv_ld_exported_symbols_list=yes
8436 else
8437   lt_cv_ld_exported_symbols_list=no
8438 fi
8439 rm -f core conftest.err conftest.$ac_objext \
8440     conftest$ac_exeext conftest.$ac_ext
8441         LDFLAGS="$save_LDFLAGS"
8442
8443 fi
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8445 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8446     case $host_os in
8447     rhapsody* | darwin1.[012])
8448       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8449     darwin1.*)
8450       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8451     darwin*) # darwin 5.x on
8452       # if running on 10.5 or later, the deployment target defaults
8453       # to the OS version, if on x86, and 10.4, the deployment
8454       # target defaults to 10.4. Don't you love it?
8455       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8456         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8457           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8458         10.[012]*)
8459           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8460         10.*)
8461           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8462       esac
8463     ;;
8464   esac
8465     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8466       _lt_dar_single_mod='$single_module'
8467     fi
8468     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8469       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8470     else
8471       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8472     fi
8473     if test "$DSYMUTIL" != ":"; then
8474       _lt_dsymutil='~$DSYMUTIL $lib || :'
8475     else
8476       _lt_dsymutil=
8477     fi
8478     ;;
8479   esac
8480
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8482 $as_echo_n "checking for ANSI C header files... " >&6; }
8483 if test "${ac_cv_header_stdc+set}" = set; then :
8484   $as_echo_n "(cached) " >&6
8485 else
8486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h.  */
8488 #include <stdlib.h>
8489 #include <stdarg.h>
8490 #include <string.h>
8491 #include <float.h>
8492
8493 int
8494 main ()
8495 {
8496
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 if ac_fn_c_try_compile "$LINENO"; then :
8502   ac_cv_header_stdc=yes
8503 else
8504   ac_cv_header_stdc=no
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507
8508 if test $ac_cv_header_stdc = yes; then
8509   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h.  */
8512 #include <string.h>
8513
8514 _ACEOF
8515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8516   $EGREP "memchr" >/dev/null 2>&1; then :
8517
8518 else
8519   ac_cv_header_stdc=no
8520 fi
8521 rm -f conftest*
8522
8523 fi
8524
8525 if test $ac_cv_header_stdc = yes; then
8526   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h.  */
8529 #include <stdlib.h>
8530
8531 _ACEOF
8532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8533   $EGREP "free" >/dev/null 2>&1; then :
8534
8535 else
8536   ac_cv_header_stdc=no
8537 fi
8538 rm -f conftest*
8539
8540 fi
8541
8542 if test $ac_cv_header_stdc = yes; then
8543   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8544   if test "$cross_compiling" = yes; then :
8545   :
8546 else
8547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h.  */
8549 #include <ctype.h>
8550 #include <stdlib.h>
8551 #if ((' ' & 0x0FF) == 0x020)
8552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8554 #else
8555 # define ISLOWER(c) \
8556                    (('a' <= (c) && (c) <= 'i') \
8557                      || ('j' <= (c) && (c) <= 'r') \
8558                      || ('s' <= (c) && (c) <= 'z'))
8559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8560 #endif
8561
8562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8563 int
8564 main ()
8565 {
8566   int i;
8567   for (i = 0; i < 256; i++)
8568     if (XOR (islower (i), ISLOWER (i))
8569         || toupper (i) != TOUPPER (i))
8570       return 2;
8571   return 0;
8572 }
8573 _ACEOF
8574 if ac_fn_c_try_run "$LINENO"; then :
8575
8576 else
8577   ac_cv_header_stdc=no
8578 fi
8579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8580   conftest.$ac_objext conftest.beam conftest.$ac_ext
8581 fi
8582
8583 fi
8584 fi
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8586 $as_echo "$ac_cv_header_stdc" >&6; }
8587 if test $ac_cv_header_stdc = yes; then
8588
8589 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8590
8591 fi
8592
8593 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8594 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8595                   inttypes.h stdint.h unistd.h
8596 do :
8597   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8598 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8599 "
8600 eval as_val=\$$as_ac_Header
8601    if test "x$as_val" = x""yes; then :
8602   cat >>confdefs.h <<_ACEOF
8603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8604 _ACEOF
8605
8606 fi
8607
8608 done
8609
8610
8611 for ac_header in dlfcn.h
8612 do :
8613   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8614 "
8615 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8616   cat >>confdefs.h <<_ACEOF
8617 #define HAVE_DLFCN_H 1
8618 _ACEOF
8619
8620 fi
8621
8622 done
8623
8624
8625
8626 ac_ext=cpp
8627 ac_cpp='$CXXCPP $CPPFLAGS'
8628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8631 if test -z "$CXX"; then
8632   if test -n "$CCC"; then
8633     CXX=$CCC
8634   else
8635     if test -n "$ac_tool_prefix"; then
8636   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8637   do
8638     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if test "${ac_cv_prog_CXX+set}" = set; then :
8643   $as_echo_n "(cached) " >&6
8644 else
8645   if test -n "$CXX"; then
8646   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8647 else
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8650 do
8651   IFS=$as_save_IFS
8652   test -z "$as_dir" && as_dir=.
8653     for ac_exec_ext in '' $ac_executable_extensions; do
8654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657     break 2
8658   fi
8659 done
8660   done
8661 IFS=$as_save_IFS
8662
8663 fi
8664 fi
8665 CXX=$ac_cv_prog_CXX
8666 if test -n "$CXX"; then
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8668 $as_echo "$CXX" >&6; }
8669 else
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 fi
8673
8674
8675     test -n "$CXX" && break
8676   done
8677 fi
8678 if test -z "$CXX"; then
8679   ac_ct_CXX=$CXX
8680   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8681 do
8682   # Extract the first word of "$ac_prog", so it can be a program name with args.
8683 set dummy $ac_prog; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8687   $as_echo_n "(cached) " >&6
8688 else
8689   if test -n "$ac_ct_CXX"; then
8690   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8691 else
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 for as_dir in $PATH
8694 do
8695   IFS=$as_save_IFS
8696   test -z "$as_dir" && as_dir=.
8697     for ac_exec_ext in '' $ac_executable_extensions; do
8698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8699     ac_cv_prog_ac_ct_CXX="$ac_prog"
8700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701     break 2
8702   fi
8703 done
8704   done
8705 IFS=$as_save_IFS
8706
8707 fi
8708 fi
8709 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8710 if test -n "$ac_ct_CXX"; then
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8712 $as_echo "$ac_ct_CXX" >&6; }
8713 else
8714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 fi
8717
8718
8719   test -n "$ac_ct_CXX" && break
8720 done
8721
8722   if test "x$ac_ct_CXX" = x; then
8723     CXX="g++"
8724   else
8725     case $cross_compiling:$ac_tool_warned in
8726 yes:)
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8729 ac_tool_warned=yes ;;
8730 esac
8731     CXX=$ac_ct_CXX
8732   fi
8733 fi
8734
8735   fi
8736 fi
8737 # Provide some information about the compiler.
8738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8739 set X $ac_compile
8740 ac_compiler=$2
8741 for ac_option in --version -v -V -qversion; do
8742   { { ac_try="$ac_compiler $ac_option >&5"
8743 case "(($ac_try" in
8744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745   *) ac_try_echo=$ac_try;;
8746 esac
8747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8748 $as_echo "$ac_try_echo"; } >&5
8749   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8750   ac_status=$?
8751   if test -s conftest.err; then
8752     sed '10a\
8753 ... rest of stderr output deleted ...
8754          10q' conftest.err >conftest.er1
8755     cat conftest.er1 >&5
8756   fi
8757   rm -f conftest.er1 conftest.err
8758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8759   test $ac_status = 0; }
8760 done
8761
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8763 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8764 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8765   $as_echo_n "(cached) " >&6
8766 else
8767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h.  */
8769
8770 int
8771 main ()
8772 {
8773 #ifndef __GNUC__
8774        choke me
8775 #endif
8776
8777   ;
8778   return 0;
8779 }
8780 _ACEOF
8781 if ac_fn_cxx_try_compile "$LINENO"; then :
8782   ac_compiler_gnu=yes
8783 else
8784   ac_compiler_gnu=no
8785 fi
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8788
8789 fi
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8791 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8792 if test $ac_compiler_gnu = yes; then
8793   GXX=yes
8794 else
8795   GXX=
8796 fi
8797 ac_test_CXXFLAGS=${CXXFLAGS+set}
8798 ac_save_CXXFLAGS=$CXXFLAGS
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8800 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8801 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8805    ac_cxx_werror_flag=yes
8806    ac_cv_prog_cxx_g=no
8807    CXXFLAGS="-g"
8808    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h.  */
8810
8811 int
8812 main ()
8813 {
8814
8815   ;
8816   return 0;
8817 }
8818 _ACEOF
8819 if ac_fn_cxx_try_compile "$LINENO"; then :
8820   ac_cv_prog_cxx_g=yes
8821 else
8822   CXXFLAGS=""
8823       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h.  */
8825
8826 int
8827 main ()
8828 {
8829
8830   ;
8831   return 0;
8832 }
8833 _ACEOF
8834 if ac_fn_cxx_try_compile "$LINENO"; then :
8835
8836 else
8837   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8838          CXXFLAGS="-g"
8839          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h.  */
8841
8842 int
8843 main ()
8844 {
8845
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 if ac_fn_cxx_try_compile "$LINENO"; then :
8851   ac_cv_prog_cxx_g=yes
8852 fi
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 fi
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8861 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8862 if test "$ac_test_CXXFLAGS" = set; then
8863   CXXFLAGS=$ac_save_CXXFLAGS
8864 elif test $ac_cv_prog_cxx_g = yes; then
8865   if test "$GXX" = yes; then
8866     CXXFLAGS="-g -O2"
8867   else
8868     CXXFLAGS="-g"
8869   fi
8870 else
8871   if test "$GXX" = yes; then
8872     CXXFLAGS="-O2"
8873   else
8874     CXXFLAGS=
8875   fi
8876 fi
8877 ac_ext=c
8878 ac_cpp='$CPP $CPPFLAGS'
8879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8882
8883 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8884     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8885     (test "X$CXX" != "Xg++"))) ; then
8886   ac_ext=cpp
8887 ac_cpp='$CXXCPP $CPPFLAGS'
8888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8892 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8893 if test -z "$CXXCPP"; then
8894   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8895   $as_echo_n "(cached) " >&6
8896 else
8897       # Double quotes because CXXCPP needs to be expanded
8898     for CXXCPP in "$CXX -E" "/lib/cpp"
8899     do
8900       ac_preproc_ok=false
8901 for ac_cxx_preproc_warn_flag in '' yes
8902 do
8903   # Use a header file that comes with gcc, so configuring glibc
8904   # with a fresh cross-compiler works.
8905   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8906   # <limits.h> exists even on freestanding compilers.
8907   # On the NeXT, cc -E runs the code through the compiler's parser,
8908   # not just through cpp. "Syntax error" is here to catch this case.
8909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h.  */
8911 #ifdef __STDC__
8912 # include <limits.h>
8913 #else
8914 # include <assert.h>
8915 #endif
8916                      Syntax error
8917 _ACEOF
8918 if ac_fn_cxx_try_cpp "$LINENO"; then :
8919
8920 else
8921   # Broken: fails on valid input.
8922 continue
8923 fi
8924 rm -f conftest.err conftest.$ac_ext
8925
8926   # OK, works on sane cases.  Now check whether nonexistent headers
8927   # can be detected and how.
8928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h.  */
8930 #include <ac_nonexistent.h>
8931 _ACEOF
8932 if ac_fn_cxx_try_cpp "$LINENO"; then :
8933   # Broken: success on invalid input.
8934 continue
8935 else
8936   # Passes both tests.
8937 ac_preproc_ok=:
8938 break
8939 fi
8940 rm -f conftest.err conftest.$ac_ext
8941
8942 done
8943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8944 rm -f conftest.err conftest.$ac_ext
8945 if $ac_preproc_ok; then :
8946   break
8947 fi
8948
8949     done
8950     ac_cv_prog_CXXCPP=$CXXCPP
8951
8952 fi
8953   CXXCPP=$ac_cv_prog_CXXCPP
8954 else
8955   ac_cv_prog_CXXCPP=$CXXCPP
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8958 $as_echo "$CXXCPP" >&6; }
8959 ac_preproc_ok=false
8960 for ac_cxx_preproc_warn_flag in '' yes
8961 do
8962   # Use a header file that comes with gcc, so configuring glibc
8963   # with a fresh cross-compiler works.
8964   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8965   # <limits.h> exists even on freestanding compilers.
8966   # On the NeXT, cc -E runs the code through the compiler's parser,
8967   # not just through cpp. "Syntax error" is here to catch this case.
8968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h.  */
8970 #ifdef __STDC__
8971 # include <limits.h>
8972 #else
8973 # include <assert.h>
8974 #endif
8975                      Syntax error
8976 _ACEOF
8977 if ac_fn_cxx_try_cpp "$LINENO"; then :
8978
8979 else
8980   # Broken: fails on valid input.
8981 continue
8982 fi
8983 rm -f conftest.err conftest.$ac_ext
8984
8985   # OK, works on sane cases.  Now check whether nonexistent headers
8986   # can be detected and how.
8987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h.  */
8989 #include <ac_nonexistent.h>
8990 _ACEOF
8991 if ac_fn_cxx_try_cpp "$LINENO"; then :
8992   # Broken: success on invalid input.
8993 continue
8994 else
8995   # Passes both tests.
8996 ac_preproc_ok=:
8997 break
8998 fi
8999 rm -f conftest.err conftest.$ac_ext
9000
9001 done
9002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9003 rm -f conftest.err conftest.$ac_ext
9004 if $ac_preproc_ok; then :
9005
9006 else
9007   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9009 _lt_caught_CXX_error=yes; }
9010 fi
9011
9012 ac_ext=c
9013 ac_cpp='$CPP $CPPFLAGS'
9014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9017
9018 else
9019   _lt_caught_CXX_error=yes
9020 fi
9021
9022
9023
9024
9025
9026 # Set options
9027 # Check whether --enable-shared was given.
9028 if test "${enable_shared+set}" = set; then :
9029   enableval=$enable_shared; p=${PACKAGE-default}
9030     case $enableval in
9031     yes) enable_shared=yes ;;
9032     no) enable_shared=no ;;
9033     *)
9034       enable_shared=no
9035       # Look at the argument we got.  We use all the common list separators.
9036       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9037       for pkg in $enableval; do
9038         IFS="$lt_save_ifs"
9039         if test "X$pkg" = "X$p"; then
9040           enable_shared=yes
9041         fi
9042       done
9043       IFS="$lt_save_ifs"
9044       ;;
9045     esac
9046 else
9047   enable_shared=yes
9048 fi
9049
9050
9051
9052
9053
9054
9055
9056 # Check whether --enable-static was given.
9057 if test "${enable_static+set}" = set; then :
9058   enableval=$enable_static; p=${PACKAGE-default}
9059     case $enableval in
9060     yes) enable_static=yes ;;
9061     no) enable_static=no ;;
9062     *)
9063      enable_static=no
9064       # Look at the argument we got.  We use all the common list separators.
9065       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9066       for pkg in $enableval; do
9067         IFS="$lt_save_ifs"
9068         if test "X$pkg" = "X$p"; then
9069           enable_static=yes
9070         fi
9071       done
9072       IFS="$lt_save_ifs"
9073       ;;
9074     esac
9075 else
9076   enable_static=no
9077 fi
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088         enable_dlopen=no
9089
9090
9091   enable_win32_dll=no
9092
9093
9094
9095
9096
9097 # Check whether --with-pic was given.
9098 if test "${with_pic+set}" = set; then :
9099   withval=$with_pic; pic_mode="$withval"
9100 else
9101   pic_mode=default
9102 fi
9103
9104
9105 test -z "$pic_mode" && pic_mode=default
9106
9107
9108
9109
9110
9111
9112
9113   # Check whether --enable-fast-install was given.
9114 if test "${enable_fast_install+set}" = set; then :
9115   enableval=$enable_fast_install; p=${PACKAGE-default}
9116     case $enableval in
9117     yes) enable_fast_install=yes ;;
9118     no) enable_fast_install=no ;;
9119     *)
9120       enable_fast_install=no
9121       # Look at the argument we got.  We use all the common list separators.
9122       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9123       for pkg in $enableval; do
9124         IFS="$lt_save_ifs"
9125         if test "X$pkg" = "X$p"; then
9126           enable_fast_install=yes
9127         fi
9128       done
9129       IFS="$lt_save_ifs"
9130       ;;
9131     esac
9132 else
9133   enable_fast_install=yes
9134 fi
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146 # This can be used to rebuild libtool when needed
9147 LIBTOOL_DEPS="$ltmain"
9148
9149 # Always use our own libtool.
9150 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176 test -z "$LN_S" && LN_S="ln -s"
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 if test -n "${ZSH_VERSION+set}" ; then
9192    setopt NO_GLOB_SUBST
9193 fi
9194
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9196 $as_echo_n "checking for objdir... " >&6; }
9197 if test "${lt_cv_objdir+set}" = set; then :
9198   $as_echo_n "(cached) " >&6
9199 else
9200   rm -f .libs 2>/dev/null
9201 mkdir .libs 2>/dev/null
9202 if test -d .libs; then
9203   lt_cv_objdir=.libs
9204 else
9205   # MS-DOS does not allow filenames that begin with a dot.
9206   lt_cv_objdir=_libs
9207 fi
9208 rmdir .libs 2>/dev/null
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9211 $as_echo "$lt_cv_objdir" >&6; }
9212 objdir=$lt_cv_objdir
9213
9214
9215
9216
9217
9218 cat >>confdefs.h <<_ACEOF
9219 #define LT_OBJDIR "$lt_cv_objdir/"
9220 _ACEOF
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238 case $host_os in
9239 aix3*)
9240   # AIX sometimes has problems with the GCC collect2 program.  For some
9241   # reason, if we set the COLLECT_NAMES environment variable, the problems
9242   # vanish in a puff of smoke.
9243   if test "X${COLLECT_NAMES+set}" != Xset; then
9244     COLLECT_NAMES=
9245     export COLLECT_NAMES
9246   fi
9247   ;;
9248 esac
9249
9250 # Sed substitution that helps us do robust quoting.  It backslashifies
9251 # metacharacters that are still active within double-quoted strings.
9252 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9253
9254 # Same as above, but do not quote variable references.
9255 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9256
9257 # Sed substitution to delay expansion of an escaped shell variable in a
9258 # double_quote_subst'ed string.
9259 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9260
9261 # Sed substitution to delay expansion of an escaped single quote.
9262 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9263
9264 # Sed substitution to avoid accidental globbing in evaled expressions
9265 no_glob_subst='s/\*/\\\*/g'
9266
9267 # Global variables:
9268 ofile=libtool
9269 can_build_shared=yes
9270
9271 # All known linkers require a `.a' archive for static linking (except MSVC,
9272 # which needs '.lib').
9273 libext=a
9274
9275 with_gnu_ld="$lt_cv_prog_gnu_ld"
9276
9277 old_CC="$CC"
9278 old_CFLAGS="$CFLAGS"
9279
9280 # Set sane defaults for various variables
9281 test -z "$CC" && CC=cc
9282 test -z "$LTCC" && LTCC=$CC
9283 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9284 test -z "$LD" && LD=ld
9285 test -z "$ac_objext" && ac_objext=o
9286
9287 for cc_temp in $compiler""; do
9288   case $cc_temp in
9289     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9290     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9291     \-*) ;;
9292     *) break;;
9293   esac
9294 done
9295 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9296
9297
9298 # Only perform the check for file, if the check method requires it
9299 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9300 case $deplibs_check_method in
9301 file_magic*)
9302   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9304 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9305 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9306   $as_echo_n "(cached) " >&6
9307 else
9308   case $MAGIC_CMD in
9309 [\\/*] |  ?:[\\/]*)
9310   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9311   ;;
9312 *)
9313   lt_save_MAGIC_CMD="$MAGIC_CMD"
9314   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9315   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9316   for ac_dir in $ac_dummy; do
9317     IFS="$lt_save_ifs"
9318     test -z "$ac_dir" && ac_dir=.
9319     if test -f $ac_dir/${ac_tool_prefix}file; then
9320       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9321       if test -n "$file_magic_test_file"; then
9322         case $deplibs_check_method in
9323         "file_magic "*)
9324           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9325           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9326           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9327             $EGREP "$file_magic_regex" > /dev/null; then
9328             :
9329           else
9330             cat <<_LT_EOF 1>&2
9331
9332 *** Warning: the command libtool uses to detect shared libraries,
9333 *** $file_magic_cmd, produces output that libtool cannot recognize.
9334 *** The result is that libtool may fail to recognize shared libraries
9335 *** as such.  This will affect the creation of libtool libraries that
9336 *** depend on shared libraries, but programs linked with such libtool
9337 *** libraries will work regardless of this problem.  Nevertheless, you
9338 *** may want to report the problem to your system manager and/or to
9339 *** bug-libtool@gnu.org
9340
9341 _LT_EOF
9342           fi ;;
9343         esac
9344       fi
9345       break
9346     fi
9347   done
9348   IFS="$lt_save_ifs"
9349   MAGIC_CMD="$lt_save_MAGIC_CMD"
9350   ;;
9351 esac
9352 fi
9353
9354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9355 if test -n "$MAGIC_CMD"; then
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9357 $as_echo "$MAGIC_CMD" >&6; }
9358 else
9359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9361 fi
9362
9363
9364
9365
9366
9367 if test -z "$lt_cv_path_MAGIC_CMD"; then
9368   if test -n "$ac_tool_prefix"; then
9369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9370 $as_echo_n "checking for file... " >&6; }
9371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9372   $as_echo_n "(cached) " >&6
9373 else
9374   case $MAGIC_CMD in
9375 [\\/*] |  ?:[\\/]*)
9376   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9377   ;;
9378 *)
9379   lt_save_MAGIC_CMD="$MAGIC_CMD"
9380   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9381   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9382   for ac_dir in $ac_dummy; do
9383     IFS="$lt_save_ifs"
9384     test -z "$ac_dir" && ac_dir=.
9385     if test -f $ac_dir/file; then
9386       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9387       if test -n "$file_magic_test_file"; then
9388         case $deplibs_check_method in
9389         "file_magic "*)
9390           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9391           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9392           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9393             $EGREP "$file_magic_regex" > /dev/null; then
9394             :
9395           else
9396             cat <<_LT_EOF 1>&2
9397
9398 *** Warning: the command libtool uses to detect shared libraries,
9399 *** $file_magic_cmd, produces output that libtool cannot recognize.
9400 *** The result is that libtool may fail to recognize shared libraries
9401 *** as such.  This will affect the creation of libtool libraries that
9402 *** depend on shared libraries, but programs linked with such libtool
9403 *** libraries will work regardless of this problem.  Nevertheless, you
9404 *** may want to report the problem to your system manager and/or to
9405 *** bug-libtool@gnu.org
9406
9407 _LT_EOF
9408           fi ;;
9409         esac
9410       fi
9411       break
9412     fi
9413   done
9414   IFS="$lt_save_ifs"
9415   MAGIC_CMD="$lt_save_MAGIC_CMD"
9416   ;;
9417 esac
9418 fi
9419
9420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9421 if test -n "$MAGIC_CMD"; then
9422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9423 $as_echo "$MAGIC_CMD" >&6; }
9424 else
9425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 $as_echo "no" >&6; }
9427 fi
9428
9429
9430   else
9431     MAGIC_CMD=:
9432   fi
9433 fi
9434
9435   fi
9436   ;;
9437 esac
9438
9439 # Use C for the default configuration in the libtool script
9440
9441 lt_save_CC="$CC"
9442 ac_ext=c
9443 ac_cpp='$CPP $CPPFLAGS'
9444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9447
9448
9449 # Source file extension for C test sources.
9450 ac_ext=c
9451
9452 # Object file extension for compiled C test sources.
9453 objext=o
9454 objext=$objext
9455
9456 # Code to be used in simple compile tests
9457 lt_simple_compile_test_code="int some_variable = 0;"
9458
9459 # Code to be used in simple link tests
9460 lt_simple_link_test_code='int main(){return(0);}'
9461
9462
9463
9464
9465
9466
9467
9468 # If no C compiler was specified, use CC.
9469 LTCC=${LTCC-"$CC"}
9470
9471 # If no C compiler flags were specified, use CFLAGS.
9472 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9473
9474 # Allow CC to be a program name with arguments.
9475 compiler=$CC
9476
9477 # Save the default compiler, since it gets overwritten when the other
9478 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9479 compiler_DEFAULT=$CC
9480
9481 # save warnings/boilerplate of simple test code
9482 ac_outfile=conftest.$ac_objext
9483 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9484 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9485 _lt_compiler_boilerplate=`cat conftest.err`
9486 $RM conftest*
9487
9488 ac_outfile=conftest.$ac_objext
9489 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9490 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9491 _lt_linker_boilerplate=`cat conftest.err`
9492 $RM -r conftest*
9493
9494
9495 ## CAVEAT EMPTOR:
9496 ## There is no encapsulation within the following macros, do not change
9497 ## the running order or otherwise move them around unless you know exactly
9498 ## what you are doing...
9499 if test -n "$compiler"; then
9500
9501 lt_prog_compiler_no_builtin_flag=
9502
9503 if test "$GCC" = yes; then
9504   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9505
9506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9507 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9508 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9509   $as_echo_n "(cached) " >&6
9510 else
9511   lt_cv_prog_compiler_rtti_exceptions=no
9512    ac_outfile=conftest.$ac_objext
9513    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9514    lt_compiler_flag="-fno-rtti -fno-exceptions"
9515    # Insert the option either (1) after the last *FLAGS variable, or
9516    # (2) before a word containing "conftest.", or (3) at the end.
9517    # Note that $ac_compile itself does not contain backslashes and begins
9518    # with a dollar sign (not a hyphen), so the echo should work correctly.
9519    # The option is referenced via a variable to avoid confusing sed.
9520    lt_compile=`echo "$ac_compile" | $SED \
9521    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9522    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9523    -e 's:$: $lt_compiler_flag:'`
9524    (eval echo "\"\$as_me:9524: $lt_compile\"" >&5)
9525    (eval "$lt_compile" 2>conftest.err)
9526    ac_status=$?
9527    cat conftest.err >&5
9528    echo "$as_me:9528: \$? = $ac_status" >&5
9529    if (exit $ac_status) && test -s "$ac_outfile"; then
9530      # The compiler can only warn and ignore the option if not recognized
9531      # So say no if there are warnings other than the usual output.
9532      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9533      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9534      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9535        lt_cv_prog_compiler_rtti_exceptions=yes
9536      fi
9537    fi
9538    $RM conftest*
9539
9540 fi
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9542 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9543
9544 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9545     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9546 else
9547     :
9548 fi
9549
9550 fi
9551
9552
9553
9554
9555
9556
9557   lt_prog_compiler_wl=
9558 lt_prog_compiler_pic=
9559 lt_prog_compiler_static=
9560
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9562 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9563
9564   if test "$GCC" = yes; then
9565     lt_prog_compiler_wl='-Wl,'
9566     lt_prog_compiler_static='-static'
9567
9568     case $host_os in
9569       aix*)
9570       # All AIX code is PIC.
9571       if test "$host_cpu" = ia64; then
9572         # AIX 5 now supports IA64 processor
9573         lt_prog_compiler_static='-Bstatic'
9574       fi
9575       ;;
9576
9577     amigaos*)
9578       case $host_cpu in
9579       powerpc)
9580             # see comment about AmigaOS4 .so support
9581             lt_prog_compiler_pic='-fPIC'
9582         ;;
9583       m68k)
9584             # FIXME: we need at least 68020 code to build shared libraries, but
9585             # adding the `-m68020' flag to GCC prevents building anything better,
9586             # like `-m68040'.
9587             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9588         ;;
9589       esac
9590       ;;
9591
9592     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9593       # PIC is the default for these OSes.
9594       ;;
9595
9596     mingw* | cygwin* | pw32* | os2* | cegcc*)
9597       # This hack is so that the source file can tell whether it is being
9598       # built for inclusion in a dll (and should export symbols for example).
9599       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9600       # (--disable-auto-import) libraries
9601       lt_prog_compiler_pic='-DDLL_EXPORT'
9602       ;;
9603
9604     darwin* | rhapsody*)
9605       # PIC is the default on this platform
9606       # Common symbols not allowed in MH_DYLIB files
9607       lt_prog_compiler_pic='-fno-common'
9608       ;;
9609
9610     hpux*)
9611       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9612       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9613       # sets the default TLS model and affects inlining.
9614       case $host_cpu in
9615       hppa*64*)
9616         # +Z the default
9617         ;;
9618       *)
9619         lt_prog_compiler_pic='-fPIC'
9620         ;;
9621       esac
9622       ;;
9623
9624     interix[3-9]*)
9625       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9626       # Instead, we relocate shared libraries at runtime.
9627       ;;
9628
9629     msdosdjgpp*)
9630       # Just because we use GCC doesn't mean we suddenly get shared libraries
9631       # on systems that don't support them.
9632       lt_prog_compiler_can_build_shared=no
9633       enable_shared=no
9634       ;;
9635
9636     *nto* | *qnx*)
9637       # QNX uses GNU C++, but need to define -shared option too, otherwise
9638       # it will coredump.
9639       lt_prog_compiler_pic='-fPIC -shared'
9640       ;;
9641
9642     sysv4*MP*)
9643       if test -d /usr/nec; then
9644         lt_prog_compiler_pic=-Kconform_pic
9645       fi
9646       ;;
9647
9648     *)
9649       lt_prog_compiler_pic='-fPIC'
9650       ;;
9651     esac
9652   else
9653     # PORTME Check for flag to pass linker flags through the system compiler.
9654     case $host_os in
9655     aix*)
9656       lt_prog_compiler_wl='-Wl,'
9657       if test "$host_cpu" = ia64; then
9658         # AIX 5 now supports IA64 processor
9659         lt_prog_compiler_static='-Bstatic'
9660       else
9661         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9662       fi
9663       ;;
9664
9665     mingw* | cygwin* | pw32* | os2* | cegcc*)
9666       # This hack is so that the source file can tell whether it is being
9667       # built for inclusion in a dll (and should export symbols for example).
9668       lt_prog_compiler_pic='-DDLL_EXPORT'
9669       ;;
9670
9671     hpux9* | hpux10* | hpux11*)
9672       lt_prog_compiler_wl='-Wl,'
9673       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9674       # not for PA HP-UX.
9675       case $host_cpu in
9676       hppa*64*|ia64*)
9677         # +Z the default
9678         ;;
9679       *)
9680         lt_prog_compiler_pic='+Z'
9681         ;;
9682       esac
9683       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9684       lt_prog_compiler_static='${wl}-a ${wl}archive'
9685       ;;
9686
9687     irix5* | irix6* | nonstopux*)
9688       lt_prog_compiler_wl='-Wl,'
9689       # PIC (with -KPIC) is the default.
9690       lt_prog_compiler_static='-non_shared'
9691       ;;
9692
9693     linux* | k*bsd*-gnu)
9694       case $cc_basename in
9695       # old Intel for x86_64 which still supported -KPIC.
9696       ecc*)
9697         lt_prog_compiler_wl='-Wl,'
9698         lt_prog_compiler_pic='-KPIC'
9699         lt_prog_compiler_static='-static'
9700         ;;
9701       # icc used to be incompatible with GCC.
9702       # ICC 10 doesn't accept -KPIC any more.
9703       icc* | ifort*)
9704         lt_prog_compiler_wl='-Wl,'
9705         lt_prog_compiler_pic='-fPIC'
9706         lt_prog_compiler_static='-static'
9707         ;;
9708       # Lahey Fortran 8.1.
9709       lf95*)
9710         lt_prog_compiler_wl='-Wl,'
9711         lt_prog_compiler_pic='--shared'
9712         lt_prog_compiler_static='--static'
9713         ;;
9714       pgcc* | pgf77* | pgf90* | pgf95*)
9715         # Portland Group compilers (*not* the Pentium gcc compiler,
9716         # which looks to be a dead project)
9717         lt_prog_compiler_wl='-Wl,'
9718         lt_prog_compiler_pic='-fpic'
9719         lt_prog_compiler_static='-Bstatic'
9720         ;;
9721       ccc*)
9722         lt_prog_compiler_wl='-Wl,'
9723         # All Alpha code is PIC.
9724         lt_prog_compiler_static='-non_shared'
9725         ;;
9726       xl*)
9727         # IBM XL C 8.0/Fortran 10.1 on PPC
9728         lt_prog_compiler_wl='-Wl,'
9729         lt_prog_compiler_pic='-qpic'
9730         lt_prog_compiler_static='-qstaticlink'
9731         ;;
9732       *)
9733         case `$CC -V 2>&1 | sed 5q` in
9734         *Sun\ C*)
9735           # Sun C 5.9
9736           lt_prog_compiler_pic='-KPIC'
9737           lt_prog_compiler_static='-Bstatic'
9738           lt_prog_compiler_wl='-Wl,'
9739           ;;
9740         *Sun\ F*)
9741           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9742           lt_prog_compiler_pic='-KPIC'
9743           lt_prog_compiler_static='-Bstatic'
9744           lt_prog_compiler_wl=''
9745           ;;
9746         esac
9747         ;;
9748       esac
9749       ;;
9750
9751     newsos6)
9752       lt_prog_compiler_pic='-KPIC'
9753       lt_prog_compiler_static='-Bstatic'
9754       ;;
9755
9756     *nto* | *qnx*)
9757       # QNX uses GNU C++, but need to define -shared option too, otherwise
9758       # it will coredump.
9759       lt_prog_compiler_pic='-fPIC -shared'
9760       ;;
9761
9762     osf3* | osf4* | osf5*)
9763       lt_prog_compiler_wl='-Wl,'
9764       # All OSF/1 code is PIC.
9765       lt_prog_compiler_static='-non_shared'
9766       ;;
9767
9768     rdos*)
9769       lt_prog_compiler_static='-non_shared'
9770       ;;
9771
9772     solaris*)
9773       lt_prog_compiler_pic='-KPIC'
9774       lt_prog_compiler_static='-Bstatic'
9775       case $cc_basename in
9776       f77* | f90* | f95*)
9777         lt_prog_compiler_wl='-Qoption ld ';;
9778       *)
9779         lt_prog_compiler_wl='-Wl,';;
9780       esac
9781       ;;
9782
9783     sunos4*)
9784       lt_prog_compiler_wl='-Qoption ld '
9785       lt_prog_compiler_pic='-PIC'
9786       lt_prog_compiler_static='-Bstatic'
9787       ;;
9788
9789     sysv4 | sysv4.2uw2* | sysv4.3*)
9790       lt_prog_compiler_wl='-Wl,'
9791       lt_prog_compiler_pic='-KPIC'
9792       lt_prog_compiler_static='-Bstatic'
9793       ;;
9794
9795     sysv4*MP*)
9796       if test -d /usr/nec ;then
9797         lt_prog_compiler_pic='-Kconform_pic'
9798         lt_prog_compiler_static='-Bstatic'
9799       fi
9800       ;;
9801
9802     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9803       lt_prog_compiler_wl='-Wl,'
9804       lt_prog_compiler_pic='-KPIC'
9805       lt_prog_compiler_static='-Bstatic'
9806       ;;
9807
9808     unicos*)
9809       lt_prog_compiler_wl='-Wl,'
9810       lt_prog_compiler_can_build_shared=no
9811       ;;
9812
9813     uts4*)
9814       lt_prog_compiler_pic='-pic'
9815       lt_prog_compiler_static='-Bstatic'
9816       ;;
9817
9818     *)
9819       lt_prog_compiler_can_build_shared=no
9820       ;;
9821     esac
9822   fi
9823
9824 case $host_os in
9825   # For platforms which do not support PIC, -DPIC is meaningless:
9826   *djgpp*)
9827     lt_prog_compiler_pic=
9828     ;;
9829   *)
9830     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9831     ;;
9832 esac
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9834 $as_echo "$lt_prog_compiler_pic" >&6; }
9835
9836
9837
9838
9839
9840
9841 #
9842 # Check to make sure the PIC flag actually works.
9843 #
9844 if test -n "$lt_prog_compiler_pic"; then
9845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9846 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9847 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9848   $as_echo_n "(cached) " >&6
9849 else
9850   lt_cv_prog_compiler_pic_works=no
9851    ac_outfile=conftest.$ac_objext
9852    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9853    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9854    # Insert the option either (1) after the last *FLAGS variable, or
9855    # (2) before a word containing "conftest.", or (3) at the end.
9856    # Note that $ac_compile itself does not contain backslashes and begins
9857    # with a dollar sign (not a hyphen), so the echo should work correctly.
9858    # The option is referenced via a variable to avoid confusing sed.
9859    lt_compile=`echo "$ac_compile" | $SED \
9860    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9861    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9862    -e 's:$: $lt_compiler_flag:'`
9863    (eval echo "\"\$as_me:9863: $lt_compile\"" >&5)
9864    (eval "$lt_compile" 2>conftest.err)
9865    ac_status=$?
9866    cat conftest.err >&5
9867    echo "$as_me:9867: \$? = $ac_status" >&5
9868    if (exit $ac_status) && test -s "$ac_outfile"; then
9869      # The compiler can only warn and ignore the option if not recognized
9870      # So say no if there are warnings other than the usual output.
9871      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9872      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9873      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9874        lt_cv_prog_compiler_pic_works=yes
9875      fi
9876    fi
9877    $RM conftest*
9878
9879 fi
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9881 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9882
9883 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9884     case $lt_prog_compiler_pic in
9885      "" | " "*) ;;
9886      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9887      esac
9888 else
9889     lt_prog_compiler_pic=
9890      lt_prog_compiler_can_build_shared=no
9891 fi
9892
9893 fi
9894
9895
9896
9897
9898
9899
9900 #
9901 # Check to make sure the static flag actually works.
9902 #
9903 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9905 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9906 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9907   $as_echo_n "(cached) " >&6
9908 else
9909   lt_cv_prog_compiler_static_works=no
9910    save_LDFLAGS="$LDFLAGS"
9911    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9912    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9913    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9914      # The linker can only warn and ignore the option if not recognized
9915      # So say no if there are warnings
9916      if test -s conftest.err; then
9917        # Append any errors to the config.log.
9918        cat conftest.err 1>&5
9919        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9920        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9921        if diff conftest.exp conftest.er2 >/dev/null; then
9922          lt_cv_prog_compiler_static_works=yes
9923        fi
9924      else
9925        lt_cv_prog_compiler_static_works=yes
9926      fi
9927    fi
9928    $RM -r conftest*
9929    LDFLAGS="$save_LDFLAGS"
9930
9931 fi
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9933 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9934
9935 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9936     :
9937 else
9938     lt_prog_compiler_static=
9939 fi
9940
9941
9942
9943
9944
9945
9946
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9948 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9949 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9950   $as_echo_n "(cached) " >&6
9951 else
9952   lt_cv_prog_compiler_c_o=no
9953    $RM -r conftest 2>/dev/null
9954    mkdir conftest
9955    cd conftest
9956    mkdir out
9957    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9958
9959    lt_compiler_flag="-o out/conftest2.$ac_objext"
9960    # Insert the option either (1) after the last *FLAGS variable, or
9961    # (2) before a word containing "conftest.", or (3) at the end.
9962    # Note that $ac_compile itself does not contain backslashes and begins
9963    # with a dollar sign (not a hyphen), so the echo should work correctly.
9964    lt_compile=`echo "$ac_compile" | $SED \
9965    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9967    -e 's:$: $lt_compiler_flag:'`
9968    (eval echo "\"\$as_me:9968: $lt_compile\"" >&5)
9969    (eval "$lt_compile" 2>out/conftest.err)
9970    ac_status=$?
9971    cat out/conftest.err >&5
9972    echo "$as_me:9972: \$? = $ac_status" >&5
9973    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9974    then
9975      # The compiler can only warn and ignore the option if not recognized
9976      # So say no if there are warnings
9977      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9978      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9979      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9980        lt_cv_prog_compiler_c_o=yes
9981      fi
9982    fi
9983    chmod u+w . 2>&5
9984    $RM conftest*
9985    # SGI C++ compiler will create directory out/ii_files/ for
9986    # template instantiation
9987    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9988    $RM out/* && rmdir out
9989    cd ..
9990    $RM -r conftest
9991    $RM conftest*
9992
9993 fi
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9995 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9996
9997
9998
9999
10000
10001
10002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10003 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10004 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10005   $as_echo_n "(cached) " >&6
10006 else
10007   lt_cv_prog_compiler_c_o=no
10008    $RM -r conftest 2>/dev/null
10009    mkdir conftest
10010    cd conftest
10011    mkdir out
10012    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10013
10014    lt_compiler_flag="-o out/conftest2.$ac_objext"
10015    # Insert the option either (1) after the last *FLAGS variable, or
10016    # (2) before a word containing "conftest.", or (3) at the end.
10017    # Note that $ac_compile itself does not contain backslashes and begins
10018    # with a dollar sign (not a hyphen), so the echo should work correctly.
10019    lt_compile=`echo "$ac_compile" | $SED \
10020    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10021    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10022    -e 's:$: $lt_compiler_flag:'`
10023    (eval echo "\"\$as_me:10023: $lt_compile\"" >&5)
10024    (eval "$lt_compile" 2>out/conftest.err)
10025    ac_status=$?
10026    cat out/conftest.err >&5
10027    echo "$as_me:10027: \$? = $ac_status" >&5
10028    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10029    then
10030      # The compiler can only warn and ignore the option if not recognized
10031      # So say no if there are warnings
10032      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10033      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10034      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10035        lt_cv_prog_compiler_c_o=yes
10036      fi
10037    fi
10038    chmod u+w . 2>&5
10039    $RM conftest*
10040    # SGI C++ compiler will create directory out/ii_files/ for
10041    # template instantiation
10042    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10043    $RM out/* && rmdir out
10044    cd ..
10045    $RM -r conftest
10046    $RM conftest*
10047
10048 fi
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10050 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10051
10052
10053
10054
10055 hard_links="nottested"
10056 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10057   # do not overwrite the value of need_locks provided by the user
10058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10059 $as_echo_n "checking if we can lock with hard links... " >&6; }
10060   hard_links=yes
10061   $RM conftest*
10062   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10063   touch conftest.a
10064   ln conftest.a conftest.b 2>&5 || hard_links=no
10065   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10067 $as_echo "$hard_links" >&6; }
10068   if test "$hard_links" = no; then
10069     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10070 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10071     need_locks=warn
10072   fi
10073 else
10074   need_locks=no
10075 fi
10076
10077
10078
10079
10080
10081
10082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10083 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10084
10085   runpath_var=
10086   allow_undefined_flag=
10087   always_export_symbols=no
10088   archive_cmds=
10089   archive_expsym_cmds=
10090   compiler_needs_object=no
10091   enable_shared_with_static_runtimes=no
10092   export_dynamic_flag_spec=
10093   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10094   hardcode_automatic=no
10095   hardcode_direct=no
10096   hardcode_direct_absolute=no
10097   hardcode_libdir_flag_spec=
10098   hardcode_libdir_flag_spec_ld=
10099   hardcode_libdir_separator=
10100   hardcode_minus_L=no
10101   hardcode_shlibpath_var=unsupported
10102   inherit_rpath=no
10103   link_all_deplibs=unknown
10104   module_cmds=
10105   module_expsym_cmds=
10106   old_archive_from_new_cmds=
10107   old_archive_from_expsyms_cmds=
10108   thread_safe_flag_spec=
10109   whole_archive_flag_spec=
10110   # include_expsyms should be a list of space-separated symbols to be *always*
10111   # included in the symbol list
10112   include_expsyms=
10113   # exclude_expsyms can be an extended regexp of symbols to exclude
10114   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10115   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10116   # as well as any symbol that contains `d'.
10117   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10118   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10119   # platforms (ab)use it in PIC code, but their linkers get confused if
10120   # the symbol is explicitly referenced.  Since portable code cannot
10121   # rely on this symbol name, it's probably fine to never include it in
10122   # preloaded symbol tables.
10123   # Exclude shared library initialization/finalization symbols.
10124   extract_expsyms_cmds=
10125
10126   case $host_os in
10127   cygwin* | mingw* | pw32* | cegcc*)
10128     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10129     # When not using gcc, we currently assume that we are using
10130     # Microsoft Visual C++.
10131     if test "$GCC" != yes; then
10132       with_gnu_ld=no
10133     fi
10134     ;;
10135   interix*)
10136     # we just hope/assume this is gcc and not c89 (= MSVC++)
10137     with_gnu_ld=yes
10138     ;;
10139   openbsd*)
10140     with_gnu_ld=no
10141     ;;
10142   esac
10143
10144   ld_shlibs=yes
10145   if test "$with_gnu_ld" = yes; then
10146     # If archive_cmds runs LD, not CC, wlarc should be empty
10147     wlarc='${wl}'
10148
10149     # Set some defaults for GNU ld with shared library support. These
10150     # are reset later if shared libraries are not supported. Putting them
10151     # here allows them to be overridden if necessary.
10152     runpath_var=LD_RUN_PATH
10153     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154     export_dynamic_flag_spec='${wl}--export-dynamic'
10155     # ancient GNU ld didn't support --whole-archive et. al.
10156     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10157       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10158     else
10159       whole_archive_flag_spec=
10160     fi
10161     supports_anon_versioning=no
10162     case `$LD -v 2>&1` in
10163       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10164       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10165       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10166       *\ 2.11.*) ;; # other 2.11 versions
10167       *) supports_anon_versioning=yes ;;
10168     esac
10169
10170     # See if GNU ld supports shared libraries.
10171     case $host_os in
10172     aix[3-9]*)
10173       # On AIX/PPC, the GNU linker is very broken
10174       if test "$host_cpu" != ia64; then
10175         ld_shlibs=no
10176         cat <<_LT_EOF 1>&2
10177
10178 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10179 *** to be unable to reliably create shared libraries on AIX.
10180 *** Therefore, libtool is disabling shared libraries support.  If you
10181 *** really care for shared libraries, you may want to modify your PATH
10182 *** so that a non-GNU linker is found, and then restart.
10183
10184 _LT_EOF
10185       fi
10186       ;;
10187
10188     amigaos*)
10189       case $host_cpu in
10190       powerpc)
10191             # see comment about AmigaOS4 .so support
10192             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10193             archive_expsym_cmds=''
10194         ;;
10195       m68k)
10196             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)'
10197             hardcode_libdir_flag_spec='-L$libdir'
10198             hardcode_minus_L=yes
10199         ;;
10200       esac
10201       ;;
10202
10203     beos*)
10204       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10205         allow_undefined_flag=unsupported
10206         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10207         # support --undefined.  This deserves some investigation.  FIXME
10208         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10209       else
10210         ld_shlibs=no
10211       fi
10212       ;;
10213
10214     cygwin* | mingw* | pw32* | cegcc*)
10215       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10216       # as there is no search path for DLLs.
10217       hardcode_libdir_flag_spec='-L$libdir'
10218       allow_undefined_flag=unsupported
10219       always_export_symbols=no
10220       enable_shared_with_static_runtimes=yes
10221       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10222
10223       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10224         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10225         # If the export-symbols file already is a .def file (1st line
10226         # is EXPORTS), use it as is; otherwise, prepend...
10227         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10228           cp $export_symbols $output_objdir/$soname.def;
10229         else
10230           echo EXPORTS > $output_objdir/$soname.def;
10231           cat $export_symbols >> $output_objdir/$soname.def;
10232         fi~
10233         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10234       else
10235         ld_shlibs=no
10236       fi
10237       ;;
10238
10239     interix[3-9]*)
10240       hardcode_direct=no
10241       hardcode_shlibpath_var=no
10242       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10243       export_dynamic_flag_spec='${wl}-E'
10244       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10245       # Instead, shared libraries are loaded at an image base (0x10000000 by
10246       # default) and relocated if they conflict, which is a slow very memory
10247       # consuming and fragmenting process.  To avoid this, we pick a random,
10248       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10249       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10250       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10251       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'
10252       ;;
10253
10254     gnu* | linux* | tpf* | k*bsd*-gnu)
10255       tmp_diet=no
10256       if test "$host_os" = linux-dietlibc; then
10257         case $cc_basename in
10258           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10259         esac
10260       fi
10261       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10262          && test "$tmp_diet" = no
10263       then
10264         tmp_addflag=
10265         tmp_sharedflag='-shared'
10266         case $cc_basename,$host_cpu in
10267         pgcc*)                          # Portland Group C compiler
10268           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'
10269           tmp_addflag=' $pic_flag'
10270           ;;
10271         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10272           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'
10273           tmp_addflag=' $pic_flag -Mnomain' ;;
10274         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10275           tmp_addflag=' -i_dynamic' ;;
10276         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10277           tmp_addflag=' -i_dynamic -nofor_main' ;;
10278         ifc* | ifort*)                  # Intel Fortran compiler
10279           tmp_addflag=' -nofor_main' ;;
10280         lf95*)                          # Lahey Fortran 8.1
10281           whole_archive_flag_spec=
10282           tmp_sharedflag='--shared' ;;
10283         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10284           tmp_sharedflag='-qmkshrobj'
10285           tmp_addflag= ;;
10286         esac
10287         case `$CC -V 2>&1 | sed 5q` in
10288         *Sun\ C*)                       # Sun C 5.9
10289           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'
10290           compiler_needs_object=yes
10291           tmp_sharedflag='-G' ;;
10292         *Sun\ F*)                       # Sun Fortran 8.3
10293           tmp_sharedflag='-G' ;;
10294         esac
10295         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10296
10297         if test "x$supports_anon_versioning" = xyes; then
10298           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10299             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10300             echo "local: *; };" >> $output_objdir/$libname.ver~
10301             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10302         fi
10303
10304         case $cc_basename in
10305         xlf*)
10306           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10307           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10308           hardcode_libdir_flag_spec=
10309           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10310           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10311           if test "x$supports_anon_versioning" = xyes; then
10312             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10313               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10314               echo "local: *; };" >> $output_objdir/$libname.ver~
10315               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10316           fi
10317           ;;
10318         esac
10319       else
10320         ld_shlibs=no
10321       fi
10322       ;;
10323
10324     netbsd*)
10325       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10326         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10327         wlarc=
10328       else
10329         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10330         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10331       fi
10332       ;;
10333
10334     solaris*)
10335       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10336         ld_shlibs=no
10337         cat <<_LT_EOF 1>&2
10338
10339 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10340 *** create shared libraries on Solaris systems.  Therefore, libtool
10341 *** is disabling shared libraries support.  We urge you to upgrade GNU
10342 *** binutils to release 2.9.1 or newer.  Another option is to modify
10343 *** your PATH or compiler configuration so that the native linker is
10344 *** used, and then restart.
10345
10346 _LT_EOF
10347       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10348         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10349         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10350       else
10351         ld_shlibs=no
10352       fi
10353       ;;
10354
10355     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10356       case `$LD -v 2>&1` in
10357         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10358         ld_shlibs=no
10359         cat <<_LT_EOF 1>&2
10360
10361 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10362 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10363 *** is disabling shared libraries support.  We urge you to upgrade GNU
10364 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10365 *** your PATH or compiler configuration so that the native linker is
10366 *** used, and then restart.
10367
10368 _LT_EOF
10369         ;;
10370         *)
10371           # For security reasons, it is highly recommended that you always
10372           # use absolute paths for naming shared libraries, and exclude the
10373           # DT_RUNPATH tag from executables and libraries.  But doing so
10374           # requires that you compile everything twice, which is a pain.
10375           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10376             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10377             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10378             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10379           else
10380             ld_shlibs=no
10381           fi
10382         ;;
10383       esac
10384       ;;
10385
10386     sunos4*)
10387       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10388       wlarc=
10389       hardcode_direct=yes
10390       hardcode_shlibpath_var=no
10391       ;;
10392
10393     *)
10394       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10395         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10396         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10397       else
10398         ld_shlibs=no
10399       fi
10400       ;;
10401     esac
10402
10403     if test "$ld_shlibs" = no; then
10404       runpath_var=
10405       hardcode_libdir_flag_spec=
10406       export_dynamic_flag_spec=
10407       whole_archive_flag_spec=
10408     fi
10409   else
10410     # PORTME fill in a description of your system's linker (not GNU ld)
10411     case $host_os in
10412     aix3*)
10413       allow_undefined_flag=unsupported
10414       always_export_symbols=yes
10415       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'
10416       # Note: this linker hardcodes the directories in LIBPATH if there
10417       # are no directories specified by -L.
10418       hardcode_minus_L=yes
10419       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10420         # Neither direct hardcoding nor static linking is supported with a
10421         # broken collect2.
10422         hardcode_direct=unsupported
10423       fi
10424       ;;
10425
10426     aix[4-9]*)
10427       if test "$host_cpu" = ia64; then
10428         # On IA64, the linker does run time linking by default, so we don't
10429         # have to do anything special.
10430         aix_use_runtimelinking=no
10431         exp_sym_flag='-Bexport'
10432         no_entry_flag=""
10433       else
10434         # If we're using GNU nm, then we don't want the "-C" option.
10435         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10436         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10437           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'
10438         else
10439           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'
10440         fi
10441         aix_use_runtimelinking=no
10442
10443         # Test if we are trying to use run time linking or normal
10444         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10445         # need to do runtime linking.
10446         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10447           for ld_flag in $LDFLAGS; do
10448           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10449             aix_use_runtimelinking=yes
10450             break
10451           fi
10452           done
10453           ;;
10454         esac
10455
10456         exp_sym_flag='-bexport'
10457         no_entry_flag='-bnoentry'
10458       fi
10459
10460       # When large executables or shared objects are built, AIX ld can
10461       # have problems creating the table of contents.  If linking a library
10462       # or program results in "error TOC overflow" add -mminimal-toc to
10463       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10464       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10465
10466       archive_cmds=''
10467       hardcode_direct=yes
10468       hardcode_direct_absolute=yes
10469       hardcode_libdir_separator=':'
10470       link_all_deplibs=yes
10471       file_list_spec='${wl}-f,'
10472
10473       if test "$GCC" = yes; then
10474         case $host_os in aix4.[012]|aix4.[012].*)
10475         # We only want to do this on AIX 4.2 and lower, the check
10476         # below for broken collect2 doesn't work under 4.3+
10477           collect2name=`${CC} -print-prog-name=collect2`
10478           if test -f "$collect2name" &&
10479            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10480           then
10481           # We have reworked collect2
10482           :
10483           else
10484           # We have old collect2
10485           hardcode_direct=unsupported
10486           # It fails to find uninstalled libraries when the uninstalled
10487           # path is not listed in the libpath.  Setting hardcode_minus_L
10488           # to unsupported forces relinking
10489           hardcode_minus_L=yes
10490           hardcode_libdir_flag_spec='-L$libdir'
10491           hardcode_libdir_separator=
10492           fi
10493           ;;
10494         esac
10495         shared_flag='-shared'
10496         if test "$aix_use_runtimelinking" = yes; then
10497           shared_flag="$shared_flag "'${wl}-G'
10498         fi
10499       else
10500         # not using gcc
10501         if test "$host_cpu" = ia64; then
10502         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10503         # chokes on -Wl,-G. The following line is correct:
10504           shared_flag='-G'
10505         else
10506           if test "$aix_use_runtimelinking" = yes; then
10507             shared_flag='${wl}-G'
10508           else
10509             shared_flag='${wl}-bM:SRE'
10510           fi
10511         fi
10512       fi
10513
10514       export_dynamic_flag_spec='${wl}-bexpall'
10515       # It seems that -bexpall does not export symbols beginning with
10516       # underscore (_), so it is better to generate a list of symbols to export.
10517       always_export_symbols=yes
10518       if test "$aix_use_runtimelinking" = yes; then
10519         # Warning - without using the other runtime loading flags (-brtl),
10520         # -berok will link without error, but may produce a broken library.
10521         allow_undefined_flag='-berok'
10522         # Determine the default libpath from the value encoded in an
10523         # empty executable.
10524         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h.  */
10526
10527 int
10528 main ()
10529 {
10530
10531   ;
10532   return 0;
10533 }
10534 _ACEOF
10535 if ac_fn_c_try_link "$LINENO"; then :
10536
10537 lt_aix_libpath_sed='
10538     /Import File Strings/,/^$/ {
10539         /^0/ {
10540             s/^0  *\(.*\)$/\1/
10541             p
10542         }
10543     }'
10544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 # Check for a 64-bit object if we didn't find anything.
10546 if test -z "$aix_libpath"; then
10547   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548 fi
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext \
10551     conftest$ac_exeext conftest.$ac_ext
10552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10553
10554         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10555         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"
10556       else
10557         if test "$host_cpu" = ia64; then
10558           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10559           allow_undefined_flag="-z nodefs"
10560           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"
10561         else
10562          # Determine the default libpath from the value encoded in an
10563          # empty executable.
10564          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h.  */
10566
10567 int
10568 main ()
10569 {
10570
10571   ;
10572   return 0;
10573 }
10574 _ACEOF
10575 if ac_fn_c_try_link "$LINENO"; then :
10576
10577 lt_aix_libpath_sed='
10578     /Import File Strings/,/^$/ {
10579         /^0/ {
10580             s/^0  *\(.*\)$/\1/
10581             p
10582         }
10583     }'
10584 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10585 # Check for a 64-bit object if we didn't find anything.
10586 if test -z "$aix_libpath"; then
10587   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10588 fi
10589 fi
10590 rm -f core conftest.err conftest.$ac_objext \
10591     conftest$ac_exeext conftest.$ac_ext
10592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10593
10594          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10595           # Warning - without using the other run time loading flags,
10596           # -berok will link without error, but may produce a broken library.
10597           no_undefined_flag=' ${wl}-bernotok'
10598           allow_undefined_flag=' ${wl}-berok'
10599           # Exported symbols can be pulled into shared objects from archives
10600           whole_archive_flag_spec='$convenience'
10601           archive_cmds_need_lc=yes
10602           # This is similar to how AIX traditionally builds its shared libraries.
10603           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'
10604         fi
10605       fi
10606       ;;
10607
10608     amigaos*)
10609       case $host_cpu in
10610       powerpc)
10611             # see comment about AmigaOS4 .so support
10612             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10613             archive_expsym_cmds=''
10614         ;;
10615       m68k)
10616             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)'
10617             hardcode_libdir_flag_spec='-L$libdir'
10618             hardcode_minus_L=yes
10619         ;;
10620       esac
10621       ;;
10622
10623     bsdi[45]*)
10624       export_dynamic_flag_spec=-rdynamic
10625       ;;
10626
10627     cygwin* | mingw* | pw32* | cegcc*)
10628       # When not using gcc, we currently assume that we are using
10629       # Microsoft Visual C++.
10630       # hardcode_libdir_flag_spec is actually meaningless, as there is
10631       # no search path for DLLs.
10632       hardcode_libdir_flag_spec=' '
10633       allow_undefined_flag=unsupported
10634       # Tell ltmain to make .lib files, not .a files.
10635       libext=lib
10636       # Tell ltmain to make .dll files, not .so files.
10637       shrext_cmds=".dll"
10638       # FIXME: Setting linknames here is a bad hack.
10639       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10640       # The linker will automatically build a .lib file if we build a DLL.
10641       old_archive_from_new_cmds='true'
10642       # FIXME: Should let the user specify the lib program.
10643       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10644       fix_srcfile_path='`cygpath -w "$srcfile"`'
10645       enable_shared_with_static_runtimes=yes
10646       ;;
10647
10648     darwin* | rhapsody*)
10649
10650
10651   archive_cmds_need_lc=no
10652   hardcode_direct=no
10653   hardcode_automatic=yes
10654   hardcode_shlibpath_var=unsupported
10655   whole_archive_flag_spec=''
10656   link_all_deplibs=yes
10657   allow_undefined_flag="$_lt_dar_allow_undefined"
10658   case $cc_basename in
10659      ifort*) _lt_dar_can_shared=yes ;;
10660      *) _lt_dar_can_shared=$GCC ;;
10661   esac
10662   if test "$_lt_dar_can_shared" = "yes"; then
10663     output_verbose_link_cmd=echo
10664     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10665     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10666     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}"
10667     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}"
10668
10669   else
10670   ld_shlibs=no
10671   fi
10672
10673       ;;
10674
10675     dgux*)
10676       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10677       hardcode_libdir_flag_spec='-L$libdir'
10678       hardcode_shlibpath_var=no
10679       ;;
10680
10681     freebsd1*)
10682       ld_shlibs=no
10683       ;;
10684
10685     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10686     # support.  Future versions do this automatically, but an explicit c++rt0.o
10687     # does not break anything, and helps significantly (at the cost of a little
10688     # extra space).
10689     freebsd2.2*)
10690       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10691       hardcode_libdir_flag_spec='-R$libdir'
10692       hardcode_direct=yes
10693       hardcode_shlibpath_var=no
10694       ;;
10695
10696     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10697     freebsd2*)
10698       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10699       hardcode_direct=yes
10700       hardcode_minus_L=yes
10701       hardcode_shlibpath_var=no
10702       ;;
10703
10704     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10705     freebsd* | dragonfly*)
10706       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10707       hardcode_libdir_flag_spec='-R$libdir'
10708       hardcode_direct=yes
10709       hardcode_shlibpath_var=no
10710       ;;
10711
10712     hpux9*)
10713       if test "$GCC" = yes; then
10714         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'
10715       else
10716         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'
10717       fi
10718       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10719       hardcode_libdir_separator=:
10720       hardcode_direct=yes
10721
10722       # hardcode_minus_L: Not really in the search PATH,
10723       # but as the default location of the library.
10724       hardcode_minus_L=yes
10725       export_dynamic_flag_spec='${wl}-E'
10726       ;;
10727
10728     hpux10*)
10729       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10730         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10731       else
10732         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10733       fi
10734       if test "$with_gnu_ld" = no; then
10735         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10736         hardcode_libdir_flag_spec_ld='+b $libdir'
10737         hardcode_libdir_separator=:
10738         hardcode_direct=yes
10739         hardcode_direct_absolute=yes
10740         export_dynamic_flag_spec='${wl}-E'
10741         # hardcode_minus_L: Not really in the search PATH,
10742         # but as the default location of the library.
10743         hardcode_minus_L=yes
10744       fi
10745       ;;
10746
10747     hpux11*)
10748       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10749         case $host_cpu in
10750         hppa*64*)
10751           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10752           ;;
10753         ia64*)
10754           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10755           ;;
10756         *)
10757           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10758           ;;
10759         esac
10760       else
10761         case $host_cpu in
10762         hppa*64*)
10763           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10764           ;;
10765         ia64*)
10766           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10767           ;;
10768         *)
10769           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10770           ;;
10771         esac
10772       fi
10773       if test "$with_gnu_ld" = no; then
10774         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10775         hardcode_libdir_separator=:
10776
10777         case $host_cpu in
10778         hppa*64*|ia64*)
10779           hardcode_direct=no
10780           hardcode_shlibpath_var=no
10781           ;;
10782         *)
10783           hardcode_direct=yes
10784           hardcode_direct_absolute=yes
10785           export_dynamic_flag_spec='${wl}-E'
10786
10787           # hardcode_minus_L: Not really in the search PATH,
10788           # but as the default location of the library.
10789           hardcode_minus_L=yes
10790           ;;
10791         esac
10792       fi
10793       ;;
10794
10795     irix5* | irix6* | nonstopux*)
10796       if test "$GCC" = yes; then
10797         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'
10798         # Try to use the -exported_symbol ld option, if it does not
10799         # work, assume that -exports_file does not work either and
10800         # implicitly export all symbols.
10801         save_LDFLAGS="$LDFLAGS"
10802         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10803         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h.  */
10805 int foo(void) {}
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808   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'
10809
10810 fi
10811 rm -f core conftest.err conftest.$ac_objext \
10812     conftest$ac_exeext conftest.$ac_ext
10813         LDFLAGS="$save_LDFLAGS"
10814       else
10815         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'
10816         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'
10817       fi
10818       archive_cmds_need_lc='no'
10819       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820       hardcode_libdir_separator=:
10821       inherit_rpath=yes
10822       link_all_deplibs=yes
10823       ;;
10824
10825     netbsd*)
10826       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10827         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10828       else
10829         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10830       fi
10831       hardcode_libdir_flag_spec='-R$libdir'
10832       hardcode_direct=yes
10833       hardcode_shlibpath_var=no
10834       ;;
10835
10836     newsos6)
10837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10838       hardcode_direct=yes
10839       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10840       hardcode_libdir_separator=:
10841       hardcode_shlibpath_var=no
10842       ;;
10843
10844     *nto* | *qnx*)
10845       ;;
10846
10847     openbsd*)
10848       if test -f /usr/libexec/ld.so; then
10849         hardcode_direct=yes
10850         hardcode_shlibpath_var=no
10851         hardcode_direct_absolute=yes
10852         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10853           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10854           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10855           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10856           export_dynamic_flag_spec='${wl}-E'
10857         else
10858           case $host_os in
10859            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10860              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10861              hardcode_libdir_flag_spec='-R$libdir'
10862              ;;
10863            *)
10864              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10865              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10866              ;;
10867           esac
10868         fi
10869       else
10870         ld_shlibs=no
10871       fi
10872       ;;
10873
10874     os2*)
10875       hardcode_libdir_flag_spec='-L$libdir'
10876       hardcode_minus_L=yes
10877       allow_undefined_flag=unsupported
10878       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'
10879       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10880       ;;
10881
10882     osf3*)
10883       if test "$GCC" = yes; then
10884         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10885         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'
10886       else
10887         allow_undefined_flag=' -expect_unresolved \*'
10888         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'
10889       fi
10890       archive_cmds_need_lc='no'
10891       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10892       hardcode_libdir_separator=:
10893       ;;
10894
10895     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10896       if test "$GCC" = yes; then
10897         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10898         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'
10899         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10900       else
10901         allow_undefined_flag=' -expect_unresolved \*'
10902         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'
10903         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~
10904         $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'
10905
10906         # Both c and cxx compiler support -rpath directly
10907         hardcode_libdir_flag_spec='-rpath $libdir'
10908       fi
10909       archive_cmds_need_lc='no'
10910       hardcode_libdir_separator=:
10911       ;;
10912
10913     solaris*)
10914       no_undefined_flag=' -z defs'
10915       if test "$GCC" = yes; then
10916         wlarc='${wl}'
10917         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10918         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10919           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10920       else
10921         case `$CC -V 2>&1` in
10922         *"Compilers 5.0"*)
10923           wlarc=''
10924           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10925           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10926           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10927           ;;
10928         *)
10929           wlarc='${wl}'
10930           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10931           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10932           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10933           ;;
10934         esac
10935       fi
10936       hardcode_libdir_flag_spec='-R$libdir'
10937       hardcode_shlibpath_var=no
10938       case $host_os in
10939       solaris2.[0-5] | solaris2.[0-5].*) ;;
10940       *)
10941         # The compiler driver will combine and reorder linker options,
10942         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10943         # but is careful enough not to reorder.
10944         # Supported since Solaris 2.6 (maybe 2.5.1?)
10945         if test "$GCC" = yes; then
10946           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10947         else
10948           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10949         fi
10950         ;;
10951       esac
10952       link_all_deplibs=yes
10953       ;;
10954
10955     sunos4*)
10956       if test "x$host_vendor" = xsequent; then
10957         # Use $CC to link under sequent, because it throws in some extra .o
10958         # files that make .init and .fini sections work.
10959         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10960       else
10961         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10962       fi
10963       hardcode_libdir_flag_spec='-L$libdir'
10964       hardcode_direct=yes
10965       hardcode_minus_L=yes
10966       hardcode_shlibpath_var=no
10967       ;;
10968
10969     sysv4)
10970       case $host_vendor in
10971         sni)
10972           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973           hardcode_direct=yes # is this really true???
10974         ;;
10975         siemens)
10976           ## LD is ld it makes a PLAMLIB
10977           ## CC just makes a GrossModule.
10978           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10979           reload_cmds='$CC -r -o $output$reload_objs'
10980           hardcode_direct=no
10981         ;;
10982         motorola)
10983           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10985         ;;
10986       esac
10987       runpath_var='LD_RUN_PATH'
10988       hardcode_shlibpath_var=no
10989       ;;
10990
10991     sysv4.3*)
10992       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10993       hardcode_shlibpath_var=no
10994       export_dynamic_flag_spec='-Bexport'
10995       ;;
10996
10997     sysv4*MP*)
10998       if test -d /usr/nec; then
10999         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000         hardcode_shlibpath_var=no
11001         runpath_var=LD_RUN_PATH
11002         hardcode_runpath_var=yes
11003         ld_shlibs=yes
11004       fi
11005       ;;
11006
11007     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11008       no_undefined_flag='${wl}-z,text'
11009       archive_cmds_need_lc=no
11010       hardcode_shlibpath_var=no
11011       runpath_var='LD_RUN_PATH'
11012
11013       if test "$GCC" = yes; then
11014         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11016       else
11017         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11019       fi
11020       ;;
11021
11022     sysv5* | sco3.2v5* | sco5v6*)
11023       # Note: We can NOT use -z defs as we might desire, because we do not
11024       # link with -lc, and that would cause any symbols used from libc to
11025       # always be unresolved, which means just about no library would
11026       # ever link correctly.  If we're not using GNU ld we use -z text
11027       # though, which does catch some bad symbols but isn't as heavy-handed
11028       # as -z defs.
11029       no_undefined_flag='${wl}-z,text'
11030       allow_undefined_flag='${wl}-z,nodefs'
11031       archive_cmds_need_lc=no
11032       hardcode_shlibpath_var=no
11033       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11034       hardcode_libdir_separator=':'
11035       link_all_deplibs=yes
11036       export_dynamic_flag_spec='${wl}-Bexport'
11037       runpath_var='LD_RUN_PATH'
11038
11039       if test "$GCC" = yes; then
11040         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11042       else
11043         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11044         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11045       fi
11046       ;;
11047
11048     uts4*)
11049       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11050       hardcode_libdir_flag_spec='-L$libdir'
11051       hardcode_shlibpath_var=no
11052       ;;
11053
11054     *)
11055       ld_shlibs=no
11056       ;;
11057     esac
11058
11059     if test x$host_vendor = xsni; then
11060       case $host in
11061       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11062         export_dynamic_flag_spec='${wl}-Blargedynsym'
11063         ;;
11064       esac
11065     fi
11066   fi
11067
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11069 $as_echo "$ld_shlibs" >&6; }
11070 test "$ld_shlibs" = no && can_build_shared=no
11071
11072 with_gnu_ld=$with_gnu_ld
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088 #
11089 # Do we need to explicitly link libc?
11090 #
11091 case "x$archive_cmds_need_lc" in
11092 x|xyes)
11093   # Assume -lc should be added
11094   archive_cmds_need_lc=yes
11095
11096   if test "$enable_shared" = yes && test "$GCC" = yes; then
11097     case $archive_cmds in
11098     *'~'*)
11099       # FIXME: we may have to deal with multi-command sequences.
11100       ;;
11101     '$CC '*)
11102       # Test whether the compiler implicitly links with -lc since on some
11103       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11104       # to ld, don't add -lc before -lgcc.
11105       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11106 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11107       $RM conftest*
11108       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11109
11110       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11111   (eval $ac_compile) 2>&5
11112   ac_status=$?
11113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114   test $ac_status = 0; } 2>conftest.err; then
11115         soname=conftest
11116         lib=conftest
11117         libobjs=conftest.$ac_objext
11118         deplibs=
11119         wl=$lt_prog_compiler_wl
11120         pic_flag=$lt_prog_compiler_pic
11121         compiler_flags=-v
11122         linker_flags=-v
11123         verstring=
11124         output_objdir=.
11125         libname=conftest
11126         lt_save_allow_undefined_flag=$allow_undefined_flag
11127         allow_undefined_flag=
11128         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11129   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11130   ac_status=$?
11131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11132   test $ac_status = 0; }
11133         then
11134           archive_cmds_need_lc=no
11135         else
11136           archive_cmds_need_lc=yes
11137         fi
11138         allow_undefined_flag=$lt_save_allow_undefined_flag
11139       else
11140         cat conftest.err 1>&5
11141       fi
11142       $RM conftest*
11143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11144 $as_echo "$archive_cmds_need_lc" >&6; }
11145       ;;
11146     esac
11147   fi
11148   ;;
11149 esac
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
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11308 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11309
11310 if test "$GCC" = yes; then
11311   case $host_os in
11312     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11313     *) lt_awk_arg="/^libraries:/" ;;
11314   esac
11315   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11316   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11317     # if the path contains ";" then we assume it to be the separator
11318     # otherwise default to the standard path separator (i.e. ":") - it is
11319     # assumed that no part of a normal pathname contains ";" but that should
11320     # okay in the real world where ";" in dirpaths is itself problematic.
11321     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11322   else
11323     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11324   fi
11325   # Ok, now we have the path, separated by spaces, we can step through it
11326   # and add multilib dir if necessary.
11327   lt_tmp_lt_search_path_spec=
11328   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11329   for lt_sys_path in $lt_search_path_spec; do
11330     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11331       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11332     else
11333       test -d "$lt_sys_path" && \
11334         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11335     fi
11336   done
11337   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11338 BEGIN {RS=" "; FS="/|\n";} {
11339   lt_foo="";
11340   lt_count=0;
11341   for (lt_i = NF; lt_i > 0; lt_i--) {
11342     if ($lt_i != "" && $lt_i != ".") {
11343       if ($lt_i == "..") {
11344         lt_count++;
11345       } else {
11346         if (lt_count == 0) {
11347           lt_foo="/" $lt_i lt_foo;
11348         } else {
11349           lt_count--;
11350         }
11351       }
11352     }
11353   }
11354   if (lt_foo != "") { lt_freq[lt_foo]++; }
11355   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11356 }'`
11357   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11358 else
11359   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11360 fi
11361 library_names_spec=
11362 libname_spec='lib$name'
11363 soname_spec=
11364 shrext_cmds=".so"
11365 postinstall_cmds=
11366 postuninstall_cmds=
11367 finish_cmds=
11368 finish_eval=
11369 shlibpath_var=
11370 shlibpath_overrides_runpath=unknown
11371 version_type=none
11372 dynamic_linker="$host_os ld.so"
11373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11374 need_lib_prefix=unknown
11375 hardcode_into_libs=no
11376
11377 # when you set need_version to no, make sure it does not cause -set_version
11378 # flags to be left without arguments
11379 need_version=unknown
11380
11381 case $host_os in
11382 aix3*)
11383   version_type=linux
11384   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11385   shlibpath_var=LIBPATH
11386
11387   # AIX 3 has no versioning support, so we append a major version to the name.
11388   soname_spec='${libname}${release}${shared_ext}$major'
11389   ;;
11390
11391 aix[4-9]*)
11392   version_type=linux
11393   need_lib_prefix=no
11394   need_version=no
11395   hardcode_into_libs=yes
11396   if test "$host_cpu" = ia64; then
11397     # AIX 5 supports IA64
11398     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11399     shlibpath_var=LD_LIBRARY_PATH
11400   else
11401     # With GCC up to 2.95.x, collect2 would create an import file
11402     # for dependence libraries.  The import file would start with
11403     # the line `#! .'.  This would cause the generated library to
11404     # depend on `.', always an invalid library.  This was fixed in
11405     # development snapshots of GCC prior to 3.0.
11406     case $host_os in
11407       aix4 | aix4.[01] | aix4.[01].*)
11408       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11409            echo ' yes '
11410            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11411         :
11412       else
11413         can_build_shared=no
11414       fi
11415       ;;
11416     esac
11417     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11418     # soname into executable. Probably we can add versioning support to
11419     # collect2, so additional links can be useful in future.
11420     if test "$aix_use_runtimelinking" = yes; then
11421       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11422       # instead of lib<name>.a to let people know that these are not
11423       # typical AIX shared libraries.
11424       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425     else
11426       # We preserve .a as extension for shared libraries through AIX4.2
11427       # and later when we are not doing run time linking.
11428       library_names_spec='${libname}${release}.a $libname.a'
11429       soname_spec='${libname}${release}${shared_ext}$major'
11430     fi
11431     shlibpath_var=LIBPATH
11432   fi
11433   ;;
11434
11435 amigaos*)
11436   case $host_cpu in
11437   powerpc)
11438     # Since July 2007 AmigaOS4 officially supports .so libraries.
11439     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11441     ;;
11442   m68k)
11443     library_names_spec='$libname.ixlibrary $libname.a'
11444     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11445     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'
11446     ;;
11447   esac
11448   ;;
11449
11450 beos*)
11451   library_names_spec='${libname}${shared_ext}'
11452   dynamic_linker="$host_os ld.so"
11453   shlibpath_var=LIBRARY_PATH
11454   ;;
11455
11456 bsdi[45]*)
11457   version_type=linux
11458   need_version=no
11459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11460   soname_spec='${libname}${release}${shared_ext}$major'
11461   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11462   shlibpath_var=LD_LIBRARY_PATH
11463   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11464   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11465   # the default ld.so.conf also contains /usr/contrib/lib and
11466   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11467   # libtool to hard-code these into programs
11468   ;;
11469
11470 cygwin* | mingw* | pw32* | cegcc*)
11471   version_type=windows
11472   shrext_cmds=".dll"
11473   need_version=no
11474   need_lib_prefix=no
11475
11476   case $GCC,$host_os in
11477   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11478     library_names_spec='$libname.dll.a'
11479     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11480     postinstall_cmds='base_file=`basename \${file}`~
11481       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11482       dldir=$destdir/`dirname \$dlpath`~
11483       test -d \$dldir || mkdir -p \$dldir~
11484       $install_prog $dir/$dlname \$dldir/$dlname~
11485       chmod a+x \$dldir/$dlname~
11486       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11487         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11488       fi'
11489     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11490       dlpath=$dir/\$dldll~
11491        $RM \$dlpath'
11492     shlibpath_overrides_runpath=yes
11493
11494     case $host_os in
11495     cygwin*)
11496       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11497       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11498       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11499       ;;
11500     mingw* | cegcc*)
11501       # MinGW DLLs use traditional 'lib' prefix
11502       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11503       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11504       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11505         # It is most probably a Windows format PATH printed by
11506         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11507         # path with ; separators, and with drive letters. We can handle the
11508         # drive letters (cygwin fileutils understands them), so leave them,
11509         # especially as we might pass files found there to a mingw objdump,
11510         # which wouldn't understand a cygwinified path. Ahh.
11511         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11512       else
11513         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11514       fi
11515       ;;
11516     pw32*)
11517       # pw32 DLLs use 'pw' prefix rather than 'lib'
11518       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11519       ;;
11520     esac
11521     ;;
11522
11523   *)
11524     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11525     ;;
11526   esac
11527   dynamic_linker='Win32 ld.exe'
11528   # FIXME: first we should search . and the directory the executable is in
11529   shlibpath_var=PATH
11530   ;;
11531
11532 darwin* | rhapsody*)
11533   dynamic_linker="$host_os dyld"
11534   version_type=darwin
11535   need_lib_prefix=no
11536   need_version=no
11537   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11538   soname_spec='${libname}${release}${major}$shared_ext'
11539   shlibpath_overrides_runpath=yes
11540   shlibpath_var=DYLD_LIBRARY_PATH
11541   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11542
11543   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11544   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11545   ;;
11546
11547 dgux*)
11548   version_type=linux
11549   need_lib_prefix=no
11550   need_version=no
11551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11552   soname_spec='${libname}${release}${shared_ext}$major'
11553   shlibpath_var=LD_LIBRARY_PATH
11554   ;;
11555
11556 freebsd1*)
11557   dynamic_linker=no
11558   ;;
11559
11560 freebsd* | dragonfly*)
11561   # DragonFly does not have aout.  When/if they implement a new
11562   # versioning mechanism, adjust this.
11563   if test -x /usr/bin/objformat; then
11564     objformat=`/usr/bin/objformat`
11565   else
11566     case $host_os in
11567     freebsd[123]*) objformat=aout ;;
11568     *) objformat=elf ;;
11569     esac
11570   fi
11571   version_type=freebsd-$objformat
11572   case $version_type in
11573     freebsd-elf*)
11574       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11575       need_version=no
11576       need_lib_prefix=no
11577       ;;
11578     freebsd-*)
11579       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11580       need_version=yes
11581       ;;
11582   esac
11583   shlibpath_var=LD_LIBRARY_PATH
11584   case $host_os in
11585   freebsd2*)
11586     shlibpath_overrides_runpath=yes
11587     ;;
11588   freebsd3.[01]* | freebsdelf3.[01]*)
11589     shlibpath_overrides_runpath=yes
11590     hardcode_into_libs=yes
11591     ;;
11592   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11593   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11594     shlibpath_overrides_runpath=no
11595     hardcode_into_libs=yes
11596     ;;
11597   *) # from 4.6 on, and DragonFly
11598     shlibpath_overrides_runpath=yes
11599     hardcode_into_libs=yes
11600     ;;
11601   esac
11602   ;;
11603
11604 gnu*)
11605   version_type=linux
11606   need_lib_prefix=no
11607   need_version=no
11608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11609   soname_spec='${libname}${release}${shared_ext}$major'
11610   shlibpath_var=LD_LIBRARY_PATH
11611   hardcode_into_libs=yes
11612   ;;
11613
11614 hpux9* | hpux10* | hpux11*)
11615   # Give a soname corresponding to the major version so that dld.sl refuses to
11616   # link against other versions.
11617   version_type=sunos
11618   need_lib_prefix=no
11619   need_version=no
11620   case $host_cpu in
11621   ia64*)
11622     shrext_cmds='.so'
11623     hardcode_into_libs=yes
11624     dynamic_linker="$host_os dld.so"
11625     shlibpath_var=LD_LIBRARY_PATH
11626     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628     soname_spec='${libname}${release}${shared_ext}$major'
11629     if test "X$HPUX_IA64_MODE" = X32; then
11630       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11631     else
11632       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11633     fi
11634     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11635     ;;
11636   hppa*64*)
11637     shrext_cmds='.sl'
11638     hardcode_into_libs=yes
11639     dynamic_linker="$host_os dld.sl"
11640     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11641     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11645     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11646     ;;
11647   *)
11648     shrext_cmds='.sl'
11649     dynamic_linker="$host_os dld.sl"
11650     shlibpath_var=SHLIB_PATH
11651     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653     soname_spec='${libname}${release}${shared_ext}$major'
11654     ;;
11655   esac
11656   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11657   postinstall_cmds='chmod 555 $lib'
11658   ;;
11659
11660 interix[3-9]*)
11661   version_type=linux
11662   need_lib_prefix=no
11663   need_version=no
11664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11665   soname_spec='${libname}${release}${shared_ext}$major'
11666   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11667   shlibpath_var=LD_LIBRARY_PATH
11668   shlibpath_overrides_runpath=no
11669   hardcode_into_libs=yes
11670   ;;
11671
11672 irix5* | irix6* | nonstopux*)
11673   case $host_os in
11674     nonstopux*) version_type=nonstopux ;;
11675     *)
11676         if test "$lt_cv_prog_gnu_ld" = yes; then
11677                 version_type=linux
11678         else
11679                 version_type=irix
11680         fi ;;
11681   esac
11682   need_lib_prefix=no
11683   need_version=no
11684   soname_spec='${libname}${release}${shared_ext}$major'
11685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11686   case $host_os in
11687   irix5* | nonstopux*)
11688     libsuff= shlibsuff=
11689     ;;
11690   *)
11691     case $LD in # libtool.m4 will add one of these switches to LD
11692     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11693       libsuff= shlibsuff= libmagic=32-bit;;
11694     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11695       libsuff=32 shlibsuff=N32 libmagic=N32;;
11696     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11697       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11698     *) libsuff= shlibsuff= libmagic=never-match;;
11699     esac
11700     ;;
11701   esac
11702   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11703   shlibpath_overrides_runpath=no
11704   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11705   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11706   hardcode_into_libs=yes
11707   ;;
11708
11709 # No shared lib support for Linux oldld, aout, or coff.
11710 linux*oldld* | linux*aout* | linux*coff*)
11711   dynamic_linker=no
11712   ;;
11713
11714 # This must be Linux ELF.
11715 linux* | k*bsd*-gnu)
11716   version_type=linux
11717   need_lib_prefix=no
11718   need_version=no
11719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720   soname_spec='${libname}${release}${shared_ext}$major'
11721   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11722   shlibpath_var=LD_LIBRARY_PATH
11723   shlibpath_overrides_runpath=no
11724   # Some binutils ld are patched to set DT_RUNPATH
11725   save_LDFLAGS=$LDFLAGS
11726   save_libdir=$libdir
11727   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11728        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h.  */
11731
11732 int
11733 main ()
11734 {
11735
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_c_try_link "$LINENO"; then :
11741   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11742   shlibpath_overrides_runpath=yes
11743 fi
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext \
11746     conftest$ac_exeext conftest.$ac_ext
11747   LDFLAGS=$save_LDFLAGS
11748   libdir=$save_libdir
11749
11750   # This implies no fast_install, which is unacceptable.
11751   # Some rework will be needed to allow for fast_install
11752   # before this can be enabled.
11753   hardcode_into_libs=yes
11754
11755   # Append ld.so.conf contents to the search path
11756   if test -f /etc/ld.so.conf; then
11757     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' ' '`
11758     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11759   fi
11760
11761   # We used to test for /lib/ld.so.1 and disable shared libraries on
11762   # powerpc, because MkLinux only supported shared libraries with the
11763   # GNU dynamic linker.  Since this was broken with cross compilers,
11764   # most powerpc-linux boxes support dynamic linking these days and
11765   # people can always --disable-shared, the test was removed, and we
11766   # assume the GNU/Linux dynamic linker is in use.
11767   dynamic_linker='GNU/Linux ld.so'
11768   ;;
11769
11770 netbsd*)
11771   version_type=sunos
11772   need_lib_prefix=no
11773   need_version=no
11774   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11776     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11777     dynamic_linker='NetBSD (a.out) ld.so'
11778   else
11779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11780     soname_spec='${libname}${release}${shared_ext}$major'
11781     dynamic_linker='NetBSD ld.elf_so'
11782   fi
11783   shlibpath_var=LD_LIBRARY_PATH
11784   shlibpath_overrides_runpath=yes
11785   hardcode_into_libs=yes
11786   ;;
11787
11788 newsos6)
11789   version_type=linux
11790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791   shlibpath_var=LD_LIBRARY_PATH
11792   shlibpath_overrides_runpath=yes
11793   ;;
11794
11795 *nto* | *qnx*)
11796   version_type=qnx
11797   need_lib_prefix=no
11798   need_version=no
11799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800   soname_spec='${libname}${release}${shared_ext}$major'
11801   shlibpath_var=LD_LIBRARY_PATH
11802   shlibpath_overrides_runpath=no
11803   hardcode_into_libs=yes
11804   dynamic_linker='ldqnx.so'
11805   ;;
11806
11807 openbsd*)
11808   version_type=sunos
11809   sys_lib_dlsearch_path_spec="/usr/lib"
11810   need_lib_prefix=no
11811   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11812   case $host_os in
11813     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11814     *)                          need_version=no  ;;
11815   esac
11816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11817   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11818   shlibpath_var=LD_LIBRARY_PATH
11819   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11820     case $host_os in
11821       openbsd2.[89] | openbsd2.[89].*)
11822         shlibpath_overrides_runpath=no
11823         ;;
11824       *)
11825         shlibpath_overrides_runpath=yes
11826         ;;
11827       esac
11828   else
11829     shlibpath_overrides_runpath=yes
11830   fi
11831   ;;
11832
11833 os2*)
11834   libname_spec='$name'
11835   shrext_cmds=".dll"
11836   need_lib_prefix=no
11837   library_names_spec='$libname${shared_ext} $libname.a'
11838   dynamic_linker='OS/2 ld.exe'
11839   shlibpath_var=LIBPATH
11840   ;;
11841
11842 osf3* | osf4* | osf5*)
11843   version_type=osf
11844   need_lib_prefix=no
11845   need_version=no
11846   soname_spec='${libname}${release}${shared_ext}$major'
11847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848   shlibpath_var=LD_LIBRARY_PATH
11849   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11850   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11851   ;;
11852
11853 rdos*)
11854   dynamic_linker=no
11855   ;;
11856
11857 solaris*)
11858   version_type=linux
11859   need_lib_prefix=no
11860   need_version=no
11861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11862   soname_spec='${libname}${release}${shared_ext}$major'
11863   shlibpath_var=LD_LIBRARY_PATH
11864   shlibpath_overrides_runpath=yes
11865   hardcode_into_libs=yes
11866   # ldd complains unless libraries are executable
11867   postinstall_cmds='chmod +x $lib'
11868   ;;
11869
11870 sunos4*)
11871   version_type=sunos
11872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11873   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11874   shlibpath_var=LD_LIBRARY_PATH
11875   shlibpath_overrides_runpath=yes
11876   if test "$with_gnu_ld" = yes; then
11877     need_lib_prefix=no
11878   fi
11879   need_version=yes
11880   ;;
11881
11882 sysv4 | sysv4.3*)
11883   version_type=linux
11884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885   soname_spec='${libname}${release}${shared_ext}$major'
11886   shlibpath_var=LD_LIBRARY_PATH
11887   case $host_vendor in
11888     sni)
11889       shlibpath_overrides_runpath=no
11890       need_lib_prefix=no
11891       runpath_var=LD_RUN_PATH
11892       ;;
11893     siemens)
11894       need_lib_prefix=no
11895       ;;
11896     motorola)
11897       need_lib_prefix=no
11898       need_version=no
11899       shlibpath_overrides_runpath=no
11900       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11901       ;;
11902   esac
11903   ;;
11904
11905 sysv4*MP*)
11906   if test -d /usr/nec ;then
11907     version_type=linux
11908     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11909     soname_spec='$libname${shared_ext}.$major'
11910     shlibpath_var=LD_LIBRARY_PATH
11911   fi
11912   ;;
11913
11914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11915   version_type=freebsd-elf
11916   need_lib_prefix=no
11917   need_version=no
11918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11919   soname_spec='${libname}${release}${shared_ext}$major'
11920   shlibpath_var=LD_LIBRARY_PATH
11921   shlibpath_overrides_runpath=yes
11922   hardcode_into_libs=yes
11923   if test "$with_gnu_ld" = yes; then
11924     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11925   else
11926     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11927     case $host_os in
11928       sco3.2v5*)
11929         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11930         ;;
11931     esac
11932   fi
11933   sys_lib_dlsearch_path_spec='/usr/lib'
11934   ;;
11935
11936 tpf*)
11937   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11938   version_type=linux
11939   need_lib_prefix=no
11940   need_version=no
11941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11942   shlibpath_var=LD_LIBRARY_PATH
11943   shlibpath_overrides_runpath=no
11944   hardcode_into_libs=yes
11945   ;;
11946
11947 uts4*)
11948   version_type=linux
11949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950   soname_spec='${libname}${release}${shared_ext}$major'
11951   shlibpath_var=LD_LIBRARY_PATH
11952   ;;
11953
11954 *)
11955   dynamic_linker=no
11956   ;;
11957 esac
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11959 $as_echo "$dynamic_linker" >&6; }
11960 test "$dynamic_linker" = no && can_build_shared=no
11961
11962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11963 if test "$GCC" = yes; then
11964   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11965 fi
11966
11967 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11968   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11969 fi
11970 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11971   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11972 fi
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
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12061 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12062 hardcode_action=
12063 if test -n "$hardcode_libdir_flag_spec" ||
12064    test -n "$runpath_var" ||
12065    test "X$hardcode_automatic" = "Xyes" ; then
12066
12067   # We can hardcode non-existent directories.
12068   if test "$hardcode_direct" != no &&
12069      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12070      # have to relink, otherwise we might link with an installed library
12071      # when we should be linking with a yet-to-be-installed one
12072      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12073      test "$hardcode_minus_L" != no; then
12074     # Linking always hardcodes the temporary library directory.
12075     hardcode_action=relink
12076   else
12077     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12078     hardcode_action=immediate
12079   fi
12080 else
12081   # We cannot hardcode anything, or else we can only hardcode existing
12082   # directories.
12083   hardcode_action=unsupported
12084 fi
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12086 $as_echo "$hardcode_action" >&6; }
12087
12088 if test "$hardcode_action" = relink ||
12089    test "$inherit_rpath" = yes; then
12090   # Fast installation is not supported
12091   enable_fast_install=no
12092 elif test "$shlibpath_overrides_runpath" = yes ||
12093      test "$enable_shared" = no; then
12094   # Fast installation is not necessary
12095   enable_fast_install=needless
12096 fi
12097
12098
12099
12100
12101
12102
12103   if test "x$enable_dlopen" != xyes; then
12104   enable_dlopen=unknown
12105   enable_dlopen_self=unknown
12106   enable_dlopen_self_static=unknown
12107 else
12108   lt_cv_dlopen=no
12109   lt_cv_dlopen_libs=
12110
12111   case $host_os in
12112   beos*)
12113     lt_cv_dlopen="load_add_on"
12114     lt_cv_dlopen_libs=
12115     lt_cv_dlopen_self=yes
12116     ;;
12117
12118   mingw* | pw32* | cegcc*)
12119     lt_cv_dlopen="LoadLibrary"
12120     lt_cv_dlopen_libs=
12121     ;;
12122
12123   cygwin*)
12124     lt_cv_dlopen="dlopen"
12125     lt_cv_dlopen_libs=
12126     ;;
12127
12128   darwin*)
12129   # if libdl is installed we need to link against it
12130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12131 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12132 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12133   $as_echo_n "(cached) " >&6
12134 else
12135   ac_check_lib_save_LIBS=$LIBS
12136 LIBS="-ldl  $LIBS"
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h.  */
12139
12140 /* Override any GCC internal prototype to avoid an error.
12141    Use char because int might match the return type of a GCC
12142    builtin and then its argument prototype would still apply.  */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char dlopen ();
12147 int
12148 main ()
12149 {
12150 return dlopen ();
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 if ac_fn_c_try_link "$LINENO"; then :
12156   ac_cv_lib_dl_dlopen=yes
12157 else
12158   ac_cv_lib_dl_dlopen=no
12159 fi
12160 rm -f core conftest.err conftest.$ac_objext \
12161     conftest$ac_exeext conftest.$ac_ext
12162 LIBS=$ac_check_lib_save_LIBS
12163 fi
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12165 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12166 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12167   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12168 else
12169
12170     lt_cv_dlopen="dyld"
12171     lt_cv_dlopen_libs=
12172     lt_cv_dlopen_self=yes
12173
12174 fi
12175
12176     ;;
12177
12178   *)
12179     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12180 if test "x$ac_cv_func_shl_load" = x""yes; then :
12181   lt_cv_dlopen="shl_load"
12182 else
12183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12184 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12185 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12186   $as_echo_n "(cached) " >&6
12187 else
12188   ac_check_lib_save_LIBS=$LIBS
12189 LIBS="-ldld  $LIBS"
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h.  */
12192
12193 /* Override any GCC internal prototype to avoid an error.
12194    Use char because int might match the return type of a GCC
12195    builtin and then its argument prototype would still apply.  */
12196 #ifdef __cplusplus
12197 extern "C"
12198 #endif
12199 char shl_load ();
12200 int
12201 main ()
12202 {
12203 return shl_load ();
12204   ;
12205   return 0;
12206 }
12207 _ACEOF
12208 if ac_fn_c_try_link "$LINENO"; then :
12209   ac_cv_lib_dld_shl_load=yes
12210 else
12211   ac_cv_lib_dld_shl_load=no
12212 fi
12213 rm -f core conftest.err conftest.$ac_objext \
12214     conftest$ac_exeext conftest.$ac_ext
12215 LIBS=$ac_check_lib_save_LIBS
12216 fi
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12218 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12219 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12220   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12221 else
12222   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12223 if test "x$ac_cv_func_dlopen" = x""yes; then :
12224   lt_cv_dlopen="dlopen"
12225 else
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12228 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12229   $as_echo_n "(cached) " >&6
12230 else
12231   ac_check_lib_save_LIBS=$LIBS
12232 LIBS="-ldl  $LIBS"
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h.  */
12235
12236 /* Override any GCC internal prototype to avoid an error.
12237    Use char because int might match the return type of a GCC
12238    builtin and then its argument prototype would still apply.  */
12239 #ifdef __cplusplus
12240 extern "C"
12241 #endif
12242 char dlopen ();
12243 int
12244 main ()
12245 {
12246 return dlopen ();
12247   ;
12248   return 0;
12249 }
12250 _ACEOF
12251 if ac_fn_c_try_link "$LINENO"; then :
12252   ac_cv_lib_dl_dlopen=yes
12253 else
12254   ac_cv_lib_dl_dlopen=no
12255 fi
12256 rm -f core conftest.err conftest.$ac_objext \
12257     conftest$ac_exeext conftest.$ac_ext
12258 LIBS=$ac_check_lib_save_LIBS
12259 fi
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12261 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12262 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12263   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12264 else
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12266 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12267 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12268   $as_echo_n "(cached) " >&6
12269 else
12270   ac_check_lib_save_LIBS=$LIBS
12271 LIBS="-lsvld  $LIBS"
12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h.  */
12274
12275 /* Override any GCC internal prototype to avoid an error.
12276    Use char because int might match the return type of a GCC
12277    builtin and then its argument prototype would still apply.  */
12278 #ifdef __cplusplus
12279 extern "C"
12280 #endif
12281 char dlopen ();
12282 int
12283 main ()
12284 {
12285 return dlopen ();
12286   ;
12287   return 0;
12288 }
12289 _ACEOF
12290 if ac_fn_c_try_link "$LINENO"; then :
12291   ac_cv_lib_svld_dlopen=yes
12292 else
12293   ac_cv_lib_svld_dlopen=no
12294 fi
12295 rm -f core conftest.err conftest.$ac_objext \
12296     conftest$ac_exeext conftest.$ac_ext
12297 LIBS=$ac_check_lib_save_LIBS
12298 fi
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12300 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12301 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12302   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12303 else
12304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12305 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12306 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309   ac_check_lib_save_LIBS=$LIBS
12310 LIBS="-ldld  $LIBS"
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h.  */
12313
12314 /* Override any GCC internal prototype to avoid an error.
12315    Use char because int might match the return type of a GCC
12316    builtin and then its argument prototype would still apply.  */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char dld_link ();
12321 int
12322 main ()
12323 {
12324 return dld_link ();
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 if ac_fn_c_try_link "$LINENO"; then :
12330   ac_cv_lib_dld_dld_link=yes
12331 else
12332   ac_cv_lib_dld_dld_link=no
12333 fi
12334 rm -f core conftest.err conftest.$ac_objext \
12335     conftest$ac_exeext conftest.$ac_ext
12336 LIBS=$ac_check_lib_save_LIBS
12337 fi
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12339 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12340 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12341   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12342 fi
12343
12344
12345 fi
12346
12347
12348 fi
12349
12350
12351 fi
12352
12353
12354 fi
12355
12356
12357 fi
12358
12359     ;;
12360   esac
12361
12362   if test "x$lt_cv_dlopen" != xno; then
12363     enable_dlopen=yes
12364   else
12365     enable_dlopen=no
12366   fi
12367
12368   case $lt_cv_dlopen in
12369   dlopen)
12370     save_CPPFLAGS="$CPPFLAGS"
12371     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12372
12373     save_LDFLAGS="$LDFLAGS"
12374     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12375
12376     save_LIBS="$LIBS"
12377     LIBS="$lt_cv_dlopen_libs $LIBS"
12378
12379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12380 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12381 if test "${lt_cv_dlopen_self+set}" = set; then :
12382   $as_echo_n "(cached) " >&6
12383 else
12384           if test "$cross_compiling" = yes; then :
12385   lt_cv_dlopen_self=cross
12386 else
12387   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12388   lt_status=$lt_dlunknown
12389   cat > conftest.$ac_ext <<_LT_EOF
12390 #line 12390 "configure"
12391 #include "confdefs.h"
12392
12393 #if HAVE_DLFCN_H
12394 #include <dlfcn.h>
12395 #endif
12396
12397 #include <stdio.h>
12398
12399 #ifdef RTLD_GLOBAL
12400 #  define LT_DLGLOBAL           RTLD_GLOBAL
12401 #else
12402 #  ifdef DL_GLOBAL
12403 #    define LT_DLGLOBAL         DL_GLOBAL
12404 #  else
12405 #    define LT_DLGLOBAL         0
12406 #  endif
12407 #endif
12408
12409 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12410    find out it does not work in some platform. */
12411 #ifndef LT_DLLAZY_OR_NOW
12412 #  ifdef RTLD_LAZY
12413 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12414 #  else
12415 #    ifdef DL_LAZY
12416 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12417 #    else
12418 #      ifdef RTLD_NOW
12419 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12420 #      else
12421 #        ifdef DL_NOW
12422 #          define LT_DLLAZY_OR_NOW      DL_NOW
12423 #        else
12424 #          define LT_DLLAZY_OR_NOW      0
12425 #        endif
12426 #      endif
12427 #    endif
12428 #  endif
12429 #endif
12430
12431 void fnord() { int i=42;}
12432 int main ()
12433 {
12434   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12435   int status = $lt_dlunknown;
12436
12437   if (self)
12438     {
12439       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12440       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12441       /* dlclose (self); */
12442     }
12443   else
12444     puts (dlerror ());
12445
12446   return status;
12447 }
12448 _LT_EOF
12449   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12450   (eval $ac_link) 2>&5
12451   ac_status=$?
12452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12453   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12454     (./conftest; exit; ) >&5 2>/dev/null
12455     lt_status=$?
12456     case x$lt_status in
12457       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12458       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12459       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12460     esac
12461   else :
12462     # compilation failed
12463     lt_cv_dlopen_self=no
12464   fi
12465 fi
12466 rm -fr conftest*
12467
12468
12469 fi
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12471 $as_echo "$lt_cv_dlopen_self" >&6; }
12472
12473     if test "x$lt_cv_dlopen_self" = xyes; then
12474       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12475       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12476 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12477 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12478   $as_echo_n "(cached) " >&6
12479 else
12480           if test "$cross_compiling" = yes; then :
12481   lt_cv_dlopen_self_static=cross
12482 else
12483   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12484   lt_status=$lt_dlunknown
12485   cat > conftest.$ac_ext <<_LT_EOF
12486 #line 12486 "configure"
12487 #include "confdefs.h"
12488
12489 #if HAVE_DLFCN_H
12490 #include <dlfcn.h>
12491 #endif
12492
12493 #include <stdio.h>
12494
12495 #ifdef RTLD_GLOBAL
12496 #  define LT_DLGLOBAL           RTLD_GLOBAL
12497 #else
12498 #  ifdef DL_GLOBAL
12499 #    define LT_DLGLOBAL         DL_GLOBAL
12500 #  else
12501 #    define LT_DLGLOBAL         0
12502 #  endif
12503 #endif
12504
12505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12506    find out it does not work in some platform. */
12507 #ifndef LT_DLLAZY_OR_NOW
12508 #  ifdef RTLD_LAZY
12509 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12510 #  else
12511 #    ifdef DL_LAZY
12512 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12513 #    else
12514 #      ifdef RTLD_NOW
12515 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12516 #      else
12517 #        ifdef DL_NOW
12518 #          define LT_DLLAZY_OR_NOW      DL_NOW
12519 #        else
12520 #          define LT_DLLAZY_OR_NOW      0
12521 #        endif
12522 #      endif
12523 #    endif
12524 #  endif
12525 #endif
12526
12527 void fnord() { int i=42;}
12528 int main ()
12529 {
12530   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12531   int status = $lt_dlunknown;
12532
12533   if (self)
12534     {
12535       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12536       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12537       /* dlclose (self); */
12538     }
12539   else
12540     puts (dlerror ());
12541
12542   return status;
12543 }
12544 _LT_EOF
12545   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12546   (eval $ac_link) 2>&5
12547   ac_status=$?
12548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12549   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12550     (./conftest; exit; ) >&5 2>/dev/null
12551     lt_status=$?
12552     case x$lt_status in
12553       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12554       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12555       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12556     esac
12557   else :
12558     # compilation failed
12559     lt_cv_dlopen_self_static=no
12560   fi
12561 fi
12562 rm -fr conftest*
12563
12564
12565 fi
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12567 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12568     fi
12569
12570     CPPFLAGS="$save_CPPFLAGS"
12571     LDFLAGS="$save_LDFLAGS"
12572     LIBS="$save_LIBS"
12573     ;;
12574   esac
12575
12576   case $lt_cv_dlopen_self in
12577   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12578   *) enable_dlopen_self=unknown ;;
12579   esac
12580
12581   case $lt_cv_dlopen_self_static in
12582   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12583   *) enable_dlopen_self_static=unknown ;;
12584   esac
12585 fi
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603 striplib=
12604 old_striplib=
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12606 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12607 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12608   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12609   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12611 $as_echo "yes" >&6; }
12612 else
12613 # FIXME - insert some real tests, host_os isn't really good enough
12614   case $host_os in
12615   darwin*)
12616     if test -n "$STRIP" ; then
12617       striplib="$STRIP -x"
12618       old_striplib="$STRIP -S"
12619       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12620 $as_echo "yes" >&6; }
12621     else
12622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 $as_echo "no" >&6; }
12624     fi
12625     ;;
12626   *)
12627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12629     ;;
12630   esac
12631 fi
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644   # Report which library types will actually be built
12645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12646 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12648 $as_echo "$can_build_shared" >&6; }
12649
12650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12651 $as_echo_n "checking whether to build shared libraries... " >&6; }
12652   test "$can_build_shared" = "no" && enable_shared=no
12653
12654   # On AIX, shared libraries and static libraries use the same namespace, and
12655   # are all built from PIC.
12656   case $host_os in
12657   aix3*)
12658     test "$enable_shared" = yes && enable_static=no
12659     if test -n "$RANLIB"; then
12660       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12661       postinstall_cmds='$RANLIB $lib'
12662     fi
12663     ;;
12664
12665   aix[4-9]*)
12666     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12667       test "$enable_shared" = yes && enable_static=no
12668     fi
12669     ;;
12670   esac
12671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12672 $as_echo "$enable_shared" >&6; }
12673
12674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12675 $as_echo_n "checking whether to build static libraries... " >&6; }
12676   # Make sure either enable_shared or enable_static is yes.
12677   test "$enable_shared" = yes || enable_static=yes
12678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12679 $as_echo "$enable_static" >&6; }
12680
12681
12682
12683
12684 fi
12685 ac_ext=c
12686 ac_cpp='$CPP $CPPFLAGS'
12687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12690
12691 CC="$lt_save_CC"
12692
12693
12694 ac_ext=cpp
12695 ac_cpp='$CXXCPP $CPPFLAGS'
12696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12699
12700 archive_cmds_need_lc_CXX=no
12701 allow_undefined_flag_CXX=
12702 always_export_symbols_CXX=no
12703 archive_expsym_cmds_CXX=
12704 compiler_needs_object_CXX=no
12705 export_dynamic_flag_spec_CXX=
12706 hardcode_direct_CXX=no
12707 hardcode_direct_absolute_CXX=no
12708 hardcode_libdir_flag_spec_CXX=
12709 hardcode_libdir_flag_spec_ld_CXX=
12710 hardcode_libdir_separator_CXX=
12711 hardcode_minus_L_CXX=no
12712 hardcode_shlibpath_var_CXX=unsupported
12713 hardcode_automatic_CXX=no
12714 inherit_rpath_CXX=no
12715 module_cmds_CXX=
12716 module_expsym_cmds_CXX=
12717 link_all_deplibs_CXX=unknown
12718 old_archive_cmds_CXX=$old_archive_cmds
12719 no_undefined_flag_CXX=
12720 whole_archive_flag_spec_CXX=
12721 enable_shared_with_static_runtimes_CXX=no
12722
12723 # Source file extension for C++ test sources.
12724 ac_ext=cpp
12725
12726 # Object file extension for compiled C++ test sources.
12727 objext=o
12728 objext_CXX=$objext
12729
12730 # No sense in running all these tests if we already determined that
12731 # the CXX compiler isn't working.  Some variables (like enable_shared)
12732 # are currently assumed to apply to all compilers on this platform,
12733 # and will be corrupted by setting them based on a non-working compiler.
12734 if test "$_lt_caught_CXX_error" != yes; then
12735   # Code to be used in simple compile tests
12736   lt_simple_compile_test_code="int some_variable = 0;"
12737
12738   # Code to be used in simple link tests
12739   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12740
12741   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12742
12743
12744
12745
12746
12747
12748 # If no C compiler was specified, use CC.
12749 LTCC=${LTCC-"$CC"}
12750
12751 # If no C compiler flags were specified, use CFLAGS.
12752 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12753
12754 # Allow CC to be a program name with arguments.
12755 compiler=$CC
12756
12757
12758   # save warnings/boilerplate of simple test code
12759   ac_outfile=conftest.$ac_objext
12760 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12761 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12762 _lt_compiler_boilerplate=`cat conftest.err`
12763 $RM conftest*
12764
12765   ac_outfile=conftest.$ac_objext
12766 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12767 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12768 _lt_linker_boilerplate=`cat conftest.err`
12769 $RM -r conftest*
12770
12771
12772   # Allow CC to be a program name with arguments.
12773   lt_save_CC=$CC
12774   lt_save_LD=$LD
12775   lt_save_GCC=$GCC
12776   GCC=$GXX
12777   lt_save_with_gnu_ld=$with_gnu_ld
12778   lt_save_path_LD=$lt_cv_path_LD
12779   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12780     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12781   else
12782     $as_unset lt_cv_prog_gnu_ld
12783   fi
12784   if test -n "${lt_cv_path_LDCXX+set}"; then
12785     lt_cv_path_LD=$lt_cv_path_LDCXX
12786   else
12787     $as_unset lt_cv_path_LD
12788   fi
12789   test -z "${LDCXX+set}" || LD=$LDCXX
12790   CC=${CXX-"c++"}
12791   compiler=$CC
12792   compiler_CXX=$CC
12793   for cc_temp in $compiler""; do
12794   case $cc_temp in
12795     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12796     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12797     \-*) ;;
12798     *) break;;
12799   esac
12800 done
12801 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12802
12803
12804   if test -n "$compiler"; then
12805     # We don't want -fno-exception when compiling C++ code, so set the
12806     # no_builtin_flag separately
12807     if test "$GXX" = yes; then
12808       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12809     else
12810       lt_prog_compiler_no_builtin_flag_CXX=
12811     fi
12812
12813     if test "$GXX" = yes; then
12814       # Set up default GNU C++ configuration
12815
12816
12817
12818 # Check whether --with-gnu-ld was given.
12819 if test "${with_gnu_ld+set}" = set; then :
12820   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12821 else
12822   with_gnu_ld=no
12823 fi
12824
12825 ac_prog=ld
12826 if test "$GCC" = yes; then
12827   # Check if gcc -print-prog-name=ld gives a path.
12828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12829 $as_echo_n "checking for ld used by $CC... " >&6; }
12830   case $host in
12831   *-*-mingw*)
12832     # gcc leaves a trailing carriage return which upsets mingw
12833     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12834   *)
12835     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12836   esac
12837   case $ac_prog in
12838     # Accept absolute paths.
12839     [\\/]* | ?:[\\/]*)
12840       re_direlt='/[^/][^/]*/\.\./'
12841       # Canonicalize the pathname of ld
12842       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12843       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12844         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12845       done
12846       test -z "$LD" && LD="$ac_prog"
12847       ;;
12848   "")
12849     # If it fails, then pretend we aren't using GCC.
12850     ac_prog=ld
12851     ;;
12852   *)
12853     # If it is relative, then search for the first ld in PATH.
12854     with_gnu_ld=unknown
12855     ;;
12856   esac
12857 elif test "$with_gnu_ld" = yes; then
12858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12859 $as_echo_n "checking for GNU ld... " >&6; }
12860 else
12861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12862 $as_echo_n "checking for non-GNU ld... " >&6; }
12863 fi
12864 if test "${lt_cv_path_LD+set}" = set; then :
12865   $as_echo_n "(cached) " >&6
12866 else
12867   if test -z "$LD"; then
12868   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12869   for ac_dir in $PATH; do
12870     IFS="$lt_save_ifs"
12871     test -z "$ac_dir" && ac_dir=.
12872     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12873       lt_cv_path_LD="$ac_dir/$ac_prog"
12874       # Check to see if the program is GNU ld.  I'd rather use --version,
12875       # but apparently some variants of GNU ld only accept -v.
12876       # Break only if it was the GNU/non-GNU ld that we prefer.
12877       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12878       *GNU* | *'with BFD'*)
12879         test "$with_gnu_ld" != no && break
12880         ;;
12881       *)
12882         test "$with_gnu_ld" != yes && break
12883         ;;
12884       esac
12885     fi
12886   done
12887   IFS="$lt_save_ifs"
12888 else
12889   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12890 fi
12891 fi
12892
12893 LD="$lt_cv_path_LD"
12894 if test -n "$LD"; then
12895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12896 $as_echo "$LD" >&6; }
12897 else
12898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899 $as_echo "no" >&6; }
12900 fi
12901 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12904 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12905   $as_echo_n "(cached) " >&6
12906 else
12907   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12908 case `$LD -v 2>&1 </dev/null` in
12909 *GNU* | *'with BFD'*)
12910   lt_cv_prog_gnu_ld=yes
12911   ;;
12912 *)
12913   lt_cv_prog_gnu_ld=no
12914   ;;
12915 esac
12916 fi
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12918 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12919 with_gnu_ld=$lt_cv_prog_gnu_ld
12920
12921
12922
12923
12924
12925
12926
12927       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12928       # archiving commands below assume that GNU ld is being used.
12929       if test "$with_gnu_ld" = yes; then
12930         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12931         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'
12932
12933         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12934         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12935
12936         # If archive_cmds runs LD, not CC, wlarc should be empty
12937         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12938         #     investigate it a little bit more. (MM)
12939         wlarc='${wl}'
12940
12941         # ancient GNU ld didn't support --whole-archive et. al.
12942         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12943           $GREP 'no-whole-archive' > /dev/null; then
12944           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12945         else
12946           whole_archive_flag_spec_CXX=
12947         fi
12948       else
12949         with_gnu_ld=no
12950         wlarc=
12951
12952         # A generic and very simple default shared library creation
12953         # command for GNU C++ for the case where it uses the native
12954         # linker, instead of GNU ld.  If possible, this setting should
12955         # overridden to take advantage of the native linker features on
12956         # the platform it is being used on.
12957         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12958       fi
12959
12960       # Commands to make compiler produce verbose output that lists
12961       # what "hidden" libraries, object files and flags are used when
12962       # linking a shared library.
12963       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12964
12965     else
12966       GXX=no
12967       with_gnu_ld=no
12968       wlarc=
12969     fi
12970
12971     # PORTME: fill in a description of your system's C++ link characteristics
12972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12973 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12974     ld_shlibs_CXX=yes
12975     case $host_os in
12976       aix3*)
12977         # FIXME: insert proper C++ library support
12978         ld_shlibs_CXX=no
12979         ;;
12980       aix[4-9]*)
12981         if test "$host_cpu" = ia64; then
12982           # On IA64, the linker does run time linking by default, so we don't
12983           # have to do anything special.
12984           aix_use_runtimelinking=no
12985           exp_sym_flag='-Bexport'
12986           no_entry_flag=""
12987         else
12988           aix_use_runtimelinking=no
12989
12990           # Test if we are trying to use run time linking or normal
12991           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12992           # need to do runtime linking.
12993           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12994             for ld_flag in $LDFLAGS; do
12995               case $ld_flag in
12996               *-brtl*)
12997                 aix_use_runtimelinking=yes
12998                 break
12999                 ;;
13000               esac
13001             done
13002             ;;
13003           esac
13004
13005           exp_sym_flag='-bexport'
13006           no_entry_flag='-bnoentry'
13007         fi
13008
13009         # When large executables or shared objects are built, AIX ld can
13010         # have problems creating the table of contents.  If linking a library
13011         # or program results in "error TOC overflow" add -mminimal-toc to
13012         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13013         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13014
13015         archive_cmds_CXX=''
13016         hardcode_direct_CXX=yes
13017         hardcode_direct_absolute_CXX=yes
13018         hardcode_libdir_separator_CXX=':'
13019         link_all_deplibs_CXX=yes
13020         file_list_spec_CXX='${wl}-f,'
13021
13022         if test "$GXX" = yes; then
13023           case $host_os in aix4.[012]|aix4.[012].*)
13024           # We only want to do this on AIX 4.2 and lower, the check
13025           # below for broken collect2 doesn't work under 4.3+
13026           collect2name=`${CC} -print-prog-name=collect2`
13027           if test -f "$collect2name" &&
13028              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13029           then
13030             # We have reworked collect2
13031             :
13032           else
13033             # We have old collect2
13034             hardcode_direct_CXX=unsupported
13035             # It fails to find uninstalled libraries when the uninstalled
13036             # path is not listed in the libpath.  Setting hardcode_minus_L
13037             # to unsupported forces relinking
13038             hardcode_minus_L_CXX=yes
13039             hardcode_libdir_flag_spec_CXX='-L$libdir'
13040             hardcode_libdir_separator_CXX=
13041           fi
13042           esac
13043           shared_flag='-shared'
13044           if test "$aix_use_runtimelinking" = yes; then
13045             shared_flag="$shared_flag "'${wl}-G'
13046           fi
13047         else
13048           # not using gcc
13049           if test "$host_cpu" = ia64; then
13050           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13051           # chokes on -Wl,-G. The following line is correct:
13052           shared_flag='-G'
13053           else
13054             if test "$aix_use_runtimelinking" = yes; then
13055               shared_flag='${wl}-G'
13056             else
13057               shared_flag='${wl}-bM:SRE'
13058             fi
13059           fi
13060         fi
13061
13062         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13063         # It seems that -bexpall does not export symbols beginning with
13064         # underscore (_), so it is better to generate a list of symbols to
13065         # export.
13066         always_export_symbols_CXX=yes
13067         if test "$aix_use_runtimelinking" = yes; then
13068           # Warning - without using the other runtime loading flags (-brtl),
13069           # -berok will link without error, but may produce a broken library.
13070           allow_undefined_flag_CXX='-berok'
13071           # Determine the default libpath from the value encoded in an empty
13072           # executable.
13073           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h.  */
13075
13076 int
13077 main ()
13078 {
13079
13080   ;
13081   return 0;
13082 }
13083 _ACEOF
13084 if ac_fn_cxx_try_link "$LINENO"; then :
13085
13086 lt_aix_libpath_sed='
13087     /Import File Strings/,/^$/ {
13088         /^0/ {
13089             s/^0  *\(.*\)$/\1/
13090             p
13091         }
13092     }'
13093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13094 # Check for a 64-bit object if we didn't find anything.
13095 if test -z "$aix_libpath"; then
13096   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13097 fi
13098 fi
13099 rm -f core conftest.err conftest.$ac_objext \
13100     conftest$ac_exeext conftest.$ac_ext
13101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13102
13103           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13104
13105           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"
13106         else
13107           if test "$host_cpu" = ia64; then
13108             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13109             allow_undefined_flag_CXX="-z nodefs"
13110             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"
13111           else
13112             # Determine the default libpath from the value encoded in an
13113             # empty executable.
13114             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h.  */
13116
13117 int
13118 main ()
13119 {
13120
13121   ;
13122   return 0;
13123 }
13124 _ACEOF
13125 if ac_fn_cxx_try_link "$LINENO"; then :
13126
13127 lt_aix_libpath_sed='
13128     /Import File Strings/,/^$/ {
13129         /^0/ {
13130             s/^0  *\(.*\)$/\1/
13131             p
13132         }
13133     }'
13134 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13135 # Check for a 64-bit object if we didn't find anything.
13136 if test -z "$aix_libpath"; then
13137   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13138 fi
13139 fi
13140 rm -f core conftest.err conftest.$ac_objext \
13141     conftest$ac_exeext conftest.$ac_ext
13142 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13143
13144             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13145             # Warning - without using the other run time loading flags,
13146             # -berok will link without error, but may produce a broken library.
13147             no_undefined_flag_CXX=' ${wl}-bernotok'
13148             allow_undefined_flag_CXX=' ${wl}-berok'
13149             # Exported symbols can be pulled into shared objects from archives
13150             whole_archive_flag_spec_CXX='$convenience'
13151             archive_cmds_need_lc_CXX=yes
13152             # This is similar to how AIX traditionally builds its shared
13153             # libraries.
13154             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'
13155           fi
13156         fi
13157         ;;
13158
13159       beos*)
13160         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13161           allow_undefined_flag_CXX=unsupported
13162           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13163           # support --undefined.  This deserves some investigation.  FIXME
13164           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13165         else
13166           ld_shlibs_CXX=no
13167         fi
13168         ;;
13169
13170       chorus*)
13171         case $cc_basename in
13172           *)
13173           # FIXME: insert proper C++ library support
13174           ld_shlibs_CXX=no
13175           ;;
13176         esac
13177         ;;
13178
13179       cygwin* | mingw* | pw32* | cegcc*)
13180         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13181         # as there is no search path for DLLs.
13182         hardcode_libdir_flag_spec_CXX='-L$libdir'
13183         allow_undefined_flag_CXX=unsupported
13184         always_export_symbols_CXX=no
13185         enable_shared_with_static_runtimes_CXX=yes
13186
13187         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13188           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'
13189           # If the export-symbols file already is a .def file (1st line
13190           # is EXPORTS), use it as is; otherwise, prepend...
13191           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13192             cp $export_symbols $output_objdir/$soname.def;
13193           else
13194             echo EXPORTS > $output_objdir/$soname.def;
13195             cat $export_symbols >> $output_objdir/$soname.def;
13196           fi~
13197           $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'
13198         else
13199           ld_shlibs_CXX=no
13200         fi
13201         ;;
13202       darwin* | rhapsody*)
13203
13204
13205   archive_cmds_need_lc_CXX=no
13206   hardcode_direct_CXX=no
13207   hardcode_automatic_CXX=yes
13208   hardcode_shlibpath_var_CXX=unsupported
13209   whole_archive_flag_spec_CXX=''
13210   link_all_deplibs_CXX=yes
13211   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13212   case $cc_basename in
13213      ifort*) _lt_dar_can_shared=yes ;;
13214      *) _lt_dar_can_shared=$GCC ;;
13215   esac
13216   if test "$_lt_dar_can_shared" = "yes"; then
13217     output_verbose_link_cmd=echo
13218     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}"
13219     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13220     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}"
13221     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}"
13222        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13223       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}"
13224       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}"
13225     fi
13226
13227   else
13228   ld_shlibs_CXX=no
13229   fi
13230
13231         ;;
13232
13233       dgux*)
13234         case $cc_basename in
13235           ec++*)
13236             # FIXME: insert proper C++ library support
13237             ld_shlibs_CXX=no
13238             ;;
13239           ghcx*)
13240             # Green Hills C++ Compiler
13241             # FIXME: insert proper C++ library support
13242             ld_shlibs_CXX=no
13243             ;;
13244           *)
13245             # FIXME: insert proper C++ library support
13246             ld_shlibs_CXX=no
13247             ;;
13248         esac
13249         ;;
13250
13251       freebsd[12]*)
13252         # C++ shared libraries reported to be fairly broken before
13253         # switch to ELF
13254         ld_shlibs_CXX=no
13255         ;;
13256
13257       freebsd-elf*)
13258         archive_cmds_need_lc_CXX=no
13259         ;;
13260
13261       freebsd* | dragonfly*)
13262         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13263         # conventions
13264         ld_shlibs_CXX=yes
13265         ;;
13266
13267       gnu*)
13268         ;;
13269
13270       hpux9*)
13271         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13272         hardcode_libdir_separator_CXX=:
13273         export_dynamic_flag_spec_CXX='${wl}-E'
13274         hardcode_direct_CXX=yes
13275         hardcode_minus_L_CXX=yes # Not in the search PATH,
13276                                              # but as the default
13277                                              # location of the library.
13278
13279         case $cc_basename in
13280           CC*)
13281             # FIXME: insert proper C++ library support
13282             ld_shlibs_CXX=no
13283             ;;
13284           aCC*)
13285             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'
13286             # Commands to make compiler produce verbose output that lists
13287             # what "hidden" libraries, object files and flags are used when
13288             # linking a shared library.
13289             #
13290             # There doesn't appear to be a way to prevent this compiler from
13291             # explicitly linking system object files so we need to strip them
13292             # from the output so that they don't get included in the library
13293             # dependencies.
13294             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'
13295             ;;
13296           *)
13297             if test "$GXX" = yes; then
13298               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'
13299             else
13300               # FIXME: insert proper C++ library support
13301               ld_shlibs_CXX=no
13302             fi
13303             ;;
13304         esac
13305         ;;
13306
13307       hpux10*|hpux11*)
13308         if test $with_gnu_ld = no; then
13309           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13310           hardcode_libdir_separator_CXX=:
13311
13312           case $host_cpu in
13313             hppa*64*|ia64*)
13314               ;;
13315             *)
13316               export_dynamic_flag_spec_CXX='${wl}-E'
13317               ;;
13318           esac
13319         fi
13320         case $host_cpu in
13321           hppa*64*|ia64*)
13322             hardcode_direct_CXX=no
13323             hardcode_shlibpath_var_CXX=no
13324             ;;
13325           *)
13326             hardcode_direct_CXX=yes
13327             hardcode_direct_absolute_CXX=yes
13328             hardcode_minus_L_CXX=yes # Not in the search PATH,
13329                                                  # but as the default
13330                                                  # location of the library.
13331             ;;
13332         esac
13333
13334         case $cc_basename in
13335           CC*)
13336             # FIXME: insert proper C++ library support
13337             ld_shlibs_CXX=no
13338             ;;
13339           aCC*)
13340             case $host_cpu in
13341               hppa*64*)
13342                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13343                 ;;
13344               ia64*)
13345                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13346                 ;;
13347               *)
13348                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13349                 ;;
13350             esac
13351             # Commands to make compiler produce verbose output that lists
13352             # what "hidden" libraries, object files and flags are used when
13353             # linking a shared library.
13354             #
13355             # There doesn't appear to be a way to prevent this compiler from
13356             # explicitly linking system object files so we need to strip them
13357             # from the output so that they don't get included in the library
13358             # dependencies.
13359             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'
13360             ;;
13361           *)
13362             if test "$GXX" = yes; then
13363               if test $with_gnu_ld = no; then
13364                 case $host_cpu in
13365                   hppa*64*)
13366                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13367                     ;;
13368                   ia64*)
13369                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13370                     ;;
13371                   *)
13372                     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'
13373                     ;;
13374                 esac
13375               fi
13376             else
13377               # FIXME: insert proper C++ library support
13378               ld_shlibs_CXX=no
13379             fi
13380             ;;
13381         esac
13382         ;;
13383
13384       interix[3-9]*)
13385         hardcode_direct_CXX=no
13386         hardcode_shlibpath_var_CXX=no
13387         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13388         export_dynamic_flag_spec_CXX='${wl}-E'
13389         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13390         # Instead, shared libraries are loaded at an image base (0x10000000 by
13391         # default) and relocated if they conflict, which is a slow very memory
13392         # consuming and fragmenting process.  To avoid this, we pick a random,
13393         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13394         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13395         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'
13396         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'
13397         ;;
13398       irix5* | irix6*)
13399         case $cc_basename in
13400           CC*)
13401             # SGI C++
13402             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'
13403
13404             # Archives containing C++ object files must be created using
13405             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13406             # necessary to make sure instantiated templates are included
13407             # in the archive.
13408             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13409             ;;
13410           *)
13411             if test "$GXX" = yes; then
13412               if test "$with_gnu_ld" = no; then
13413                 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'
13414               else
13415                 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'
13416               fi
13417             fi
13418             link_all_deplibs_CXX=yes
13419             ;;
13420         esac
13421         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13422         hardcode_libdir_separator_CXX=:
13423         inherit_rpath_CXX=yes
13424         ;;
13425
13426       linux* | k*bsd*-gnu)
13427         case $cc_basename in
13428           KCC*)
13429             # Kuck and Associates, Inc. (KAI) C++ Compiler
13430
13431             # KCC will only create a shared library if the output file
13432             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13433             # to its proper name (with version) after linking.
13434             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'
13435             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'
13436             # Commands to make compiler produce verbose output that lists
13437             # what "hidden" libraries, object files and flags are used when
13438             # linking a shared library.
13439             #
13440             # There doesn't appear to be a way to prevent this compiler from
13441             # explicitly linking system object files so we need to strip them
13442             # from the output so that they don't get included in the library
13443             # dependencies.
13444             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'
13445
13446             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13447             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13448
13449             # Archives containing C++ object files must be created using
13450             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13451             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13452             ;;
13453           icpc* | ecpc* )
13454             # Intel C++
13455             with_gnu_ld=yes
13456             # version 8.0 and above of icpc choke on multiply defined symbols
13457             # if we add $predep_objects and $postdep_objects, however 7.1 and
13458             # earlier do not add the objects themselves.
13459             case `$CC -V 2>&1` in
13460               *"Version 7."*)
13461                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13462                 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'
13463                 ;;
13464               *)  # Version 8.0 or newer
13465                 tmp_idyn=
13466                 case $host_cpu in
13467                   ia64*) tmp_idyn=' -i_dynamic';;
13468                 esac
13469                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13470                 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'
13471                 ;;
13472             esac
13473             archive_cmds_need_lc_CXX=no
13474             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13475             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13476             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13477             ;;
13478           pgCC* | pgcpp*)
13479             # Portland Group C++ compiler
13480             case `$CC -V` in
13481             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13482               prelink_cmds_CXX='tpldir=Template.dir~
13483                 rm -rf $tpldir~
13484                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13485                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13486               old_archive_cmds_CXX='tpldir=Template.dir~
13487                 rm -rf $tpldir~
13488                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13489                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13490                 $RANLIB $oldlib'
13491               archive_cmds_CXX='tpldir=Template.dir~
13492                 rm -rf $tpldir~
13493                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13494                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13495               archive_expsym_cmds_CXX='tpldir=Template.dir~
13496                 rm -rf $tpldir~
13497                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13498                 $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'
13499               ;;
13500             *) # Version 6 will use weak symbols
13501               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13502               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'
13503               ;;
13504             esac
13505
13506             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13507             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13508             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'
13509             ;;
13510           cxx*)
13511             # Compaq C++
13512             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13513             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'
13514
13515             runpath_var=LD_RUN_PATH
13516             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13517             hardcode_libdir_separator_CXX=:
13518
13519             # Commands to make compiler produce verbose output that lists
13520             # what "hidden" libraries, object files and flags are used when
13521             # linking a shared library.
13522             #
13523             # There doesn't appear to be a way to prevent this compiler from
13524             # explicitly linking system object files so we need to strip them
13525             # from the output so that they don't get included in the library
13526             # dependencies.
13527             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'
13528             ;;
13529           xl*)
13530             # IBM XL 8.0 on PPC, with GNU ld
13531             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13532             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13533             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13534             if test "x$supports_anon_versioning" = xyes; then
13535               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13536                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13537                 echo "local: *; };" >> $output_objdir/$libname.ver~
13538                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13539             fi
13540             ;;
13541           *)
13542             case `$CC -V 2>&1 | sed 5q` in
13543             *Sun\ C*)
13544               # Sun C++ 5.9
13545               no_undefined_flag_CXX=' -zdefs'
13546               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13547               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'
13548               hardcode_libdir_flag_spec_CXX='-R$libdir'
13549               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'
13550               compiler_needs_object_CXX=yes
13551
13552               # Not sure whether something based on
13553               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13554               # would be better.
13555               output_verbose_link_cmd='echo'
13556
13557               # Archives containing C++ object files must be created using
13558               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13559               # necessary to make sure instantiated templates are included
13560               # in the archive.
13561               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13562               ;;
13563             esac
13564             ;;
13565         esac
13566         ;;
13567
13568       lynxos*)
13569         # FIXME: insert proper C++ library support
13570         ld_shlibs_CXX=no
13571         ;;
13572
13573       m88k*)
13574         # FIXME: insert proper C++ library support
13575         ld_shlibs_CXX=no
13576         ;;
13577
13578       mvs*)
13579         case $cc_basename in
13580           cxx*)
13581             # FIXME: insert proper C++ library support
13582             ld_shlibs_CXX=no
13583             ;;
13584           *)
13585             # FIXME: insert proper C++ library support
13586             ld_shlibs_CXX=no
13587             ;;
13588         esac
13589         ;;
13590
13591       netbsd*)
13592         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13593           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13594           wlarc=
13595           hardcode_libdir_flag_spec_CXX='-R$libdir'
13596           hardcode_direct_CXX=yes
13597           hardcode_shlibpath_var_CXX=no
13598         fi
13599         # Workaround some broken pre-1.5 toolchains
13600         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13601         ;;
13602
13603       *nto* | *qnx*)
13604         ld_shlibs_CXX=yes
13605         ;;
13606
13607       openbsd2*)
13608         # C++ shared libraries are fairly broken
13609         ld_shlibs_CXX=no
13610         ;;
13611
13612       openbsd*)
13613         if test -f /usr/libexec/ld.so; then
13614           hardcode_direct_CXX=yes
13615           hardcode_shlibpath_var_CXX=no
13616           hardcode_direct_absolute_CXX=yes
13617           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13618           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13619           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13620             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13621             export_dynamic_flag_spec_CXX='${wl}-E'
13622             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13623           fi
13624           output_verbose_link_cmd=echo
13625         else
13626           ld_shlibs_CXX=no
13627         fi
13628         ;;
13629
13630       osf3* | osf4* | osf5*)
13631         case $cc_basename in
13632           KCC*)
13633             # Kuck and Associates, Inc. (KAI) C++ Compiler
13634
13635             # KCC will only create a shared library if the output file
13636             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13637             # to its proper name (with version) after linking.
13638             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'
13639
13640             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13641             hardcode_libdir_separator_CXX=:
13642
13643             # Archives containing C++ object files must be created using
13644             # the KAI C++ compiler.
13645             case $host in
13646               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13647               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13648             esac
13649             ;;
13650           RCC*)
13651             # Rational C++ 2.4.1
13652             # FIXME: insert proper C++ library support
13653             ld_shlibs_CXX=no
13654             ;;
13655           cxx*)
13656             case $host in
13657               osf3*)
13658                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13659                 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'
13660                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13661                 ;;
13662               *)
13663                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13664                 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'
13665                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13666                   echo "-hidden">> $lib.exp~
13667                   $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~
13668                   $RM $lib.exp'
13669                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13670                 ;;
13671             esac
13672
13673             hardcode_libdir_separator_CXX=:
13674
13675             # Commands to make compiler produce verbose output that lists
13676             # what "hidden" libraries, object files and flags are used when
13677             # linking a shared library.
13678             #
13679             # There doesn't appear to be a way to prevent this compiler from
13680             # explicitly linking system object files so we need to strip them
13681             # from the output so that they don't get included in the library
13682             # dependencies.
13683             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'
13684             ;;
13685           *)
13686             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13687               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13688               case $host in
13689                 osf3*)
13690                   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'
13691                   ;;
13692                 *)
13693                   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'
13694                   ;;
13695               esac
13696
13697               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13698               hardcode_libdir_separator_CXX=:
13699
13700               # Commands to make compiler produce verbose output that lists
13701               # what "hidden" libraries, object files and flags are used when
13702               # linking a shared library.
13703               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13704
13705             else
13706               # FIXME: insert proper C++ library support
13707               ld_shlibs_CXX=no
13708             fi
13709             ;;
13710         esac
13711         ;;
13712
13713       psos*)
13714         # FIXME: insert proper C++ library support
13715         ld_shlibs_CXX=no
13716         ;;
13717
13718       sunos4*)
13719         case $cc_basename in
13720           CC*)
13721             # Sun C++ 4.x
13722             # FIXME: insert proper C++ library support
13723             ld_shlibs_CXX=no
13724             ;;
13725           lcc*)
13726             # Lucid
13727             # FIXME: insert proper C++ library support
13728             ld_shlibs_CXX=no
13729             ;;
13730           *)
13731             # FIXME: insert proper C++ library support
13732             ld_shlibs_CXX=no
13733             ;;
13734         esac
13735         ;;
13736
13737       solaris*)
13738         case $cc_basename in
13739           CC*)
13740             # Sun C++ 4.2, 5.x and Centerline C++
13741             archive_cmds_need_lc_CXX=yes
13742             no_undefined_flag_CXX=' -zdefs'
13743             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13744             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13745               $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'
13746
13747             hardcode_libdir_flag_spec_CXX='-R$libdir'
13748             hardcode_shlibpath_var_CXX=no
13749             case $host_os in
13750               solaris2.[0-5] | solaris2.[0-5].*) ;;
13751               *)
13752                 # The compiler driver will combine and reorder linker options,
13753                 # but understands `-z linker_flag'.
13754                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13755                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13756                 ;;
13757             esac
13758             link_all_deplibs_CXX=yes
13759
13760             output_verbose_link_cmd='echo'
13761
13762             # Archives containing C++ object files must be created using
13763             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13764             # necessary to make sure instantiated templates are included
13765             # in the archive.
13766             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13767             ;;
13768           gcx*)
13769             # Green Hills C++ Compiler
13770             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13771
13772             # The C++ compiler must be used to create the archive.
13773             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13774             ;;
13775           *)
13776             # GNU C++ compiler with Solaris linker
13777             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13778               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13779               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13780                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13781                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13782                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13783
13784                 # Commands to make compiler produce verbose output that lists
13785                 # what "hidden" libraries, object files and flags are used when
13786                 # linking a shared library.
13787                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13788               else
13789                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13790                 # platform.
13791                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13792                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13793                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13794
13795                 # Commands to make compiler produce verbose output that lists
13796                 # what "hidden" libraries, object files and flags are used when
13797                 # linking a shared library.
13798                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13799               fi
13800
13801               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13802               case $host_os in
13803                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13804                 *)
13805                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13806                   ;;
13807               esac
13808             fi
13809             ;;
13810         esac
13811         ;;
13812
13813     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13814       no_undefined_flag_CXX='${wl}-z,text'
13815       archive_cmds_need_lc_CXX=no
13816       hardcode_shlibpath_var_CXX=no
13817       runpath_var='LD_RUN_PATH'
13818
13819       case $cc_basename in
13820         CC*)
13821           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13822           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13823           ;;
13824         *)
13825           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827           ;;
13828       esac
13829       ;;
13830
13831       sysv5* | sco3.2v5* | sco5v6*)
13832         # Note: We can NOT use -z defs as we might desire, because we do not
13833         # link with -lc, and that would cause any symbols used from libc to
13834         # always be unresolved, which means just about no library would
13835         # ever link correctly.  If we're not using GNU ld we use -z text
13836         # though, which does catch some bad symbols but isn't as heavy-handed
13837         # as -z defs.
13838         no_undefined_flag_CXX='${wl}-z,text'
13839         allow_undefined_flag_CXX='${wl}-z,nodefs'
13840         archive_cmds_need_lc_CXX=no
13841         hardcode_shlibpath_var_CXX=no
13842         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13843         hardcode_libdir_separator_CXX=':'
13844         link_all_deplibs_CXX=yes
13845         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13846         runpath_var='LD_RUN_PATH'
13847
13848         case $cc_basename in
13849           CC*)
13850             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13851             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13852             ;;
13853           *)
13854             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13855             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13856             ;;
13857         esac
13858       ;;
13859
13860       tandem*)
13861         case $cc_basename in
13862           NCC*)
13863             # NonStop-UX NCC 3.20
13864             # FIXME: insert proper C++ library support
13865             ld_shlibs_CXX=no
13866             ;;
13867           *)
13868             # FIXME: insert proper C++ library support
13869             ld_shlibs_CXX=no
13870             ;;
13871         esac
13872         ;;
13873
13874       vxworks*)
13875         # FIXME: insert proper C++ library support
13876         ld_shlibs_CXX=no
13877         ;;
13878
13879       *)
13880         # FIXME: insert proper C++ library support
13881         ld_shlibs_CXX=no
13882         ;;
13883     esac
13884
13885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13886 $as_echo "$ld_shlibs_CXX" >&6; }
13887     test "$ld_shlibs_CXX" = no && can_build_shared=no
13888
13889     GCC_CXX="$GXX"
13890     LD_CXX="$LD"
13891
13892     ## CAVEAT EMPTOR:
13893     ## There is no encapsulation within the following macros, do not change
13894     ## the running order or otherwise move them around unless you know exactly
13895     ## what you are doing...
13896     # Dependencies to place before and after the object being linked:
13897 predep_objects_CXX=
13898 postdep_objects_CXX=
13899 predeps_CXX=
13900 postdeps_CXX=
13901 compiler_lib_search_path_CXX=
13902
13903 cat > conftest.$ac_ext <<_LT_EOF
13904 class Foo
13905 {
13906 public:
13907   Foo (void) { a = 0; }
13908 private:
13909   int a;
13910 };
13911 _LT_EOF
13912
13913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13914   (eval $ac_compile) 2>&5
13915   ac_status=$?
13916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13917   test $ac_status = 0; }; then
13918   # Parse the compiler output and extract the necessary
13919   # objects, libraries and library flags.
13920
13921   # Sentinel used to keep track of whether or not we are before
13922   # the conftest object file.
13923   pre_test_object_deps_done=no
13924
13925   for p in `eval "$output_verbose_link_cmd"`; do
13926     case $p in
13927
13928     -L* | -R* | -l*)
13929        # Some compilers place space between "-{L,R}" and the path.
13930        # Remove the space.
13931        if test $p = "-L" ||
13932           test $p = "-R"; then
13933          prev=$p
13934          continue
13935        else
13936          prev=
13937        fi
13938
13939        if test "$pre_test_object_deps_done" = no; then
13940          case $p in
13941          -L* | -R*)
13942            # Internal compiler library paths should come after those
13943            # provided the user.  The postdeps already come after the
13944            # user supplied libs so there is no need to process them.
13945            if test -z "$compiler_lib_search_path_CXX"; then
13946              compiler_lib_search_path_CXX="${prev}${p}"
13947            else
13948              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13949            fi
13950            ;;
13951          # The "-l" case would never come before the object being
13952          # linked, so don't bother handling this case.
13953          esac
13954        else
13955          if test -z "$postdeps_CXX"; then
13956            postdeps_CXX="${prev}${p}"
13957          else
13958            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13959          fi
13960        fi
13961        ;;
13962
13963     *.$objext)
13964        # This assumes that the test object file only shows up
13965        # once in the compiler output.
13966        if test "$p" = "conftest.$objext"; then
13967          pre_test_object_deps_done=yes
13968          continue
13969        fi
13970
13971        if test "$pre_test_object_deps_done" = no; then
13972          if test -z "$predep_objects_CXX"; then
13973            predep_objects_CXX="$p"
13974          else
13975            predep_objects_CXX="$predep_objects_CXX $p"
13976          fi
13977        else
13978          if test -z "$postdep_objects_CXX"; then
13979            postdep_objects_CXX="$p"
13980          else
13981            postdep_objects_CXX="$postdep_objects_CXX $p"
13982          fi
13983        fi
13984        ;;
13985
13986     *) ;; # Ignore the rest.
13987
13988     esac
13989   done
13990
13991   # Clean up.
13992   rm -f a.out a.exe
13993 else
13994   echo "libtool.m4: error: problem compiling CXX test program"
13995 fi
13996
13997 $RM -f confest.$objext
13998
13999 # PORTME: override above test on systems where it is broken
14000 case $host_os in
14001 interix[3-9]*)
14002   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14003   # hack all around it, let's just trust "g++" to DTRT.
14004   predep_objects_CXX=
14005   postdep_objects_CXX=
14006   postdeps_CXX=
14007   ;;
14008
14009 linux*)
14010   case `$CC -V 2>&1 | sed 5q` in
14011   *Sun\ C*)
14012     # Sun C++ 5.9
14013
14014     # The more standards-conforming stlport4 library is
14015     # incompatible with the Cstd library. Avoid specifying
14016     # it if it's in CXXFLAGS. Ignore libCrun as
14017     # -library=stlport4 depends on it.
14018     case " $CXX $CXXFLAGS " in
14019     *" -library=stlport4 "*)
14020       solaris_use_stlport4=yes
14021       ;;
14022     esac
14023
14024     if test "$solaris_use_stlport4" != yes; then
14025       postdeps_CXX='-library=Cstd -library=Crun'
14026     fi
14027     ;;
14028   esac
14029   ;;
14030
14031 solaris*)
14032   case $cc_basename in
14033   CC*)
14034     # The more standards-conforming stlport4 library is
14035     # incompatible with the Cstd library. Avoid specifying
14036     # it if it's in CXXFLAGS. Ignore libCrun as
14037     # -library=stlport4 depends on it.
14038     case " $CXX $CXXFLAGS " in
14039     *" -library=stlport4 "*)
14040       solaris_use_stlport4=yes
14041       ;;
14042     esac
14043
14044     # Adding this requires a known-good setup of shared libraries for
14045     # Sun compiler versions before 5.6, else PIC objects from an old
14046     # archive will be linked into the output, leading to subtle bugs.
14047     if test "$solaris_use_stlport4" != yes; then
14048       postdeps_CXX='-library=Cstd -library=Crun'
14049     fi
14050     ;;
14051   esac
14052   ;;
14053 esac
14054
14055
14056 case " $postdeps_CXX " in
14057 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14058 esac
14059  compiler_lib_search_dirs_CXX=
14060 if test -n "${compiler_lib_search_path_CXX}"; then
14061  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14062 fi
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094     lt_prog_compiler_wl_CXX=
14095 lt_prog_compiler_pic_CXX=
14096 lt_prog_compiler_static_CXX=
14097
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14099 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14100
14101   # C++ specific cases for pic, static, wl, etc.
14102   if test "$GXX" = yes; then
14103     lt_prog_compiler_wl_CXX='-Wl,'
14104     lt_prog_compiler_static_CXX='-static'
14105
14106     case $host_os in
14107     aix*)
14108       # All AIX code is PIC.
14109       if test "$host_cpu" = ia64; then
14110         # AIX 5 now supports IA64 processor
14111         lt_prog_compiler_static_CXX='-Bstatic'
14112       fi
14113       ;;
14114
14115     amigaos*)
14116       case $host_cpu in
14117       powerpc)
14118             # see comment about AmigaOS4 .so support
14119             lt_prog_compiler_pic_CXX='-fPIC'
14120         ;;
14121       m68k)
14122             # FIXME: we need at least 68020 code to build shared libraries, but
14123             # adding the `-m68020' flag to GCC prevents building anything better,
14124             # like `-m68040'.
14125             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14126         ;;
14127       esac
14128       ;;
14129
14130     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14131       # PIC is the default for these OSes.
14132       ;;
14133     mingw* | cygwin* | os2* | pw32* | cegcc*)
14134       # This hack is so that the source file can tell whether it is being
14135       # built for inclusion in a dll (and should export symbols for example).
14136       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14137       # (--disable-auto-import) libraries
14138       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14139       ;;
14140     darwin* | rhapsody*)
14141       # PIC is the default on this platform
14142       # Common symbols not allowed in MH_DYLIB files
14143       lt_prog_compiler_pic_CXX='-fno-common'
14144       ;;
14145     *djgpp*)
14146       # DJGPP does not support shared libraries at all
14147       lt_prog_compiler_pic_CXX=
14148       ;;
14149     interix[3-9]*)
14150       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14151       # Instead, we relocate shared libraries at runtime.
14152       ;;
14153     sysv4*MP*)
14154       if test -d /usr/nec; then
14155         lt_prog_compiler_pic_CXX=-Kconform_pic
14156       fi
14157       ;;
14158     hpux*)
14159       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14160       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14161       # sets the default TLS model and affects inlining.
14162       case $host_cpu in
14163       hppa*64*)
14164         ;;
14165       *)
14166         lt_prog_compiler_pic_CXX='-fPIC'
14167         ;;
14168       esac
14169       ;;
14170     *qnx* | *nto*)
14171       # QNX uses GNU C++, but need to define -shared option too, otherwise
14172       # it will coredump.
14173       lt_prog_compiler_pic_CXX='-fPIC -shared'
14174       ;;
14175     *)
14176       lt_prog_compiler_pic_CXX='-fPIC'
14177       ;;
14178     esac
14179   else
14180     case $host_os in
14181       aix[4-9]*)
14182         # All AIX code is PIC.
14183         if test "$host_cpu" = ia64; then
14184           # AIX 5 now supports IA64 processor
14185           lt_prog_compiler_static_CXX='-Bstatic'
14186         else
14187           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14188         fi
14189         ;;
14190       chorus*)
14191         case $cc_basename in
14192         cxch68*)
14193           # Green Hills C++ Compiler
14194           # _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"
14195           ;;
14196         esac
14197         ;;
14198       dgux*)
14199         case $cc_basename in
14200           ec++*)
14201             lt_prog_compiler_pic_CXX='-KPIC'
14202             ;;
14203           ghcx*)
14204             # Green Hills C++ Compiler
14205             lt_prog_compiler_pic_CXX='-pic'
14206             ;;
14207           *)
14208             ;;
14209         esac
14210         ;;
14211       freebsd* | dragonfly*)
14212         # FreeBSD uses GNU C++
14213         ;;
14214       hpux9* | hpux10* | hpux11*)
14215         case $cc_basename in
14216           CC*)
14217             lt_prog_compiler_wl_CXX='-Wl,'
14218             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14219             if test "$host_cpu" != ia64; then
14220               lt_prog_compiler_pic_CXX='+Z'
14221             fi
14222             ;;
14223           aCC*)
14224             lt_prog_compiler_wl_CXX='-Wl,'
14225             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14226             case $host_cpu in
14227             hppa*64*|ia64*)
14228               # +Z the default
14229               ;;
14230             *)
14231               lt_prog_compiler_pic_CXX='+Z'
14232               ;;
14233             esac
14234             ;;
14235           *)
14236             ;;
14237         esac
14238         ;;
14239       interix*)
14240         # This is c89, which is MS Visual C++ (no shared libs)
14241         # Anyone wants to do a port?
14242         ;;
14243       irix5* | irix6* | nonstopux*)
14244         case $cc_basename in
14245           CC*)
14246             lt_prog_compiler_wl_CXX='-Wl,'
14247             lt_prog_compiler_static_CXX='-non_shared'
14248             # CC pic flag -KPIC is the default.
14249             ;;
14250           *)
14251             ;;
14252         esac
14253         ;;
14254       linux* | k*bsd*-gnu)
14255         case $cc_basename in
14256           KCC*)
14257             # KAI C++ Compiler
14258             lt_prog_compiler_wl_CXX='--backend -Wl,'
14259             lt_prog_compiler_pic_CXX='-fPIC'
14260             ;;
14261           ecpc* )
14262             # old Intel C++ for x86_64 which still supported -KPIC.
14263             lt_prog_compiler_wl_CXX='-Wl,'
14264             lt_prog_compiler_pic_CXX='-KPIC'
14265             lt_prog_compiler_static_CXX='-static'
14266             ;;
14267           icpc* )
14268             # Intel C++, used to be incompatible with GCC.
14269             # ICC 10 doesn't accept -KPIC any more.
14270             lt_prog_compiler_wl_CXX='-Wl,'
14271             lt_prog_compiler_pic_CXX='-fPIC'
14272             lt_prog_compiler_static_CXX='-static'
14273             ;;
14274           pgCC* | pgcpp*)
14275             # Portland Group C++ compiler
14276             lt_prog_compiler_wl_CXX='-Wl,'
14277             lt_prog_compiler_pic_CXX='-fpic'
14278             lt_prog_compiler_static_CXX='-Bstatic'
14279             ;;
14280           cxx*)
14281             # Compaq C++
14282             # Make sure the PIC flag is empty.  It appears that all Alpha
14283             # Linux and Compaq Tru64 Unix objects are PIC.
14284             lt_prog_compiler_pic_CXX=
14285             lt_prog_compiler_static_CXX='-non_shared'
14286             ;;
14287           xlc* | xlC*)
14288             # IBM XL 8.0 on PPC
14289             lt_prog_compiler_wl_CXX='-Wl,'
14290             lt_prog_compiler_pic_CXX='-qpic'
14291             lt_prog_compiler_static_CXX='-qstaticlink'
14292             ;;
14293           *)
14294             case `$CC -V 2>&1 | sed 5q` in
14295             *Sun\ C*)
14296               # Sun C++ 5.9
14297               lt_prog_compiler_pic_CXX='-KPIC'
14298               lt_prog_compiler_static_CXX='-Bstatic'
14299               lt_prog_compiler_wl_CXX='-Qoption ld '
14300               ;;
14301             esac
14302             ;;
14303         esac
14304         ;;
14305       lynxos*)
14306         ;;
14307       m88k*)
14308         ;;
14309       mvs*)
14310         case $cc_basename in
14311           cxx*)
14312             lt_prog_compiler_pic_CXX='-W c,exportall'
14313             ;;
14314           *)
14315             ;;
14316         esac
14317         ;;
14318       netbsd*)
14319         ;;
14320       *qnx* | *nto*)
14321         # QNX uses GNU C++, but need to define -shared option too, otherwise
14322         # it will coredump.
14323         lt_prog_compiler_pic_CXX='-fPIC -shared'
14324         ;;
14325       osf3* | osf4* | osf5*)
14326         case $cc_basename in
14327           KCC*)
14328             lt_prog_compiler_wl_CXX='--backend -Wl,'
14329             ;;
14330           RCC*)
14331             # Rational C++ 2.4.1
14332             lt_prog_compiler_pic_CXX='-pic'
14333             ;;
14334           cxx*)
14335             # Digital/Compaq C++
14336             lt_prog_compiler_wl_CXX='-Wl,'
14337             # Make sure the PIC flag is empty.  It appears that all Alpha
14338             # Linux and Compaq Tru64 Unix objects are PIC.
14339             lt_prog_compiler_pic_CXX=
14340             lt_prog_compiler_static_CXX='-non_shared'
14341             ;;
14342           *)
14343             ;;
14344         esac
14345         ;;
14346       psos*)
14347         ;;
14348       solaris*)
14349         case $cc_basename in
14350           CC*)
14351             # Sun C++ 4.2, 5.x and Centerline C++
14352             lt_prog_compiler_pic_CXX='-KPIC'
14353             lt_prog_compiler_static_CXX='-Bstatic'
14354             lt_prog_compiler_wl_CXX='-Qoption ld '
14355             ;;
14356           gcx*)
14357             # Green Hills C++ Compiler
14358             lt_prog_compiler_pic_CXX='-PIC'
14359             ;;
14360           *)
14361             ;;
14362         esac
14363         ;;
14364       sunos4*)
14365         case $cc_basename in
14366           CC*)
14367             # Sun C++ 4.x
14368             lt_prog_compiler_pic_CXX='-pic'
14369             lt_prog_compiler_static_CXX='-Bstatic'
14370             ;;
14371           lcc*)
14372             # Lucid
14373             lt_prog_compiler_pic_CXX='-pic'
14374             ;;
14375           *)
14376             ;;
14377         esac
14378         ;;
14379       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14380         case $cc_basename in
14381           CC*)
14382             lt_prog_compiler_wl_CXX='-Wl,'
14383             lt_prog_compiler_pic_CXX='-KPIC'
14384             lt_prog_compiler_static_CXX='-Bstatic'
14385             ;;
14386         esac
14387         ;;
14388       tandem*)
14389         case $cc_basename in
14390           NCC*)
14391             # NonStop-UX NCC 3.20
14392             lt_prog_compiler_pic_CXX='-KPIC'
14393             ;;
14394           *)
14395             ;;
14396         esac
14397         ;;
14398       vxworks*)
14399         ;;
14400       *)
14401         lt_prog_compiler_can_build_shared_CXX=no
14402         ;;
14403     esac
14404   fi
14405
14406 case $host_os in
14407   # For platforms which do not support PIC, -DPIC is meaningless:
14408   *djgpp*)
14409     lt_prog_compiler_pic_CXX=
14410     ;;
14411   *)
14412     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14413     ;;
14414 esac
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14416 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14417
14418
14419
14420 #
14421 # Check to make sure the PIC flag actually works.
14422 #
14423 if test -n "$lt_prog_compiler_pic_CXX"; then
14424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14425 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14426 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14427   $as_echo_n "(cached) " >&6
14428 else
14429   lt_cv_prog_compiler_pic_works_CXX=no
14430    ac_outfile=conftest.$ac_objext
14431    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14432    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14433    # Insert the option either (1) after the last *FLAGS variable, or
14434    # (2) before a word containing "conftest.", or (3) at the end.
14435    # Note that $ac_compile itself does not contain backslashes and begins
14436    # with a dollar sign (not a hyphen), so the echo should work correctly.
14437    # The option is referenced via a variable to avoid confusing sed.
14438    lt_compile=`echo "$ac_compile" | $SED \
14439    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14440    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14441    -e 's:$: $lt_compiler_flag:'`
14442    (eval echo "\"\$as_me:14442: $lt_compile\"" >&5)
14443    (eval "$lt_compile" 2>conftest.err)
14444    ac_status=$?
14445    cat conftest.err >&5
14446    echo "$as_me:14446: \$? = $ac_status" >&5
14447    if (exit $ac_status) && test -s "$ac_outfile"; then
14448      # The compiler can only warn and ignore the option if not recognized
14449      # So say no if there are warnings other than the usual output.
14450      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14451      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14452      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14453        lt_cv_prog_compiler_pic_works_CXX=yes
14454      fi
14455    fi
14456    $RM conftest*
14457
14458 fi
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14460 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14461
14462 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14463     case $lt_prog_compiler_pic_CXX in
14464      "" | " "*) ;;
14465      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14466      esac
14467 else
14468     lt_prog_compiler_pic_CXX=
14469      lt_prog_compiler_can_build_shared_CXX=no
14470 fi
14471
14472 fi
14473
14474
14475
14476 #
14477 # Check to make sure the static flag actually works.
14478 #
14479 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14481 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14482 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14483   $as_echo_n "(cached) " >&6
14484 else
14485   lt_cv_prog_compiler_static_works_CXX=no
14486    save_LDFLAGS="$LDFLAGS"
14487    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14488    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14489    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14490      # The linker can only warn and ignore the option if not recognized
14491      # So say no if there are warnings
14492      if test -s conftest.err; then
14493        # Append any errors to the config.log.
14494        cat conftest.err 1>&5
14495        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14496        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14497        if diff conftest.exp conftest.er2 >/dev/null; then
14498          lt_cv_prog_compiler_static_works_CXX=yes
14499        fi
14500      else
14501        lt_cv_prog_compiler_static_works_CXX=yes
14502      fi
14503    fi
14504    $RM -r conftest*
14505    LDFLAGS="$save_LDFLAGS"
14506
14507 fi
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14509 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14510
14511 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14512     :
14513 else
14514     lt_prog_compiler_static_CXX=
14515 fi
14516
14517
14518
14519
14520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14521 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14522 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14523   $as_echo_n "(cached) " >&6
14524 else
14525   lt_cv_prog_compiler_c_o_CXX=no
14526    $RM -r conftest 2>/dev/null
14527    mkdir conftest
14528    cd conftest
14529    mkdir out
14530    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14531
14532    lt_compiler_flag="-o out/conftest2.$ac_objext"
14533    # Insert the option either (1) after the last *FLAGS variable, or
14534    # (2) before a word containing "conftest.", or (3) at the end.
14535    # Note that $ac_compile itself does not contain backslashes and begins
14536    # with a dollar sign (not a hyphen), so the echo should work correctly.
14537    lt_compile=`echo "$ac_compile" | $SED \
14538    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14540    -e 's:$: $lt_compiler_flag:'`
14541    (eval echo "\"\$as_me:14541: $lt_compile\"" >&5)
14542    (eval "$lt_compile" 2>out/conftest.err)
14543    ac_status=$?
14544    cat out/conftest.err >&5
14545    echo "$as_me:14545: \$? = $ac_status" >&5
14546    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14547    then
14548      # The compiler can only warn and ignore the option if not recognized
14549      # So say no if there are warnings
14550      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14551      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14552      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14553        lt_cv_prog_compiler_c_o_CXX=yes
14554      fi
14555    fi
14556    chmod u+w . 2>&5
14557    $RM conftest*
14558    # SGI C++ compiler will create directory out/ii_files/ for
14559    # template instantiation
14560    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14561    $RM out/* && rmdir out
14562    cd ..
14563    $RM -r conftest
14564    $RM conftest*
14565
14566 fi
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14568 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14569
14570
14571
14572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14574 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14575   $as_echo_n "(cached) " >&6
14576 else
14577   lt_cv_prog_compiler_c_o_CXX=no
14578    $RM -r conftest 2>/dev/null
14579    mkdir conftest
14580    cd conftest
14581    mkdir out
14582    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14583
14584    lt_compiler_flag="-o out/conftest2.$ac_objext"
14585    # Insert the option either (1) after the last *FLAGS variable, or
14586    # (2) before a word containing "conftest.", or (3) at the end.
14587    # Note that $ac_compile itself does not contain backslashes and begins
14588    # with a dollar sign (not a hyphen), so the echo should work correctly.
14589    lt_compile=`echo "$ac_compile" | $SED \
14590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14592    -e 's:$: $lt_compiler_flag:'`
14593    (eval echo "\"\$as_me:14593: $lt_compile\"" >&5)
14594    (eval "$lt_compile" 2>out/conftest.err)
14595    ac_status=$?
14596    cat out/conftest.err >&5
14597    echo "$as_me:14597: \$? = $ac_status" >&5
14598    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14599    then
14600      # The compiler can only warn and ignore the option if not recognized
14601      # So say no if there are warnings
14602      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14603      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14604      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14605        lt_cv_prog_compiler_c_o_CXX=yes
14606      fi
14607    fi
14608    chmod u+w . 2>&5
14609    $RM conftest*
14610    # SGI C++ compiler will create directory out/ii_files/ for
14611    # template instantiation
14612    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14613    $RM out/* && rmdir out
14614    cd ..
14615    $RM -r conftest
14616    $RM conftest*
14617
14618 fi
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14620 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14621
14622
14623
14624
14625 hard_links="nottested"
14626 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14627   # do not overwrite the value of need_locks provided by the user
14628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14629 $as_echo_n "checking if we can lock with hard links... " >&6; }
14630   hard_links=yes
14631   $RM conftest*
14632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14633   touch conftest.a
14634   ln conftest.a conftest.b 2>&5 || hard_links=no
14635   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14637 $as_echo "$hard_links" >&6; }
14638   if test "$hard_links" = no; then
14639     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14640 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14641     need_locks=warn
14642   fi
14643 else
14644   need_locks=no
14645 fi
14646
14647
14648
14649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14650 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14651
14652   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14653   case $host_os in
14654   aix[4-9]*)
14655     # If we're using GNU nm, then we don't want the "-C" option.
14656     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14657     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14658       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'
14659     else
14660       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'
14661     fi
14662     ;;
14663   pw32*)
14664     export_symbols_cmds_CXX="$ltdll_cmds"
14665   ;;
14666   cygwin* | mingw* | cegcc*)
14667     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'
14668   ;;
14669   *)
14670     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14671   ;;
14672   esac
14673   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14674
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14676 $as_echo "$ld_shlibs_CXX" >&6; }
14677 test "$ld_shlibs_CXX" = no && can_build_shared=no
14678
14679 with_gnu_ld_CXX=$with_gnu_ld
14680
14681
14682
14683
14684
14685
14686 #
14687 # Do we need to explicitly link libc?
14688 #
14689 case "x$archive_cmds_need_lc_CXX" in
14690 x|xyes)
14691   # Assume -lc should be added
14692   archive_cmds_need_lc_CXX=yes
14693
14694   if test "$enable_shared" = yes && test "$GCC" = yes; then
14695     case $archive_cmds_CXX in
14696     *'~'*)
14697       # FIXME: we may have to deal with multi-command sequences.
14698       ;;
14699     '$CC '*)
14700       # Test whether the compiler implicitly links with -lc since on some
14701       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14702       # to ld, don't add -lc before -lgcc.
14703       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14704 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14705       $RM conftest*
14706       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14707
14708       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14709   (eval $ac_compile) 2>&5
14710   ac_status=$?
14711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712   test $ac_status = 0; } 2>conftest.err; then
14713         soname=conftest
14714         lib=conftest
14715         libobjs=conftest.$ac_objext
14716         deplibs=
14717         wl=$lt_prog_compiler_wl_CXX
14718         pic_flag=$lt_prog_compiler_pic_CXX
14719         compiler_flags=-v
14720         linker_flags=-v
14721         verstring=
14722         output_objdir=.
14723         libname=conftest
14724         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14725         allow_undefined_flag_CXX=
14726         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14727   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14728   ac_status=$?
14729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14730   test $ac_status = 0; }
14731         then
14732           archive_cmds_need_lc_CXX=no
14733         else
14734           archive_cmds_need_lc_CXX=yes
14735         fi
14736         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14737       else
14738         cat conftest.err 1>&5
14739       fi
14740       $RM conftest*
14741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14742 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14743       ;;
14744     esac
14745   fi
14746   ;;
14747 esac
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
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14813 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14814
14815 library_names_spec=
14816 libname_spec='lib$name'
14817 soname_spec=
14818 shrext_cmds=".so"
14819 postinstall_cmds=
14820 postuninstall_cmds=
14821 finish_cmds=
14822 finish_eval=
14823 shlibpath_var=
14824 shlibpath_overrides_runpath=unknown
14825 version_type=none
14826 dynamic_linker="$host_os ld.so"
14827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14828 need_lib_prefix=unknown
14829 hardcode_into_libs=no
14830
14831 # when you set need_version to no, make sure it does not cause -set_version
14832 # flags to be left without arguments
14833 need_version=unknown
14834
14835 case $host_os in
14836 aix3*)
14837   version_type=linux
14838   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14839   shlibpath_var=LIBPATH
14840
14841   # AIX 3 has no versioning support, so we append a major version to the name.
14842   soname_spec='${libname}${release}${shared_ext}$major'
14843   ;;
14844
14845 aix[4-9]*)
14846   version_type=linux
14847   need_lib_prefix=no
14848   need_version=no
14849   hardcode_into_libs=yes
14850   if test "$host_cpu" = ia64; then
14851     # AIX 5 supports IA64
14852     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14853     shlibpath_var=LD_LIBRARY_PATH
14854   else
14855     # With GCC up to 2.95.x, collect2 would create an import file
14856     # for dependence libraries.  The import file would start with
14857     # the line `#! .'.  This would cause the generated library to
14858     # depend on `.', always an invalid library.  This was fixed in
14859     # development snapshots of GCC prior to 3.0.
14860     case $host_os in
14861       aix4 | aix4.[01] | aix4.[01].*)
14862       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14863            echo ' yes '
14864            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14865         :
14866       else
14867         can_build_shared=no
14868       fi
14869       ;;
14870     esac
14871     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14872     # soname into executable. Probably we can add versioning support to
14873     # collect2, so additional links can be useful in future.
14874     if test "$aix_use_runtimelinking" = yes; then
14875       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14876       # instead of lib<name>.a to let people know that these are not
14877       # typical AIX shared libraries.
14878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879     else
14880       # We preserve .a as extension for shared libraries through AIX4.2
14881       # and later when we are not doing run time linking.
14882       library_names_spec='${libname}${release}.a $libname.a'
14883       soname_spec='${libname}${release}${shared_ext}$major'
14884     fi
14885     shlibpath_var=LIBPATH
14886   fi
14887   ;;
14888
14889 amigaos*)
14890   case $host_cpu in
14891   powerpc)
14892     # Since July 2007 AmigaOS4 officially supports .so libraries.
14893     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895     ;;
14896   m68k)
14897     library_names_spec='$libname.ixlibrary $libname.a'
14898     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14899     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'
14900     ;;
14901   esac
14902   ;;
14903
14904 beos*)
14905   library_names_spec='${libname}${shared_ext}'
14906   dynamic_linker="$host_os ld.so"
14907   shlibpath_var=LIBRARY_PATH
14908   ;;
14909
14910 bsdi[45]*)
14911   version_type=linux
14912   need_version=no
14913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914   soname_spec='${libname}${release}${shared_ext}$major'
14915   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14916   shlibpath_var=LD_LIBRARY_PATH
14917   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14918   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14919   # the default ld.so.conf also contains /usr/contrib/lib and
14920   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14921   # libtool to hard-code these into programs
14922   ;;
14923
14924 cygwin* | mingw* | pw32* | cegcc*)
14925   version_type=windows
14926   shrext_cmds=".dll"
14927   need_version=no
14928   need_lib_prefix=no
14929
14930   case $GCC,$host_os in
14931   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14932     library_names_spec='$libname.dll.a'
14933     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14934     postinstall_cmds='base_file=`basename \${file}`~
14935       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14936       dldir=$destdir/`dirname \$dlpath`~
14937       test -d \$dldir || mkdir -p \$dldir~
14938       $install_prog $dir/$dlname \$dldir/$dlname~
14939       chmod a+x \$dldir/$dlname~
14940       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14941         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14942       fi'
14943     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14944       dlpath=$dir/\$dldll~
14945        $RM \$dlpath'
14946     shlibpath_overrides_runpath=yes
14947
14948     case $host_os in
14949     cygwin*)
14950       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14951       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14952       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14953       ;;
14954     mingw* | cegcc*)
14955       # MinGW DLLs use traditional 'lib' prefix
14956       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14957       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14958       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14959         # It is most probably a Windows format PATH printed by
14960         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14961         # path with ; separators, and with drive letters. We can handle the
14962         # drive letters (cygwin fileutils understands them), so leave them,
14963         # especially as we might pass files found there to a mingw objdump,
14964         # which wouldn't understand a cygwinified path. Ahh.
14965         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14966       else
14967         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14968       fi
14969       ;;
14970     pw32*)
14971       # pw32 DLLs use 'pw' prefix rather than 'lib'
14972       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14973       ;;
14974     esac
14975     ;;
14976
14977   *)
14978     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14979     ;;
14980   esac
14981   dynamic_linker='Win32 ld.exe'
14982   # FIXME: first we should search . and the directory the executable is in
14983   shlibpath_var=PATH
14984   ;;
14985
14986 darwin* | rhapsody*)
14987   dynamic_linker="$host_os dyld"
14988   version_type=darwin
14989   need_lib_prefix=no
14990   need_version=no
14991   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14992   soname_spec='${libname}${release}${major}$shared_ext'
14993   shlibpath_overrides_runpath=yes
14994   shlibpath_var=DYLD_LIBRARY_PATH
14995   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14996
14997   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14998   ;;
14999
15000 dgux*)
15001   version_type=linux
15002   need_lib_prefix=no
15003   need_version=no
15004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15005   soname_spec='${libname}${release}${shared_ext}$major'
15006   shlibpath_var=LD_LIBRARY_PATH
15007   ;;
15008
15009 freebsd1*)
15010   dynamic_linker=no
15011   ;;
15012
15013 freebsd* | dragonfly*)
15014   # DragonFly does not have aout.  When/if they implement a new
15015   # versioning mechanism, adjust this.
15016   if test -x /usr/bin/objformat; then
15017     objformat=`/usr/bin/objformat`
15018   else
15019     case $host_os in
15020     freebsd[123]*) objformat=aout ;;
15021     *) objformat=elf ;;
15022     esac
15023   fi
15024   version_type=freebsd-$objformat
15025   case $version_type in
15026     freebsd-elf*)
15027       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15028       need_version=no
15029       need_lib_prefix=no
15030       ;;
15031     freebsd-*)
15032       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15033       need_version=yes
15034       ;;
15035   esac
15036   shlibpath_var=LD_LIBRARY_PATH
15037   case $host_os in
15038   freebsd2*)
15039     shlibpath_overrides_runpath=yes
15040     ;;
15041   freebsd3.[01]* | freebsdelf3.[01]*)
15042     shlibpath_overrides_runpath=yes
15043     hardcode_into_libs=yes
15044     ;;
15045   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15046   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15047     shlibpath_overrides_runpath=no
15048     hardcode_into_libs=yes
15049     ;;
15050   *) # from 4.6 on, and DragonFly
15051     shlibpath_overrides_runpath=yes
15052     hardcode_into_libs=yes
15053     ;;
15054   esac
15055   ;;
15056
15057 gnu*)
15058   version_type=linux
15059   need_lib_prefix=no
15060   need_version=no
15061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15062   soname_spec='${libname}${release}${shared_ext}$major'
15063   shlibpath_var=LD_LIBRARY_PATH
15064   hardcode_into_libs=yes
15065   ;;
15066
15067 hpux9* | hpux10* | hpux11*)
15068   # Give a soname corresponding to the major version so that dld.sl refuses to
15069   # link against other versions.
15070   version_type=sunos
15071   need_lib_prefix=no
15072   need_version=no
15073   case $host_cpu in
15074   ia64*)
15075     shrext_cmds='.so'
15076     hardcode_into_libs=yes
15077     dynamic_linker="$host_os dld.so"
15078     shlibpath_var=LD_LIBRARY_PATH
15079     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081     soname_spec='${libname}${release}${shared_ext}$major'
15082     if test "X$HPUX_IA64_MODE" = X32; then
15083       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15084     else
15085       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15086     fi
15087     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15088     ;;
15089   hppa*64*)
15090     shrext_cmds='.sl'
15091     hardcode_into_libs=yes
15092     dynamic_linker="$host_os dld.sl"
15093     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15094     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15098     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15099     ;;
15100   *)
15101     shrext_cmds='.sl'
15102     dynamic_linker="$host_os dld.sl"
15103     shlibpath_var=SHLIB_PATH
15104     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106     soname_spec='${libname}${release}${shared_ext}$major'
15107     ;;
15108   esac
15109   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15110   postinstall_cmds='chmod 555 $lib'
15111   ;;
15112
15113 interix[3-9]*)
15114   version_type=linux
15115   need_lib_prefix=no
15116   need_version=no
15117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15118   soname_spec='${libname}${release}${shared_ext}$major'
15119   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15120   shlibpath_var=LD_LIBRARY_PATH
15121   shlibpath_overrides_runpath=no
15122   hardcode_into_libs=yes
15123   ;;
15124
15125 irix5* | irix6* | nonstopux*)
15126   case $host_os in
15127     nonstopux*) version_type=nonstopux ;;
15128     *)
15129         if test "$lt_cv_prog_gnu_ld" = yes; then
15130                 version_type=linux
15131         else
15132                 version_type=irix
15133         fi ;;
15134   esac
15135   need_lib_prefix=no
15136   need_version=no
15137   soname_spec='${libname}${release}${shared_ext}$major'
15138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15139   case $host_os in
15140   irix5* | nonstopux*)
15141     libsuff= shlibsuff=
15142     ;;
15143   *)
15144     case $LD in # libtool.m4 will add one of these switches to LD
15145     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15146       libsuff= shlibsuff= libmagic=32-bit;;
15147     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15148       libsuff=32 shlibsuff=N32 libmagic=N32;;
15149     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15150       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15151     *) libsuff= shlibsuff= libmagic=never-match;;
15152     esac
15153     ;;
15154   esac
15155   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15156   shlibpath_overrides_runpath=no
15157   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15158   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15159   hardcode_into_libs=yes
15160   ;;
15161
15162 # No shared lib support for Linux oldld, aout, or coff.
15163 linux*oldld* | linux*aout* | linux*coff*)
15164   dynamic_linker=no
15165   ;;
15166
15167 # This must be Linux ELF.
15168 linux* | k*bsd*-gnu)
15169   version_type=linux
15170   need_lib_prefix=no
15171   need_version=no
15172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173   soname_spec='${libname}${release}${shared_ext}$major'
15174   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15175   shlibpath_var=LD_LIBRARY_PATH
15176   shlibpath_overrides_runpath=no
15177   # Some binutils ld are patched to set DT_RUNPATH
15178   save_LDFLAGS=$LDFLAGS
15179   save_libdir=$libdir
15180   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15181        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h.  */
15184
15185 int
15186 main ()
15187 {
15188
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 if ac_fn_cxx_try_link "$LINENO"; then :
15194   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15195   shlibpath_overrides_runpath=yes
15196 fi
15197 fi
15198 rm -f core conftest.err conftest.$ac_objext \
15199     conftest$ac_exeext conftest.$ac_ext
15200   LDFLAGS=$save_LDFLAGS
15201   libdir=$save_libdir
15202
15203   # This implies no fast_install, which is unacceptable.
15204   # Some rework will be needed to allow for fast_install
15205   # before this can be enabled.
15206   hardcode_into_libs=yes
15207
15208   # Append ld.so.conf contents to the search path
15209   if test -f /etc/ld.so.conf; then
15210     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' ' '`
15211     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15212   fi
15213
15214   # We used to test for /lib/ld.so.1 and disable shared libraries on
15215   # powerpc, because MkLinux only supported shared libraries with the
15216   # GNU dynamic linker.  Since this was broken with cross compilers,
15217   # most powerpc-linux boxes support dynamic linking these days and
15218   # people can always --disable-shared, the test was removed, and we
15219   # assume the GNU/Linux dynamic linker is in use.
15220   dynamic_linker='GNU/Linux ld.so'
15221   ;;
15222
15223 netbsd*)
15224   version_type=sunos
15225   need_lib_prefix=no
15226   need_version=no
15227   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15229     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15230     dynamic_linker='NetBSD (a.out) ld.so'
15231   else
15232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15233     soname_spec='${libname}${release}${shared_ext}$major'
15234     dynamic_linker='NetBSD ld.elf_so'
15235   fi
15236   shlibpath_var=LD_LIBRARY_PATH
15237   shlibpath_overrides_runpath=yes
15238   hardcode_into_libs=yes
15239   ;;
15240
15241 newsos6)
15242   version_type=linux
15243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244   shlibpath_var=LD_LIBRARY_PATH
15245   shlibpath_overrides_runpath=yes
15246   ;;
15247
15248 *nto* | *qnx*)
15249   version_type=qnx
15250   need_lib_prefix=no
15251   need_version=no
15252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253   soname_spec='${libname}${release}${shared_ext}$major'
15254   shlibpath_var=LD_LIBRARY_PATH
15255   shlibpath_overrides_runpath=no
15256   hardcode_into_libs=yes
15257   dynamic_linker='ldqnx.so'
15258   ;;
15259
15260 openbsd*)
15261   version_type=sunos
15262   sys_lib_dlsearch_path_spec="/usr/lib"
15263   need_lib_prefix=no
15264   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15265   case $host_os in
15266     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15267     *)                          need_version=no  ;;
15268   esac
15269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15270   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15271   shlibpath_var=LD_LIBRARY_PATH
15272   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15273     case $host_os in
15274       openbsd2.[89] | openbsd2.[89].*)
15275         shlibpath_overrides_runpath=no
15276         ;;
15277       *)
15278         shlibpath_overrides_runpath=yes
15279         ;;
15280       esac
15281   else
15282     shlibpath_overrides_runpath=yes
15283   fi
15284   ;;
15285
15286 os2*)
15287   libname_spec='$name'
15288   shrext_cmds=".dll"
15289   need_lib_prefix=no
15290   library_names_spec='$libname${shared_ext} $libname.a'
15291   dynamic_linker='OS/2 ld.exe'
15292   shlibpath_var=LIBPATH
15293   ;;
15294
15295 osf3* | osf4* | osf5*)
15296   version_type=osf
15297   need_lib_prefix=no
15298   need_version=no
15299   soname_spec='${libname}${release}${shared_ext}$major'
15300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15301   shlibpath_var=LD_LIBRARY_PATH
15302   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15303   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15304   ;;
15305
15306 rdos*)
15307   dynamic_linker=no
15308   ;;
15309
15310 solaris*)
15311   version_type=linux
15312   need_lib_prefix=no
15313   need_version=no
15314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315   soname_spec='${libname}${release}${shared_ext}$major'
15316   shlibpath_var=LD_LIBRARY_PATH
15317   shlibpath_overrides_runpath=yes
15318   hardcode_into_libs=yes
15319   # ldd complains unless libraries are executable
15320   postinstall_cmds='chmod +x $lib'
15321   ;;
15322
15323 sunos4*)
15324   version_type=sunos
15325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15326   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15327   shlibpath_var=LD_LIBRARY_PATH
15328   shlibpath_overrides_runpath=yes
15329   if test "$with_gnu_ld" = yes; then
15330     need_lib_prefix=no
15331   fi
15332   need_version=yes
15333   ;;
15334
15335 sysv4 | sysv4.3*)
15336   version_type=linux
15337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338   soname_spec='${libname}${release}${shared_ext}$major'
15339   shlibpath_var=LD_LIBRARY_PATH
15340   case $host_vendor in
15341     sni)
15342       shlibpath_overrides_runpath=no
15343       need_lib_prefix=no
15344       runpath_var=LD_RUN_PATH
15345       ;;
15346     siemens)
15347       need_lib_prefix=no
15348       ;;
15349     motorola)
15350       need_lib_prefix=no
15351       need_version=no
15352       shlibpath_overrides_runpath=no
15353       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15354       ;;
15355   esac
15356   ;;
15357
15358 sysv4*MP*)
15359   if test -d /usr/nec ;then
15360     version_type=linux
15361     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15362     soname_spec='$libname${shared_ext}.$major'
15363     shlibpath_var=LD_LIBRARY_PATH
15364   fi
15365   ;;
15366
15367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15368   version_type=freebsd-elf
15369   need_lib_prefix=no
15370   need_version=no
15371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15372   soname_spec='${libname}${release}${shared_ext}$major'
15373   shlibpath_var=LD_LIBRARY_PATH
15374   shlibpath_overrides_runpath=yes
15375   hardcode_into_libs=yes
15376   if test "$with_gnu_ld" = yes; then
15377     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15378   else
15379     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15380     case $host_os in
15381       sco3.2v5*)
15382         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15383         ;;
15384     esac
15385   fi
15386   sys_lib_dlsearch_path_spec='/usr/lib'
15387   ;;
15388
15389 tpf*)
15390   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15391   version_type=linux
15392   need_lib_prefix=no
15393   need_version=no
15394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395   shlibpath_var=LD_LIBRARY_PATH
15396   shlibpath_overrides_runpath=no
15397   hardcode_into_libs=yes
15398   ;;
15399
15400 uts4*)
15401   version_type=linux
15402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403   soname_spec='${libname}${release}${shared_ext}$major'
15404   shlibpath_var=LD_LIBRARY_PATH
15405   ;;
15406
15407 *)
15408   dynamic_linker=no
15409   ;;
15410 esac
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15412 $as_echo "$dynamic_linker" >&6; }
15413 test "$dynamic_linker" = no && can_build_shared=no
15414
15415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15416 if test "$GCC" = yes; then
15417   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15418 fi
15419
15420 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15421   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15422 fi
15423 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15424   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15425 fi
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
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15463 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15464 hardcode_action_CXX=
15465 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15466    test -n "$runpath_var_CXX" ||
15467    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15468
15469   # We can hardcode non-existent directories.
15470   if test "$hardcode_direct_CXX" != no &&
15471      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15472      # have to relink, otherwise we might link with an installed library
15473      # when we should be linking with a yet-to-be-installed one
15474      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15475      test "$hardcode_minus_L_CXX" != no; then
15476     # Linking always hardcodes the temporary library directory.
15477     hardcode_action_CXX=relink
15478   else
15479     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15480     hardcode_action_CXX=immediate
15481   fi
15482 else
15483   # We cannot hardcode anything, or else we can only hardcode existing
15484   # directories.
15485   hardcode_action_CXX=unsupported
15486 fi
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15488 $as_echo "$hardcode_action_CXX" >&6; }
15489
15490 if test "$hardcode_action_CXX" = relink ||
15491    test "$inherit_rpath_CXX" = yes; then
15492   # Fast installation is not supported
15493   enable_fast_install=no
15494 elif test "$shlibpath_overrides_runpath" = yes ||
15495      test "$enable_shared" = no; then
15496   # Fast installation is not necessary
15497   enable_fast_install=needless
15498 fi
15499
15500
15501
15502
15503
15504
15505
15506   fi # test -n "$compiler"
15507
15508   CC=$lt_save_CC
15509   LDCXX=$LD
15510   LD=$lt_save_LD
15511   GCC=$lt_save_GCC
15512   with_gnu_ld=$lt_save_with_gnu_ld
15513   lt_cv_path_LDCXX=$lt_cv_path_LD
15514   lt_cv_path_LD=$lt_save_path_LD
15515   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15516   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15517 fi # test "$_lt_caught_CXX_error" != yes
15518
15519 ac_ext=c
15520 ac_cpp='$CPP $CPPFLAGS'
15521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537         ac_config_commands="$ac_config_commands libtool"
15538
15539
15540
15541
15542 # Only expand once:
15543
15544
15545
15546
15547 if test x$use_libtool != xno; then
15548    DEFAULT_OBJECT_TYPE=".lo"
15549    DEFAULT_ARCHIVE_TYPE=".la"
15550    DEFAULT_SHARED_OBJECT_TYPE=".la"
15551    LIBTOOL="\$(LIBTOOL)"
15552    LIBTOOL_INSTALL_TARGET="libtool-install"
15553    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15554    LIBTOOL_CLEAN_TARGET="libtool-clean"
15555    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15556    FD_PLUGIN_DIR="src/plugins/fd"
15557    have_plugins=yes
15558 else
15559    DEFAULT_OBJECT_TYPE=".o"
15560    DEFAULT_ARCHIVE_TYPE=".a"
15561    DEFAULT_SHARED_OBJECT_TYPE=".so"
15562    LIBTOOL="# \$(LIBTOOL)"
15563    LIBTOOL_INSTALL_TARGET=""
15564    LIBTOOL_UNINSTALL_TARGET=""
15565    LIBTOOL_CLEAN_TARGET=""
15566    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15567    FD_PLUGIN_DIR=""
15568    have_plugins=no
15569 fi
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581 # Check whether --enable-includes was given.
15582 if test "${enable_includes+set}" = set; then :
15583   enableval=$enable_includes;
15584        if test x$enableval = xyes; then
15585           install_includes=yes
15586        fi
15587
15588
15589 fi
15590
15591
15592
15593 if test x$use_libtool != xno -a x$install_includes = xyes; then
15594    INCLUDE_INSTALL_TARGET="install-includes"
15595    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15596 else
15597    INCLUDE_INSTALL_TARGET=""
15598    INCLUDE_UNINSTALL_TARGET=""
15599 fi
15600
15601
15602
15603
15604
15605 case $host_os in
15606   *cygwin* ) CYGWIN=yes;;
15607          * ) CYGWIN=no;;
15608 esac
15609
15610 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15611 then
15612
15613
15614 if $TRUEPRG; then
15615   HAVE_SUN_OS_TRUE=
15616   HAVE_SUN_OS_FALSE='#'
15617 else
15618   HAVE_SUN_OS_TRUE='#'
15619   HAVE_SUN_OS_FALSE=
15620 fi
15621         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15622
15623 else
15624
15625
15626 if $FALSEPRG; then
15627   HAVE_SUN_OS_TRUE=
15628   HAVE_SUN_OS_FALSE='#'
15629 else
15630   HAVE_SUN_OS_TRUE='#'
15631   HAVE_SUN_OS_FALSE=
15632 fi
15633 fi
15634
15635 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15636 then
15637
15638
15639 if $TRUEPRG; then
15640   HAVE_OSF1_OS_TRUE=
15641   HAVE_OSF1_OS_FALSE='#'
15642 else
15643   HAVE_OSF1_OS_TRUE='#'
15644   HAVE_OSF1_OS_FALSE=
15645 fi
15646         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15647
15648 else
15649
15650
15651 if $FALSEPRG; then
15652   HAVE_OSF1_OS_TRUE=
15653   HAVE_OSF1_OS_FALSE='#'
15654 else
15655   HAVE_OSF1_OS_TRUE='#'
15656   HAVE_OSF1_OS_FALSE=
15657 fi
15658 fi
15659
15660 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15661 then
15662
15663
15664 if $TRUEPRG; then
15665   HAVE_AIX_OS_TRUE=
15666   HAVE_AIX_OS_FALSE='#'
15667 else
15668   HAVE_AIX_OS_TRUE='#'
15669   HAVE_AIX_OS_FALSE=
15670 fi
15671         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15672
15673 else
15674
15675
15676 if $FALSEPRG; then
15677   HAVE_AIX_OS_TRUE=
15678   HAVE_AIX_OS_FALSE='#'
15679 else
15680   HAVE_AIX_OS_TRUE='#'
15681   HAVE_AIX_OS_FALSE=
15682 fi
15683 fi
15684
15685 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15686 then
15687
15688
15689 if $TRUEPRG; then
15690   HAVE_HPUX_OS_TRUE=
15691   HAVE_HPUX_OS_FALSE='#'
15692 else
15693   HAVE_HPUX_OS_TRUE='#'
15694   HAVE_HPUX_OS_FALSE=
15695 fi
15696         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15697
15698 else
15699
15700
15701 if $FALSEPRG; then
15702   HAVE_HPUX_OS_TRUE=
15703   HAVE_HPUX_OS_FALSE='#'
15704 else
15705   HAVE_HPUX_OS_TRUE='#'
15706   HAVE_HPUX_OS_FALSE=
15707 fi
15708 fi
15709
15710 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15711 then
15712
15713
15714 if $TRUEPRG; then
15715   HAVE_LINUX_OS_TRUE=
15716   HAVE_LINUX_OS_FALSE='#'
15717 else
15718   HAVE_LINUX_OS_TRUE='#'
15719   HAVE_LINUX_OS_FALSE=
15720 fi
15721         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15722
15723 else
15724
15725
15726 if $FALSEPRG; then
15727   HAVE_LINUX_OS_TRUE=
15728   HAVE_LINUX_OS_FALSE='#'
15729 else
15730   HAVE_LINUX_OS_TRUE='#'
15731   HAVE_LINUX_OS_FALSE=
15732 fi
15733 fi
15734
15735 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15736 then
15737
15738
15739 if $TRUEPRG; then
15740   HAVE_FREEBSD_OS_TRUE=
15741   HAVE_FREEBSD_OS_FALSE='#'
15742 else
15743   HAVE_FREEBSD_OS_TRUE='#'
15744   HAVE_FREEBSD_OS_FALSE=
15745 fi
15746         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15747
15748 else
15749
15750
15751 if $FALSEPRG; then
15752   HAVE_FREEBSD_OS_TRUE=
15753   HAVE_FREEBSD_OS_FALSE='#'
15754 else
15755   HAVE_FREEBSD_OS_TRUE='#'
15756   HAVE_FREEBSD_OS_FALSE=
15757 fi
15758 fi
15759
15760 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15761 then
15762
15763
15764 if $TRUEPRG; then
15765   HAVE_NETBSD_OS_TRUE=
15766   HAVE_NETBSD_OS_FALSE='#'
15767 else
15768   HAVE_NETBSD_OS_TRUE='#'
15769   HAVE_NETBSD_OS_FALSE=
15770 fi
15771         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15772
15773 else
15774
15775
15776 if $FALSEPRG; then
15777   HAVE_NETBSD_OS_TRUE=
15778   HAVE_NETBSD_OS_FALSE='#'
15779 else
15780   HAVE_NETBSD_OS_TRUE='#'
15781   HAVE_NETBSD_OS_FALSE=
15782 fi
15783 fi
15784
15785 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15786 then
15787
15788
15789 if $TRUEPRG; then
15790   HAVE_OPENBSD_OS_TRUE=
15791   HAVE_OPENBSD_OS_FALSE='#'
15792 else
15793   HAVE_OPENBSD_OS_TRUE='#'
15794   HAVE_OPENBSD_OS_FALSE=
15795 fi
15796         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15797
15798 else
15799
15800
15801 if $FALSEPRG; then
15802   HAVE_OPENBSD_OS_TRUE=
15803   HAVE_OPENBSD_OS_FALSE='#'
15804 else
15805   HAVE_OPENBSD_OS_TRUE='#'
15806   HAVE_OPENBSD_OS_FALSE=
15807 fi
15808 fi
15809
15810 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15811 then
15812
15813
15814 if $TRUEPRG; then
15815   HAVE_BSDI_OS_TRUE=
15816   HAVE_BSDI_OS_FALSE='#'
15817 else
15818   HAVE_BSDI_OS_TRUE='#'
15819   HAVE_BSDI_OS_FALSE=
15820 fi
15821         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15822
15823 else
15824
15825
15826 if $FALSEPRG; then
15827   HAVE_BSDI_OS_TRUE=
15828   HAVE_BSDI_OS_FALSE='#'
15829 else
15830   HAVE_BSDI_OS_TRUE='#'
15831   HAVE_BSDI_OS_FALSE=
15832 fi
15833 fi
15834
15835 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15836 then
15837
15838
15839 if $TRUEPRG; then
15840   HAVE_SGI_OS_TRUE=
15841   HAVE_SGI_OS_FALSE='#'
15842 else
15843   HAVE_SGI_OS_TRUE='#'
15844   HAVE_SGI_OS_FALSE=
15845 fi
15846         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15847
15848 else
15849
15850
15851 if $FALSEPRG; then
15852   HAVE_SGI_OS_TRUE=
15853   HAVE_SGI_OS_FALSE='#'
15854 else
15855   HAVE_SGI_OS_TRUE='#'
15856   HAVE_SGI_OS_FALSE=
15857 fi
15858 fi
15859
15860 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15861 then
15862
15863
15864 if $TRUEPRG; then
15865   HAVE_IRIX_OS_TRUE=
15866   HAVE_IRIX_OS_FALSE='#'
15867 else
15868   HAVE_IRIX_OS_TRUE='#'
15869   HAVE_IRIX_OS_FALSE=
15870 fi
15871         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15872
15873 else
15874
15875
15876 if $FALSEPRG; then
15877   HAVE_IRIX_OS_TRUE=
15878   HAVE_IRIX_OS_FALSE='#'
15879 else
15880   HAVE_IRIX_OS_TRUE='#'
15881   HAVE_IRIX_OS_FALSE=
15882 fi
15883 fi
15884
15885 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15886 then
15887
15888
15889 if $TRUEPRG; then
15890   HAVE_DARWIN_OS_TRUE=
15891   HAVE_DARWIN_OS_FALSE='#'
15892 else
15893   HAVE_DARWIN_OS_TRUE='#'
15894   HAVE_DARWIN_OS_FALSE=
15895 fi
15896     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15897
15898 else
15899
15900
15901 if $FALSEPRG; then
15902   HAVE_DARWIN_OS_TRUE=
15903   HAVE_DARWIN_OS_FALSE='#'
15904 else
15905   HAVE_DARWIN_OS_TRUE='#'
15906   HAVE_DARWIN_OS_FALSE=
15907 fi
15908 fi
15909
15910
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15912 $as_echo_n "checking for Operating System Distribution... " >&6; }
15913 if test "x$DISTNAME" != "x"
15914 then
15915         echo "distname set to $DISTNAME"
15916 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15917 then
15918         DISTNAME=alpha
15919 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15920 then
15921         DISTNAME=aix
15922 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15923 then
15924         DISTNAME=hpux
15925 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15926 then
15927         DISTNAME=solaris
15928 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15929 then
15930         DISTNAME=freebsd
15931 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15932 then
15933         DISTNAME=netbsd
15934 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15935 then
15936         DISTNAME=openbsd
15937 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15938 then
15939         DISTNAME=irix
15940 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15941 then
15942         DISTNAME=bsdi
15943 elif test -f /etc/SuSE-release
15944 then
15945         DISTNAME=suse
15946 elif test -d /etc/SuSEconfig
15947 then
15948         DISTNAME=suse5
15949 elif test -f /etc/mandrake-release
15950 then
15951         DISTNAME=mandrake
15952 elif test -f /etc/whitebox-release
15953 then
15954        DISTNAME=redhat
15955 elif test -f /etc/redhat-release
15956 then
15957         DISTNAME=redhat
15958 elif test -f /etc/gentoo-release
15959 then
15960         DISTNAME=gentoo
15961 elif test -f /etc/debian_version
15962 then
15963         DISTNAME=debian
15964 elif test -f /etc/slackware-version
15965 then
15966         DISTNAME=slackware
15967 elif test x$host_vendor = xapple
15968 then
15969     DISTNAME=osx
15970 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15971 then
15972     DISTNAME=darwin
15973 elif test -f /etc/engarde-version
15974 then
15975         DISTNAME=engarde
15976 elif test "$CYGWIN" = yes
15977 then
15978         DISTNAME=cygwin
15979         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15980
15981 else
15982         DISTNAME=unknown
15983 fi
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15985 $as_echo "done" >&6; }
15986
15987
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15989 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15990 set x ${MAKE-make}
15991 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15992 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15993   $as_echo_n "(cached) " >&6
15994 else
15995   cat >conftest.make <<\_ACEOF
15996 SHELL = /bin/sh
15997 all:
15998         @echo '@@@%%%=$(MAKE)=@@@%%%'
15999 _ACEOF
16000 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16001 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16002   *@@@%%%=?*=@@@%%%*)
16003     eval ac_cv_prog_make_${ac_make}_set=yes;;
16004   *)
16005     eval ac_cv_prog_make_${ac_make}_set=no;;
16006 esac
16007 rm -f conftest.make
16008 fi
16009 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16011 $as_echo "yes" >&6; }
16012   SET_MAKE=
16013 else
16014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16016   SET_MAKE="MAKE=${MAKE-make}"
16017 fi
16018
16019
16020
16021         MKINSTALLDIRS=
16022   if test -n "$ac_aux_dir"; then
16023     case "$ac_aux_dir" in
16024       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16025       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16026     esac
16027   fi
16028   if test -z "$MKINSTALLDIRS"; then
16029     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16030   fi
16031
16032
16033
16034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16035 $as_echo_n "checking whether NLS is requested... " >&6; }
16036     # Check whether --enable-nls was given.
16037 if test "${enable_nls+set}" = set; then :
16038   enableval=$enable_nls; USE_NLS=$enableval
16039 else
16040   USE_NLS=yes
16041 fi
16042
16043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16044 $as_echo "$USE_NLS" >&6; }
16045
16046
16047
16048
16049
16050
16051 # Prepare PATH_SEPARATOR.
16052 # The user is always right.
16053 if test "${PATH_SEPARATOR+set}" != set; then
16054   echo "#! /bin/sh" >conf$$.sh
16055   echo  "exit 0"   >>conf$$.sh
16056   chmod +x conf$$.sh
16057   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16058     PATH_SEPARATOR=';'
16059   else
16060     PATH_SEPARATOR=:
16061   fi
16062   rm -f conf$$.sh
16063 fi
16064
16065 # Find out how to test for executable files. Don't use a zero-byte file,
16066 # as systems may use methods other than mode bits to determine executability.
16067 cat >conf$$.file <<_ASEOF
16068 #! /bin/sh
16069 exit 0
16070 _ASEOF
16071 chmod +x conf$$.file
16072 if test -x conf$$.file >/dev/null 2>&1; then
16073   ac_executable_p="test -x"
16074 else
16075   ac_executable_p="test -f"
16076 fi
16077 rm -f conf$$.file
16078
16079 # Extract the first word of "msgfmt", so it can be a program name with args.
16080 set dummy msgfmt; ac_word=$2
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16082 $as_echo_n "checking for $ac_word... " >&6; }
16083 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16084   $as_echo_n "(cached) " >&6
16085 else
16086   case "$MSGFMT" in
16087   [\\/]* | ?:[\\/]*)
16088     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16089     ;;
16090   *)
16091     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16092     for ac_dir in $PATH; do
16093       IFS="$ac_save_IFS"
16094       test -z "$ac_dir" && ac_dir=.
16095       for ac_exec_ext in '' $ac_executable_extensions; do
16096         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16097           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16098           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16099      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16100             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16101             break 2
16102           fi
16103         fi
16104       done
16105     done
16106     IFS="$ac_save_IFS"
16107   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16108     ;;
16109 esac
16110 fi
16111 MSGFMT="$ac_cv_path_MSGFMT"
16112 if test "$MSGFMT" != ":"; then
16113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16114 $as_echo "$MSGFMT" >&6; }
16115 else
16116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16117 $as_echo "no" >&6; }
16118 fi
16119
16120   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16121 set dummy gmsgfmt; ac_word=$2
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16123 $as_echo_n "checking for $ac_word... " >&6; }
16124 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16125   $as_echo_n "(cached) " >&6
16126 else
16127   case $GMSGFMT in
16128   [\\/]* | ?:[\\/]*)
16129   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16130   ;;
16131   *)
16132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16133 for as_dir in $PATH
16134 do
16135   IFS=$as_save_IFS
16136   test -z "$as_dir" && as_dir=.
16137     for ac_exec_ext in '' $ac_executable_extensions; do
16138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16139     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16141     break 2
16142   fi
16143 done
16144   done
16145 IFS=$as_save_IFS
16146
16147   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16148   ;;
16149 esac
16150 fi
16151 GMSGFMT=$ac_cv_path_GMSGFMT
16152 if test -n "$GMSGFMT"; then
16153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16154 $as_echo "$GMSGFMT" >&6; }
16155 else
16156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16157 $as_echo "no" >&6; }
16158 fi
16159
16160
16161
16162
16163 # Prepare PATH_SEPARATOR.
16164 # The user is always right.
16165 if test "${PATH_SEPARATOR+set}" != set; then
16166   echo "#! /bin/sh" >conf$$.sh
16167   echo  "exit 0"   >>conf$$.sh
16168   chmod +x conf$$.sh
16169   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16170     PATH_SEPARATOR=';'
16171   else
16172     PATH_SEPARATOR=:
16173   fi
16174   rm -f conf$$.sh
16175 fi
16176
16177 # Find out how to test for executable files. Don't use a zero-byte file,
16178 # as systems may use methods other than mode bits to determine executability.
16179 cat >conf$$.file <<_ASEOF
16180 #! /bin/sh
16181 exit 0
16182 _ASEOF
16183 chmod +x conf$$.file
16184 if test -x conf$$.file >/dev/null 2>&1; then
16185   ac_executable_p="test -x"
16186 else
16187   ac_executable_p="test -f"
16188 fi
16189 rm -f conf$$.file
16190
16191 # Extract the first word of "xgettext", so it can be a program name with args.
16192 set dummy xgettext; ac_word=$2
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16194 $as_echo_n "checking for $ac_word... " >&6; }
16195 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16196   $as_echo_n "(cached) " >&6
16197 else
16198   case "$XGETTEXT" in
16199   [\\/]* | ?:[\\/]*)
16200     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16201     ;;
16202   *)
16203     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16204     for ac_dir in $PATH; do
16205       IFS="$ac_save_IFS"
16206       test -z "$ac_dir" && ac_dir=.
16207       for ac_exec_ext in '' $ac_executable_extensions; do
16208         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16209           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16210           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16211      (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
16212             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16213             break 2
16214           fi
16215         fi
16216       done
16217     done
16218     IFS="$ac_save_IFS"
16219   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16220     ;;
16221 esac
16222 fi
16223 XGETTEXT="$ac_cv_path_XGETTEXT"
16224 if test "$XGETTEXT" != ":"; then
16225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16226 $as_echo "$XGETTEXT" >&6; }
16227 else
16228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16230 fi
16231
16232     rm -f messages.po
16233
16234
16235 # Prepare PATH_SEPARATOR.
16236 # The user is always right.
16237 if test "${PATH_SEPARATOR+set}" != set; then
16238   echo "#! /bin/sh" >conf$$.sh
16239   echo  "exit 0"   >>conf$$.sh
16240   chmod +x conf$$.sh
16241   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16242     PATH_SEPARATOR=';'
16243   else
16244     PATH_SEPARATOR=:
16245   fi
16246   rm -f conf$$.sh
16247 fi
16248
16249 # Find out how to test for executable files. Don't use a zero-byte file,
16250 # as systems may use methods other than mode bits to determine executability.
16251 cat >conf$$.file <<_ASEOF
16252 #! /bin/sh
16253 exit 0
16254 _ASEOF
16255 chmod +x conf$$.file
16256 if test -x conf$$.file >/dev/null 2>&1; then
16257   ac_executable_p="test -x"
16258 else
16259   ac_executable_p="test -f"
16260 fi
16261 rm -f conf$$.file
16262
16263 # Extract the first word of "msgmerge", so it can be a program name with args.
16264 set dummy msgmerge; ac_word=$2
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16266 $as_echo_n "checking for $ac_word... " >&6; }
16267 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16268   $as_echo_n "(cached) " >&6
16269 else
16270   case "$MSGMERGE" in
16271   [\\/]* | ?:[\\/]*)
16272     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16273     ;;
16274   *)
16275     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16276     for ac_dir in $PATH; do
16277       IFS="$ac_save_IFS"
16278       test -z "$ac_dir" && ac_dir=.
16279       for ac_exec_ext in '' $ac_executable_extensions; do
16280         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16281           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16282           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16283             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16284             break 2
16285           fi
16286         fi
16287       done
16288     done
16289     IFS="$ac_save_IFS"
16290   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16291     ;;
16292 esac
16293 fi
16294 MSGMERGE="$ac_cv_path_MSGMERGE"
16295 if test "$MSGMERGE" != ":"; then
16296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16297 $as_echo "$MSGMERGE" >&6; }
16298 else
16299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16300 $as_echo "no" >&6; }
16301 fi
16302
16303
16304       if test "$GMSGFMT" != ":"; then
16305             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16306        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16307       : ;
16308     else
16309       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16311 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16312       GMSGFMT=":"
16313     fi
16314   fi
16315
16316       if test "$XGETTEXT" != ":"; then
16317             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16318        (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
16319       : ;
16320     else
16321       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16322 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16323       XGETTEXT=":"
16324     fi
16325         rm -f messages.po
16326   fi
16327
16328   ac_config_commands="$ac_config_commands default-1"
16329
16330
16331
16332       if test "X$prefix" = "XNONE"; then
16333     acl_final_prefix="$ac_default_prefix"
16334   else
16335     acl_final_prefix="$prefix"
16336   fi
16337   if test "X$exec_prefix" = "XNONE"; then
16338     acl_final_exec_prefix='${prefix}'
16339   else
16340     acl_final_exec_prefix="$exec_prefix"
16341   fi
16342   acl_save_prefix="$prefix"
16343   prefix="$acl_final_prefix"
16344   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16345   prefix="$acl_save_prefix"
16346
16347
16348 # Check whether --with-gnu-ld was given.
16349 if test "${with_gnu_ld+set}" = set; then :
16350   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16351 else
16352   with_gnu_ld=no
16353 fi
16354
16355 # Prepare PATH_SEPARATOR.
16356 # The user is always right.
16357 if test "${PATH_SEPARATOR+set}" != set; then
16358   echo "#! /bin/sh" >conf$$.sh
16359   echo  "exit 0"   >>conf$$.sh
16360   chmod +x conf$$.sh
16361   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16362     PATH_SEPARATOR=';'
16363   else
16364     PATH_SEPARATOR=:
16365   fi
16366   rm -f conf$$.sh
16367 fi
16368 ac_prog=ld
16369 if test "$GCC" = yes; then
16370   # Check if gcc -print-prog-name=ld gives a path.
16371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16372 $as_echo_n "checking for ld used by GCC... " >&6; }
16373   case $host in
16374   *-*-mingw*)
16375     # gcc leaves a trailing carriage return which upsets mingw
16376     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16377   *)
16378     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16379   esac
16380   case $ac_prog in
16381     # Accept absolute paths.
16382     [\\/]* | [A-Za-z]:[\\/]*)
16383       re_direlt='/[^/][^/]*/\.\./'
16384       # Canonicalize the path of ld
16385       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16386       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16387         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16388       done
16389       test -z "$LD" && LD="$ac_prog"
16390       ;;
16391   "")
16392     # If it fails, then pretend we aren't using GCC.
16393     ac_prog=ld
16394     ;;
16395   *)
16396     # If it is relative, then search for the first ld in PATH.
16397     with_gnu_ld=unknown
16398     ;;
16399   esac
16400 elif test "$with_gnu_ld" = yes; then
16401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16402 $as_echo_n "checking for GNU ld... " >&6; }
16403 else
16404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16405 $as_echo_n "checking for non-GNU ld... " >&6; }
16406 fi
16407 if test "${acl_cv_path_LD+set}" = set; then :
16408   $as_echo_n "(cached) " >&6
16409 else
16410   if test -z "$LD"; then
16411   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16412   for ac_dir in $PATH; do
16413     test -z "$ac_dir" && ac_dir=.
16414     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16415       acl_cv_path_LD="$ac_dir/$ac_prog"
16416       # Check to see if the program is GNU ld.  I'd rather use --version,
16417       # but apparently some GNU ld's only accept -v.
16418       # Break only if it was the GNU/non-GNU ld that we prefer.
16419       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16420       *GNU* | *'with BFD'*)
16421         test "$with_gnu_ld" != no && break ;;
16422       *)
16423         test "$with_gnu_ld" != yes && break ;;
16424       esac
16425     fi
16426   done
16427   IFS="$ac_save_ifs"
16428 else
16429   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16430 fi
16431 fi
16432
16433 LD="$acl_cv_path_LD"
16434 if test -n "$LD"; then
16435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16436 $as_echo "$LD" >&6; }
16437 else
16438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16439 $as_echo "no" >&6; }
16440 fi
16441 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16443 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16444 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16445   $as_echo_n "(cached) " >&6
16446 else
16447   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16448 case `$LD -v 2>&1 </dev/null` in
16449 *GNU* | *'with BFD'*)
16450   acl_cv_prog_gnu_ld=yes ;;
16451 *)
16452   acl_cv_prog_gnu_ld=no ;;
16453 esac
16454 fi
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16456 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16457 with_gnu_ld=$acl_cv_prog_gnu_ld
16458
16459
16460
16461
16462                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16463 $as_echo_n "checking for shared library run path origin... " >&6; }
16464 if test "${acl_cv_rpath+set}" = set; then :
16465   $as_echo_n "(cached) " >&6
16466 else
16467
16468     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16469     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16470     . ./conftest.sh
16471     rm -f ./conftest.sh
16472     acl_cv_rpath=done
16473
16474 fi
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16476 $as_echo "$acl_cv_rpath" >&6; }
16477   wl="$acl_cv_wl"
16478   libext="$acl_cv_libext"
16479   shlibext="$acl_cv_shlibext"
16480   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16481   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16482   hardcode_direct="$acl_cv_hardcode_direct"
16483   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16484     # Check whether --enable-rpath was given.
16485 if test "${enable_rpath+set}" = set; then :
16486   enableval=$enable_rpath; :
16487 else
16488   enable_rpath=yes
16489 fi
16490
16491
16492
16493
16494
16495
16496
16497
16498     use_additional=yes
16499
16500   acl_save_prefix="$prefix"
16501   prefix="$acl_final_prefix"
16502   acl_save_exec_prefix="$exec_prefix"
16503   exec_prefix="$acl_final_exec_prefix"
16504
16505     eval additional_includedir=\"$includedir\"
16506     eval additional_libdir=\"$libdir\"
16507
16508   exec_prefix="$acl_save_exec_prefix"
16509   prefix="$acl_save_prefix"
16510
16511
16512 # Check whether --with-libiconv-prefix was given.
16513 if test "${with_libiconv_prefix+set}" = set; then :
16514   withval=$with_libiconv_prefix;
16515     if test "X$withval" = "Xno"; then
16516       use_additional=no
16517     else
16518       if test "X$withval" = "X"; then
16519
16520   acl_save_prefix="$prefix"
16521   prefix="$acl_final_prefix"
16522   acl_save_exec_prefix="$exec_prefix"
16523   exec_prefix="$acl_final_exec_prefix"
16524
16525           eval additional_includedir=\"$includedir\"
16526           eval additional_libdir=\"$libdir\"
16527
16528   exec_prefix="$acl_save_exec_prefix"
16529   prefix="$acl_save_prefix"
16530
16531       else
16532         additional_includedir="$withval/include"
16533         additional_libdir="$withval/lib"
16534       fi
16535     fi
16536
16537 fi
16538
16539       LIBICONV=
16540   LTLIBICONV=
16541   INCICONV=
16542   rpathdirs=
16543   ltrpathdirs=
16544   names_already_handled=
16545   names_next_round='iconv '
16546   while test -n "$names_next_round"; do
16547     names_this_round="$names_next_round"
16548     names_next_round=
16549     for name in $names_this_round; do
16550       already_handled=
16551       for n in $names_already_handled; do
16552         if test "$n" = "$name"; then
16553           already_handled=yes
16554           break
16555         fi
16556       done
16557       if test -z "$already_handled"; then
16558         names_already_handled="$names_already_handled $name"
16559                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16560         eval value=\"\$HAVE_LIB$uppername\"
16561         if test -n "$value"; then
16562           if test "$value" = yes; then
16563             eval value=\"\$LIB$uppername\"
16564             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16565             eval value=\"\$LTLIB$uppername\"
16566             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16567           else
16568                                     :
16569           fi
16570         else
16571                               found_dir=
16572           found_la=
16573           found_so=
16574           found_a=
16575           if test $use_additional = yes; then
16576             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16577               found_dir="$additional_libdir"
16578               found_so="$additional_libdir/lib$name.$shlibext"
16579               if test -f "$additional_libdir/lib$name.la"; then
16580                 found_la="$additional_libdir/lib$name.la"
16581               fi
16582             else
16583               if test -f "$additional_libdir/lib$name.$libext"; then
16584                 found_dir="$additional_libdir"
16585                 found_a="$additional_libdir/lib$name.$libext"
16586                 if test -f "$additional_libdir/lib$name.la"; then
16587                   found_la="$additional_libdir/lib$name.la"
16588                 fi
16589               fi
16590             fi
16591           fi
16592           if test "X$found_dir" = "X"; then
16593             for x in $LDFLAGS $LTLIBICONV; do
16594
16595   acl_save_prefix="$prefix"
16596   prefix="$acl_final_prefix"
16597   acl_save_exec_prefix="$exec_prefix"
16598   exec_prefix="$acl_final_exec_prefix"
16599   eval x=\"$x\"
16600   exec_prefix="$acl_save_exec_prefix"
16601   prefix="$acl_save_prefix"
16602
16603               case "$x" in
16604                 -L*)
16605                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16606                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16607                     found_dir="$dir"
16608                     found_so="$dir/lib$name.$shlibext"
16609                     if test -f "$dir/lib$name.la"; then
16610                       found_la="$dir/lib$name.la"
16611                     fi
16612                   else
16613                     if test -f "$dir/lib$name.$libext"; then
16614                       found_dir="$dir"
16615                       found_a="$dir/lib$name.$libext"
16616                       if test -f "$dir/lib$name.la"; then
16617                         found_la="$dir/lib$name.la"
16618                       fi
16619                     fi
16620                   fi
16621                   ;;
16622               esac
16623               if test "X$found_dir" != "X"; then
16624                 break
16625               fi
16626             done
16627           fi
16628           if test "X$found_dir" != "X"; then
16629                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16630             if test "X$found_so" != "X"; then
16631                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16632                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16633               else
16634                                                                                 haveit=
16635                 for x in $ltrpathdirs; do
16636                   if test "X$x" = "X$found_dir"; then
16637                     haveit=yes
16638                     break
16639                   fi
16640                 done
16641                 if test -z "$haveit"; then
16642                   ltrpathdirs="$ltrpathdirs $found_dir"
16643                 fi
16644                                 if test "$hardcode_direct" = yes; then
16645                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16646                 else
16647                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16648                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16649                                                             haveit=
16650                     for x in $rpathdirs; do
16651                       if test "X$x" = "X$found_dir"; then
16652                         haveit=yes
16653                         break
16654                       fi
16655                     done
16656                     if test -z "$haveit"; then
16657                       rpathdirs="$rpathdirs $found_dir"
16658                     fi
16659                   else
16660                                                                                 haveit=
16661                     for x in $LDFLAGS $LIBICONV; do
16662
16663   acl_save_prefix="$prefix"
16664   prefix="$acl_final_prefix"
16665   acl_save_exec_prefix="$exec_prefix"
16666   exec_prefix="$acl_final_exec_prefix"
16667   eval x=\"$x\"
16668   exec_prefix="$acl_save_exec_prefix"
16669   prefix="$acl_save_prefix"
16670
16671                       if test "X$x" = "X-L$found_dir"; then
16672                         haveit=yes
16673                         break
16674                       fi
16675                     done
16676                     if test -z "$haveit"; then
16677                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16678                     fi
16679                     if test "$hardcode_minus_L" != no; then
16680                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16681                     else
16682                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16683                     fi
16684                   fi
16685                 fi
16686               fi
16687             else
16688               if test "X$found_a" != "X"; then
16689                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16690               else
16691                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16692               fi
16693             fi
16694                         additional_includedir=
16695             case "$found_dir" in
16696               */lib | */lib/)
16697                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16698                 additional_includedir="$basedir/include"
16699                 ;;
16700             esac
16701             if test "X$additional_includedir" != "X"; then
16702                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16703                 haveit=
16704                 if test "X$additional_includedir" = "X/usr/local/include"; then
16705                   if test -n "$GCC"; then
16706                     case $host_os in
16707                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16708                     esac
16709                   fi
16710                 fi
16711                 if test -z "$haveit"; then
16712                   for x in $CPPFLAGS $INCICONV; do
16713
16714   acl_save_prefix="$prefix"
16715   prefix="$acl_final_prefix"
16716   acl_save_exec_prefix="$exec_prefix"
16717   exec_prefix="$acl_final_exec_prefix"
16718   eval x=\"$x\"
16719   exec_prefix="$acl_save_exec_prefix"
16720   prefix="$acl_save_prefix"
16721
16722                     if test "X$x" = "X-I$additional_includedir"; then
16723                       haveit=yes
16724                       break
16725                     fi
16726                   done
16727                   if test -z "$haveit"; then
16728                     if test -d "$additional_includedir"; then
16729                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16730                     fi
16731                   fi
16732                 fi
16733               fi
16734             fi
16735                         if test -n "$found_la"; then
16736                                                         save_libdir="$libdir"
16737               case "$found_la" in
16738                 */* | *\\*) . "$found_la" ;;
16739                 *) . "./$found_la" ;;
16740               esac
16741               libdir="$save_libdir"
16742                             for dep in $dependency_libs; do
16743                 case "$dep" in
16744                   -L*)
16745                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16746                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16747                       haveit=
16748                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16749                         if test -n "$GCC"; then
16750                           case $host_os in
16751                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16752                           esac
16753                         fi
16754                       fi
16755                       if test -z "$haveit"; then
16756                         haveit=
16757                         for x in $LDFLAGS $LIBICONV; do
16758
16759   acl_save_prefix="$prefix"
16760   prefix="$acl_final_prefix"
16761   acl_save_exec_prefix="$exec_prefix"
16762   exec_prefix="$acl_final_exec_prefix"
16763   eval x=\"$x\"
16764   exec_prefix="$acl_save_exec_prefix"
16765   prefix="$acl_save_prefix"
16766
16767                           if test "X$x" = "X-L$additional_libdir"; then
16768                             haveit=yes
16769                             break
16770                           fi
16771                         done
16772                         if test -z "$haveit"; then
16773                           if test -d "$additional_libdir"; then
16774                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16775                           fi
16776                         fi
16777                         haveit=
16778                         for x in $LDFLAGS $LTLIBICONV; do
16779
16780   acl_save_prefix="$prefix"
16781   prefix="$acl_final_prefix"
16782   acl_save_exec_prefix="$exec_prefix"
16783   exec_prefix="$acl_final_exec_prefix"
16784   eval x=\"$x\"
16785   exec_prefix="$acl_save_exec_prefix"
16786   prefix="$acl_save_prefix"
16787
16788                           if test "X$x" = "X-L$additional_libdir"; then
16789                             haveit=yes
16790                             break
16791                           fi
16792                         done
16793                         if test -z "$haveit"; then
16794                           if test -d "$additional_libdir"; then
16795                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16796                           fi
16797                         fi
16798                       fi
16799                     fi
16800                     ;;
16801                   -R*)
16802                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16803                     if test "$enable_rpath" != no; then
16804                                                                   haveit=
16805                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
16813                       fi
16814                                                                   haveit=
16815                       for x in $ltrpathdirs; do
16816                         if test "X$x" = "X$dir"; then
16817                           haveit=yes
16818                           break
16819                         fi
16820                       done
16821                       if test -z "$haveit"; then
16822                         ltrpathdirs="$ltrpathdirs $dir"
16823                       fi
16824                     fi
16825                     ;;
16826                   -l*)
16827                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16828                     ;;
16829                   *.la)
16830                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16831                     ;;
16832                   *)
16833                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16834                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16835                     ;;
16836                 esac
16837               done
16838             fi
16839           else
16840                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16841             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16842           fi
16843         fi
16844       fi
16845     done
16846   done
16847   if test "X$rpathdirs" != "X"; then
16848     if test -n "$hardcode_libdir_separator"; then
16849                         alldirs=
16850       for found_dir in $rpathdirs; do
16851         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16852       done
16853             acl_save_libdir="$libdir"
16854       libdir="$alldirs"
16855       eval flag=\"$hardcode_libdir_flag_spec\"
16856       libdir="$acl_save_libdir"
16857       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16858     else
16859             for found_dir in $rpathdirs; do
16860         acl_save_libdir="$libdir"
16861         libdir="$found_dir"
16862         eval flag=\"$hardcode_libdir_flag_spec\"
16863         libdir="$acl_save_libdir"
16864         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16865       done
16866     fi
16867   fi
16868   if test "X$ltrpathdirs" != "X"; then
16869             for found_dir in $ltrpathdirs; do
16870       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16871     done
16872   fi
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16892 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16893 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16894   $as_echo_n "(cached) " >&6
16895 else
16896   gt_save_CPPFLAGS="$CPPFLAGS"
16897      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16898      gt_save_LIBS="$LIBS"
16899      LIBS="$LIBS -framework CoreFoundation"
16900      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h.  */
16902 #include <CFPreferences.h>
16903 int
16904 main ()
16905 {
16906 CFPreferencesCopyAppValue(NULL, NULL)
16907   ;
16908   return 0;
16909 }
16910 _ACEOF
16911 if ac_fn_c_try_link "$LINENO"; then :
16912   gt_cv_func_CFPreferencesCopyAppValue=yes
16913 else
16914   gt_cv_func_CFPreferencesCopyAppValue=no
16915 fi
16916 rm -f core conftest.err conftest.$ac_objext \
16917     conftest$ac_exeext conftest.$ac_ext
16918      CPPFLAGS="$gt_save_CPPFLAGS"
16919      LIBS="$gt_save_LIBS"
16920 fi
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16922 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16923   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16924
16925 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16926
16927   fi
16928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16929 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16930 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16931   $as_echo_n "(cached) " >&6
16932 else
16933   gt_save_CPPFLAGS="$CPPFLAGS"
16934      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16935      gt_save_LIBS="$LIBS"
16936      LIBS="$LIBS -framework CoreFoundation"
16937      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h.  */
16939 #include <CFLocale.h>
16940 int
16941 main ()
16942 {
16943 CFLocaleCopyCurrent();
16944   ;
16945   return 0;
16946 }
16947 _ACEOF
16948 if ac_fn_c_try_link "$LINENO"; then :
16949   gt_cv_func_CFLocaleCopyCurrent=yes
16950 else
16951   gt_cv_func_CFLocaleCopyCurrent=no
16952 fi
16953 rm -f core conftest.err conftest.$ac_objext \
16954     conftest$ac_exeext conftest.$ac_ext
16955      CPPFLAGS="$gt_save_CPPFLAGS"
16956      LIBS="$gt_save_LIBS"
16957 fi
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16959 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16960   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16961
16962 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16963
16964   fi
16965   INTL_MACOSX_LIBS=
16966   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16967     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16968   fi
16969
16970
16971
16972
16973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16974 $as_echo_n "checking whether NLS is requested... " >&6; }
16975     # Check whether --enable-nls was given.
16976 if test "${enable_nls+set}" = set; then :
16977   enableval=$enable_nls; USE_NLS=$enableval
16978 else
16979   USE_NLS=yes
16980 fi
16981
16982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16983 $as_echo "$USE_NLS" >&6; }
16984
16985
16986
16987
16988   LIBINTL=
16989   LTLIBINTL=
16990   POSUB=
16991
16992     if test "$USE_NLS" = "yes"; then
16993     gt_use_preinstalled_gnugettext=no
16994
16995
16996
16997
16998
16999
17000         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17001 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17002 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17003   $as_echo_n "(cached) " >&6
17004 else
17005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006 /* end confdefs.h.  */
17007 #include <libintl.h>
17008 extern int _nl_msg_cat_cntr;
17009 extern int *_nl_domain_bindings;
17010 int
17011 main ()
17012 {
17013 bindtextdomain ("", "");
17014 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17015   ;
17016   return 0;
17017 }
17018 _ACEOF
17019 if ac_fn_c_try_link "$LINENO"; then :
17020   gt_cv_func_gnugettext1_libc=yes
17021 else
17022   gt_cv_func_gnugettext1_libc=no
17023 fi
17024 rm -f core conftest.err conftest.$ac_objext \
17025     conftest$ac_exeext conftest.$ac_ext
17026 fi
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17028 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17029
17030         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17031
17032
17033
17034
17035
17036           am_save_CPPFLAGS="$CPPFLAGS"
17037
17038   for element in $INCICONV; do
17039     haveit=
17040     for x in $CPPFLAGS; do
17041
17042   acl_save_prefix="$prefix"
17043   prefix="$acl_final_prefix"
17044   acl_save_exec_prefix="$exec_prefix"
17045   exec_prefix="$acl_final_exec_prefix"
17046   eval x=\"$x\"
17047   exec_prefix="$acl_save_exec_prefix"
17048   prefix="$acl_save_prefix"
17049
17050       if test "X$x" = "X$element"; then
17051         haveit=yes
17052         break
17053       fi
17054     done
17055     if test -z "$haveit"; then
17056       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17057     fi
17058   done
17059
17060
17061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17062 $as_echo_n "checking for iconv... " >&6; }
17063 if test "${am_cv_func_iconv+set}" = set; then :
17064   $as_echo_n "(cached) " >&6
17065 else
17066
17067     am_cv_func_iconv="no, consider installing GNU libiconv"
17068     am_cv_lib_iconv=no
17069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h.  */
17071 #include <stdlib.h>
17072 #include <iconv.h>
17073 int
17074 main ()
17075 {
17076 iconv_t cd = iconv_open("","");
17077        iconv(cd,NULL,NULL,NULL,NULL);
17078        iconv_close(cd);
17079   ;
17080   return 0;
17081 }
17082 _ACEOF
17083 if ac_fn_c_try_link "$LINENO"; then :
17084   am_cv_func_iconv=yes
17085 fi
17086 rm -f core conftest.err conftest.$ac_objext \
17087     conftest$ac_exeext conftest.$ac_ext
17088     if test "$am_cv_func_iconv" != yes; then
17089       am_save_LIBS="$LIBS"
17090       LIBS="$LIBS $LIBICONV"
17091       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092 /* end confdefs.h.  */
17093 #include <stdlib.h>
17094 #include <iconv.h>
17095 int
17096 main ()
17097 {
17098 iconv_t cd = iconv_open("","");
17099          iconv(cd,NULL,NULL,NULL,NULL);
17100          iconv_close(cd);
17101   ;
17102   return 0;
17103 }
17104 _ACEOF
17105 if ac_fn_c_try_link "$LINENO"; then :
17106   am_cv_lib_iconv=yes
17107         am_cv_func_iconv=yes
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext \
17110     conftest$ac_exeext conftest.$ac_ext
17111       LIBS="$am_save_LIBS"
17112     fi
17113
17114 fi
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17116 $as_echo "$am_cv_func_iconv" >&6; }
17117   if test "$am_cv_func_iconv" = yes; then
17118
17119 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17120
17121   fi
17122   if test "$am_cv_lib_iconv" = yes; then
17123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17124 $as_echo_n "checking how to link with libiconv... " >&6; }
17125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17126 $as_echo "$LIBICONV" >&6; }
17127   else
17128             CPPFLAGS="$am_save_CPPFLAGS"
17129     LIBICONV=
17130     LTLIBICONV=
17131   fi
17132
17133
17134
17135
17136
17137
17138     use_additional=yes
17139
17140   acl_save_prefix="$prefix"
17141   prefix="$acl_final_prefix"
17142   acl_save_exec_prefix="$exec_prefix"
17143   exec_prefix="$acl_final_exec_prefix"
17144
17145     eval additional_includedir=\"$includedir\"
17146     eval additional_libdir=\"$libdir\"
17147
17148   exec_prefix="$acl_save_exec_prefix"
17149   prefix="$acl_save_prefix"
17150
17151
17152 # Check whether --with-libintl-prefix was given.
17153 if test "${with_libintl_prefix+set}" = set; then :
17154   withval=$with_libintl_prefix;
17155     if test "X$withval" = "Xno"; then
17156       use_additional=no
17157     else
17158       if test "X$withval" = "X"; then
17159
17160   acl_save_prefix="$prefix"
17161   prefix="$acl_final_prefix"
17162   acl_save_exec_prefix="$exec_prefix"
17163   exec_prefix="$acl_final_exec_prefix"
17164
17165           eval additional_includedir=\"$includedir\"
17166           eval additional_libdir=\"$libdir\"
17167
17168   exec_prefix="$acl_save_exec_prefix"
17169   prefix="$acl_save_prefix"
17170
17171       else
17172         additional_includedir="$withval/include"
17173         additional_libdir="$withval/lib"
17174       fi
17175     fi
17176
17177 fi
17178
17179       LIBINTL=
17180   LTLIBINTL=
17181   INCINTL=
17182   rpathdirs=
17183   ltrpathdirs=
17184   names_already_handled=
17185   names_next_round='intl '
17186   while test -n "$names_next_round"; do
17187     names_this_round="$names_next_round"
17188     names_next_round=
17189     for name in $names_this_round; do
17190       already_handled=
17191       for n in $names_already_handled; do
17192         if test "$n" = "$name"; then
17193           already_handled=yes
17194           break
17195         fi
17196       done
17197       if test -z "$already_handled"; then
17198         names_already_handled="$names_already_handled $name"
17199                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17200         eval value=\"\$HAVE_LIB$uppername\"
17201         if test -n "$value"; then
17202           if test "$value" = yes; then
17203             eval value=\"\$LIB$uppername\"
17204             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17205             eval value=\"\$LTLIB$uppername\"
17206             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17207           else
17208                                     :
17209           fi
17210         else
17211                               found_dir=
17212           found_la=
17213           found_so=
17214           found_a=
17215           if test $use_additional = yes; then
17216             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17217               found_dir="$additional_libdir"
17218               found_so="$additional_libdir/lib$name.$shlibext"
17219               if test -f "$additional_libdir/lib$name.la"; then
17220                 found_la="$additional_libdir/lib$name.la"
17221               fi
17222             else
17223               if test -f "$additional_libdir/lib$name.$libext"; then
17224                 found_dir="$additional_libdir"
17225                 found_a="$additional_libdir/lib$name.$libext"
17226                 if test -f "$additional_libdir/lib$name.la"; then
17227                   found_la="$additional_libdir/lib$name.la"
17228                 fi
17229               fi
17230             fi
17231           fi
17232           if test "X$found_dir" = "X"; then
17233             for x in $LDFLAGS $LTLIBINTL; do
17234
17235   acl_save_prefix="$prefix"
17236   prefix="$acl_final_prefix"
17237   acl_save_exec_prefix="$exec_prefix"
17238   exec_prefix="$acl_final_exec_prefix"
17239   eval x=\"$x\"
17240   exec_prefix="$acl_save_exec_prefix"
17241   prefix="$acl_save_prefix"
17242
17243               case "$x" in
17244                 -L*)
17245                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17246                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17247                     found_dir="$dir"
17248                     found_so="$dir/lib$name.$shlibext"
17249                     if test -f "$dir/lib$name.la"; then
17250                       found_la="$dir/lib$name.la"
17251                     fi
17252                   else
17253                     if test -f "$dir/lib$name.$libext"; then
17254                       found_dir="$dir"
17255                       found_a="$dir/lib$name.$libext"
17256                       if test -f "$dir/lib$name.la"; then
17257                         found_la="$dir/lib$name.la"
17258                       fi
17259                     fi
17260                   fi
17261                   ;;
17262               esac
17263               if test "X$found_dir" != "X"; then
17264                 break
17265               fi
17266             done
17267           fi
17268           if test "X$found_dir" != "X"; then
17269                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17270             if test "X$found_so" != "X"; then
17271                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17272                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17273               else
17274                                                                                 haveit=
17275                 for x in $ltrpathdirs; do
17276                   if test "X$x" = "X$found_dir"; then
17277                     haveit=yes
17278                     break
17279                   fi
17280                 done
17281                 if test -z "$haveit"; then
17282                   ltrpathdirs="$ltrpathdirs $found_dir"
17283                 fi
17284                                 if test "$hardcode_direct" = yes; then
17285                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17286                 else
17287                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17288                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17289                                                             haveit=
17290                     for x in $rpathdirs; do
17291                       if test "X$x" = "X$found_dir"; then
17292                         haveit=yes
17293                         break
17294                       fi
17295                     done
17296                     if test -z "$haveit"; then
17297                       rpathdirs="$rpathdirs $found_dir"
17298                     fi
17299                   else
17300                                                                                 haveit=
17301                     for x in $LDFLAGS $LIBINTL; do
17302
17303   acl_save_prefix="$prefix"
17304   prefix="$acl_final_prefix"
17305   acl_save_exec_prefix="$exec_prefix"
17306   exec_prefix="$acl_final_exec_prefix"
17307   eval x=\"$x\"
17308   exec_prefix="$acl_save_exec_prefix"
17309   prefix="$acl_save_prefix"
17310
17311                       if test "X$x" = "X-L$found_dir"; then
17312                         haveit=yes
17313                         break
17314                       fi
17315                     done
17316                     if test -z "$haveit"; then
17317                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17318                     fi
17319                     if test "$hardcode_minus_L" != no; then
17320                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17321                     else
17322                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17323                     fi
17324                   fi
17325                 fi
17326               fi
17327             else
17328               if test "X$found_a" != "X"; then
17329                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17330               else
17331                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17332               fi
17333             fi
17334                         additional_includedir=
17335             case "$found_dir" in
17336               */lib | */lib/)
17337                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17338                 additional_includedir="$basedir/include"
17339                 ;;
17340             esac
17341             if test "X$additional_includedir" != "X"; then
17342                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17343                 haveit=
17344                 if test "X$additional_includedir" = "X/usr/local/include"; then
17345                   if test -n "$GCC"; then
17346                     case $host_os in
17347                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17348                     esac
17349                   fi
17350                 fi
17351                 if test -z "$haveit"; then
17352                   for x in $CPPFLAGS $INCINTL; do
17353
17354   acl_save_prefix="$prefix"
17355   prefix="$acl_final_prefix"
17356   acl_save_exec_prefix="$exec_prefix"
17357   exec_prefix="$acl_final_exec_prefix"
17358   eval x=\"$x\"
17359   exec_prefix="$acl_save_exec_prefix"
17360   prefix="$acl_save_prefix"
17361
17362                     if test "X$x" = "X-I$additional_includedir"; then
17363                       haveit=yes
17364                       break
17365                     fi
17366                   done
17367                   if test -z "$haveit"; then
17368                     if test -d "$additional_includedir"; then
17369                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17370                     fi
17371                   fi
17372                 fi
17373               fi
17374             fi
17375                         if test -n "$found_la"; then
17376                                                         save_libdir="$libdir"
17377               case "$found_la" in
17378                 */* | *\\*) . "$found_la" ;;
17379                 *) . "./$found_la" ;;
17380               esac
17381               libdir="$save_libdir"
17382                             for dep in $dependency_libs; do
17383                 case "$dep" in
17384                   -L*)
17385                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17386                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17387                       haveit=
17388                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17389                         if test -n "$GCC"; then
17390                           case $host_os in
17391                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17392                           esac
17393                         fi
17394                       fi
17395                       if test -z "$haveit"; then
17396                         haveit=
17397                         for x in $LDFLAGS $LIBINTL; do
17398
17399   acl_save_prefix="$prefix"
17400   prefix="$acl_final_prefix"
17401   acl_save_exec_prefix="$exec_prefix"
17402   exec_prefix="$acl_final_exec_prefix"
17403   eval x=\"$x\"
17404   exec_prefix="$acl_save_exec_prefix"
17405   prefix="$acl_save_prefix"
17406
17407                           if test "X$x" = "X-L$additional_libdir"; then
17408                             haveit=yes
17409                             break
17410                           fi
17411                         done
17412                         if test -z "$haveit"; then
17413                           if test -d "$additional_libdir"; then
17414                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17415                           fi
17416                         fi
17417                         haveit=
17418                         for x in $LDFLAGS $LTLIBINTL; do
17419
17420   acl_save_prefix="$prefix"
17421   prefix="$acl_final_prefix"
17422   acl_save_exec_prefix="$exec_prefix"
17423   exec_prefix="$acl_final_exec_prefix"
17424   eval x=\"$x\"
17425   exec_prefix="$acl_save_exec_prefix"
17426   prefix="$acl_save_prefix"
17427
17428                           if test "X$x" = "X-L$additional_libdir"; then
17429                             haveit=yes
17430                             break
17431                           fi
17432                         done
17433                         if test -z "$haveit"; then
17434                           if test -d "$additional_libdir"; then
17435                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17436                           fi
17437                         fi
17438                       fi
17439                     fi
17440                     ;;
17441                   -R*)
17442                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17443                     if test "$enable_rpath" != no; then
17444                                                                   haveit=
17445                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
17453                       fi
17454                                                                   haveit=
17455                       for x in $ltrpathdirs; do
17456                         if test "X$x" = "X$dir"; then
17457                           haveit=yes
17458                           break
17459                         fi
17460                       done
17461                       if test -z "$haveit"; then
17462                         ltrpathdirs="$ltrpathdirs $dir"
17463                       fi
17464                     fi
17465                     ;;
17466                   -l*)
17467                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17468                     ;;
17469                   *.la)
17470                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17471                     ;;
17472                   *)
17473                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17474                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17475                     ;;
17476                 esac
17477               done
17478             fi
17479           else
17480                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17481             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17482           fi
17483         fi
17484       fi
17485     done
17486   done
17487   if test "X$rpathdirs" != "X"; then
17488     if test -n "$hardcode_libdir_separator"; then
17489                         alldirs=
17490       for found_dir in $rpathdirs; do
17491         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17492       done
17493             acl_save_libdir="$libdir"
17494       libdir="$alldirs"
17495       eval flag=\"$hardcode_libdir_flag_spec\"
17496       libdir="$acl_save_libdir"
17497       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17498     else
17499             for found_dir in $rpathdirs; do
17500         acl_save_libdir="$libdir"
17501         libdir="$found_dir"
17502         eval flag=\"$hardcode_libdir_flag_spec\"
17503         libdir="$acl_save_libdir"
17504         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17505       done
17506     fi
17507   fi
17508   if test "X$ltrpathdirs" != "X"; then
17509             for found_dir in $ltrpathdirs; do
17510       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17511     done
17512   fi
17513
17514           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17515 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17516 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17517   $as_echo_n "(cached) " >&6
17518 else
17519   gt_save_CPPFLAGS="$CPPFLAGS"
17520             CPPFLAGS="$CPPFLAGS $INCINTL"
17521             gt_save_LIBS="$LIBS"
17522             LIBS="$LIBS $LIBINTL"
17523                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h.  */
17525 #include <libintl.h>
17526 extern int _nl_msg_cat_cntr;
17527 extern
17528 #ifdef __cplusplus
17529 "C"
17530 #endif
17531 const char *_nl_expand_alias (const char *);
17532 int
17533 main ()
17534 {
17535 bindtextdomain ("", "");
17536 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17537   ;
17538   return 0;
17539 }
17540 _ACEOF
17541 if ac_fn_c_try_link "$LINENO"; then :
17542   gt_cv_func_gnugettext1_libintl=yes
17543 else
17544   gt_cv_func_gnugettext1_libintl=no
17545 fi
17546 rm -f core conftest.err conftest.$ac_objext \
17547     conftest$ac_exeext conftest.$ac_ext
17548                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17549               LIBS="$LIBS $LIBICONV"
17550               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h.  */
17552 #include <libintl.h>
17553 extern int _nl_msg_cat_cntr;
17554 extern
17555 #ifdef __cplusplus
17556 "C"
17557 #endif
17558 const char *_nl_expand_alias (const char *);
17559 int
17560 main ()
17561 {
17562 bindtextdomain ("", "");
17563 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17564   ;
17565   return 0;
17566 }
17567 _ACEOF
17568 if ac_fn_c_try_link "$LINENO"; then :
17569   LIBINTL="$LIBINTL $LIBICONV"
17570                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17571                 gt_cv_func_gnugettext1_libintl=yes
17572
17573 fi
17574 rm -f core conftest.err conftest.$ac_objext \
17575     conftest$ac_exeext conftest.$ac_ext
17576             fi
17577             CPPFLAGS="$gt_save_CPPFLAGS"
17578             LIBS="$gt_save_LIBS"
17579 fi
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17581 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17582         fi
17583
17584                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17585            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17586                 && test "$PACKAGE" != gettext-runtime \
17587                 && test "$PACKAGE" != gettext-tools; }; then
17588           gt_use_preinstalled_gnugettext=yes
17589         else
17590                     LIBINTL=
17591           LTLIBINTL=
17592           INCINTL=
17593         fi
17594
17595
17596
17597     if test -n "$INTL_MACOSX_LIBS"; then
17598       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17599          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17600                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17601         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17602       fi
17603     fi
17604
17605     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17606        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17607
17608 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17609
17610     else
17611       USE_NLS=no
17612     fi
17613   fi
17614
17615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17616 $as_echo_n "checking whether to use NLS... " >&6; }
17617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17618 $as_echo "$USE_NLS" >&6; }
17619   if test "$USE_NLS" = "yes"; then
17620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17621 $as_echo_n "checking where the gettext function comes from... " >&6; }
17622     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17623       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17624         gt_source="external libintl"
17625       else
17626         gt_source="libc"
17627       fi
17628     else
17629       gt_source="included intl directory"
17630     fi
17631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17632 $as_echo "$gt_source" >&6; }
17633   fi
17634
17635   if test "$USE_NLS" = "yes"; then
17636
17637     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17638       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17639         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17640 $as_echo_n "checking how to link with libintl... " >&6; }
17641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17642 $as_echo "$LIBINTL" >&6; }
17643
17644   for element in $INCINTL; do
17645     haveit=
17646     for x in $CPPFLAGS; do
17647
17648   acl_save_prefix="$prefix"
17649   prefix="$acl_final_prefix"
17650   acl_save_exec_prefix="$exec_prefix"
17651   exec_prefix="$acl_final_exec_prefix"
17652   eval x=\"$x\"
17653   exec_prefix="$acl_save_exec_prefix"
17654   prefix="$acl_save_prefix"
17655
17656       if test "X$x" = "X$element"; then
17657         haveit=yes
17658         break
17659       fi
17660     done
17661     if test -z "$haveit"; then
17662       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17663     fi
17664   done
17665
17666       fi
17667
17668
17669 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17670
17671
17672 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17673
17674     fi
17675
17676         POSUB=po
17677   fi
17678
17679
17680
17681     INTLLIBS="$LIBINTL"
17682
17683
17684
17685
17686
17687
17688
17689 os_name=`uname -s 2>/dev/null`
17690 if test x${prefix} = xNONE ; then
17691    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17692       sysconfdir=/etc/bacula
17693    fi
17694
17695    if test `eval echo ${libdir}` = NONE/lib ; then
17696       case ${os_name} in
17697       Linux)
17698          os_processor=`uname -p 2>/dev/null`
17699          case ${os_processor} in
17700          x86_64)
17701             libdir=/usr/lib64
17702             ;;
17703          *)
17704             libdir=/usr/lib
17705             ;;
17706          esac
17707          ;;
17708       *)
17709          libdir=/usr/lib
17710          ;;
17711       esac
17712    fi
17713
17714    if test `eval echo ${includedir}` = NONE/include ; then
17715       includedir=/usr/include
17716    fi
17717
17718    if test `eval echo ${datarootdir}` = NONE/share ; then
17719       datarootdir=/usr/share
17720    fi
17721    prefix=
17722 fi
17723
17724 if test x${exec_prefix} = xNONE ; then
17725    exec_prefix=${prefix}
17726 fi
17727
17728 sysconfdir=`eval echo ${sysconfdir}`
17729 datarootdir=`eval echo ${datarootdir}`
17730 docdir=`eval echo ${docdir}`
17731 htmldir=`eval echo ${htmldir}`
17732 libdir=`eval echo ${libdir}`
17733 includedir=`eval echo ${includedir}`
17734 localedir=`eval echo ${datarootdir}/locale`
17735 cat >>confdefs.h <<_ACEOF
17736 #define SYSCONFDIR "$sysconfdir"
17737 _ACEOF
17738
17739 cat >>confdefs.h <<_ACEOF
17740 #define LOCALEDIR "$localedir"
17741 _ACEOF
17742
17743
17744 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17745    sbindir=${exec_prefix}/sbin
17746 fi
17747 sbindir=`eval echo ${sbindir}`
17748
17749 if test x$mandir = x'${prefix}/man' ; then
17750    mandir=/usr/share/man
17751 fi
17752
17753 if test x$htmldir = x${docdir} ; then
17754    htmldir=`eval echo ${docdir}bacula/html`
17755 fi
17756
17757 if test x$docdir = x'/usr/share/doc/' ; then
17758    docdir=`eval echo ${docdir}bacula`
17759 fi
17760
17761
17762 for ac_prog in msgfmt
17763 do
17764   # Extract the first word of "$ac_prog", so it can be a program name with args.
17765 set dummy $ac_prog; ac_word=$2
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17767 $as_echo_n "checking for $ac_word... " >&6; }
17768 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17769   $as_echo_n "(cached) " >&6
17770 else
17771   case $MSGFMT in
17772   [\\/]* | ?:[\\/]*)
17773   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17774   ;;
17775   *)
17776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17777 for as_dir in $PATH
17778 do
17779   IFS=$as_save_IFS
17780   test -z "$as_dir" && as_dir=.
17781     for ac_exec_ext in '' $ac_executable_extensions; do
17782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17783     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17785     break 2
17786   fi
17787 done
17788   done
17789 IFS=$as_save_IFS
17790
17791   ;;
17792 esac
17793 fi
17794 MSGFMT=$ac_cv_path_MSGFMT
17795 if test -n "$MSGFMT"; then
17796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17797 $as_echo "$MSGFMT" >&6; }
17798 else
17799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17800 $as_echo "no" >&6; }
17801 fi
17802
17803
17804   test -n "$MSGFMT" && break
17805 done
17806 test -n "$MSGFMT" || MSGFMT="no"
17807
17808 if test "$MSGFMT" = "no"
17809 then
17810    echo 'msgfmt program not found, disabling NLS !'
17811    USE_NLS=no
17812    USE_INCLUDED_LIBINTL=no
17813 #else
17814
17815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17816 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17817 if test "${ac_cv_gnu_library_2+set}" = set; then :
17818   $as_echo_n "(cached) " >&6
17819 else
17820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h.  */
17822
17823 #include <features.h>
17824 #ifdef __GNU_LIBRARY__
17825  #if (__GLIBC__ >= 2)
17826   Lucky GNU user
17827  #endif
17828 #endif
17829
17830 _ACEOF
17831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17832   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17833   ac_cv_gnu_library_2=yes
17834 else
17835   ac_cv_gnu_library_2=no
17836 fi
17837 rm -f conftest*
17838
17839
17840
17841 fi
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17843 $as_echo "$ac_cv_gnu_library_2" >&6; }
17844
17845     GLIBC2="$ac_cv_gnu_library_2"
17846
17847
17848 if test -n "$ac_tool_prefix"; then
17849   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17852 $as_echo_n "checking for $ac_word... " >&6; }
17853 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17854   $as_echo_n "(cached) " >&6
17855 else
17856   if test -n "$RANLIB"; then
17857   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17858 else
17859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17860 for as_dir in $PATH
17861 do
17862   IFS=$as_save_IFS
17863   test -z "$as_dir" && as_dir=.
17864     for ac_exec_ext in '' $ac_executable_extensions; do
17865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17866     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17868     break 2
17869   fi
17870 done
17871   done
17872 IFS=$as_save_IFS
17873
17874 fi
17875 fi
17876 RANLIB=$ac_cv_prog_RANLIB
17877 if test -n "$RANLIB"; then
17878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17879 $as_echo "$RANLIB" >&6; }
17880 else
17881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17882 $as_echo "no" >&6; }
17883 fi
17884
17885
17886 fi
17887 if test -z "$ac_cv_prog_RANLIB"; then
17888   ac_ct_RANLIB=$RANLIB
17889   # Extract the first word of "ranlib", so it can be a program name with args.
17890 set dummy ranlib; ac_word=$2
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17892 $as_echo_n "checking for $ac_word... " >&6; }
17893 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17894   $as_echo_n "(cached) " >&6
17895 else
17896   if test -n "$ac_ct_RANLIB"; then
17897   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17898 else
17899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17900 for as_dir in $PATH
17901 do
17902   IFS=$as_save_IFS
17903   test -z "$as_dir" && as_dir=.
17904     for ac_exec_ext in '' $ac_executable_extensions; do
17905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17906     ac_cv_prog_ac_ct_RANLIB="ranlib"
17907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17908     break 2
17909   fi
17910 done
17911   done
17912 IFS=$as_save_IFS
17913
17914 fi
17915 fi
17916 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17917 if test -n "$ac_ct_RANLIB"; then
17918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17919 $as_echo "$ac_ct_RANLIB" >&6; }
17920 else
17921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17922 $as_echo "no" >&6; }
17923 fi
17924
17925   if test "x$ac_ct_RANLIB" = x; then
17926     RANLIB=":"
17927   else
17928     case $cross_compiling:$ac_tool_warned in
17929 yes:)
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17932 ac_tool_warned=yes ;;
17933 esac
17934     RANLIB=$ac_ct_RANLIB
17935   fi
17936 else
17937   RANLIB="$ac_cv_prog_RANLIB"
17938 fi
17939
17940
17941         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17942 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17943 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17944   $as_echo_n "(cached) " >&6
17945 else
17946   ac_check_lib_save_LIBS=$LIBS
17947 LIBS="-lcposix  $LIBS"
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h.  */
17950
17951 /* Override any GCC internal prototype to avoid an error.
17952    Use char because int might match the return type of a GCC
17953    builtin and then its argument prototype would still apply.  */
17954 #ifdef __cplusplus
17955 extern "C"
17956 #endif
17957 char strerror ();
17958 int
17959 main ()
17960 {
17961 return strerror ();
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 if ac_fn_c_try_link "$LINENO"; then :
17967   ac_cv_lib_cposix_strerror=yes
17968 else
17969   ac_cv_lib_cposix_strerror=no
17970 fi
17971 rm -f core conftest.err conftest.$ac_objext \
17972     conftest$ac_exeext conftest.$ac_ext
17973 LIBS=$ac_check_lib_save_LIBS
17974 fi
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17976 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17977 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17978   LIBS="$LIBS -lcposix"
17979 fi
17980
17981
17982
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17984 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17985 if test "${ac_cv_c_const+set}" = set; then :
17986   $as_echo_n "(cached) " >&6
17987 else
17988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h.  */
17990
17991 int
17992 main ()
17993 {
17994 /* FIXME: Include the comments suggested by Paul. */
17995 #ifndef __cplusplus
17996   /* Ultrix mips cc rejects this.  */
17997   typedef int charset[2];
17998   const charset cs;
17999   /* SunOS 4.1.1 cc rejects this.  */
18000   char const *const *pcpcc;
18001   char **ppc;
18002   /* NEC SVR4.0.2 mips cc rejects this.  */
18003   struct point {int x, y;};
18004   static struct point const zero = {0,0};
18005   /* AIX XL C 1.02.0.0 rejects this.
18006      It does not let you subtract one const X* pointer from another in
18007      an arm of an if-expression whose if-part is not a constant
18008      expression */
18009   const char *g = "string";
18010   pcpcc = &g + (g ? g-g : 0);
18011   /* HPUX 7.0 cc rejects these. */
18012   ++pcpcc;
18013   ppc = (char**) pcpcc;
18014   pcpcc = (char const *const *) ppc;
18015   { /* SCO 3.2v4 cc rejects this.  */
18016     char *t;
18017     char const *s = 0 ? (char *) 0 : (char const *) 0;
18018
18019     *t++ = 0;
18020     if (s) return 0;
18021   }
18022   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18023     int x[] = {25, 17};
18024     const int *foo = &x[0];
18025     ++foo;
18026   }
18027   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18028     typedef const int *iptr;
18029     iptr p = 0;
18030     ++p;
18031   }
18032   { /* AIX XL C 1.02.0.0 rejects this saying
18033        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18034     struct s { int j; const int *ap[3]; };
18035     struct s *b; b->j = 5;
18036   }
18037   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18038     const int foo = 10;
18039     if (!foo) return 0;
18040   }
18041   return !cs[0] && !zero.x;
18042 #endif
18043
18044   ;
18045   return 0;
18046 }
18047 _ACEOF
18048 if ac_fn_c_try_compile "$LINENO"; then :
18049   ac_cv_c_const=yes
18050 else
18051   ac_cv_c_const=no
18052 fi
18053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18054 fi
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18056 $as_echo "$ac_cv_c_const" >&6; }
18057 if test $ac_cv_c_const = no; then
18058
18059 $as_echo "#define const /**/" >>confdefs.h
18060
18061 fi
18062
18063
18064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18065 $as_echo_n "checking for signed... " >&6; }
18066 if test "${bh_cv_c_signed+set}" = set; then :
18067   $as_echo_n "(cached) " >&6
18068 else
18069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h.  */
18071
18072 int
18073 main ()
18074 {
18075 signed char x;
18076   ;
18077   return 0;
18078 }
18079 _ACEOF
18080 if ac_fn_c_try_compile "$LINENO"; then :
18081   bh_cv_c_signed=yes
18082 else
18083   bh_cv_c_signed=no
18084 fi
18085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18086 fi
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18088 $as_echo "$bh_cv_c_signed" >&6; }
18089   if test $bh_cv_c_signed = no; then
18090
18091 $as_echo "#define signed /**/" >>confdefs.h
18092
18093   fi
18094
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18096 $as_echo_n "checking for inline... " >&6; }
18097 if test "${ac_cv_c_inline+set}" = set; then :
18098   $as_echo_n "(cached) " >&6
18099 else
18100   ac_cv_c_inline=no
18101 for ac_kw in inline __inline__ __inline; do
18102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h.  */
18104 #ifndef __cplusplus
18105 typedef int foo_t;
18106 static $ac_kw foo_t static_foo () {return 0; }
18107 $ac_kw foo_t foo () {return 0; }
18108 #endif
18109
18110 _ACEOF
18111 if ac_fn_c_try_compile "$LINENO"; then :
18112   ac_cv_c_inline=$ac_kw
18113 fi
18114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18115   test "$ac_cv_c_inline" != no && break
18116 done
18117
18118 fi
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18120 $as_echo "$ac_cv_c_inline" >&6; }
18121
18122 case $ac_cv_c_inline in
18123   inline | yes) ;;
18124   *)
18125     case $ac_cv_c_inline in
18126       no) ac_val=;;
18127       *) ac_val=$ac_cv_c_inline;;
18128     esac
18129     cat >>confdefs.h <<_ACEOF
18130 #ifndef __cplusplus
18131 #define inline $ac_val
18132 #endif
18133 _ACEOF
18134     ;;
18135 esac
18136
18137 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18138 if test "x$ac_cv_type_off_t" = x""yes; then :
18139
18140 else
18141
18142 cat >>confdefs.h <<_ACEOF
18143 #define off_t long int
18144 _ACEOF
18145
18146 fi
18147
18148 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18149 if test "x$ac_cv_type_size_t" = x""yes; then :
18150
18151 else
18152
18153 cat >>confdefs.h <<_ACEOF
18154 #define size_t unsigned int
18155 _ACEOF
18156
18157 fi
18158
18159
18160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18161 $as_echo_n "checking for long long... " >&6; }
18162 if test "${ac_cv_type_long_long+set}" = set; then :
18163   $as_echo_n "(cached) " >&6
18164 else
18165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166 /* end confdefs.h.  */
18167 long long ll = 1LL; int i = 63;
18168 int
18169 main ()
18170 {
18171 long long llmax = (long long) -1;
18172      return ll << i | ll >> i | llmax / ll | llmax % ll;
18173   ;
18174   return 0;
18175 }
18176 _ACEOF
18177 if ac_fn_c_try_link "$LINENO"; then :
18178   ac_cv_type_long_long=yes
18179 else
18180   ac_cv_type_long_long=no
18181 fi
18182 rm -f core conftest.err conftest.$ac_objext \
18183     conftest$ac_exeext conftest.$ac_ext
18184 fi
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18186 $as_echo "$ac_cv_type_long_long" >&6; }
18187   if test $ac_cv_type_long_long = yes; then
18188
18189 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18190
18191   fi
18192
18193
18194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18195 $as_echo_n "checking for long double... " >&6; }
18196 if test "${gt_cv_c_long_double+set}" = set; then :
18197   $as_echo_n "(cached) " >&6
18198 else
18199   if test "$GCC" = yes; then
18200        gt_cv_c_long_double=yes
18201      else
18202        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h.  */
18204
18205          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18206          long double foo = 0.0;
18207          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18208          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18209
18210 int
18211 main ()
18212 {
18213
18214   ;
18215   return 0;
18216 }
18217 _ACEOF
18218 if ac_fn_c_try_compile "$LINENO"; then :
18219   gt_cv_c_long_double=yes
18220 else
18221   gt_cv_c_long_double=no
18222 fi
18223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18224      fi
18225 fi
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18227 $as_echo "$gt_cv_c_long_double" >&6; }
18228   if test $gt_cv_c_long_double = yes; then
18229
18230 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18231
18232   fi
18233
18234
18235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18236 $as_echo_n "checking for wchar_t... " >&6; }
18237 if test "${gt_cv_c_wchar_t+set}" = set; then :
18238   $as_echo_n "(cached) " >&6
18239 else
18240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h.  */
18242 #include <stddef.h>
18243        wchar_t foo = (wchar_t)'\0';
18244 int
18245 main ()
18246 {
18247
18248   ;
18249   return 0;
18250 }
18251 _ACEOF
18252 if ac_fn_c_try_compile "$LINENO"; then :
18253   gt_cv_c_wchar_t=yes
18254 else
18255   gt_cv_c_wchar_t=no
18256 fi
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258 fi
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18260 $as_echo "$gt_cv_c_wchar_t" >&6; }
18261   if test $gt_cv_c_wchar_t = yes; then
18262
18263 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18264
18265   fi
18266
18267
18268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18269 $as_echo_n "checking for wint_t... " >&6; }
18270 if test "${gt_cv_c_wint_t+set}" = set; then :
18271   $as_echo_n "(cached) " >&6
18272 else
18273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h.  */
18275 #include <wchar.h>
18276        wint_t foo = (wchar_t)'\0';
18277 int
18278 main ()
18279 {
18280
18281   ;
18282   return 0;
18283 }
18284 _ACEOF
18285 if ac_fn_c_try_compile "$LINENO"; then :
18286   gt_cv_c_wint_t=yes
18287 else
18288   gt_cv_c_wint_t=no
18289 fi
18290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18291 fi
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18293 $as_echo "$gt_cv_c_wint_t" >&6; }
18294   if test $gt_cv_c_wint_t = yes; then
18295
18296 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18297
18298   fi
18299
18300
18301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18302 $as_echo_n "checking for inttypes.h... " >&6; }
18303 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18304   $as_echo_n "(cached) " >&6
18305 else
18306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h.  */
18308 #include <sys/types.h>
18309 #include <inttypes.h>
18310 int
18311 main ()
18312 {
18313 uintmax_t i = (uintmax_t) -1;
18314   ;
18315   return 0;
18316 }
18317 _ACEOF
18318 if ac_fn_c_try_compile "$LINENO"; then :
18319   gl_cv_header_inttypes_h=yes
18320 else
18321   gl_cv_header_inttypes_h=no
18322 fi
18323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18324 fi
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18326 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18327   if test $gl_cv_header_inttypes_h = yes; then
18328
18329 cat >>confdefs.h <<_ACEOF
18330 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18331 _ACEOF
18332
18333   fi
18334
18335
18336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18337 $as_echo_n "checking for stdint.h... " >&6; }
18338 if test "${gl_cv_header_stdint_h+set}" = set; then :
18339   $as_echo_n "(cached) " >&6
18340 else
18341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h.  */
18343 #include <sys/types.h>
18344 #include <stdint.h>
18345 int
18346 main ()
18347 {
18348 uintmax_t i = (uintmax_t) -1;
18349   ;
18350   return 0;
18351 }
18352 _ACEOF
18353 if ac_fn_c_try_compile "$LINENO"; then :
18354   gl_cv_header_stdint_h=yes
18355 else
18356   gl_cv_header_stdint_h=no
18357 fi
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 fi
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18361 $as_echo "$gl_cv_header_stdint_h" >&6; }
18362   if test $gl_cv_header_stdint_h = yes; then
18363
18364 cat >>confdefs.h <<_ACEOF
18365 #define HAVE_STDINT_H_WITH_UINTMAX 1
18366 _ACEOF
18367
18368   fi
18369
18370
18371
18372
18373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18374 $as_echo_n "checking for intmax_t... " >&6; }
18375 if test "${gt_cv_c_intmax_t+set}" = set; then :
18376   $as_echo_n "(cached) " >&6
18377 else
18378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h.  */
18380
18381 #include <stddef.h>
18382 #include <stdlib.h>
18383 #if HAVE_STDINT_H_WITH_UINTMAX
18384 #include <stdint.h>
18385 #endif
18386 #if HAVE_INTTYPES_H_WITH_UINTMAX
18387 #include <inttypes.h>
18388 #endif
18389
18390 int
18391 main ()
18392 {
18393 intmax_t x = -1;
18394   ;
18395   return 0;
18396 }
18397 _ACEOF
18398 if ac_fn_c_try_compile "$LINENO"; then :
18399   gt_cv_c_intmax_t=yes
18400 else
18401   gt_cv_c_intmax_t=no
18402 fi
18403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18404 fi
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18406 $as_echo "$gt_cv_c_intmax_t" >&6; }
18407   if test $gt_cv_c_intmax_t = yes; then
18408
18409 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18410
18411   fi
18412
18413
18414
18415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18416 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18417 if test "${gt_cv_func_printf_posix+set}" = set; then :
18418   $as_echo_n "(cached) " >&6
18419 else
18420
18421       if test "$cross_compiling" = yes; then :
18422
18423         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h.  */
18425
18426 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18427   notposix
18428 #endif
18429
18430 _ACEOF
18431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18432   $EGREP "notposix" >/dev/null 2>&1; then :
18433   gt_cv_func_printf_posix="guessing no"
18434 else
18435   gt_cv_func_printf_posix="guessing yes"
18436 fi
18437 rm -f conftest*
18438
18439
18440 else
18441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h.  */
18443
18444 #include <stdio.h>
18445 #include <string.h>
18446 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18447    dollar expansion (possibly an autoconf bug).  */
18448 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18449 static char buf[100];
18450 int main ()
18451 {
18452   sprintf (buf, format, 33, 55);
18453   return (strcmp (buf, "55 33") != 0);
18454 }
18455 _ACEOF
18456 if ac_fn_c_try_run "$LINENO"; then :
18457   gt_cv_func_printf_posix=yes
18458 else
18459   gt_cv_func_printf_posix=no
18460 fi
18461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18462   conftest.$ac_objext conftest.beam conftest.$ac_ext
18463 fi
18464
18465
18466 fi
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18468 $as_echo "$gt_cv_func_printf_posix" >&6; }
18469   case $gt_cv_func_printf_posix in
18470     *yes)
18471
18472 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18473
18474       ;;
18475   esac
18476
18477 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18478 # for constant arguments.  Useless!
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18480 $as_echo_n "checking for working alloca.h... " >&6; }
18481 if test "${ac_cv_working_alloca_h+set}" = set; then :
18482   $as_echo_n "(cached) " >&6
18483 else
18484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485 /* end confdefs.h.  */
18486 #include <alloca.h>
18487 int
18488 main ()
18489 {
18490 char *p = (char *) alloca (2 * sizeof (int));
18491                           if (p) return 0;
18492   ;
18493   return 0;
18494 }
18495 _ACEOF
18496 if ac_fn_c_try_link "$LINENO"; then :
18497   ac_cv_working_alloca_h=yes
18498 else
18499   ac_cv_working_alloca_h=no
18500 fi
18501 rm -f core conftest.err conftest.$ac_objext \
18502     conftest$ac_exeext conftest.$ac_ext
18503 fi
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18505 $as_echo "$ac_cv_working_alloca_h" >&6; }
18506 if test $ac_cv_working_alloca_h = yes; then
18507
18508 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18509
18510 fi
18511
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18513 $as_echo_n "checking for alloca... " >&6; }
18514 if test "${ac_cv_func_alloca_works+set}" = set; then :
18515   $as_echo_n "(cached) " >&6
18516 else
18517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h.  */
18519 #ifdef __GNUC__
18520 # define alloca __builtin_alloca
18521 #else
18522 # ifdef _MSC_VER
18523 #  include <malloc.h>
18524 #  define alloca _alloca
18525 # else
18526 #  ifdef HAVE_ALLOCA_H
18527 #   include <alloca.h>
18528 #  else
18529 #   ifdef _AIX
18530  #pragma alloca
18531 #   else
18532 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18533 char *alloca ();
18534 #    endif
18535 #   endif
18536 #  endif
18537 # endif
18538 #endif
18539
18540 int
18541 main ()
18542 {
18543 char *p = (char *) alloca (1);
18544                                     if (p) return 0;
18545   ;
18546   return 0;
18547 }
18548 _ACEOF
18549 if ac_fn_c_try_link "$LINENO"; then :
18550   ac_cv_func_alloca_works=yes
18551 else
18552   ac_cv_func_alloca_works=no
18553 fi
18554 rm -f core conftest.err conftest.$ac_objext \
18555     conftest$ac_exeext conftest.$ac_ext
18556 fi
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18558 $as_echo "$ac_cv_func_alloca_works" >&6; }
18559
18560 if test $ac_cv_func_alloca_works = yes; then
18561
18562 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18563
18564 else
18565   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18566 # that cause trouble.  Some versions do not even contain alloca or
18567 # contain a buggy version.  If you still want to use their alloca,
18568 # use ar to extract alloca.o from them instead of compiling alloca.c.
18569
18570 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18571
18572 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18573
18574
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18576 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18577 if test "${ac_cv_os_cray+set}" = set; then :
18578   $as_echo_n "(cached) " >&6
18579 else
18580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18581 /* end confdefs.h.  */
18582 #if defined CRAY && ! defined CRAY2
18583 webecray
18584 #else
18585 wenotbecray
18586 #endif
18587
18588 _ACEOF
18589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18590   $EGREP "webecray" >/dev/null 2>&1; then :
18591   ac_cv_os_cray=yes
18592 else
18593   ac_cv_os_cray=no
18594 fi
18595 rm -f conftest*
18596
18597 fi
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18599 $as_echo "$ac_cv_os_cray" >&6; }
18600 if test $ac_cv_os_cray = yes; then
18601   for ac_func in _getb67 GETB67 getb67; do
18602     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18603 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18604 eval as_val=\$$as_ac_var
18605    if test "x$as_val" = x""yes; then :
18606
18607 cat >>confdefs.h <<_ACEOF
18608 #define CRAY_STACKSEG_END $ac_func
18609 _ACEOF
18610
18611     break
18612 fi
18613
18614   done
18615 fi
18616
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18618 $as_echo_n "checking stack direction for C alloca... " >&6; }
18619 if test "${ac_cv_c_stack_direction+set}" = set; then :
18620   $as_echo_n "(cached) " >&6
18621 else
18622   if test "$cross_compiling" = yes; then :
18623   ac_cv_c_stack_direction=0
18624 else
18625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626 /* end confdefs.h.  */
18627 $ac_includes_default
18628 int
18629 find_stack_direction ()
18630 {
18631   static char *addr = 0;
18632   auto char dummy;
18633   if (addr == 0)
18634     {
18635       addr = &dummy;
18636       return find_stack_direction ();
18637     }
18638   else
18639     return (&dummy > addr) ? 1 : -1;
18640 }
18641
18642 int
18643 main ()
18644 {
18645   return find_stack_direction () < 0;
18646 }
18647 _ACEOF
18648 if ac_fn_c_try_run "$LINENO"; then :
18649   ac_cv_c_stack_direction=1
18650 else
18651   ac_cv_c_stack_direction=-1
18652 fi
18653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18654   conftest.$ac_objext conftest.beam conftest.$ac_ext
18655 fi
18656
18657 fi
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18659 $as_echo "$ac_cv_c_stack_direction" >&6; }
18660 cat >>confdefs.h <<_ACEOF
18661 #define STACK_DIRECTION $ac_cv_c_stack_direction
18662 _ACEOF
18663
18664
18665 fi
18666
18667
18668
18669
18670   for ac_header in $ac_header_list
18671 do :
18672   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18674 "
18675 eval as_val=\$$as_ac_Header
18676    if test "x$as_val" = x""yes; then :
18677   cat >>confdefs.h <<_ACEOF
18678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18679 _ACEOF
18680
18681 fi
18682
18683 done
18684
18685
18686
18687
18688
18689
18690
18691
18692 for ac_func in getpagesize
18693 do :
18694   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18695 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18696   cat >>confdefs.h <<_ACEOF
18697 #define HAVE_GETPAGESIZE 1
18698 _ACEOF
18699
18700 fi
18701 done
18702
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18704 $as_echo_n "checking for working mmap... " >&6; }
18705 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18706   $as_echo_n "(cached) " >&6
18707 else
18708   if test "$cross_compiling" = yes; then :
18709   ac_cv_func_mmap_fixed_mapped=no
18710 else
18711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712 /* end confdefs.h.  */
18713 $ac_includes_default
18714 /* malloc might have been renamed as rpl_malloc. */
18715 #undef malloc
18716
18717 /* Thanks to Mike Haertel and Jim Avera for this test.
18718    Here is a matrix of mmap possibilities:
18719         mmap private not fixed
18720         mmap private fixed at somewhere currently unmapped
18721         mmap private fixed at somewhere already mapped
18722         mmap shared not fixed
18723         mmap shared fixed at somewhere currently unmapped
18724         mmap shared fixed at somewhere already mapped
18725    For private mappings, we should verify that changes cannot be read()
18726    back from the file, nor mmap's back from the file at a different
18727    address.  (There have been systems where private was not correctly
18728    implemented like the infamous i386 svr4.0, and systems where the
18729    VM page cache was not coherent with the file system buffer cache
18730    like early versions of FreeBSD and possibly contemporary NetBSD.)
18731    For shared mappings, we should conversely verify that changes get
18732    propagated back to all the places they're supposed to be.
18733
18734    Grep wants private fixed already mapped.
18735    The main things grep needs to know about mmap are:
18736    * does it exist and is it safe to write into the mmap'd area
18737    * how to use it (BSD variants)  */
18738
18739 #include <fcntl.h>
18740 #include <sys/mman.h>
18741
18742 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18743 char *malloc ();
18744 #endif
18745
18746 /* This mess was copied from the GNU getpagesize.h.  */
18747 #ifndef HAVE_GETPAGESIZE
18748 # ifdef _SC_PAGESIZE
18749 #  define getpagesize() sysconf(_SC_PAGESIZE)
18750 # else /* no _SC_PAGESIZE */
18751 #  ifdef HAVE_SYS_PARAM_H
18752 #   include <sys/param.h>
18753 #   ifdef EXEC_PAGESIZE
18754 #    define getpagesize() EXEC_PAGESIZE
18755 #   else /* no EXEC_PAGESIZE */
18756 #    ifdef NBPG
18757 #     define getpagesize() NBPG * CLSIZE
18758 #     ifndef CLSIZE
18759 #      define CLSIZE 1
18760 #     endif /* no CLSIZE */
18761 #    else /* no NBPG */
18762 #     ifdef NBPC
18763 #      define getpagesize() NBPC
18764 #     else /* no NBPC */
18765 #      ifdef PAGESIZE
18766 #       define getpagesize() PAGESIZE
18767 #      endif /* PAGESIZE */
18768 #     endif /* no NBPC */
18769 #    endif /* no NBPG */
18770 #   endif /* no EXEC_PAGESIZE */
18771 #  else /* no HAVE_SYS_PARAM_H */
18772 #   define getpagesize() 8192   /* punt totally */
18773 #  endif /* no HAVE_SYS_PARAM_H */
18774 # endif /* no _SC_PAGESIZE */
18775
18776 #endif /* no HAVE_GETPAGESIZE */
18777
18778 int
18779 main ()
18780 {
18781   char *data, *data2, *data3;
18782   int i, pagesize;
18783   int fd, fd2;
18784
18785   pagesize = getpagesize ();
18786
18787   /* First, make a file with some known garbage in it. */
18788   data = (char *) malloc (pagesize);
18789   if (!data)
18790     return 1;
18791   for (i = 0; i < pagesize; ++i)
18792     *(data + i) = rand ();
18793   umask (0);
18794   fd = creat ("conftest.mmap", 0600);
18795   if (fd < 0)
18796     return 2;
18797   if (write (fd, data, pagesize) != pagesize)
18798     return 3;
18799   close (fd);
18800
18801   /* Next, check that the tail of a page is zero-filled.  File must have
18802      non-zero length, otherwise we risk SIGBUS for entire page.  */
18803   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18804   if (fd2 < 0)
18805     return 4;
18806   data2 = "";
18807   if (write (fd2, data2, 1) != 1)
18808     return 5;
18809   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18810   if (data2 == MAP_FAILED)
18811     return 6;
18812   for (i = 0; i < pagesize; ++i)
18813     if (*(data2 + i))
18814       return 7;
18815   close (fd2);
18816   if (munmap (data2, pagesize))
18817     return 8;
18818
18819   /* Next, try to mmap the file at a fixed address which already has
18820      something else allocated at it.  If we can, also make sure that
18821      we see the same garbage.  */
18822   fd = open ("conftest.mmap", O_RDWR);
18823   if (fd < 0)
18824     return 9;
18825   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18826                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18827     return 10;
18828   for (i = 0; i < pagesize; ++i)
18829     if (*(data + i) != *(data2 + i))
18830       return 11;
18831
18832   /* Finally, make sure that changes to the mapped area do not
18833      percolate back to the file as seen by read().  (This is a bug on
18834      some variants of i386 svr4.0.)  */
18835   for (i = 0; i < pagesize; ++i)
18836     *(data2 + i) = *(data2 + i) + 1;
18837   data3 = (char *) malloc (pagesize);
18838   if (!data3)
18839     return 12;
18840   if (read (fd, data3, pagesize) != pagesize)
18841     return 13;
18842   for (i = 0; i < pagesize; ++i)
18843     if (*(data + i) != *(data3 + i))
18844       return 14;
18845   close (fd);
18846   return 0;
18847 }
18848 _ACEOF
18849 if ac_fn_c_try_run "$LINENO"; then :
18850   ac_cv_func_mmap_fixed_mapped=yes
18851 else
18852   ac_cv_func_mmap_fixed_mapped=no
18853 fi
18854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18855   conftest.$ac_objext conftest.beam conftest.$ac_ext
18856 fi
18857
18858 fi
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18860 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18861 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18862
18863 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18864
18865 fi
18866 rm -f conftest.mmap conftest.txt
18867
18868
18869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18870 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18871 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18872   $as_echo_n "(cached) " >&6
18873 else
18874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18875 /* end confdefs.h.  */
18876
18877 #include <features.h>
18878 #ifdef __GNU_LIBRARY__
18879  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18880   Lucky GNU user
18881  #endif
18882 #endif
18883
18884 _ACEOF
18885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18886   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18887   ac_cv_gnu_library_2_1=yes
18888 else
18889   ac_cv_gnu_library_2_1=no
18890 fi
18891 rm -f conftest*
18892
18893
18894
18895 fi
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18897 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18898
18899     GLIBC21="$ac_cv_gnu_library_2_1"
18900
18901
18902
18903
18904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18905 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18906 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18907   $as_echo_n "(cached) " >&6
18908 else
18909
18910       if test "$cross_compiling" = yes; then :
18911
18912           # Guess based on the CPU.
18913           case "$host_cpu" in
18914             alpha* | i3456786 | m68k | s390*)
18915               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18916             *)
18917               gt_cv_int_divbyzero_sigfpe="guessing no";;
18918           esac
18919
18920 else
18921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922 /* end confdefs.h.  */
18923
18924 #include <stdlib.h>
18925 #include <signal.h>
18926
18927 static void
18928 #ifdef __cplusplus
18929 sigfpe_handler (int sig)
18930 #else
18931 sigfpe_handler (sig) int sig;
18932 #endif
18933 {
18934   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18935   exit (sig != SIGFPE);
18936 }
18937
18938 int x = 1;
18939 int y = 0;
18940 int z;
18941 int nan;
18942
18943 int main ()
18944 {
18945   signal (SIGFPE, sigfpe_handler);
18946 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18947 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18948   signal (SIGTRAP, sigfpe_handler);
18949 #endif
18950 /* Linux/SPARC yields signal SIGILL.  */
18951 #if defined (__sparc__) && defined (__linux__)
18952   signal (SIGILL, sigfpe_handler);
18953 #endif
18954
18955   z = x / y;
18956   nan = y / y;
18957   exit (1);
18958 }
18959
18960 _ACEOF
18961 if ac_fn_c_try_run "$LINENO"; then :
18962   gt_cv_int_divbyzero_sigfpe=yes
18963 else
18964   gt_cv_int_divbyzero_sigfpe=no
18965 fi
18966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18967   conftest.$ac_objext conftest.beam conftest.$ac_ext
18968 fi
18969
18970
18971 fi
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18973 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18974   case "$gt_cv_int_divbyzero_sigfpe" in
18975     *yes) value=1;;
18976     *) value=0;;
18977   esac
18978
18979 cat >>confdefs.h <<_ACEOF
18980 #define INTDIV0_RAISES_SIGFPE $value
18981 _ACEOF
18982
18983
18984
18985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18986 $as_echo_n "checking for unsigned long long... " >&6; }
18987 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18988   $as_echo_n "(cached) " >&6
18989 else
18990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18991 /* end confdefs.h.  */
18992 unsigned long long ull = 1ULL; int i = 63;
18993 int
18994 main ()
18995 {
18996 unsigned long long ullmax = (unsigned long long) -1;
18997      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18998   ;
18999   return 0;
19000 }
19001 _ACEOF
19002 if ac_fn_c_try_link "$LINENO"; then :
19003   ac_cv_type_unsigned_long_long=yes
19004 else
19005   ac_cv_type_unsigned_long_long=no
19006 fi
19007 rm -f core conftest.err conftest.$ac_objext \
19008     conftest$ac_exeext conftest.$ac_ext
19009 fi
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19011 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19012   if test $ac_cv_type_unsigned_long_long = yes; then
19013
19014 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19015
19016   fi
19017
19018
19019
19020
19021   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19022
19023     test $ac_cv_type_unsigned_long_long = yes \
19024       && ac_type='unsigned long long' \
19025       || ac_type='unsigned long'
19026
19027 cat >>confdefs.h <<_ACEOF
19028 #define uintmax_t $ac_type
19029 _ACEOF
19030
19031   else
19032
19033 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19034
19035   fi
19036
19037
19038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19039 $as_echo_n "checking for inttypes.h... " >&6; }
19040 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19041   $as_echo_n "(cached) " >&6
19042 else
19043
19044     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045 /* end confdefs.h.  */
19046 #include <sys/types.h>
19047 #include <inttypes.h>
19048 int
19049 main ()
19050 {
19051
19052   ;
19053   return 0;
19054 }
19055 _ACEOF
19056 if ac_fn_c_try_compile "$LINENO"; then :
19057   gt_cv_header_inttypes_h=yes
19058 else
19059   gt_cv_header_inttypes_h=no
19060 fi
19061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19062
19063 fi
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19065 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19066   if test $gt_cv_header_inttypes_h = yes; then
19067
19068 cat >>confdefs.h <<_ACEOF
19069 #define HAVE_INTTYPES_H 1
19070 _ACEOF
19071
19072   fi
19073
19074
19075
19076   if test $gt_cv_header_inttypes_h = yes; then
19077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19078 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19079 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19080   $as_echo_n "(cached) " >&6
19081 else
19082
19083         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h.  */
19085 #include <inttypes.h>
19086 #ifdef PRId32
19087 char *p = PRId32;
19088 #endif
19089
19090 int
19091 main ()
19092 {
19093
19094   ;
19095   return 0;
19096 }
19097 _ACEOF
19098 if ac_fn_c_try_compile "$LINENO"; then :
19099   gt_cv_inttypes_pri_broken=no
19100 else
19101   gt_cv_inttypes_pri_broken=yes
19102 fi
19103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19104
19105 fi
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19107 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19108   fi
19109   if test "$gt_cv_inttypes_pri_broken" = yes; then
19110
19111 cat >>confdefs.h <<_ACEOF
19112 #define PRI_MACROS_BROKEN 1
19113 _ACEOF
19114
19115   fi
19116
19117
19118   for ac_header in stdint.h
19119 do :
19120   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19121 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19122   cat >>confdefs.h <<_ACEOF
19123 #define HAVE_STDINT_H 1
19124 _ACEOF
19125
19126 fi
19127
19128 done
19129
19130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19131 $as_echo_n "checking for SIZE_MAX... " >&6; }
19132   result=
19133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h.  */
19135
19136 #include <limits.h>
19137 #if HAVE_STDINT_H
19138 #include <stdint.h>
19139 #endif
19140 #ifdef SIZE_MAX
19141 Found it
19142 #endif
19143
19144 _ACEOF
19145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19146   $EGREP "Found it" >/dev/null 2>&1; then :
19147   result=yes
19148 fi
19149 rm -f conftest*
19150
19151   if test -z "$result"; then
19152                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19153
19154 else
19155   result=?
19156 fi
19157
19158
19159     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19160
19161 else
19162   result=?
19163 fi
19164
19165
19166     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19167
19168 else
19169   result=?
19170 fi
19171
19172
19173     if test "$fits_in_uint" = 1; then
19174                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175 /* end confdefs.h.  */
19176 #include <stddef.h>
19177         extern size_t foo;
19178         extern unsigned long foo;
19179
19180 int
19181 main ()
19182 {
19183
19184   ;
19185   return 0;
19186 }
19187 _ACEOF
19188 if ac_fn_c_try_compile "$LINENO"; then :
19189   fits_in_uint=0
19190 fi
19191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19192     fi
19193     if test -z "$result"; then
19194       if test "$fits_in_uint" = 1; then
19195         result="$res_hi$res_lo"U
19196       else
19197         result="$res_hi$res_lo"UL
19198       fi
19199     else
19200             result='~(size_t)0'
19201     fi
19202   fi
19203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19204 $as_echo "$result" >&6; }
19205   if test "$result" != yes; then
19206
19207 cat >>confdefs.h <<_ACEOF
19208 #define SIZE_MAX $result
19209 _ACEOF
19210
19211   fi
19212
19213
19214
19215
19216   for ac_header in stdint.h
19217 do :
19218   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19219 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19220   cat >>confdefs.h <<_ACEOF
19221 #define HAVE_STDINT_H 1
19222 _ACEOF
19223
19224 fi
19225
19226 done
19227
19228
19229
19230
19231
19232
19233
19234
19235   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19236 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19237
19238 else
19239
19240 $as_echo "#define ptrdiff_t long" >>confdefs.h
19241
19242
19243 fi
19244
19245   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19246 stdlib.h string.h unistd.h sys/param.h
19247 do :
19248   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19249 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19250 eval as_val=\$$as_ac_Header
19251    if test "x$as_val" = x""yes; then :
19252   cat >>confdefs.h <<_ACEOF
19253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19254 _ACEOF
19255
19256 fi
19257
19258 done
19259
19260   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19261 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19262 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19263 __fsetlocking
19264 do :
19265   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19266 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19267 eval as_val=\$$as_ac_var
19268    if test "x$as_val" = x""yes; then :
19269   cat >>confdefs.h <<_ACEOF
19270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19271 _ACEOF
19272
19273 fi
19274 done
19275
19276
19277
19278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19279 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19280 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19281   $as_echo_n "(cached) " >&6
19282 else
19283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284 /* end confdefs.h.  */
19285 #include <stdio.h>
19286 int
19287 main ()
19288 {
19289
19290 #ifndef _snprintf
19291   char *p = (char *) _snprintf;
19292 #endif
19293
19294   ;
19295   return 0;
19296 }
19297 _ACEOF
19298 if ac_fn_c_try_compile "$LINENO"; then :
19299   ac_cv_have_decl__snprintf=yes
19300 else
19301   ac_cv_have_decl__snprintf=no
19302 fi
19303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19304 fi
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19306 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19307   if test $ac_cv_have_decl__snprintf = yes; then
19308     gt_value=1
19309   else
19310     gt_value=0
19311   fi
19312
19313 cat >>confdefs.h <<_ACEOF
19314 #define HAVE_DECL__SNPRINTF $gt_value
19315 _ACEOF
19316
19317
19318
19319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19320 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19321 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19322   $as_echo_n "(cached) " >&6
19323 else
19324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h.  */
19326 #include <stdio.h>
19327 int
19328 main ()
19329 {
19330
19331 #ifndef _snwprintf
19332   char *p = (char *) _snwprintf;
19333 #endif
19334
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 if ac_fn_c_try_compile "$LINENO"; then :
19340   ac_cv_have_decl__snwprintf=yes
19341 else
19342   ac_cv_have_decl__snwprintf=no
19343 fi
19344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345 fi
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19347 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19348   if test $ac_cv_have_decl__snwprintf = yes; then
19349     gt_value=1
19350   else
19351     gt_value=0
19352   fi
19353
19354 cat >>confdefs.h <<_ACEOF
19355 #define HAVE_DECL__SNWPRINTF $gt_value
19356 _ACEOF
19357
19358
19359
19360
19361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19362 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19363 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19364   $as_echo_n "(cached) " >&6
19365 else
19366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19367 /* end confdefs.h.  */
19368 #include <stdio.h>
19369 int
19370 main ()
19371 {
19372
19373 #ifndef feof_unlocked
19374   char *p = (char *) feof_unlocked;
19375 #endif
19376
19377   ;
19378   return 0;
19379 }
19380 _ACEOF
19381 if ac_fn_c_try_compile "$LINENO"; then :
19382   ac_cv_have_decl_feof_unlocked=yes
19383 else
19384   ac_cv_have_decl_feof_unlocked=no
19385 fi
19386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19387 fi
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19389 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19390   if test $ac_cv_have_decl_feof_unlocked = yes; then
19391     gt_value=1
19392   else
19393     gt_value=0
19394   fi
19395
19396 cat >>confdefs.h <<_ACEOF
19397 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19398 _ACEOF
19399
19400
19401
19402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19403 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19404 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19405   $as_echo_n "(cached) " >&6
19406 else
19407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h.  */
19409 #include <stdio.h>
19410 int
19411 main ()
19412 {
19413
19414 #ifndef fgets_unlocked
19415   char *p = (char *) fgets_unlocked;
19416 #endif
19417
19418   ;
19419   return 0;
19420 }
19421 _ACEOF
19422 if ac_fn_c_try_compile "$LINENO"; then :
19423   ac_cv_have_decl_fgets_unlocked=yes
19424 else
19425   ac_cv_have_decl_fgets_unlocked=no
19426 fi
19427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19428 fi
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19430 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19431   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19432     gt_value=1
19433   else
19434     gt_value=0
19435   fi
19436
19437 cat >>confdefs.h <<_ACEOF
19438 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19439 _ACEOF
19440
19441
19442
19443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19444 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19445 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19446   $as_echo_n "(cached) " >&6
19447 else
19448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h.  */
19450 #include <stdio.h>
19451 int
19452 main ()
19453 {
19454
19455 #ifndef getc_unlocked
19456   char *p = (char *) getc_unlocked;
19457 #endif
19458
19459   ;
19460   return 0;
19461 }
19462 _ACEOF
19463 if ac_fn_c_try_compile "$LINENO"; then :
19464   ac_cv_have_decl_getc_unlocked=yes
19465 else
19466   ac_cv_have_decl_getc_unlocked=no
19467 fi
19468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19469 fi
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19471 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19472   if test $ac_cv_have_decl_getc_unlocked = yes; then
19473     gt_value=1
19474   else
19475     gt_value=0
19476   fi
19477
19478 cat >>confdefs.h <<_ACEOF
19479 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19480 _ACEOF
19481
19482
19483
19484   case $gt_cv_func_printf_posix in
19485     *yes) HAVE_POSIX_PRINTF=1 ;;
19486     *) HAVE_POSIX_PRINTF=0 ;;
19487   esac
19488
19489   if test "$ac_cv_func_asprintf" = yes; then
19490     HAVE_ASPRINTF=1
19491   else
19492     HAVE_ASPRINTF=0
19493   fi
19494
19495   if test "$ac_cv_func_snprintf" = yes; then
19496     HAVE_SNPRINTF=1
19497   else
19498     HAVE_SNPRINTF=0
19499   fi
19500
19501   if test "$ac_cv_func_wprintf" = yes; then
19502     HAVE_WPRINTF=1
19503   else
19504     HAVE_WPRINTF=0
19505   fi
19506
19507
19508
19509
19510
19511
19512
19513           am_save_CPPFLAGS="$CPPFLAGS"
19514
19515   for element in $INCICONV; do
19516     haveit=
19517     for x in $CPPFLAGS; do
19518
19519   acl_save_prefix="$prefix"
19520   prefix="$acl_final_prefix"
19521   acl_save_exec_prefix="$exec_prefix"
19522   exec_prefix="$acl_final_exec_prefix"
19523   eval x=\"$x\"
19524   exec_prefix="$acl_save_exec_prefix"
19525   prefix="$acl_save_prefix"
19526
19527       if test "X$x" = "X$element"; then
19528         haveit=yes
19529         break
19530       fi
19531     done
19532     if test -z "$haveit"; then
19533       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19534     fi
19535   done
19536
19537
19538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19539 $as_echo_n "checking for iconv... " >&6; }
19540 if test "${am_cv_func_iconv+set}" = set; then :
19541   $as_echo_n "(cached) " >&6
19542 else
19543
19544     am_cv_func_iconv="no, consider installing GNU libiconv"
19545     am_cv_lib_iconv=no
19546     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19547 /* end confdefs.h.  */
19548 #include <stdlib.h>
19549 #include <iconv.h>
19550 int
19551 main ()
19552 {
19553 iconv_t cd = iconv_open("","");
19554        iconv(cd,NULL,NULL,NULL,NULL);
19555        iconv_close(cd);
19556   ;
19557   return 0;
19558 }
19559 _ACEOF
19560 if ac_fn_c_try_link "$LINENO"; then :
19561   am_cv_func_iconv=yes
19562 fi
19563 rm -f core conftest.err conftest.$ac_objext \
19564     conftest$ac_exeext conftest.$ac_ext
19565     if test "$am_cv_func_iconv" != yes; then
19566       am_save_LIBS="$LIBS"
19567       LIBS="$LIBS $LIBICONV"
19568       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19569 /* end confdefs.h.  */
19570 #include <stdlib.h>
19571 #include <iconv.h>
19572 int
19573 main ()
19574 {
19575 iconv_t cd = iconv_open("","");
19576          iconv(cd,NULL,NULL,NULL,NULL);
19577          iconv_close(cd);
19578   ;
19579   return 0;
19580 }
19581 _ACEOF
19582 if ac_fn_c_try_link "$LINENO"; then :
19583   am_cv_lib_iconv=yes
19584         am_cv_func_iconv=yes
19585 fi
19586 rm -f core conftest.err conftest.$ac_objext \
19587     conftest$ac_exeext conftest.$ac_ext
19588       LIBS="$am_save_LIBS"
19589     fi
19590
19591 fi
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19593 $as_echo "$am_cv_func_iconv" >&6; }
19594   if test "$am_cv_func_iconv" = yes; then
19595
19596 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19597
19598   fi
19599   if test "$am_cv_lib_iconv" = yes; then
19600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19601 $as_echo_n "checking how to link with libiconv... " >&6; }
19602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19603 $as_echo "$LIBICONV" >&6; }
19604   else
19605             CPPFLAGS="$am_save_CPPFLAGS"
19606     LIBICONV=
19607     LTLIBICONV=
19608   fi
19609
19610
19611
19612   if test "$am_cv_func_iconv" = yes; then
19613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19614 $as_echo_n "checking for iconv declaration... " >&6; }
19615     if test "${am_cv_proto_iconv+set}" = set; then :
19616   $as_echo_n "(cached) " >&6
19617 else
19618
19619       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h.  */
19621
19622 #include <stdlib.h>
19623 #include <iconv.h>
19624 extern
19625 #ifdef __cplusplus
19626 "C"
19627 #endif
19628 #if defined(__STDC__) || defined(__cplusplus)
19629 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19630 #else
19631 size_t iconv();
19632 #endif
19633
19634 int
19635 main ()
19636 {
19637
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 if ac_fn_c_try_compile "$LINENO"; then :
19643   am_cv_proto_iconv_arg1=""
19644 else
19645   am_cv_proto_iconv_arg1="const"
19646 fi
19647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19648       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);"
19649 fi
19650
19651     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19653          }$am_cv_proto_iconv" >&5
19654 $as_echo "${ac_t:-
19655          }$am_cv_proto_iconv" >&6; }
19656
19657 cat >>confdefs.h <<_ACEOF
19658 #define ICONV_CONST $am_cv_proto_iconv_arg1
19659 _ACEOF
19660
19661   fi
19662
19663
19664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19665 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19666 if test "${am_cv_langinfo_codeset+set}" = set; then :
19667   $as_echo_n "(cached) " >&6
19668 else
19669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h.  */
19671 #include <langinfo.h>
19672 int
19673 main ()
19674 {
19675 char* cs = nl_langinfo(CODESET);
19676   ;
19677   return 0;
19678 }
19679 _ACEOF
19680 if ac_fn_c_try_link "$LINENO"; then :
19681   am_cv_langinfo_codeset=yes
19682 else
19683   am_cv_langinfo_codeset=no
19684 fi
19685 rm -f core conftest.err conftest.$ac_objext \
19686     conftest$ac_exeext conftest.$ac_ext
19687
19688 fi
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19690 $as_echo "$am_cv_langinfo_codeset" >&6; }
19691   if test $am_cv_langinfo_codeset = yes; then
19692
19693 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19694
19695   fi
19696
19697   if test $ac_cv_header_locale_h = yes; then
19698
19699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19700 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19701 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19702   $as_echo_n "(cached) " >&6
19703 else
19704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h.  */
19706 #include <locale.h>
19707 int
19708 main ()
19709 {
19710 return LC_MESSAGES
19711   ;
19712   return 0;
19713 }
19714 _ACEOF
19715 if ac_fn_c_try_link "$LINENO"; then :
19716   gt_cv_val_LC_MESSAGES=yes
19717 else
19718   gt_cv_val_LC_MESSAGES=no
19719 fi
19720 rm -f core conftest.err conftest.$ac_objext \
19721     conftest$ac_exeext conftest.$ac_ext
19722 fi
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19724 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19725   if test $gt_cv_val_LC_MESSAGES = yes; then
19726
19727 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19728
19729   fi
19730
19731   fi
19732
19733   if test -n "$INTL_MACOSX_LIBS"; then
19734     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19735   fi
19736
19737                       for ac_prog in bison
19738 do
19739   # Extract the first word of "$ac_prog", so it can be a program name with args.
19740 set dummy $ac_prog; ac_word=$2
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19742 $as_echo_n "checking for $ac_word... " >&6; }
19743 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19744   $as_echo_n "(cached) " >&6
19745 else
19746   if test -n "$INTLBISON"; then
19747   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19748 else
19749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750 for as_dir in $PATH
19751 do
19752   IFS=$as_save_IFS
19753   test -z "$as_dir" && as_dir=.
19754     for ac_exec_ext in '' $ac_executable_extensions; do
19755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19756     ac_cv_prog_INTLBISON="$ac_prog"
19757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19758     break 2
19759   fi
19760 done
19761   done
19762 IFS=$as_save_IFS
19763
19764 fi
19765 fi
19766 INTLBISON=$ac_cv_prog_INTLBISON
19767 if test -n "$INTLBISON"; then
19768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19769 $as_echo "$INTLBISON" >&6; }
19770 else
19771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19772 $as_echo "no" >&6; }
19773 fi
19774
19775
19776   test -n "$INTLBISON" && break
19777 done
19778
19779   if test -z "$INTLBISON"; then
19780     ac_verc_fail=yes
19781   else
19782         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19783 $as_echo_n "checking version of bison... " >&6; }
19784     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19785     case $ac_prog_version in
19786       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19787       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19788          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19789       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19790     esac
19791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19792 $as_echo "$ac_prog_version" >&6; }
19793   fi
19794   if test $ac_verc_fail = yes; then
19795     INTLBISON=:
19796   fi
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19814 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19815 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19816   $as_echo_n "(cached) " >&6
19817 else
19818   gt_save_CPPFLAGS="$CPPFLAGS"
19819      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19820      gt_save_LIBS="$LIBS"
19821      LIBS="$LIBS -framework CoreFoundation"
19822      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h.  */
19824 #include <CFPreferences.h>
19825 int
19826 main ()
19827 {
19828 CFPreferencesCopyAppValue(NULL, NULL)
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 if ac_fn_c_try_link "$LINENO"; then :
19834   gt_cv_func_CFPreferencesCopyAppValue=yes
19835 else
19836   gt_cv_func_CFPreferencesCopyAppValue=no
19837 fi
19838 rm -f core conftest.err conftest.$ac_objext \
19839     conftest$ac_exeext conftest.$ac_ext
19840      CPPFLAGS="$gt_save_CPPFLAGS"
19841      LIBS="$gt_save_LIBS"
19842 fi
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19844 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19845   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19846
19847 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19848
19849   fi
19850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19851 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19852 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19853   $as_echo_n "(cached) " >&6
19854 else
19855   gt_save_CPPFLAGS="$CPPFLAGS"
19856      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19857      gt_save_LIBS="$LIBS"
19858      LIBS="$LIBS -framework CoreFoundation"
19859      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19860 /* end confdefs.h.  */
19861 #include <CFLocale.h>
19862 int
19863 main ()
19864 {
19865 CFLocaleCopyCurrent();
19866   ;
19867   return 0;
19868 }
19869 _ACEOF
19870 if ac_fn_c_try_link "$LINENO"; then :
19871   gt_cv_func_CFLocaleCopyCurrent=yes
19872 else
19873   gt_cv_func_CFLocaleCopyCurrent=no
19874 fi
19875 rm -f core conftest.err conftest.$ac_objext \
19876     conftest$ac_exeext conftest.$ac_ext
19877      CPPFLAGS="$gt_save_CPPFLAGS"
19878      LIBS="$gt_save_LIBS"
19879 fi
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19881 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19882   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19883
19884 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19885
19886   fi
19887   INTL_MACOSX_LIBS=
19888   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19889     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19890   fi
19891
19892
19893
19894
19895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19896 $as_echo_n "checking whether NLS is requested... " >&6; }
19897     # Check whether --enable-nls was given.
19898 if test "${enable_nls+set}" = set; then :
19899   enableval=$enable_nls; USE_NLS=$enableval
19900 else
19901   USE_NLS=yes
19902 fi
19903
19904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19905 $as_echo "$USE_NLS" >&6; }
19906
19907
19908
19909
19910     BUILD_INCLUDED_LIBINTL=no
19911     USE_INCLUDED_LIBINTL=no
19912
19913   LIBINTL=
19914   LTLIBINTL=
19915   POSUB=
19916
19917     if test "$USE_NLS" = "yes"; then
19918     gt_use_preinstalled_gnugettext=no
19919
19920       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19921 $as_echo_n "checking whether included gettext is requested... " >&6; }
19922
19923 # Check whether --with-included-gettext was given.
19924 if test "${with_included_gettext+set}" = set; then :
19925   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19926 else
19927   nls_cv_force_use_gnu_gettext=no
19928 fi
19929
19930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19931 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19932
19933       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19934       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19935
19936
19937
19938
19939
19940
19941         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19942 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19943 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19944   $as_echo_n "(cached) " >&6
19945 else
19946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19947 /* end confdefs.h.  */
19948 #include <libintl.h>
19949 extern int _nl_msg_cat_cntr;
19950 extern int *_nl_domain_bindings;
19951 int
19952 main ()
19953 {
19954 bindtextdomain ("", "");
19955 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19956   ;
19957   return 0;
19958 }
19959 _ACEOF
19960 if ac_fn_c_try_link "$LINENO"; then :
19961   gt_cv_func_gnugettext1_libc=yes
19962 else
19963   gt_cv_func_gnugettext1_libc=no
19964 fi
19965 rm -f core conftest.err conftest.$ac_objext \
19966     conftest$ac_exeext conftest.$ac_ext
19967 fi
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19969 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19970
19971         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19972
19973
19974
19975     use_additional=yes
19976
19977   acl_save_prefix="$prefix"
19978   prefix="$acl_final_prefix"
19979   acl_save_exec_prefix="$exec_prefix"
19980   exec_prefix="$acl_final_exec_prefix"
19981
19982     eval additional_includedir=\"$includedir\"
19983     eval additional_libdir=\"$libdir\"
19984
19985   exec_prefix="$acl_save_exec_prefix"
19986   prefix="$acl_save_prefix"
19987
19988
19989 # Check whether --with-libintl-prefix was given.
19990 if test "${with_libintl_prefix+set}" = set; then :
19991   withval=$with_libintl_prefix;
19992     if test "X$withval" = "Xno"; then
19993       use_additional=no
19994     else
19995       if test "X$withval" = "X"; then
19996
19997   acl_save_prefix="$prefix"
19998   prefix="$acl_final_prefix"
19999   acl_save_exec_prefix="$exec_prefix"
20000   exec_prefix="$acl_final_exec_prefix"
20001
20002           eval additional_includedir=\"$includedir\"
20003           eval additional_libdir=\"$libdir\"
20004
20005   exec_prefix="$acl_save_exec_prefix"
20006   prefix="$acl_save_prefix"
20007
20008       else
20009         additional_includedir="$withval/include"
20010         additional_libdir="$withval/lib"
20011       fi
20012     fi
20013
20014 fi
20015
20016       LIBINTL=
20017   LTLIBINTL=
20018   INCINTL=
20019   rpathdirs=
20020   ltrpathdirs=
20021   names_already_handled=
20022   names_next_round='intl '
20023   while test -n "$names_next_round"; do
20024     names_this_round="$names_next_round"
20025     names_next_round=
20026     for name in $names_this_round; do
20027       already_handled=
20028       for n in $names_already_handled; do
20029         if test "$n" = "$name"; then
20030           already_handled=yes
20031           break
20032         fi
20033       done
20034       if test -z "$already_handled"; then
20035         names_already_handled="$names_already_handled $name"
20036                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20037         eval value=\"\$HAVE_LIB$uppername\"
20038         if test -n "$value"; then
20039           if test "$value" = yes; then
20040             eval value=\"\$LIB$uppername\"
20041             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20042             eval value=\"\$LTLIB$uppername\"
20043             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20044           else
20045                                     :
20046           fi
20047         else
20048                               found_dir=
20049           found_la=
20050           found_so=
20051           found_a=
20052           if test $use_additional = yes; then
20053             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20054               found_dir="$additional_libdir"
20055               found_so="$additional_libdir/lib$name.$shlibext"
20056               if test -f "$additional_libdir/lib$name.la"; then
20057                 found_la="$additional_libdir/lib$name.la"
20058               fi
20059             else
20060               if test -f "$additional_libdir/lib$name.$libext"; then
20061                 found_dir="$additional_libdir"
20062                 found_a="$additional_libdir/lib$name.$libext"
20063                 if test -f "$additional_libdir/lib$name.la"; then
20064                   found_la="$additional_libdir/lib$name.la"
20065                 fi
20066               fi
20067             fi
20068           fi
20069           if test "X$found_dir" = "X"; then
20070             for x in $LDFLAGS $LTLIBINTL; do
20071
20072   acl_save_prefix="$prefix"
20073   prefix="$acl_final_prefix"
20074   acl_save_exec_prefix="$exec_prefix"
20075   exec_prefix="$acl_final_exec_prefix"
20076   eval x=\"$x\"
20077   exec_prefix="$acl_save_exec_prefix"
20078   prefix="$acl_save_prefix"
20079
20080               case "$x" in
20081                 -L*)
20082                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20083                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20084                     found_dir="$dir"
20085                     found_so="$dir/lib$name.$shlibext"
20086                     if test -f "$dir/lib$name.la"; then
20087                       found_la="$dir/lib$name.la"
20088                     fi
20089                   else
20090                     if test -f "$dir/lib$name.$libext"; then
20091                       found_dir="$dir"
20092                       found_a="$dir/lib$name.$libext"
20093                       if test -f "$dir/lib$name.la"; then
20094                         found_la="$dir/lib$name.la"
20095                       fi
20096                     fi
20097                   fi
20098                   ;;
20099               esac
20100               if test "X$found_dir" != "X"; then
20101                 break
20102               fi
20103             done
20104           fi
20105           if test "X$found_dir" != "X"; then
20106                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20107             if test "X$found_so" != "X"; then
20108                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20109                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20110               else
20111                                                                                 haveit=
20112                 for x in $ltrpathdirs; do
20113                   if test "X$x" = "X$found_dir"; then
20114                     haveit=yes
20115                     break
20116                   fi
20117                 done
20118                 if test -z "$haveit"; then
20119                   ltrpathdirs="$ltrpathdirs $found_dir"
20120                 fi
20121                                 if test "$hardcode_direct" = yes; then
20122                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20123                 else
20124                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20125                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20126                                                             haveit=
20127                     for x in $rpathdirs; do
20128                       if test "X$x" = "X$found_dir"; then
20129                         haveit=yes
20130                         break
20131                       fi
20132                     done
20133                     if test -z "$haveit"; then
20134                       rpathdirs="$rpathdirs $found_dir"
20135                     fi
20136                   else
20137                                                                                 haveit=
20138                     for x in $LDFLAGS $LIBINTL; do
20139
20140   acl_save_prefix="$prefix"
20141   prefix="$acl_final_prefix"
20142   acl_save_exec_prefix="$exec_prefix"
20143   exec_prefix="$acl_final_exec_prefix"
20144   eval x=\"$x\"
20145   exec_prefix="$acl_save_exec_prefix"
20146   prefix="$acl_save_prefix"
20147
20148                       if test "X$x" = "X-L$found_dir"; then
20149                         haveit=yes
20150                         break
20151                       fi
20152                     done
20153                     if test -z "$haveit"; then
20154                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20155                     fi
20156                     if test "$hardcode_minus_L" != no; then
20157                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20158                     else
20159                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20160                     fi
20161                   fi
20162                 fi
20163               fi
20164             else
20165               if test "X$found_a" != "X"; then
20166                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20167               else
20168                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20169               fi
20170             fi
20171                         additional_includedir=
20172             case "$found_dir" in
20173               */lib | */lib/)
20174                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20175                 additional_includedir="$basedir/include"
20176                 ;;
20177             esac
20178             if test "X$additional_includedir" != "X"; then
20179                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20180                 haveit=
20181                 if test "X$additional_includedir" = "X/usr/local/include"; then
20182                   if test -n "$GCC"; then
20183                     case $host_os in
20184                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20185                     esac
20186                   fi
20187                 fi
20188                 if test -z "$haveit"; then
20189                   for x in $CPPFLAGS $INCINTL; do
20190
20191   acl_save_prefix="$prefix"
20192   prefix="$acl_final_prefix"
20193   acl_save_exec_prefix="$exec_prefix"
20194   exec_prefix="$acl_final_exec_prefix"
20195   eval x=\"$x\"
20196   exec_prefix="$acl_save_exec_prefix"
20197   prefix="$acl_save_prefix"
20198
20199                     if test "X$x" = "X-I$additional_includedir"; then
20200                       haveit=yes
20201                       break
20202                     fi
20203                   done
20204                   if test -z "$haveit"; then
20205                     if test -d "$additional_includedir"; then
20206                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20207                     fi
20208                   fi
20209                 fi
20210               fi
20211             fi
20212                         if test -n "$found_la"; then
20213                                                         save_libdir="$libdir"
20214               case "$found_la" in
20215                 */* | *\\*) . "$found_la" ;;
20216                 *) . "./$found_la" ;;
20217               esac
20218               libdir="$save_libdir"
20219                             for dep in $dependency_libs; do
20220                 case "$dep" in
20221                   -L*)
20222                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20223                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20224                       haveit=
20225                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20226                         if test -n "$GCC"; then
20227                           case $host_os in
20228                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20229                           esac
20230                         fi
20231                       fi
20232                       if test -z "$haveit"; then
20233                         haveit=
20234                         for x in $LDFLAGS $LIBINTL; do
20235
20236   acl_save_prefix="$prefix"
20237   prefix="$acl_final_prefix"
20238   acl_save_exec_prefix="$exec_prefix"
20239   exec_prefix="$acl_final_exec_prefix"
20240   eval x=\"$x\"
20241   exec_prefix="$acl_save_exec_prefix"
20242   prefix="$acl_save_prefix"
20243
20244                           if test "X$x" = "X-L$additional_libdir"; then
20245                             haveit=yes
20246                             break
20247                           fi
20248                         done
20249                         if test -z "$haveit"; then
20250                           if test -d "$additional_libdir"; then
20251                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20252                           fi
20253                         fi
20254                         haveit=
20255                         for x in $LDFLAGS $LTLIBINTL; do
20256
20257   acl_save_prefix="$prefix"
20258   prefix="$acl_final_prefix"
20259   acl_save_exec_prefix="$exec_prefix"
20260   exec_prefix="$acl_final_exec_prefix"
20261   eval x=\"$x\"
20262   exec_prefix="$acl_save_exec_prefix"
20263   prefix="$acl_save_prefix"
20264
20265                           if test "X$x" = "X-L$additional_libdir"; then
20266                             haveit=yes
20267                             break
20268                           fi
20269                         done
20270                         if test -z "$haveit"; then
20271                           if test -d "$additional_libdir"; then
20272                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20273                           fi
20274                         fi
20275                       fi
20276                     fi
20277                     ;;
20278                   -R*)
20279                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20280                     if test "$enable_rpath" != no; then
20281                                                                   haveit=
20282                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
20290                       fi
20291                                                                   haveit=
20292                       for x in $ltrpathdirs; do
20293                         if test "X$x" = "X$dir"; then
20294                           haveit=yes
20295                           break
20296                         fi
20297                       done
20298                       if test -z "$haveit"; then
20299                         ltrpathdirs="$ltrpathdirs $dir"
20300                       fi
20301                     fi
20302                     ;;
20303                   -l*)
20304                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20305                     ;;
20306                   *.la)
20307                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20308                     ;;
20309                   *)
20310                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20311                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20312                     ;;
20313                 esac
20314               done
20315             fi
20316           else
20317                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20318             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20319           fi
20320         fi
20321       fi
20322     done
20323   done
20324   if test "X$rpathdirs" != "X"; then
20325     if test -n "$hardcode_libdir_separator"; then
20326                         alldirs=
20327       for found_dir in $rpathdirs; do
20328         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20329       done
20330             acl_save_libdir="$libdir"
20331       libdir="$alldirs"
20332       eval flag=\"$hardcode_libdir_flag_spec\"
20333       libdir="$acl_save_libdir"
20334       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20335     else
20336             for found_dir in $rpathdirs; do
20337         acl_save_libdir="$libdir"
20338         libdir="$found_dir"
20339         eval flag=\"$hardcode_libdir_flag_spec\"
20340         libdir="$acl_save_libdir"
20341         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20342       done
20343     fi
20344   fi
20345   if test "X$ltrpathdirs" != "X"; then
20346             for found_dir in $ltrpathdirs; do
20347       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20348     done
20349   fi
20350
20351           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20352 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20353 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20354   $as_echo_n "(cached) " >&6
20355 else
20356   gt_save_CPPFLAGS="$CPPFLAGS"
20357             CPPFLAGS="$CPPFLAGS $INCINTL"
20358             gt_save_LIBS="$LIBS"
20359             LIBS="$LIBS $LIBINTL"
20360                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h.  */
20362 #include <libintl.h>
20363 extern int _nl_msg_cat_cntr;
20364 extern
20365 #ifdef __cplusplus
20366 "C"
20367 #endif
20368 const char *_nl_expand_alias (const char *);
20369 int
20370 main ()
20371 {
20372 bindtextdomain ("", "");
20373 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20374   ;
20375   return 0;
20376 }
20377 _ACEOF
20378 if ac_fn_c_try_link "$LINENO"; then :
20379   gt_cv_func_gnugettext1_libintl=yes
20380 else
20381   gt_cv_func_gnugettext1_libintl=no
20382 fi
20383 rm -f core conftest.err conftest.$ac_objext \
20384     conftest$ac_exeext conftest.$ac_ext
20385                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20386               LIBS="$LIBS $LIBICONV"
20387               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h.  */
20389 #include <libintl.h>
20390 extern int _nl_msg_cat_cntr;
20391 extern
20392 #ifdef __cplusplus
20393 "C"
20394 #endif
20395 const char *_nl_expand_alias (const char *);
20396 int
20397 main ()
20398 {
20399 bindtextdomain ("", "");
20400 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 if ac_fn_c_try_link "$LINENO"; then :
20406   LIBINTL="$LIBINTL $LIBICONV"
20407                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20408                 gt_cv_func_gnugettext1_libintl=yes
20409
20410 fi
20411 rm -f core conftest.err conftest.$ac_objext \
20412     conftest$ac_exeext conftest.$ac_ext
20413             fi
20414             CPPFLAGS="$gt_save_CPPFLAGS"
20415             LIBS="$gt_save_LIBS"
20416 fi
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20418 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20419         fi
20420
20421                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20422            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20423                 && test "$PACKAGE" != gettext-runtime \
20424                 && test "$PACKAGE" != gettext-tools; }; then
20425           gt_use_preinstalled_gnugettext=yes
20426         else
20427                     LIBINTL=
20428           LTLIBINTL=
20429           INCINTL=
20430         fi
20431
20432
20433         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20434                               nls_cv_use_gnu_gettext=yes
20435         fi
20436       fi
20437
20438       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20439                 BUILD_INCLUDED_LIBINTL=yes
20440         USE_INCLUDED_LIBINTL=yes
20441         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20442         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20443         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20444       fi
20445
20446       CATOBJEXT=
20447       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20448          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20449                 CATOBJEXT=.gmo
20450       fi
20451
20452
20453     if test -n "$INTL_MACOSX_LIBS"; then
20454       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20455          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20456                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20457         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20458       fi
20459     fi
20460
20461     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20462        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20463
20464 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20465
20466     else
20467       USE_NLS=no
20468     fi
20469   fi
20470
20471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20472 $as_echo_n "checking whether to use NLS... " >&6; }
20473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20474 $as_echo "$USE_NLS" >&6; }
20475   if test "$USE_NLS" = "yes"; then
20476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20477 $as_echo_n "checking where the gettext function comes from... " >&6; }
20478     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20479       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20480         gt_source="external libintl"
20481       else
20482         gt_source="libc"
20483       fi
20484     else
20485       gt_source="included intl directory"
20486     fi
20487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20488 $as_echo "$gt_source" >&6; }
20489   fi
20490
20491   if test "$USE_NLS" = "yes"; then
20492
20493     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20494       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20496 $as_echo_n "checking how to link with libintl... " >&6; }
20497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20498 $as_echo "$LIBINTL" >&6; }
20499
20500   for element in $INCINTL; do
20501     haveit=
20502     for x in $CPPFLAGS; do
20503
20504   acl_save_prefix="$prefix"
20505   prefix="$acl_final_prefix"
20506   acl_save_exec_prefix="$exec_prefix"
20507   exec_prefix="$acl_final_exec_prefix"
20508   eval x=\"$x\"
20509   exec_prefix="$acl_save_exec_prefix"
20510   prefix="$acl_save_prefix"
20511
20512       if test "X$x" = "X$element"; then
20513         haveit=yes
20514         break
20515       fi
20516     done
20517     if test -z "$haveit"; then
20518       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20519     fi
20520   done
20521
20522       fi
20523
20524
20525 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20526
20527
20528 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20529
20530     fi
20531
20532         POSUB=po
20533   fi
20534
20535
20536             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20537       BUILD_INCLUDED_LIBINTL=yes
20538     fi
20539
20540
20541
20542
20543
20544         nls_cv_header_intl=
20545     nls_cv_header_libgt=
20546
20547         DATADIRNAME=share
20548
20549
20550         INSTOBJEXT=.mo
20551
20552
20553         GENCAT=gencat
20554
20555
20556         INTLOBJS=
20557     if test "$USE_INCLUDED_LIBINTL" = yes; then
20558       INTLOBJS="\$(GETTOBJS)"
20559     fi
20560
20561
20562         INTL_LIBTOOL_SUFFIX_PREFIX=
20563
20564
20565
20566     INTLLIBS="$LIBINTL"
20567
20568
20569
20570
20571
20572
20573 fi
20574
20575 support_mysql=no
20576 support_sqlite=no
20577 support_sqlite3=no
20578 support_postgresql=no
20579 support_ingres=no
20580 support_dbi=no
20581 support_smartalloc=yes
20582 support_readline=yes
20583 support_conio=yes
20584 support_gnome=no
20585 support_bat=no
20586 support_wx_console=no
20587 support_tray_monitor=no
20588 support_tls=no
20589 support_crypto=no
20590 gnome_version=
20591 wx_version=
20592 support_static_tools=no
20593 support_static_fd=no
20594 support_static_sd=no
20595 support_static_dir=no
20596 support_static_cons=no
20597 support_python=no
20598 build_client_only=no
20599 build_dird=yes
20600 build_stored=yes
20601 cats=
20602 db_type=Internal
20603 support_lockmgr=no
20604 DB_TYPE=bdb
20605
20606
20607 # Check whether --enable-gnome was given.
20608 if test "${enable_gnome+set}" = set; then :
20609   enableval=$enable_gnome;
20610        if test x$enableval = xyes; then
20611           support_gnome=yes
20612        fi
20613
20614
20615 fi
20616
20617
20618 GNOME_DIR=
20619 if test x$support_gnome = xyes; then
20620    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20621    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20622 fi
20623 # AC_SUBST(GNOME_DIR)
20624
20625 # Check whether --enable-bat was given.
20626 if test "${enable_bat+set}" = set; then :
20627   enableval=$enable_bat;
20628        if test x$enableval = xyes; then
20629
20630 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20631
20632           support_bat=yes
20633        fi
20634
20635
20636 fi
20637
20638
20639 BAT_DIR=
20640 if test x$support_bat = xyes; then
20641    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20642    pkg=$?
20643    if test $pkg = 0; then
20644       BAT_DIR=src/qt-console
20645    else
20646       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20647    fi
20648 fi
20649
20650 got_qwt=no
20651 QWT_INC=
20652 QWT_LDFLAGS=
20653 QWT_LIB=
20654 QWT=
20655 no_qwt=no
20656
20657
20658
20659
20660
20661
20662
20663
20664 # Check whether --enable-bwx-console was given.
20665 if test "${enable_bwx_console+set}" = set; then :
20666   enableval=$enable_bwx_console;
20667        if test x$enableval = xyes; then
20668           support_wx_console=yes
20669        fi
20670
20671
20672 fi
20673
20674
20675 WX_DIR=
20676 if test x$support_wx_console = xyes; then
20677    abc=`$WXCONFIG $WXFLAGS --cppflags`
20678    pkg=$?
20679    if test $pkg = 0; then
20680       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20681       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20682       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20683
20684
20685
20686       WX_DIR="src/wx-console"
20687    else
20688       echo " "
20689       echo "wx-config program not found. bwx-console disabled."
20690       echo " "
20691       support_wx_console=no
20692    fi
20693 fi
20694
20695
20696 # Check whether --enable-tray-monitor was given.
20697 if test "${enable_tray_monitor+set}" = set; then :
20698   enableval=$enable_tray_monitor;
20699        if test x$enableval = xyes; then
20700           support_tray_monitor=yes
20701        fi
20702
20703
20704 fi
20705
20706
20707 TRAY_MONITOR_DIR=
20708 if test x$support_tray_monitor = xyes; then
20709    abc=`$PKGCONFIG --exists gtk+-2.0`
20710    pkg=$?
20711    if test $pkg = 0; then
20712       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20713       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20714
20715
20716       TRAY_MONITOR_DIR=src/tray-monitor
20717       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20718       pkg=$?
20719       if test $pkg = 0; then
20720
20721 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20722
20723       fi
20724    fi
20725 fi
20726
20727
20728 # Check whether --enable-smartalloc was given.
20729 if test "${enable_smartalloc+set}" = set; then :
20730   enableval=$enable_smartalloc;
20731        if test x$enableval = xno; then
20732           support_smartalloc=no
20733        fi
20734
20735
20736 fi
20737
20738
20739 if test x$support_smartalloc = xyes; then
20740
20741 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20742
20743 fi
20744
20745 # Check whether --enable-lockmgr was given.
20746 if test "${enable_lockmgr+set}" = set; then :
20747   enableval=$enable_lockmgr;
20748        if test x$enableval = xyes; then
20749           support_lockmgr=yes
20750        fi
20751
20752
20753 fi
20754
20755
20756 if test x$support_lockmgr = xyes; then
20757
20758 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20759
20760 fi
20761
20762
20763 # Check whether --enable-static-tools was given.
20764 if test "${enable_static_tools+set}" = set; then :
20765   enableval=$enable_static_tools;
20766        if test x$enableval = xyes; then
20767           if test x$use_libtool = xyes; then
20768              as_fn_error "Libtool is enabled, not compatible with static tools,
20769   please rerun configure with --disable-libtool" "$LINENO" 5
20770           fi
20771           support_static_tools=yes
20772        fi
20773
20774
20775 fi
20776
20777
20778 TTOOL_LDFLAGS=
20779 if test x$support_static_tools = xyes; then
20780    TTOOL_LDFLAGS="-static"
20781 fi
20782
20783
20784 # Check whether --enable-static-fd was given.
20785 if test "${enable_static_fd+set}" = set; then :
20786   enableval=$enable_static_fd;
20787        if test x$enableval = xyes; then
20788           if test x$use_libtool = xyes; then
20789              as_fn_error "Libtool is enabled, not compatible with static tools,
20790   please rerun configure with --disable-libtool" "$LINENO" 5
20791           fi
20792           support_static_fd=yes
20793        fi
20794
20795
20796 fi
20797
20798
20799 STATIC_FD=
20800 if test x$support_static_fd = xyes; then
20801    STATIC_FD="static-bacula-fd"
20802 fi
20803
20804
20805 # Check whether --enable-static-sd was given.
20806 if test "${enable_static_sd+set}" = set; then :
20807   enableval=$enable_static_sd;
20808        if test x$enableval = xyes; then
20809           if test x$use_libtool = xyes; then
20810              as_fn_error "Libtool is enabled, not compatible with static tools,
20811   please rerun configure with --disable-libtool" "$LINENO" 5
20812           fi
20813           support_static_sd=yes
20814        fi
20815
20816
20817 fi
20818
20819
20820 STATIC_SD=
20821 if test x$support_static_sd = xyes; then
20822    STATIC_SD="static-bacula-sd"
20823 fi
20824
20825
20826 # Check whether --enable-static-dir was given.
20827 if test "${enable_static_dir+set}" = set; then :
20828   enableval=$enable_static_dir;
20829        if test x$enableval = xyes; then
20830           if test x$use_libtool = xyes; then
20831              as_fn_error "Libtool is enabled, not compatible with static tools,
20832   please rerun configure with --disable-libtool" "$LINENO" 5
20833           fi
20834           support_static_dir=yes
20835        fi
20836
20837
20838 fi
20839
20840
20841 STATIC_DIR=
20842 if test x$support_static_dir = xyes; then
20843    STATIC_DIR="static-bacula-dir"
20844 fi
20845
20846
20847 # Check whether --enable-static-cons was given.
20848 if test "${enable_static_cons+set}" = set; then :
20849   enableval=$enable_static_cons;
20850        if test x$enableval = xyes; then
20851           if test x$use_libtool = xyes; then
20852              as_fn_error "Libtool is enabled, not compatible with static tools,
20853   please rerun configure with --disable-libtool" "$LINENO" 5
20854           fi
20855           support_static_cons=yes
20856        fi
20857
20858
20859 fi
20860
20861
20862 STATIC_CONS=
20863 STATIC_GNOME_CONS=
20864 STATIC_WX_CONS=
20865 if test x$support_static_cons = xyes; then
20866    STATIC_CONS="static-bconsole"
20867    STATIC_GNOME_CONS="static-bgnome-console"
20868    STATIC_WX_CONS="static-bwx-console"
20869 fi
20870
20871
20872
20873
20874 # Check whether --enable-client-only was given.
20875 if test "${enable_client_only+set}" = set; then :
20876   enableval=$enable_client_only;
20877        if test x$enableval = xyes; then
20878           build_client_only=yes
20879           db_type=None
20880           DB_TYPE=none
20881        fi
20882
20883
20884 fi
20885
20886 if test x$build_client_only = xno; then
20887    ALL_DIRS="subdirs"
20888 else
20889    ALL_DIRS=""
20890 fi
20891
20892
20893 # Check whether --enable-build-dird was given.
20894 if test "${enable_build_dird+set}" = set; then :
20895   enableval=$enable_build_dird;
20896        if test x$enableval = xno; then
20897           build_dird=no
20898        fi
20899
20900
20901 fi
20902
20903 if test x$build_dird = xyes; then
20904    DIRD_DIR="src/dird"
20905    DIR_TOOLS="DIRTOOLS"
20906 else
20907    DIRD_DIR=""
20908    DIR_TOOLS="NODIRTOOLS"
20909 fi
20910
20911
20912
20913 # Check whether --enable-build-stored was given.
20914 if test "${enable_build_stored+set}" = set; then :
20915   enableval=$enable_build_stored;
20916       if test x$enableval = xno; then
20917          build_stored=no
20918       fi
20919
20920
20921 fi
20922
20923 if test x$build_stored = xyes; then
20924    STORED_DIR="src/stored"
20925 else
20926    STORED_DIR=""
20927 fi
20928
20929
20930 # Check whether --enable-conio was given.
20931 if test "${enable_conio+set}" = set; then :
20932   enableval=$enable_conio;
20933        if test x$enableval = xno; then
20934           support_conio=no
20935        fi
20936
20937
20938 fi
20939
20940
20941
20942 support_ipv6=yes
20943 # Check whether --enable-ipv6 was given.
20944 if test "${enable_ipv6+set}" = set; then :
20945   enableval=$enable_ipv6;
20946        if test x$enableval = xno; then
20947           support_ipv6=no
20948        fi
20949
20950
20951 fi
20952
20953
20954 if test x$support_ipv6 = xyes; then
20955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20956 /* end confdefs.h.  */
20957  #include <sys/types.h>
20958 #include <sys/socket.h>
20959 #include <netinet/in.h>
20960 int
20961 main ()
20962 {
20963 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 if ac_fn_c_try_link "$LINENO"; then :
20969   support_ipv6=yes
20970 else
20971   support_ipv6=no
20972 fi
20973 rm -f core conftest.err conftest.$ac_objext \
20974     conftest$ac_exeext conftest.$ac_ext
20975 fi
20976
20977 if test x$support_ipv6 = xyes; then
20978
20979 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20980
20981 fi
20982
20983 got_conio="no"
20984 if test x$support_conio = xyes; then
20985    ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
20986 if test "x$ac_cv_header_termcap_h" = x""yes; then :
20987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
20988 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
20989 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
20990   $as_echo_n "(cached) " >&6
20991 else
20992   ac_check_lib_save_LIBS=$LIBS
20993 LIBS="-ltermcap  $LIBS"
20994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995 /* end confdefs.h.  */
20996
20997 /* Override any GCC internal prototype to avoid an error.
20998    Use char because int might match the return type of a GCC
20999    builtin and then its argument prototype would still apply.  */
21000 #ifdef __cplusplus
21001 extern "C"
21002 #endif
21003 char tgetent ();
21004 int
21005 main ()
21006 {
21007 return tgetent ();
21008   ;
21009   return 0;
21010 }
21011 _ACEOF
21012 if ac_fn_c_try_link "$LINENO"; then :
21013   ac_cv_lib_termcap_tgetent=yes
21014 else
21015   ac_cv_lib_termcap_tgetent=no
21016 fi
21017 rm -f core conftest.err conftest.$ac_objext \
21018     conftest$ac_exeext conftest.$ac_ext
21019 LIBS=$ac_check_lib_save_LIBS
21020 fi
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21022 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21023 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21024    CONS_LIBS="-ltermcap"
21025     CONS_OBJ="conio.o"
21026     CONS_SRC="conio.c"
21027     got_conio="yes"
21028     support_readline=no
21029
21030 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21031
21032
21033 else
21034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21035 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21036 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21037   $as_echo_n "(cached) " >&6
21038 else
21039   ac_check_lib_save_LIBS=$LIBS
21040 LIBS="-lncurses  $LIBS"
21041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21042 /* end confdefs.h.  */
21043
21044 /* Override any GCC internal prototype to avoid an error.
21045    Use char because int might match the return type of a GCC
21046    builtin and then its argument prototype would still apply.  */
21047 #ifdef __cplusplus
21048 extern "C"
21049 #endif
21050 char tgetent ();
21051 int
21052 main ()
21053 {
21054 return tgetent ();
21055   ;
21056   return 0;
21057 }
21058 _ACEOF
21059 if ac_fn_c_try_link "$LINENO"; then :
21060   ac_cv_lib_ncurses_tgetent=yes
21061 else
21062   ac_cv_lib_ncurses_tgetent=no
21063 fi
21064 rm -f core conftest.err conftest.$ac_objext \
21065     conftest$ac_exeext conftest.$ac_ext
21066 LIBS=$ac_check_lib_save_LIBS
21067 fi
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21069 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21070 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21071    CONS_LIBS="-lncurses"
21072       CONS_OBJ="conio.o"
21073       CONS_SRC="conio.c"
21074       got_conio="yes"
21075       support_readline=no
21076
21077 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21078
21079
21080 fi
21081
21082
21083 fi
21084
21085
21086 else
21087
21088     for ac_header in curses.h
21089 do :
21090   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21091 if test "x$ac_cv_header_curses_h" = x""yes; then :
21092   cat >>confdefs.h <<_ACEOF
21093 #define HAVE_CURSES_H 1
21094 _ACEOF
21095
21096 fi
21097
21098 done
21099
21100     ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
21101 #include <curses.h>
21102 #endif
21103
21104 "
21105 if test "x$ac_cv_header_term_h" = x""yes; then :
21106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21107 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21108 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21109   $as_echo_n "(cached) " >&6
21110 else
21111   ac_check_lib_save_LIBS=$LIBS
21112 LIBS="-lcurses  $LIBS"
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h.  */
21115
21116 /* Override any GCC internal prototype to avoid an error.
21117    Use char because int might match the return type of a GCC
21118    builtin and then its argument prototype would still apply.  */
21119 #ifdef __cplusplus
21120 extern "C"
21121 #endif
21122 char tgetent ();
21123 int
21124 main ()
21125 {
21126 return tgetent ();
21127   ;
21128   return 0;
21129 }
21130 _ACEOF
21131 if ac_fn_c_try_link "$LINENO"; then :
21132   ac_cv_lib_curses_tgetent=yes
21133 else
21134   ac_cv_lib_curses_tgetent=no
21135 fi
21136 rm -f core conftest.err conftest.$ac_objext \
21137     conftest$ac_exeext conftest.$ac_ext
21138 LIBS=$ac_check_lib_save_LIBS
21139 fi
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21141 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21142 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21143    CONS_LIBS="-lcurses"
21144          CONS_OBJ="conio.o"
21145          CONS_SRC="conio.c"
21146          got_conio="yes"
21147          support_readline=no
21148
21149 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21150
21151
21152 fi
21153
21154
21155 else
21156    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
21157 fi
21158
21159
21160
21161 fi
21162
21163
21164 fi
21165
21166
21167 # Check whether --enable-readline was given.
21168 if test "${enable_readline+set}" = set; then :
21169   enableval=$enable_readline;
21170        if test x$enableval = xno; then
21171           support_readline=no
21172        fi
21173
21174
21175 fi
21176
21177
21178 got_readline="no"
21179 READLINE_SRC=
21180 if test x$support_readline = xyes; then
21181
21182 # Check whether --with-readline was given.
21183 if test "${with_readline+set}" = set; then :
21184   withval=$with_readline;
21185           case "$with_readline" in
21186           no)
21187              :
21188              ;;
21189           yes|*)
21190              if test -f ${with_readline}/readline.h; then
21191                 CONS_INC="-I${with_readline}"
21192                 CONS_LDFLAGS="-L$with_readline"
21193              elif test -f ${with_readline}/include/readline/readline.h; then
21194                 CONS_INC="-I${with_readline}/include/readline"
21195                 CONS_LDFLAGS="-L${with_readline}/lib"
21196                 with_readline="${with_readline}/include/readline"
21197              else
21198                 with_readline="/usr/include/readline"
21199              fi
21200
21201              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21202 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21203 eval as_val=\$$as_ac_Header
21204    if test "x$as_val" = x""yes; then :
21205
21206
21207 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21208
21209                     CONS_LIBS="-lreadline -lhistory -ltermcap"
21210                     got_readline="yes"
21211
21212 else
21213
21214                     echo " "
21215                     echo "readline.h not found. readline turned off ..."
21216                     echo " "
21217
21218
21219 fi
21220
21221
21222              ;;
21223           esac
21224
21225 else
21226
21227                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21228 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21229
21230
21231 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21232
21233                 got_readline="yes"
21234                 CONS_INC="-I/usr/include/readline"
21235                 CONS_LIBS="-lreadline -ltermcap"
21236
21237 else
21238
21239                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21240 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21241 eval as_val=\$$as_ac_Header
21242    if test "x$as_val" = x""yes; then :
21243
21244
21245 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21246
21247                         got_readline="yes"
21248                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21249                         CONS_LIBS="-lreadline -lhistory -ltermcap"
21250                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21251                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21252
21253 else
21254
21255                         echo " "
21256                         echo "readline.h not found. readline turned off ..."
21257                         echo " "
21258
21259
21260 fi
21261
21262
21263
21264
21265 fi
21266
21267
21268
21269
21270 fi
21271
21272 fi
21273
21274
21275
21276
21277
21278
21279
21280
21281 MAKE_SHELL=/bin/sh
21282
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21284 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21285 if test "${ac_cv_header_stat_broken+set}" = set; then :
21286   $as_echo_n "(cached) " >&6
21287 else
21288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21289 /* end confdefs.h.  */
21290 #include <sys/types.h>
21291 #include <sys/stat.h>
21292
21293 #if defined S_ISBLK && defined S_IFDIR
21294 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21295 #endif
21296
21297 #if defined S_ISBLK && defined S_IFCHR
21298 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21299 #endif
21300
21301 #if defined S_ISLNK && defined S_IFREG
21302 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21303 #endif
21304
21305 #if defined S_ISSOCK && defined S_IFREG
21306 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21307 #endif
21308
21309 _ACEOF
21310 if ac_fn_c_try_compile "$LINENO"; then :
21311   ac_cv_header_stat_broken=no
21312 else
21313   ac_cv_header_stat_broken=yes
21314 fi
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 fi
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21318 $as_echo "$ac_cv_header_stat_broken" >&6; }
21319 if test $ac_cv_header_stat_broken = yes; then
21320
21321 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21322
21323 fi
21324
21325 ac_header_dirent=no
21326 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21327   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21329 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21331   $as_echo_n "(cached) " >&6
21332 else
21333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21334 /* end confdefs.h.  */
21335 #include <sys/types.h>
21336 #include <$ac_hdr>
21337
21338 int
21339 main ()
21340 {
21341 if ((DIR *) 0)
21342 return 0;
21343   ;
21344   return 0;
21345 }
21346 _ACEOF
21347 if ac_fn_c_try_compile "$LINENO"; then :
21348   eval "$as_ac_Header=yes"
21349 else
21350   eval "$as_ac_Header=no"
21351 fi
21352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21353 fi
21354 eval ac_res=\$$as_ac_Header
21355                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21356 $as_echo "$ac_res" >&6; }
21357 eval as_val=\$$as_ac_Header
21358    if test "x$as_val" = x""yes; then :
21359   cat >>confdefs.h <<_ACEOF
21360 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21361 _ACEOF
21362
21363 ac_header_dirent=$ac_hdr; break
21364 fi
21365
21366 done
21367 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21368 if test $ac_header_dirent = dirent.h; then
21369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21370 $as_echo_n "checking for library containing opendir... " >&6; }
21371 if test "${ac_cv_search_opendir+set}" = set; then :
21372   $as_echo_n "(cached) " >&6
21373 else
21374   ac_func_search_save_LIBS=$LIBS
21375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h.  */
21377
21378 /* Override any GCC internal prototype to avoid an error.
21379    Use char because int might match the return type of a GCC
21380    builtin and then its argument prototype would still apply.  */
21381 #ifdef __cplusplus
21382 extern "C"
21383 #endif
21384 char opendir ();
21385 int
21386 main ()
21387 {
21388 return opendir ();
21389   ;
21390   return 0;
21391 }
21392 _ACEOF
21393 for ac_lib in '' dir; do
21394   if test -z "$ac_lib"; then
21395     ac_res="none required"
21396   else
21397     ac_res=-l$ac_lib
21398     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21399   fi
21400   if ac_fn_c_try_link "$LINENO"; then :
21401   ac_cv_search_opendir=$ac_res
21402 fi
21403 rm -f core conftest.err conftest.$ac_objext \
21404     conftest$ac_exeext
21405   if test "${ac_cv_search_opendir+set}" = set; then :
21406   break
21407 fi
21408 done
21409 if test "${ac_cv_search_opendir+set}" = set; then :
21410
21411 else
21412   ac_cv_search_opendir=no
21413 fi
21414 rm conftest.$ac_ext
21415 LIBS=$ac_func_search_save_LIBS
21416 fi
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21418 $as_echo "$ac_cv_search_opendir" >&6; }
21419 ac_res=$ac_cv_search_opendir
21420 if test "$ac_res" != no; then :
21421   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21422
21423 fi
21424
21425 else
21426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21427 $as_echo_n "checking for library containing opendir... " >&6; }
21428 if test "${ac_cv_search_opendir+set}" = set; then :
21429   $as_echo_n "(cached) " >&6
21430 else
21431   ac_func_search_save_LIBS=$LIBS
21432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21433 /* end confdefs.h.  */
21434
21435 /* Override any GCC internal prototype to avoid an error.
21436    Use char because int might match the return type of a GCC
21437    builtin and then its argument prototype would still apply.  */
21438 #ifdef __cplusplus
21439 extern "C"
21440 #endif
21441 char opendir ();
21442 int
21443 main ()
21444 {
21445 return opendir ();
21446   ;
21447   return 0;
21448 }
21449 _ACEOF
21450 for ac_lib in '' x; do
21451   if test -z "$ac_lib"; then
21452     ac_res="none required"
21453   else
21454     ac_res=-l$ac_lib
21455     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21456   fi
21457   if ac_fn_c_try_link "$LINENO"; then :
21458   ac_cv_search_opendir=$ac_res
21459 fi
21460 rm -f core conftest.err conftest.$ac_objext \
21461     conftest$ac_exeext
21462   if test "${ac_cv_search_opendir+set}" = set; then :
21463   break
21464 fi
21465 done
21466 if test "${ac_cv_search_opendir+set}" = set; then :
21467
21468 else
21469   ac_cv_search_opendir=no
21470 fi
21471 rm conftest.$ac_ext
21472 LIBS=$ac_func_search_save_LIBS
21473 fi
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21475 $as_echo "$ac_cv_search_opendir" >&6; }
21476 ac_res=$ac_cv_search_opendir
21477 if test "$ac_res" != no; then :
21478   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21479
21480 fi
21481
21482 fi
21483
21484 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21485 do :
21486   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21487 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21488 eval as_val=\$$as_ac_var
21489    if test "x$as_val" = x""yes; then :
21490   cat >>confdefs.h <<_ACEOF
21491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21492 _ACEOF
21493
21494 fi
21495 done
21496
21497 for ac_func in nanosleep nl_langinfo
21498 do :
21499   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21500 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21501 eval as_val=\$$as_ac_var
21502    if test "x$as_val" = x""yes; then :
21503   cat >>confdefs.h <<_ACEOF
21504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21505 _ACEOF
21506
21507 fi
21508 done
21509
21510 for ac_header in varargs.h
21511 do :
21512   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21513 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21514   cat >>confdefs.h <<_ACEOF
21515 #define HAVE_VARARGS_H 1
21516 _ACEOF
21517
21518 fi
21519
21520 done
21521
21522
21523
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21525 $as_echo_n "checking for Python support... " >&6; }
21526
21527 # Check whether --with-python was given.
21528 if test "${with_python+set}" = set; then :
21529   withval=$with_python;
21530        PYTHON_INCDIR=
21531        PYTHON_LIBS=
21532        if test "$withval" != "no"; then
21533           if test "$withval" = "yes"; then
21534              if test -e /usr/bin/python-config ; then
21535                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21536                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21537              else
21538                 for python_root in /usr /usr/local /usr/sfw; do
21539                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21540                       if test -f $python_root/include/${ver}/Python.h; then
21541                          PYTHON_INCDIR=-I$python_root/include/${ver}
21542                          if test -d $python_root/lib64/${ver}/config; then
21543                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21544                          else
21545                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21546                          fi
21547                          break
21548                       fi
21549                    done
21550                 done
21551
21552                 if test x$PYTHON_INCDIR = x; then
21553                    if test -f $prefix/include/Python.h; then
21554                       PYTHON_INCDIR=-I$prefix/include
21555                       if test -d $prefix/lib64/config; then
21556                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21557                       else
21558                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21559                       fi
21560                    else
21561                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21562 $as_echo "no" >&6; }
21563                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21564                    fi
21565                 fi
21566              fi
21567           else
21568              if test -e $withval/bin/python-config ; then
21569                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21570                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21571              elif test -f $withval/Python.h; then
21572                 PYTHON_INCDIR=-I$withval
21573                 PYTHON_LIBS="-L$withval/config -lpython"
21574              elif test -f $withval/include/Python.h; then
21575                 PYTHON_INCDIR=-I$withval/include
21576                 if test -d $withval/lib64/config; then
21577                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21578                 else
21579                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21580                 fi
21581              elif test -f $withval/include/python/Python.h; then
21582                 PYTHON_INCDIR=-I$withval/include/python
21583                 if test -d $withval/lib64/python/config; then
21584                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21585                 else
21586                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21587                 fi
21588              else
21589                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21590 $as_echo "no" >&6; }
21591                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21592              fi
21593           fi
21594
21595           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21596
21597           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21598 $as_echo "yes" >&6; }
21599           support_python=yes
21600           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21601 $as_echo "$as_me: checking for more Python libs" >&6;}
21602           saved_LIBS="$LIBS"; LIBS=
21603           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21604 $as_echo_n "checking for library containing shm_open... " >&6; }
21605 if test "${ac_cv_search_shm_open+set}" = set; then :
21606   $as_echo_n "(cached) " >&6
21607 else
21608   ac_func_search_save_LIBS=$LIBS
21609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h.  */
21611
21612 /* Override any GCC internal prototype to avoid an error.
21613    Use char because int might match the return type of a GCC
21614    builtin and then its argument prototype would still apply.  */
21615 #ifdef __cplusplus
21616 extern "C"
21617 #endif
21618 char shm_open ();
21619 int
21620 main ()
21621 {
21622 return shm_open ();
21623   ;
21624   return 0;
21625 }
21626 _ACEOF
21627 for ac_lib in '' rt; do
21628   if test -z "$ac_lib"; then
21629     ac_res="none required"
21630   else
21631     ac_res=-l$ac_lib
21632     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21633   fi
21634   if ac_fn_c_try_link "$LINENO"; then :
21635   ac_cv_search_shm_open=$ac_res
21636 fi
21637 rm -f core conftest.err conftest.$ac_objext \
21638     conftest$ac_exeext
21639   if test "${ac_cv_search_shm_open+set}" = set; then :
21640   break
21641 fi
21642 done
21643 if test "${ac_cv_search_shm_open+set}" = set; then :
21644
21645 else
21646   ac_cv_search_shm_open=no
21647 fi
21648 rm conftest.$ac_ext
21649 LIBS=$ac_func_search_save_LIBS
21650 fi
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21652 $as_echo "$ac_cv_search_shm_open" >&6; }
21653 ac_res=$ac_cv_search_shm_open
21654 if test "$ac_res" != no; then :
21655   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21656
21657 fi
21658
21659           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21660 $as_echo_n "checking for openpty in -lutil... " >&6; }
21661 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21662   $as_echo_n "(cached) " >&6
21663 else
21664   ac_check_lib_save_LIBS=$LIBS
21665 LIBS="-lutil  $LIBS"
21666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21667 /* end confdefs.h.  */
21668
21669 /* Override any GCC internal prototype to avoid an error.
21670    Use char because int might match the return type of a GCC
21671    builtin and then its argument prototype would still apply.  */
21672 #ifdef __cplusplus
21673 extern "C"
21674 #endif
21675 char openpty ();
21676 int
21677 main ()
21678 {
21679 return openpty ();
21680   ;
21681   return 0;
21682 }
21683 _ACEOF
21684 if ac_fn_c_try_link "$LINENO"; then :
21685   ac_cv_lib_util_openpty=yes
21686 else
21687   ac_cv_lib_util_openpty=no
21688 fi
21689 rm -f core conftest.err conftest.$ac_objext \
21690     conftest$ac_exeext conftest.$ac_ext
21691 LIBS=$ac_check_lib_save_LIBS
21692 fi
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21694 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21695 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21696   cat >>confdefs.h <<_ACEOF
21697 #define HAVE_LIBUTIL 1
21698 _ACEOF
21699
21700   LIBS="-lutil $LIBS"
21701
21702 fi
21703
21704           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21705           LIBS="$saved_LIBS"
21706        else
21707           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21708 $as_echo "no" >&6; }
21709        fi
21710
21711 else
21712
21713        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21714 $as_echo "no" >&6; }
21715
21716
21717 fi
21718
21719
21720
21721
21722 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21723 if test "x$ac_cv_func_socket" = x""yes; then :
21724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21725 $as_echo "using libc's socket" >&6; }
21726 else
21727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21728 $as_echo_n "checking for socket in -lxnet... " >&6; }
21729 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21730   $as_echo_n "(cached) " >&6
21731 else
21732   ac_check_lib_save_LIBS=$LIBS
21733 LIBS="-lxnet  $LIBS"
21734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21735 /* end confdefs.h.  */
21736
21737 /* Override any GCC internal prototype to avoid an error.
21738    Use char because int might match the return type of a GCC
21739    builtin and then its argument prototype would still apply.  */
21740 #ifdef __cplusplus
21741 extern "C"
21742 #endif
21743 char socket ();
21744 int
21745 main ()
21746 {
21747 return socket ();
21748   ;
21749   return 0;
21750 }
21751 _ACEOF
21752 if ac_fn_c_try_link "$LINENO"; then :
21753   ac_cv_lib_xnet_socket=yes
21754 else
21755   ac_cv_lib_xnet_socket=no
21756 fi
21757 rm -f core conftest.err conftest.$ac_objext \
21758     conftest$ac_exeext conftest.$ac_ext
21759 LIBS=$ac_check_lib_save_LIBS
21760 fi
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21762 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21763 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21764   cat >>confdefs.h <<_ACEOF
21765 #define HAVE_LIBXNET 1
21766 _ACEOF
21767
21768   LIBS="-lxnet $LIBS"
21769
21770 fi
21771
21772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21773 $as_echo_n "checking for socket in -lsocket... " >&6; }
21774 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21775   $as_echo_n "(cached) " >&6
21776 else
21777   ac_check_lib_save_LIBS=$LIBS
21778 LIBS="-lsocket  $LIBS"
21779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780 /* end confdefs.h.  */
21781
21782 /* Override any GCC internal prototype to avoid an error.
21783    Use char because int might match the return type of a GCC
21784    builtin and then its argument prototype would still apply.  */
21785 #ifdef __cplusplus
21786 extern "C"
21787 #endif
21788 char socket ();
21789 int
21790 main ()
21791 {
21792 return socket ();
21793   ;
21794   return 0;
21795 }
21796 _ACEOF
21797 if ac_fn_c_try_link "$LINENO"; then :
21798   ac_cv_lib_socket_socket=yes
21799 else
21800   ac_cv_lib_socket_socket=no
21801 fi
21802 rm -f core conftest.err conftest.$ac_objext \
21803     conftest$ac_exeext conftest.$ac_ext
21804 LIBS=$ac_check_lib_save_LIBS
21805 fi
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21807 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21808 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21809   cat >>confdefs.h <<_ACEOF
21810 #define HAVE_LIBSOCKET 1
21811 _ACEOF
21812
21813   LIBS="-lsocket $LIBS"
21814
21815 fi
21816
21817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21818 $as_echo_n "checking for socket in -linet... " >&6; }
21819 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21820   $as_echo_n "(cached) " >&6
21821 else
21822   ac_check_lib_save_LIBS=$LIBS
21823 LIBS="-linet  $LIBS"
21824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21825 /* end confdefs.h.  */
21826
21827 /* Override any GCC internal prototype to avoid an error.
21828    Use char because int might match the return type of a GCC
21829    builtin and then its argument prototype would still apply.  */
21830 #ifdef __cplusplus
21831 extern "C"
21832 #endif
21833 char socket ();
21834 int
21835 main ()
21836 {
21837 return socket ();
21838   ;
21839   return 0;
21840 }
21841 _ACEOF
21842 if ac_fn_c_try_link "$LINENO"; then :
21843   ac_cv_lib_inet_socket=yes
21844 else
21845   ac_cv_lib_inet_socket=no
21846 fi
21847 rm -f core conftest.err conftest.$ac_objext \
21848     conftest$ac_exeext conftest.$ac_ext
21849 LIBS=$ac_check_lib_save_LIBS
21850 fi
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21852 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21853 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21854   cat >>confdefs.h <<_ACEOF
21855 #define HAVE_LIBINET 1
21856 _ACEOF
21857
21858   LIBS="-linet $LIBS"
21859
21860 fi
21861
21862 fi
21863
21864
21865 TCPW_MSG="no"
21866 WRAPLIBS=""
21867
21868 # Check whether --with-tcp-wrappers was given.
21869 if test "${with_tcp_wrappers+set}" = set; then :
21870   withval=$with_tcp_wrappers;
21871        if test "x$withval" != "xno" ; then
21872           saved_LIBS="$LIBS"
21873           LIBS="$saved_LIBS -lwrap"
21874           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21875 $as_echo_n "checking for library containing nanosleep... " >&6; }
21876 if test "${ac_cv_search_nanosleep+set}" = set; then :
21877   $as_echo_n "(cached) " >&6
21878 else
21879   ac_func_search_save_LIBS=$LIBS
21880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21881 /* end confdefs.h.  */
21882
21883 /* Override any GCC internal prototype to avoid an error.
21884    Use char because int might match the return type of a GCC
21885    builtin and then its argument prototype would still apply.  */
21886 #ifdef __cplusplus
21887 extern "C"
21888 #endif
21889 char nanosleep ();
21890 int
21891 main ()
21892 {
21893 return nanosleep ();
21894   ;
21895   return 0;
21896 }
21897 _ACEOF
21898 for ac_lib in '' rt; do
21899   if test -z "$ac_lib"; then
21900     ac_res="none required"
21901   else
21902     ac_res=-l$ac_lib
21903     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21904   fi
21905   if ac_fn_c_try_link "$LINENO"; then :
21906   ac_cv_search_nanosleep=$ac_res
21907 fi
21908 rm -f core conftest.err conftest.$ac_objext \
21909     conftest$ac_exeext
21910   if test "${ac_cv_search_nanosleep+set}" = set; then :
21911   break
21912 fi
21913 done
21914 if test "${ac_cv_search_nanosleep+set}" = set; then :
21915
21916 else
21917   ac_cv_search_nanosleep=no
21918 fi
21919 rm conftest.$ac_ext
21920 LIBS=$ac_func_search_save_LIBS
21921 fi
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21923 $as_echo "$ac_cv_search_nanosleep" >&6; }
21924 ac_res=$ac_cv_search_nanosleep
21925 if test "$ac_res" != no; then :
21926   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21927
21928 fi
21929
21930           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21931 $as_echo_n "checking for libwrap... " >&6; }
21932           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21933 /* end confdefs.h.  */
21934
21935                #include <sys/types.h>
21936                #include <tcpd.h>
21937                int deny_severity = 0;
21938                int allow_severity = 0;
21939                struct request_info *req;
21940
21941 int
21942 main ()
21943 {
21944
21945                 hosts_access(req);
21946
21947   ;
21948   return 0;
21949 }
21950 _ACEOF
21951 if ac_fn_c_try_link "$LINENO"; then :
21952
21953                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21954 $as_echo "yes" >&6; }
21955
21956 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21957
21958                  TCPW_MSG="yes"
21959                  LIBS="$saved_LIBS"
21960                  WRAPLIBS="-lwrap"
21961
21962 else
21963
21964                  LIBS="$saved_LIBS -lwrap -lnsl"
21965                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21966                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21967 /* end confdefs.h.  */
21968
21969                        #include <sys/types.h>
21970                        #include <tcpd.h>
21971                        int deny_severity = 0;
21972                        int allow_severity = 0;
21973                        struct request_info *req;
21974
21975 int
21976 main ()
21977 {
21978
21979                        hosts_access(req);
21980
21981   ;
21982   return 0;
21983 }
21984 _ACEOF
21985 if ac_fn_c_try_link "$LINENO"; then :
21986
21987                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21988 $as_echo "yes" >&6; }
21989
21990 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21991
21992                       TCPW_MSG="yes"
21993                       LIBS="$saved_LIBS"
21994                       WRAPLIBS="-lwrap"
21995
21996 else
21997
21998                       as_fn_error "*** libwrap missing" "$LINENO" 5
21999
22000
22001 fi
22002 rm -f core conftest.err conftest.$ac_objext \
22003     conftest$ac_exeext conftest.$ac_ext
22004
22005
22006 fi
22007 rm -f core conftest.err conftest.$ac_objext \
22008     conftest$ac_exeext conftest.$ac_ext
22009        fi
22010
22011
22012 fi
22013
22014
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22016 $as_echo_n "checking for OpenSSL... " >&6; }
22017
22018 # Check whether --with-openssl was given.
22019 if test "${with_openssl+set}" = set; then :
22020   withval=$with_openssl;
22021         with_openssl_directory=${withval}
22022
22023
22024 fi
22025
22026
22027 if test "x$with_openssl_directory" != "xno"; then
22028    OPENSSL_LIBS="-lssl -lcrypto"
22029    OPENSSL_INC=""
22030
22031    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22032       #
22033       # Make sure the $with_openssl_directory also makes sense
22034       #
22035       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22036          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22037          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22038       fi
22039    fi
22040
22041    saved_LIBS="${LIBS}"
22042    saved_CFLAGS="${CFLAGS}"
22043    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22044    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22045
22046    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h.  */
22048
22049           #include <openssl/ssl.h>
22050
22051 int
22052 main ()
22053 {
22054
22055            CRYPTO_set_id_callback(NULL);
22056
22057   ;
22058   return 0;
22059 }
22060 _ACEOF
22061 if ac_fn_c_try_link "$LINENO"; then :
22062
22063           support_tls="yes"
22064           support_crypto="yes"
22065
22066 else
22067
22068           support_tls="no"
22069           support_crypto="no"
22070
22071
22072 fi
22073 rm -f core conftest.err conftest.$ac_objext \
22074     conftest$ac_exeext conftest.$ac_ext
22075
22076    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h.  */
22078
22079           #include <openssl/evp.h>
22080
22081 int
22082 main ()
22083 {
22084
22085           EVP_sha512();
22086
22087   ;
22088   return 0;
22089 }
22090 _ACEOF
22091 if ac_fn_c_try_link "$LINENO"; then :
22092
22093           ac_cv_openssl_sha2="yes"
22094
22095 else
22096
22097           ac_cv_openssl_sha2="no"
22098
22099
22100 fi
22101 rm -f core conftest.err conftest.$ac_objext \
22102     conftest$ac_exeext conftest.$ac_ext
22103
22104                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22105 /* end confdefs.h.  */
22106
22107           #include <openssl/evp.h>
22108
22109 int
22110 main ()
22111 {
22112
22113           EVP_aes_192_cbc();
22114
22115   ;
22116   return 0;
22117 }
22118 _ACEOF
22119 if ac_fn_c_try_link "$LINENO"; then :
22120
22121           ac_cv_openssl_export="no"
22122
22123 else
22124
22125           ac_cv_openssl_export="yes"
22126
22127
22128 fi
22129 rm -f core conftest.err conftest.$ac_objext \
22130     conftest$ac_exeext conftest.$ac_ext
22131
22132    LIBS="${saved_LIBS}"
22133    CFLAGS="${saved_CFLAGS}"
22134
22135    if test "$support_tls" = "yes"; then
22136
22137 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22138
22139
22140 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22141
22142
22143 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22144
22145    fi
22146
22147    if test "$ac_cv_openssl_sha2" = "yes"; then
22148
22149 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22150
22151    fi
22152
22153    if test "$ac_cv_openssl_export" = "yes"; then
22154
22155 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22156
22157    fi
22158 else
22159    support_tls="no"
22160    support_crypto="no"
22161    OPENSSL_LIBS=""
22162    OPENSSL_INC=""
22163 fi
22164
22165 if test "$support_tls" = "no"; then
22166    OPENSSL_LIBS=""
22167    OPENSSL_INC=""
22168 fi
22169 if test "$support_crypto" = "no"; then
22170    OPENSSL_LIBS=""
22171    OPENSSL_INC=""
22172 fi
22173
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22175 $as_echo "$support_tls" >&6; }
22176
22177
22178
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22180 $as_echo_n "checking for library containing dlopen... " >&6; }
22181 if test "${ac_cv_search_dlopen+set}" = set; then :
22182   $as_echo_n "(cached) " >&6
22183 else
22184   ac_func_search_save_LIBS=$LIBS
22185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186 /* end confdefs.h.  */
22187
22188 /* Override any GCC internal prototype to avoid an error.
22189    Use char because int might match the return type of a GCC
22190    builtin and then its argument prototype would still apply.  */
22191 #ifdef __cplusplus
22192 extern "C"
22193 #endif
22194 char dlopen ();
22195 int
22196 main ()
22197 {
22198 return dlopen ();
22199   ;
22200   return 0;
22201 }
22202 _ACEOF
22203 for ac_lib in '' dl; do
22204   if test -z "$ac_lib"; then
22205     ac_res="none required"
22206   else
22207     ac_res=-l$ac_lib
22208     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22209   fi
22210   if ac_fn_c_try_link "$LINENO"; then :
22211   ac_cv_search_dlopen=$ac_res
22212 fi
22213 rm -f core conftest.err conftest.$ac_objext \
22214     conftest$ac_exeext
22215   if test "${ac_cv_search_dlopen+set}" = set; then :
22216   break
22217 fi
22218 done
22219 if test "${ac_cv_search_dlopen+set}" = set; then :
22220
22221 else
22222   ac_cv_search_dlopen=no
22223 fi
22224 rm conftest.$ac_ext
22225 LIBS=$ac_func_search_save_LIBS
22226 fi
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22228 $as_echo "$ac_cv_search_dlopen" >&6; }
22229 ac_res=$ac_cv_search_dlopen
22230 if test "$ac_res" != no; then :
22231   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22232
22233 fi
22234
22235
22236 working_dir=`eval echo ${prefix}/var/bacula/working`
22237
22238 # Check whether --with-working-dir was given.
22239 if test "${with_working_dir+set}" = set; then :
22240   withval=$with_working_dir;
22241        if test "x$withval" != "xno" ; then
22242          working_dir=$withval
22243        fi
22244
22245
22246 fi
22247
22248
22249
22250
22251 archivedir=/tmp
22252
22253 # Check whether --with-archivedir was given.
22254 if test "${with_archivedir+set}" = set; then :
22255   withval=$with_archivedir;
22256        if test "x$withval" != "xno" ; then
22257           archivedir=$withval
22258        fi
22259
22260
22261 fi
22262
22263
22264
22265
22266 basename=`hostname`
22267
22268 # Check whether --with-basename was given.
22269 if test "${with_basename+set}" = set; then :
22270   withval=$with_basename;
22271        if test "x$withval" != "xno" ; then
22272           basename=$withval
22273        fi
22274
22275
22276 fi
22277
22278
22279
22280
22281 hostname=`uname -n | cut -d '.' -f 1`
22282 if test x${hostname} = x ; then
22283   hostname="localhost"
22284 fi
22285
22286 # Check whether --with-hostname was given.
22287 if test "${with_hostname+set}" = set; then :
22288   withval=$with_hostname;
22289        if test "x$withval" != "xno" ; then
22290          hostname=$withval
22291        fi
22292
22293
22294 fi
22295
22296
22297
22298
22299
22300 scriptdir=`eval echo ${sysconfdir}`
22301
22302 # Check whether --with-scriptdir was given.
22303 if test "${with_scriptdir+set}" = set; then :
22304   withval=$with_scriptdir;
22305        if test "x$withval" != "xno" ; then
22306           scriptdir=$withval
22307        fi
22308
22309
22310 fi
22311
22312
22313
22314
22315
22316 bsrdir=/tmp
22317
22318 # Check whether --with-bsrdir was given.
22319 if test "${with_bsrdir+set}" = set; then :
22320   withval=$with_bsrdir;
22321        if test "x$withval" != "xno" ; then
22322           bsrdir=$withval
22323        fi
22324
22325
22326 fi
22327
22328
22329
22330
22331 logdir=/tmp
22332
22333 # Check whether --with-logdir was given.
22334 if test "${with_logdir+set}" = set; then :
22335   withval=$with_logdir;
22336        if test "x$withval" != "xno" ; then
22337           logdir=$withval
22338        fi
22339
22340
22341 fi
22342
22343
22344
22345
22346
22347 # ------------------------------------------
22348 # Where to place plugindir (plugin files)
22349 # ------------------------------------------
22350 plugindir=`eval echo ${libdir}`
22351
22352 # Check whether --with-plugindir was given.
22353 if test "${with_plugindir+set}" = set; then :
22354   withval=$with_plugindir;
22355        if test "x$withval" != "xno" ; then
22356           plugindir=$withval
22357        fi
22358
22359
22360 fi
22361
22362
22363
22364
22365 dump_email=root@localhost
22366
22367 # Check whether --with-dump-email was given.
22368 if test "${with_dump_email+set}" = set; then :
22369   withval=$with_dump_email;
22370        if test "x$withval" != "xno" ; then
22371           dump_email=$withval
22372        fi
22373
22374
22375 fi
22376
22377
22378
22379
22380 job_email=root@localhost
22381
22382 # Check whether --with-job-email was given.
22383 if test "${with_job_email+set}" = set; then :
22384   withval=$with_job_email;
22385        if test "x$withval" != "xno" ; then
22386           job_email=$withval
22387        fi
22388
22389
22390 fi
22391
22392
22393
22394
22395 smtp_host=localhost
22396
22397 # Check whether --with-smtp_host was given.
22398 if test "${with_smtp_host+set}" = set; then :
22399   withval=$with_smtp_host;
22400        if test "x$withval" != "xno" ; then
22401           smtp_host=$withval
22402        fi
22403
22404
22405 fi
22406
22407
22408
22409
22410 piddir=/var/run
22411
22412 # Check whether --with-pid-dir was given.
22413 if test "${with_pid_dir+set}" = set; then :
22414   withval=$with_pid_dir;
22415        if test "x$withval" != "xno" ; then
22416           piddir=$withval
22417        fi
22418
22419
22420 fi
22421
22422
22423 cat >>confdefs.h <<_ACEOF
22424 #define _PATH_BACULA_PIDDIR "$piddir"
22425 _ACEOF
22426
22427
22428
22429 subsysdir=/var/run/subsys
22430 if test -d /var/run/subsys; then
22431    subsysdir=/var/run/subsys
22432 elif test -d /var/lock/subsys; then
22433    subsysdir=/var/lock/subsys
22434 else
22435    subsysdir=/var/run/subsys
22436 fi
22437
22438 # Check whether --with-subsys-dir was given.
22439 if test "${with_subsys_dir+set}" = set; then :
22440   withval=$with_subsys_dir;
22441        if test "x$withval" != "xno" ; then
22442           subsysdir=$withval
22443        fi
22444
22445
22446 fi
22447
22448
22449
22450
22451 baseport=9101
22452
22453 # Check whether --with-baseport was given.
22454 if test "${with_baseport+set}" = set; then :
22455   withval=$with_baseport;
22456        if test "x$withval" != "xno" ; then
22457           baseport=$withval
22458        fi
22459
22460
22461 fi
22462
22463
22464
22465 dir_port=`expr $baseport`
22466 fd_port=`expr $baseport + 1`
22467 sd_port=`expr $fd_port + 1`
22468
22469
22470
22471
22472
22473 dir_password=
22474
22475 # Check whether --with-dir-password was given.
22476 if test "${with_dir_password+set}" = set; then :
22477   withval=$with_dir_password;
22478        if test "x$withval" != "xno" ; then
22479           dir_password=$withval
22480        fi
22481
22482
22483 fi
22484
22485
22486 if test "x$dir_password" = "x" ; then
22487    if test "x$OPENSSL" = "xnone" ; then
22488       key=`autoconf/randpass 33`
22489    else
22490       key=`openssl rand -base64 33`
22491    fi
22492    dir_password=$key
22493 fi
22494
22495 fd_password=
22496
22497 # Check whether --with-fd-password was given.
22498 if test "${with_fd_password+set}" = set; then :
22499   withval=$with_fd_password;
22500        if test "x$withval" != "xno" ; then
22501           fd_password=$withval
22502        fi
22503
22504
22505 fi
22506
22507
22508 if test "x$fd_password" = "x" ; then
22509    if test "x$OPENSSL" = "xnone" ; then
22510       key=`autoconf/randpass 37`
22511    else
22512       key=`openssl rand -base64 33`
22513    fi
22514    fd_password=$key
22515 fi
22516
22517 sd_password=
22518
22519 # Check whether --with-sd-password was given.
22520 if test "${with_sd_password+set}" = set; then :
22521   withval=$with_sd_password;
22522        if test "x$withval" != "xno" ; then
22523           sd_password=$withval
22524        fi
22525
22526
22527 fi
22528
22529
22530 if test "x$sd_password" = "x" ; then
22531    if test "x$OPENSSL" = "xnone" ; then
22532       key=`autoconf/randpass 41`
22533    else
22534       key=`openssl rand -base64 33`
22535    fi
22536    sd_password=$key
22537 fi
22538
22539 mon_dir_password=
22540
22541 # Check whether --with-mon-dir-password was given.
22542 if test "${with_mon_dir_password+set}" = set; then :
22543   withval=$with_mon_dir_password;
22544        if test "x$withval" != "xno" ; then
22545           mon_dir_password=$withval
22546        fi
22547
22548
22549 fi
22550
22551
22552 if test "x$mon_dir_password" = "x" ; then
22553    if test "x$OPENSSL" = "xnone" ; then
22554       key=`autoconf/randpass 33`
22555    else
22556       key=`openssl rand -base64 33`
22557    fi
22558    mon_dir_password=$key
22559 fi
22560
22561 mon_fd_password=
22562
22563 # Check whether --with-mon-fd-password was given.
22564 if test "${with_mon_fd_password+set}" = set; then :
22565   withval=$with_mon_fd_password;
22566        if test "x$withval" != "xno" ; then
22567           mon_fd_password=$withval
22568        fi
22569
22570
22571 fi
22572
22573
22574 if test "x$mon_fd_password" = "x" ; then
22575    if test "x$OPENSSL" = "xnone" ; then
22576       key=`autoconf/randpass 37`
22577    else
22578       key=`openssl rand -base64 33`
22579    fi
22580    mon_fd_password=$key
22581 fi
22582
22583 mon_sd_password=
22584
22585 # Check whether --with-mon-sd-password was given.
22586 if test "${with_mon_sd_password+set}" = set; then :
22587   withval=$with_mon_sd_password;
22588        if test "x$withval" != "xno" ; then
22589           mon_sd_password=$withval
22590        fi
22591
22592
22593 fi
22594
22595
22596 if test "x$mon_sd_password" = "x" ; then
22597    if test "x$OPENSSL" = "xnone" ; then
22598       key=`autoconf/randpass 41`
22599    else
22600       key=`openssl rand -base64 33`
22601    fi
22602    mon_sd_password=$key
22603 fi
22604
22605
22606
22607
22608
22609
22610
22611
22612 db_name=bacula
22613
22614 # Check whether --with-db_name was given.
22615 if test "${with_db_name+set}" = set; then :
22616   withval=$with_db_name;
22617        if test "x$withval" != "x" ; then
22618           db_name=$withval
22619        fi
22620
22621
22622 fi
22623
22624
22625
22626 db_user=bacula
22627
22628 # Check whether --with-db_user was given.
22629 if test "${with_db_user+set}" = set; then :
22630   withval=$with_db_user;
22631        if test "x$withval" != "x" ; then
22632           db_user=$withval
22633        fi
22634
22635
22636 fi
22637
22638
22639
22640 db_password=
22641
22642 # Check whether --with-db_password was given.
22643 if test "${with_db_password+set}" = set; then :
22644   withval=$with_db_password;
22645        if test "x$withval" != "x" ; then
22646           db_password=$withval
22647        fi
22648
22649
22650 fi
22651
22652
22653
22654 db_port=" "
22655
22656 # Check whether --with-db_port was given.
22657 if test "${with_db_port+set}" = set; then :
22658   withval=$with_db_port;
22659        if test "x$withval" != "x" ; then
22660           db_port=$withval
22661        fi
22662
22663
22664 fi
22665
22666
22667
22668 #
22669 # Handle users and groups for each daemon
22670 #
22671 dir_user=
22672
22673 # Check whether --with-dir_user was given.
22674 if test "${with_dir_user+set}" = set; then :
22675   withval=$with_dir_user;
22676        if test "x$withval" != "x" ; then
22677            dir_user=$withval
22678        fi
22679
22680
22681 fi
22682
22683
22684 dir_group=
22685
22686 # Check whether --with-dir_group was given.
22687 if test "${with_dir_group+set}" = set; then :
22688   withval=$with_dir_group;
22689        if test "x$withval" != "x" ; then
22690           dir_group=$withval
22691        fi
22692
22693
22694 fi
22695
22696
22697 sd_user=
22698
22699 # Check whether --with-sd_user was given.
22700 if test "${with_sd_user+set}" = set; then :
22701   withval=$with_sd_user;
22702        if test "x$withval" != "x" ; then
22703           sd_user=$withval
22704        fi
22705
22706
22707 fi
22708
22709
22710 sd_group=
22711
22712 # Check whether --with-sd_group was given.
22713 if test "${with_sd_group+set}" = set; then :
22714   withval=$with_sd_group;
22715        if test "x$withval" != "x" ; then
22716           sd_group=$withval
22717        fi
22718
22719
22720 fi
22721
22722
22723 fd_user=
22724
22725 # Check whether --with-fd_user was given.
22726 if test "${with_fd_user+set}" = set; then :
22727   withval=$with_fd_user;
22728        if test "x$withval" != "x" ; then
22729           fd_user=$withval
22730        fi
22731
22732
22733 fi
22734
22735
22736 fd_group=
22737
22738 # Check whether --with-fd_group was given.
22739 if test "${with_fd_group+set}" = set; then :
22740   withval=$with_fd_group;
22741        if test "x$withval" != "x" ; then
22742           fd_group=$withval
22743        fi
22744
22745
22746 fi
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756 SBINPERM=0754
22757
22758 # Check whether --with-sbin-perm was given.
22759 if test "${with_sbin_perm+set}" = set; then :
22760   withval=$with_sbin_perm;
22761        if test "x$withval" != "x" ; then
22762           SBINPERM=$withval
22763        fi
22764
22765
22766 fi
22767
22768
22769
22770
22771 SQL_LIB=
22772
22773 db_found=no
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22775 $as_echo_n "checking for PostgreSQL support... " >&6; }
22776
22777 # Check whether --with-postgresql was given.
22778 if test "${with_postgresql+set}" = set; then :
22779   withval=$with_postgresql;
22780   if test "$withval" != "no"; then
22781       if test "$db_found" = "yes"; then
22782           { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22783 $as_echo "error" >&6; }
22784           as_fn_error "\"You can configure for only one database.\"" "$LINENO" 5;
22785       fi
22786       if test "$withval" = "yes"; then
22787           PG_CONFIG=`which pg_config`
22788           if test -n "$PG_CONFIG";then
22789               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22790               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22791               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22792           elif test -f /usr/local/include/libpq-fe.h; then
22793               POSTGRESQL_INCDIR=/usr/local/include
22794               if test -d /usr/local/lib64; then
22795                  POSTGRESQL_LIBDIR=/usr/local/lib64
22796               else
22797                  POSTGRESQL_LIBDIR=/usr/local/lib
22798               fi
22799               POSTGRESQL_BINDIR=/usr/local/bin
22800           elif test -f /usr/include/libpq-fe.h; then
22801               POSTGRESQL_INCDIR=/usr/include
22802               if test -d /usr/lib64; then
22803                  POSTGRESQL_LIBDIR=/usr/lib64
22804               else
22805                  POSTGRESQL_LIBDIR=/usr/lib
22806               fi
22807               POSTGRESQL_BINDIR=/usr/bin
22808           elif test -f /usr/include/pgsql/libpq-fe.h; then
22809               POSTGRESQL_INCDIR=/usr/include/pgsql
22810               if test -d /usr/lib64/pgsql; then
22811                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22812               else
22813                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22814               fi
22815               POSTGRESQL_BINDIR=/usr/bin
22816           elif test -f /usr/include/postgresql/libpq-fe.h; then
22817               POSTGRESQL_INCDIR=/usr/include/postgresql
22818               if test -d /usr/lib64/postgresql; then
22819                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22820               else
22821                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22822               fi
22823               POSTGRESQL_BINDIR=/usr/bin
22824           else
22825               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22826 $as_echo "no" >&6; }
22827               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22828           fi
22829       elif test -f $withval/include/libpq-fe.h; then
22830           POSTGRESQL_INCDIR=$withval/include
22831           POSTGRESQL_LIBDIR=$withval/lib
22832           POSTGRESQL_BINDIR=$withval/bin
22833       elif test -f $withval/include/postgresql/libpq-fe.h; then
22834           POSTGRESQL_INCDIR=$withval/include/postgresql
22835      if test -d $withval/lib64; then
22836          POSTGRESQL_LIBDIR=$withval/lib64
22837      else
22838          POSTGRESQL_LIBDIR=$withval/lib
22839      fi
22840           POSTGRESQL_BINDIR=$withval/bin
22841       else
22842           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22843 $as_echo "no" >&6; }
22844           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22845       fi
22846       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22847       ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22848 if test "x$ac_cv_func_crypt" = x""yes; then :
22849
22850 else
22851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22852 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22853 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22854   $as_echo_n "(cached) " >&6
22855 else
22856   ac_check_lib_save_LIBS=$LIBS
22857 LIBS="-lcrypt  $LIBS"
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h.  */
22860
22861 /* Override any GCC internal prototype to avoid an error.
22862    Use char because int might match the return type of a GCC
22863    builtin and then its argument prototype would still apply.  */
22864 #ifdef __cplusplus
22865 extern "C"
22866 #endif
22867 char crypt ();
22868 int
22869 main ()
22870 {
22871 return crypt ();
22872   ;
22873   return 0;
22874 }
22875 _ACEOF
22876 if ac_fn_c_try_link "$LINENO"; then :
22877   ac_cv_lib_crypt_crypt=yes
22878 else
22879   ac_cv_lib_crypt_crypt=no
22880 fi
22881 rm -f core conftest.err conftest.$ac_objext \
22882     conftest$ac_exeext conftest.$ac_ext
22883 LIBS=$ac_check_lib_save_LIBS
22884 fi
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22886 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22887 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22888   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22889 fi
22890
22891 fi
22892
22893       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22894       SQL_LFLAGS=$POSTGRESQL_LFLAGS
22895       SQL_BINDIR=$POSTGRESQL_BINDIR
22896       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22897
22898       $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22899
22900       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22901 $as_echo "yes" >&6; }
22902       db_found=yes
22903       support_postgresql=yes
22904       db_type=PostgreSQL
22905       DB_TYPE=postgresql
22906   else
22907       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22908 $as_echo "no" >&6; }
22909   fi
22910
22911 else
22912
22913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22914 $as_echo "no" >&6; }
22915
22916 fi
22917
22918
22919
22920
22921
22922
22923
22924
22925 db_found=no
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22927 $as_echo_n "checking for MySQL support... " >&6; }
22928
22929 # Check whether --with-mysql was given.
22930 if test "${with_mysql+set}" = set; then :
22931   withval=$with_mysql;
22932   if test "$withval" != "no"; then
22933         if test "$withval" = "yes"; then
22934            if test -f /usr/local/mysql/include/mysql/mysql.h; then
22935                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
22936                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22937                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22938                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22939                    else
22940                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22941                    fi
22942                    MYSQL_BINDIR=/usr/local/mysql/bin
22943            elif test -f /usr/include/mysql/mysql.h; then
22944                    MYSQL_INCDIR=/usr/include/mysql
22945                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22946                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22947                            MYSQL_LIBDIR=/usr/lib64/mysql
22948                    elif test -f /usr/lib64/libmysqlclient_r.a \
22949                         -o -f /usr/lib64/libmysqlclient_r.so; then
22950                            MYSQL_LIBDIR=/usr/lib64
22951                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22952                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22953                            MYSQL_LIBDIR=/usr/lib/mysql
22954                    else
22955                            MYSQL_LIBDIR=/usr/lib
22956                    fi
22957                    MYSQL_BINDIR=/usr/bin
22958            elif test -f /usr/include/mysql.h; then
22959                    MYSQL_INCDIR=/usr/include
22960                    if test -f /usr/lib64/libmysqlclient_r.a \
22961                         -o -f /usr/lib64/libmysqlclient_r.so; then
22962                            MYSQL_LIBDIR=/usr/lib64
22963                    else
22964                            MYSQL_LIBDIR=/usr/lib
22965                    fi
22966                    MYSQL_BINDIR=/usr/bin
22967            elif test -f /usr/local/include/mysql/mysql.h; then
22968                    MYSQL_INCDIR=/usr/local/include/mysql
22969                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22970                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22971                            MYSQL_LIBDIR=/usr/local/lib64/mysql
22972                    else
22973                            MYSQL_LIBDIR=/usr/local/lib/mysql
22974                    fi
22975                    MYSQL_BINDIR=/usr/local/bin
22976            elif test -f /usr/local/include/mysql.h; then
22977                    MYSQL_INCDIR=/usr/local/include
22978                    if test -f /usr/local/lib64/libmysqlclient_r.a \
22979                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
22980                            MYSQL_LIBDIR=/usr/local/lib64
22981                    else
22982                            MYSQL_LIBDIR=/usr/local/lib
22983                    fi
22984                    MYSQL_BINDIR=/usr/local/bin
22985            else
22986               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22987 $as_echo "no" >&6; }
22988               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
22989            fi
22990         else
22991            if test -f $withval/include/mysql/mysql.h; then
22992               MYSQL_INCDIR=$withval/include/mysql
22993               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
22994                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
22995                  MYSQL_LIBDIR=$withval/lib64/mysql
22996               elif test -f $withval/lib64/libmysqlclient_r.a \
22997                    -o -f $withval/lib64/libmysqlclient_r.so; then
22998                  MYSQL_LIBDIR=$withval/lib64
22999               elif test -f $withval/lib/libmysqlclient_r.a \
23000                    -o -f $withval/lib/libmysqlclient_r.so; then
23001                  MYSQL_LIBDIR=$withval/lib
23002               else
23003                  MYSQL_LIBDIR=$withval/lib/mysql
23004               fi
23005               MYSQL_BINDIR=$withval/bin
23006            elif test -f $withval/include/mysql.h; then
23007               MYSQL_INCDIR=$withval/include
23008               if test -f $withval/lib64/libmysqlclient_r.a \
23009                    -o -f $withval/lib64/libmysqlclient_r.so; then
23010                  MYSQL_LIBDIR=$withval/lib64
23011               else
23012                  MYSQL_LIBDIR=$withval/lib
23013               fi
23014               MYSQL_BINDIR=$withval/bin
23015            else
23016               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23017 $as_echo "no" >&6; }
23018               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23019            fi
23020         fi
23021     SQL_INCLUDE=-I$MYSQL_INCDIR
23022     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23023          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23024        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23025        $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23026
23027     fi
23028     SQL_BINDIR=$MYSQL_BINDIR
23029     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23030
23031
23032 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23033
23034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23035 $as_echo "yes" >&6; }
23036     db_found=yes
23037     support_mysql=yes
23038     db_type=MySQL
23039     DB_TYPE=mysql
23040
23041   else
23042         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23043 $as_echo "no" >&6; }
23044   fi
23045
23046
23047 fi
23048
23049
23050
23051 # Check whether --with-embedded-mysql was given.
23052 if test "${with_embedded_mysql+set}" = set; then :
23053   withval=$with_embedded_mysql;
23054   if test "$withval" != "no"; then
23055         if test "$withval" = "yes"; then
23056                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23057                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23058                         if test -d /usr/local/mysql/lib64/mysql; then
23059                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23060                         else
23061                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23062                         fi
23063                         MYSQL_BINDIR=/usr/local/mysql/bin
23064                 elif test -f /usr/include/mysql/mysql.h; then
23065                         MYSQL_INCDIR=/usr/include/mysql
23066                         if test -d /usr/lib64/mysql; then
23067                                 MYSQL_LIBDIR=/usr/lib64/mysql
23068                         else
23069                                 MYSQL_LIBDIR=/usr/lib/mysql
23070                         fi
23071                         MYSQL_BINDIR=/usr/bin
23072                 elif test -f /usr/include/mysql.h; then
23073                         MYSQL_INCDIR=/usr/include
23074                         if test -d /usr/lib64; then
23075                                 MYSQL_LIBDIR=/usr/lib64
23076                         else
23077                                 MYSQL_LIBDIR=/usr/lib
23078                         fi
23079                         MYSQL_BINDIR=/usr/bin
23080                 elif test -f /usr/local/include/mysql/mysql.h; then
23081                         MYSQL_INCDIR=/usr/local/include/mysql
23082                         if test -d /usr/local/lib64/mysql; then
23083                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23084                         else
23085                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23086                         fi
23087                         MYSQL_BINDIR=/usr/local/bin
23088                 elif test -f /usr/local/include/mysql.h; then
23089                         MYSQL_INCDIR=/usr/local/include
23090                         if test -d /usr/local/lib64; then
23091                                 MYSQL_LIBDIR=/usr/local/lib64
23092                         else
23093                                 MYSQL_LIBDIR=/usr/local/lib
23094                         fi
23095                         MYSQL_BINDIR=/usr/local/bin
23096                 else
23097                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23098 $as_echo "no" >&6; }
23099                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23100                 fi
23101         else
23102                 if test -f $withval/include/mysql/mysql.h; then
23103                         MYSQL_INCDIR=$withval/include/mysql
23104                         if test -d $withval/lib64/mysql; then
23105                                 MYSQL_LIBDIR=$withval/lib64/mysql
23106                         else
23107                                 MYSQL_LIBDIR=$withval/lib/mysql
23108                         fi
23109                         MYSQL_BINDIR=$withval/bin
23110                 elif test -f $withval/include/mysql.h; then
23111                         MYSQL_INCDIR=$withval/include
23112                         if test -d $withval/lib64; then
23113                                 MYSQL_LIBDIR=$withval/lib64
23114                         else
23115                                 MYSQL_LIBDIR=$withval/lib
23116                         fi
23117                         MYSQL_BINDIR=$withval/bin
23118                 else
23119                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23120 $as_echo "no" >&6; }
23121                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23122                 fi
23123         fi
23124     SQL_INCLUDE=-I$MYSQL_INCDIR
23125     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23126     SQL_BINDIR=$MYSQL_BINDIR
23127     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23128
23129     $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23130
23131     $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23132
23133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23134 $as_echo "yes" >&6; }
23135     db_found=yes
23136     support_mysql=yes
23137     db_type=MySQL
23138     DB_TYPE=mysql
23139
23140   else
23141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23142 $as_echo "no" >&6; }
23143   fi
23144
23145
23146 fi
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157 db_found=no
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23159 $as_echo_n "checking for Ingres support... " >&6; }
23160
23161 # Check whether --with-ingres was given.
23162 if test "${with_ingres+set}" = set; then :
23163   withval=$with_ingres;
23164   if test "$withval" != "no"; then
23165      if test "$withval" = "yes"; then
23166         if test -f ${II_SYSTEM}/files/eqdefc.h; then
23167            INGRES_INCDIR=${II_SYSTEM}/files
23168            INGRES_LIBDIR=${II_SYSTEM}/lib
23169            INGRES_BINDIR=${II_SYSTEM}/bin
23170         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23171            INGRES_INCDIR=${II_SYSTEM}/ingres/files
23172            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23173            INGRES_BINDIR=${II_SYSTEM}/bin
23174         else
23175            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23176 $as_echo "no" >&6; }
23177            as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23178         fi
23179      else
23180         if test -f $withval/files/eqdefc.h; then
23181            INGRES_INCDIR=$withval/files
23182            INGRES_LIBDIR=$withval/lib
23183            INGRES_BINDIR=$withval/bin
23184         else
23185            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23186 $as_echo "no" >&6; }
23187            as_fn_error "Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23188         fi
23189      fi
23190      SQL_INCLUDE=-I$INGRES_INCDIR
23191      SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
23192      SQL_BINDIR=$INGRES_BINDIR
23193      SQL_LIB=$INGRES_LIBDIR/libingres.a
23194
23195 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23196
23197      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23198 $as_echo "yes" >&6; }
23199      db_found=yes
23200      support_ingres=yes
23201      db_type=Ingres
23202      DB_TYPE=ingres
23203
23204   else
23205      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23206 $as_echo "no" >&6; }
23207   fi
23208
23209 else
23210
23211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23212 $as_echo "no" >&6; }
23213
23214 fi
23215
23216
23217
23218
23219
23220
23221
23222
23223 db_found=no
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23225 $as_echo_n "checking for SQLite3 support... " >&6; }
23226
23227 # Check whether --with-sqlite3 was given.
23228 if test "${with_sqlite3+set}" = set; then :
23229   withval=$with_sqlite3;
23230   if test "$withval" != "no"; then
23231      if test "$withval" = "yes"; then
23232         if test -f /usr/local/include/sqlite3.h; then
23233            SQLITE_INCDIR=/usr/local/include
23234            if test -d /usr/local/lib64; then
23235               SQLITE_LIBDIR=/usr/local/lib64
23236            else
23237               SQLITE_LIBDIR=/usr/local/lib
23238            fi
23239            SQLITE_BINDIR=/usr/local/bin
23240         elif test -f /usr/include/sqlite3.h; then
23241            SQLITE_INCDIR=/usr/include
23242            if test -d /usr/lib64; then
23243               SQLITE_LIBDIR=/usr/lib64
23244            else
23245               SQLITE_LIBDIR=/usr/lib
23246            fi
23247            SQLITE_BINDIR=/usr/bin
23248         elif test -f $prefix/include/sqlite3.h; then
23249            SQLITE_INCDIR=$prefix/include
23250            if test -d $prefix/lib64; then
23251               SQLITE_LIBDIR=$prefix/lib64
23252            else
23253               SQLITE_LIBDIR=$prefix/lib
23254            fi
23255            SQLITE_BINDIR=$prefix/bin
23256         else
23257            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23258 $as_echo "no" >&6; }
23259            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23260         fi
23261      else
23262         if test -f $withval/sqlite3.h; then
23263            SQLITE_INCDIR=$withval
23264            SQLITE_LIBDIR=$withval
23265            SQLITE_BINDIR=$withval
23266         elif test -f $withval/include/sqlite3.h; then
23267            SQLITE_INCDIR=$withval/include
23268            if test -d $withval/lib64; then
23269               SQLITE_LIBDIR=$withval/lib64
23270            else
23271               SQLITE_LIBDIR=$withval/lib
23272            fi
23273            SQLITE_BINDIR=$withval/bin
23274         else
23275            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23276 $as_echo "no" >&6; }
23277            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23278         fi
23279      fi
23280      SQL_INCLUDE=-I$SQLITE_INCDIR
23281      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23282      SQL_BINDIR=$SQLITE_BINDIR
23283      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23284
23285      $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23286
23287      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23288 $as_echo "yes" >&6; }
23289      db_found=yes
23290      support_sqlite3=yes
23291      db_type=SQLite3
23292      DB_TYPE=sqlite3
23293
23294   else
23295      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23296 $as_echo "no" >&6; }
23297   fi
23298
23299 else
23300
23301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23302 $as_echo "no" >&6; }
23303
23304 fi
23305
23306
23307
23308
23309
23310
23311
23312 # BA_CHECK_SQLITE_DB
23313
23314
23315 db_found=no
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23317 $as_echo_n "checking for DBI support... " >&6; }
23318
23319 # Check whether --with-dbi was given.
23320 if test "${with_dbi+set}" = set; then :
23321   withval=$with_dbi;
23322   if test "$withval" != "no"; then
23323      if test "$withval" = "yes"; then
23324         if test -f /usr/local/include/dbi/dbi.h; then
23325            DBI_INCDIR=/usr/local/dbi/include
23326            if test -d /usr/local/lib64; then
23327               DBI_LIBDIR=/usr/local/lib64
23328            else
23329               DBI_LIBDIR=/usr/local/lib
23330            fi
23331            DBI_BINDIR=/usr/local/bin
23332         elif test -f /usr/include/dbi/dbi.h; then
23333            DBI_INCDIR=/usr/include
23334            if test -d /usr/lib64; then
23335               DBI_LIBDIR=/usr/lib64
23336            else
23337               DBI_LIBDIR=/usr/lib
23338            fi
23339            DBI_BINDIR=/usr/bin
23340         elif test -f $prefix/include/dbi/dbi.h; then
23341            DBI_INCDIR=$prefix/include
23342            if test -d $prefix/lib64; then
23343               DBI_LIBDIR=$prefix/lib64
23344            else
23345               DBI_LIBDIR=$prefix/lib
23346            fi
23347            DBI_BINDIR=$prefix/bin
23348         else
23349            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23350 $as_echo "no" >&6; }
23351            as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23352         fi
23353         if test -d /usr/local/lib/dbd; then
23354            DRIVERDIR=/usr/local/lib/dbd
23355            if test -d /usr/local/lib64/dbd; then
23356               DRIVERDIR=/usr/local/lib64/dbd
23357            else
23358               DRIVERDIR=/usr/local/lib/dbd
23359            fi
23360         elif test -d /usr/lib/dbd; then
23361            DRIVERDIR=/usr/lib/dbd
23362            if test -d /usr/lib64/dbd; then
23363               DRIVERDIR=/usr/lib64/dbd
23364            else
23365               DRIVERDIR=/usr/lib/dbd
23366            fi
23367         elif test -d $prefix/lib/dbd; then
23368            if test -d $prefix/lib64/dbd; then
23369               DRIVERDIR=$prefix/lib64/dbd
23370            else
23371               DRIVERDIR=$prefix/lib/dbd
23372            fi
23373         elif test -d /usr/local/lib64/dbd; then
23374            DRIVERDIR=/usr/local/lib64/dbd
23375         elif test -d /usr/lib64/dbd; then
23376            DRIVERDIR=/usr/lib64/dbd
23377         elif test -d $prefix/lib64/dbd; then
23378            DRIVERDIR=$prefix/lib64/dbd
23379         else
23380            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23381 $as_echo "no" >&6; }
23382            as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23383         fi
23384      else
23385         if test -f $withval/dbi.h; then
23386            DBI_INCDIR=$withval
23387            DBI_LIBDIR=$withval
23388            DBI_BINDIR=$withval
23389         elif test -f $withval/include/dbi/dbi.h; then
23390            DBI_INCDIR=$withval/include
23391            if test -d $withval/lib64; then
23392               DBI_LIBDIR=$withval/lib64
23393            else
23394               DBI_LIBDIR=$withval/lib
23395            fi
23396            DBI_BINDIR=$withval/bin
23397         else
23398            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23399 $as_echo "no" >&6; }
23400            as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23401         fi
23402         if test -d $withval/dbd; then
23403            DRIVERDIR=$withval/dbd
23404         elif test -d $withval/lib/; then
23405            if test -d $withval/lib64/dbd; then
23406               DRIVERDIR=$withval/lib64/dbd
23407            else
23408               DRIVERDIR=$withval/lib/dbd
23409            fi
23410         elif test -d $withval/lib64/dbd; then
23411            DRIVERDIR=$withval/lib64/dbd
23412         else
23413            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23414 $as_echo "no" >&6; }
23415            as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23416         fi
23417      fi
23418      SQL_INCLUDE=-I$DBI_INCDIR
23419      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23420      SQL_BINDIR=$DBI_BINDIR
23421      SQL_LIB=$DBI_LIBDIR/libdbi.a
23422      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23423
23424
23425 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23426
23427      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23428 $as_echo "yes" >&6; }
23429      db_found=yes
23430      support_dbi=yes
23431      db_type=DBI
23432      DB_TYPE=dbi
23433      uncomment_dbi=" "
23434
23435   else
23436      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23437 $as_echo "no" >&6; }
23438   fi
23439
23440 else
23441
23442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23443 $as_echo "no" >&6; }
23444
23445 fi
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456 db_found=no
23457 db_prog=no
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23459 $as_echo_n "checking for DBI drivers support... " >&6; }
23460
23461 # Check whether --with-dbi-driver was given.
23462 if test "${with_dbi_driver+set}" = set; then :
23463   withval=$with_dbi_driver;
23464   if test "$withval" != "no"; then
23465      case $withval in
23466         "mysql")
23467            db_prog="mysql"
23468            if test -f /usr/local/mysql/bin/mysql; then
23469               SQL_BINDIR=/usr/local/mysql/bin
23470               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23471                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23472                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23473               else
23474                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
23475               fi
23476            elif test -f /usr/bin/mysql; then
23477               SQL_BINDIR=/usr/bin
23478               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23479                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23480                   SQL_LIBDIR=/usr/lib64/mysql
23481               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23482                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23483                   SQL_LIBDIR=/usr/lib/mysql
23484               else
23485                   SQL_LIBDIR=/usr/lib
23486               fi
23487            elif test -f /usr/local/bin/mysql; then
23488               SQL_BINDIR=/usr/local/bin
23489               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23490                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23491                   SQL_LIBDIR=/usr/local/lib64/mysql
23492               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23493                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23494                   SQL_LIBDIR=/usr/local/lib/mysql
23495               else
23496                   SQL_LIBDIR=/usr/local/lib
23497               fi
23498            elif test -f $withval/bin/mysql; then
23499               SQL_BINDIR=$withval/bin
23500               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23501                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23502                   SQL_LIBDIR=$withval/lib64/mysql
23503               elif test -f $withval/lib64/libmysqlclient_r.a \
23504                   -o -f $withval/lib64/libmysqlclient_r.so; then
23505                   SQL_LIBDIR=$withval/lib64
23506               elif test -f $withval/lib/libmysqlclient_r.a \
23507                   -o -f $withval/lib/libmysqlclient_r.so; then
23508                   SQL_LIBDIR=$withval/lib/
23509               else
23510                   SQL_LIBDIR=$withval/lib/mysql
23511               fi
23512            else
23513               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23514 $as_echo "no" >&6; }
23515               as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23516            fi
23517            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23518               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23519            else
23520               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23521            fi
23522         ;;
23523         "postgresql")
23524            db_prog="postgresql"
23525            PG_CONFIG=`which pg_config`
23526            if test -n "$PG_CONFIG"; then
23527               SQL_BINDIR=`"$PG_CONFIG" --bindir`
23528               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23529            elif test -f /usr/local/bin/psql; then
23530               SQL_BINDIR=/usr/local/bin
23531               if test -d /usr/local/lib64; then
23532                  SQL_LIBDIR=/usr/local/lib64
23533               else
23534                  SQL_LIBDIR=/usr/local/lib
23535               fi
23536            elif test -f /usr/bin/psql; then
23537               SQL_BINDIR=/usr/local/bin
23538               if test -d /usr/lib64/postgresql; then
23539                  SQL_LIBDIR=/usr/lib64/postgresql
23540               elif test -d /usr/lib/postgresql; then
23541                  SQL_LIBDIR=/usr/lib/postgresql
23542               elif test -d /usr/lib64; then
23543                  SQL_LIBDIR=/usr/lib64
23544               else
23545                  SQL_LIBDIR=/usr/lib
23546               fi
23547            elif test -f $withval/bin/psql; then
23548               SQL_BINDIR=$withval/bin
23549               if test -d $withval/lib64; then
23550                  SQL_LIBDIR=$withval/lib64
23551               else
23552                  SQL_LIBDIR=$withval/lib
23553               fi
23554            else
23555               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23556 $as_echo "no" >&6; }
23557               as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23558            fi
23559            if test -f $SQL_LIBDIR/libpq.so; then
23560               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23561            else
23562               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23563            fi
23564         ;;
23565         "sqlite")
23566            db_prog="sqlite"
23567            if test -f /usr/local/bin/sqlite; then
23568               SQL_BINDIR=/usr/local/bin
23569               if test -d /usr/local/lib64; then
23570                  SQL_LIBDIR=/usr/local/lib64
23571               else
23572                  SQL_LIBDIR=/usr/local/lib
23573               fi
23574            elif test -f /usr/bin/sqlite; then
23575               SQL_BINDIR=/usr/bin
23576               if test -d /usr/lib64; then
23577                  SQL_LIBDIR=/usr/lib64
23578               else
23579                  SQL_LIBDIR=/usr/lib
23580               fi
23581            elif test -f $withval/bin/sqlite; then
23582               SQL_BINDIR=$withval/bin
23583               if test -d $withval/lib64; then
23584                  SQL_LIBDIR=$withval/lib64
23585               else
23586                  SQL_LIBDIR=$withval/lib
23587               fi
23588            else
23589               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23590 $as_echo "no" >&6; }
23591               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23592            fi
23593            if test -f $SQL_LIBDIR/libsqlite.so; then
23594               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23595            else
23596               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23597            fi
23598         ;;
23599         "sqlite3")
23600            db_prog="sqlite3"
23601            if test -f /usr/local/bin/sqlite3; then
23602               SQL_BINDIR=/usr/local/bin
23603               if test -d /usr/local/lib64; then
23604                  SQL_LIBDIR=/usr/local/lib64
23605               else
23606                  SQL_LIBDIR=/usr/local/lib
23607               fi
23608            elif test -f /usr/bin/sqlite3; then
23609               SQL_BINDIR=/usr/bin
23610               if test -d /usr/lib64; then
23611                  SQL_LIBDIR=/usr/lib64
23612               else
23613                  SQL_LIBDIR=/usr/lib
23614               fi
23615            elif test -f $withval/bin/sqlite3; then
23616               SQL_BINDIR=$withval/bin
23617               if test -d $withval/lib64; then
23618                  SQL_LIBDIR=$withval/lib64
23619               else
23620                  SQL_LIBDIR=$withval/lib
23621               fi
23622            else
23623               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23624 $as_echo "no" >&6; }
23625               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23626            fi
23627            if test -f $SQL_LIBDIR/libsqlite3.so; then
23628               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23629            else
23630               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23631            fi
23632         ;;
23633         *)
23634            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23635 $as_echo "no" >&6; }
23636            as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23637         ;;
23638      esac
23639
23640      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23641 $as_echo "yes" >&6; }
23642      DB_PROG=$db_prog
23643   else
23644      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23645 $as_echo "no" >&6; }
23646   fi
23647
23648 else
23649
23650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23651 $as_echo "no" >&6; }
23652
23653 fi
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664 support_batch_insert=no
23665 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23666 pkg=$?
23667 if test $pkg = 0; then
23668    support_batch_insert=yes
23669    # Check whether --enable-batch-insert was given.
23670 if test "${enable_batch_insert+set}" = set; then :
23671   enableval=$enable_batch_insert;
23672           if test x$enableval = xno; then
23673              support_batch_insert=no
23674           else
23675              support_batch_insert=yes
23676           fi
23677
23678
23679 fi
23680
23681 fi
23682
23683 if test x$DB_TYPE = xpostgresql; then
23684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23685 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23686 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23687   $as_echo_n "(cached) " >&6
23688 else
23689   ac_check_lib_save_LIBS=$LIBS
23690 LIBS="-lpq  $LIBS"
23691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23692 /* end confdefs.h.  */
23693
23694 /* Override any GCC internal prototype to avoid an error.
23695    Use char because int might match the return type of a GCC
23696    builtin and then its argument prototype would still apply.  */
23697 #ifdef __cplusplus
23698 extern "C"
23699 #endif
23700 char PQisthreadsafe ();
23701 int
23702 main ()
23703 {
23704 return PQisthreadsafe ();
23705   ;
23706   return 0;
23707 }
23708 _ACEOF
23709 if ac_fn_c_try_link "$LINENO"; then :
23710   ac_cv_lib_pq_PQisthreadsafe=yes
23711 else
23712   ac_cv_lib_pq_PQisthreadsafe=no
23713 fi
23714 rm -f core conftest.err conftest.$ac_objext \
23715     conftest$ac_exeext conftest.$ac_ext
23716 LIBS=$ac_check_lib_save_LIBS
23717 fi
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23719 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23720 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23721
23722 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23723
23724 fi
23725
23726    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23727 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23728 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23729   $as_echo_n "(cached) " >&6
23730 else
23731   ac_check_lib_save_LIBS=$LIBS
23732 LIBS="-lpq  $LIBS"
23733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23734 /* end confdefs.h.  */
23735
23736 /* Override any GCC internal prototype to avoid an error.
23737    Use char because int might match the return type of a GCC
23738    builtin and then its argument prototype would still apply.  */
23739 #ifdef __cplusplus
23740 extern "C"
23741 #endif
23742 char PQputCopyData ();
23743 int
23744 main ()
23745 {
23746 return PQputCopyData ();
23747   ;
23748   return 0;
23749 }
23750 _ACEOF
23751 if ac_fn_c_try_link "$LINENO"; then :
23752   ac_cv_lib_pq_PQputCopyData=yes
23753 else
23754   ac_cv_lib_pq_PQputCopyData=no
23755 fi
23756 rm -f core conftest.err conftest.$ac_objext \
23757     conftest$ac_exeext conftest.$ac_ext
23758 LIBS=$ac_check_lib_save_LIBS
23759 fi
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23761 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23762 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23763
23764 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23765
23766 fi
23767
23768    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23769     then
23770         support_batch_insert=no
23771    fi
23772 fi
23773
23774 if test x$DB_TYPE = xdbi; then
23775    DB_TYPE=$DB_PROG
23776    db_type=$DB_PROG
23777    pkg=1
23778       if test $DB_PROG = postgresql; then
23779       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23780 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23781 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23782   $as_echo_n "(cached) " >&6
23783 else
23784   ac_check_lib_save_LIBS=$LIBS
23785 LIBS="-lpq  $LIBS"
23786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23787 /* end confdefs.h.  */
23788
23789 /* Override any GCC internal prototype to avoid an error.
23790    Use char because int might match the return type of a GCC
23791    builtin and then its argument prototype would still apply.  */
23792 #ifdef __cplusplus
23793 extern "C"
23794 #endif
23795 char PQisthreadsafe ();
23796 int
23797 main ()
23798 {
23799 return PQisthreadsafe ();
23800   ;
23801   return 0;
23802 }
23803 _ACEOF
23804 if ac_fn_c_try_link "$LINENO"; then :
23805   ac_cv_lib_pq_PQisthreadsafe=yes
23806 else
23807   ac_cv_lib_pq_PQisthreadsafe=no
23808 fi
23809 rm -f core conftest.err conftest.$ac_objext \
23810     conftest$ac_exeext conftest.$ac_ext
23811 LIBS=$ac_check_lib_save_LIBS
23812 fi
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23814 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23815 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23816   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23817
23818 fi
23819
23820       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23821 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23822 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23823   $as_echo_n "(cached) " >&6
23824 else
23825   ac_check_lib_save_LIBS=$LIBS
23826 LIBS="-lpq  $LIBS"
23827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23828 /* end confdefs.h.  */
23829
23830 /* Override any GCC internal prototype to avoid an error.
23831    Use char because int might match the return type of a GCC
23832    builtin and then its argument prototype would still apply.  */
23833 #ifdef __cplusplus
23834 extern "C"
23835 #endif
23836 char PQputCopyData ();
23837 int
23838 main ()
23839 {
23840 return PQputCopyData ();
23841   ;
23842   return 0;
23843 }
23844 _ACEOF
23845 if ac_fn_c_try_link "$LINENO"; then :
23846   ac_cv_lib_pq_PQputCopyData=yes
23847 else
23848   ac_cv_lib_pq_PQputCopyData=no
23849 fi
23850 rm -f core conftest.err conftest.$ac_objext \
23851     conftest$ac_exeext conftest.$ac_ext
23852 LIBS=$ac_check_lib_save_LIBS
23853 fi
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23855 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23856 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23857   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23858
23859 fi
23860
23861       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23862       pkg=$?
23863    fi
23864
23865    if test $DB_PROG = mysql; then
23866       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23867       pkg=$?
23868    fi
23869
23870    if test $DB_PROG = sqlite3; then
23871       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23872       pkg=$?
23873    fi
23874
23875    if test $pkg = 0; then
23876       # Check whether --enable-batch-insert was given.
23877 if test "${enable_batch_insert+set}" = set; then :
23878   enableval=$enable_batch_insert;
23879              if test x$enableval = xno; then
23880                 support_batch_insert=no
23881              else
23882                 support_batch_insert=yes
23883              fi
23884
23885
23886 fi
23887
23888    fi
23889 else
23890       uncomment_dbi="#"
23891 fi
23892
23893
23894
23895 if test $support_batch_insert = yes ; then
23896
23897 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23898
23899 fi
23900
23901 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23902
23903
23904 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23905    if test -z "$CCOPTS"; then
23906       CCOPTS='-g -O2 -Wall'
23907    fi
23908    CFLAGS="$CCOPTS"
23909 fi
23910
23911
23912
23913 largefile_support="no"
23914
23915    # Check whether --enable-largefile was given.
23916 if test "${enable_largefile+set}" = set; then :
23917   enableval=$enable_largefile;
23918 fi
23919
23920    if test "$enable_largefile" != no; then
23921      if test -n "$ac_tool_prefix"; then
23922   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23923 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23925 $as_echo_n "checking for $ac_word... " >&6; }
23926 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23927   $as_echo_n "(cached) " >&6
23928 else
23929   if test -n "$GETCONF"; then
23930   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23931 else
23932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23933 for as_dir in $PATH
23934 do
23935   IFS=$as_save_IFS
23936   test -z "$as_dir" && as_dir=.
23937     for ac_exec_ext in '' $ac_executable_extensions; do
23938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23939     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23941     break 2
23942   fi
23943 done
23944   done
23945 IFS=$as_save_IFS
23946
23947 fi
23948 fi
23949 GETCONF=$ac_cv_prog_GETCONF
23950 if test -n "$GETCONF"; then
23951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23952 $as_echo "$GETCONF" >&6; }
23953 else
23954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23955 $as_echo "no" >&6; }
23956 fi
23957
23958
23959 fi
23960 if test -z "$ac_cv_prog_GETCONF"; then
23961   ac_ct_GETCONF=$GETCONF
23962   # Extract the first word of "getconf", so it can be a program name with args.
23963 set dummy getconf; ac_word=$2
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23965 $as_echo_n "checking for $ac_word... " >&6; }
23966 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
23967   $as_echo_n "(cached) " >&6
23968 else
23969   if test -n "$ac_ct_GETCONF"; then
23970   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23971 else
23972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23973 for as_dir in $PATH
23974 do
23975   IFS=$as_save_IFS
23976   test -z "$as_dir" && as_dir=.
23977     for ac_exec_ext in '' $ac_executable_extensions; do
23978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23979     ac_cv_prog_ac_ct_GETCONF="getconf"
23980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23981     break 2
23982   fi
23983 done
23984   done
23985 IFS=$as_save_IFS
23986
23987 fi
23988 fi
23989 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23990 if test -n "$ac_ct_GETCONF"; then
23991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23992 $as_echo "$ac_ct_GETCONF" >&6; }
23993 else
23994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23995 $as_echo "no" >&6; }
23996 fi
23997
23998   if test "x$ac_ct_GETCONF" = x; then
23999     GETCONF=""
24000   else
24001     case $cross_compiling:$ac_tool_warned in
24002 yes:)
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24005 ac_tool_warned=yes ;;
24006 esac
24007     GETCONF=$ac_ct_GETCONF
24008   fi
24009 else
24010   GETCONF="$ac_cv_prog_GETCONF"
24011 fi
24012
24013      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24014 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24015 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24016   $as_echo_n "(cached) " >&6
24017 else
24018   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24019         ac_cv_sys_largefile_CFLAGS=no
24020         case "$host_os" in
24021            # IRIX 6.2 and later require cc -n32.
24022            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24023              if test "$GCC" != yes; then
24024                ac_cv_sys_largefile_CFLAGS=-n32
24025              fi
24026              ac_save_CC="$CC"
24027              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24028              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24029 /* end confdefs.h.  */
24030
24031 int
24032 main ()
24033 {
24034
24035   ;
24036   return 0;
24037 }
24038 _ACEOF
24039 if ac_fn_c_try_link "$LINENO"; then :
24040
24041 else
24042   ac_cv_sys_largefile_CFLAGS=no
24043 fi
24044 rm -f core conftest.err conftest.$ac_objext \
24045     conftest$ac_exeext conftest.$ac_ext
24046              CC="$ac_save_CC"
24047            esac
24048       }
24049 fi
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24051 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24052      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24053 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24054 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24055   $as_echo_n "(cached) " >&6
24056 else
24057   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24058         ac_cv_sys_largefile_LDFLAGS=no
24059
24060       }
24061 fi
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24063 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24064      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24065 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24066 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24067   $as_echo_n "(cached) " >&6
24068 else
24069   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24070         ac_cv_sys_largefile_LIBS=no
24071
24072       }
24073 fi
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24075 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24076
24077      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24078        case "$ac_flag" in
24079        no) ;;
24080        -D_FILE_OFFSET_BITS=*) ;;
24081        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24082        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24083        -D?* | -I?*)
24084          case "$ac_flag" in
24085    no) ;;
24086    ?*)
24087      case "$CPPFLAGS" in
24088      '') CPPFLAGS="$ac_flag" ;;
24089      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24090      esac ;;
24091    esac ;;
24092        *)
24093          case "$ac_flag" in
24094    no) ;;
24095    ?*)
24096      case "$CFLAGS" in
24097      '') CFLAGS="$ac_flag" ;;
24098      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24099      esac ;;
24100    esac ;;
24101        esac
24102      done
24103      case "$ac_cv_sys_largefile_LDFLAGS" in
24104    no) ;;
24105    ?*)
24106      case "$LDFLAGS" in
24107      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24108      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24109      esac ;;
24110    esac
24111      case "$ac_cv_sys_largefile_LIBS" in
24112    no) ;;
24113    ?*)
24114      case "$LIBS" in
24115      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24116      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24117      esac ;;
24118    esac
24119      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24120 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24121 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24122   $as_echo_n "(cached) " >&6
24123 else
24124   ac_cv_sys_file_offset_bits=no
24125       ac_cv_sys_file_offset_bits=64
24126       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24127         case "$ac_flag" in
24128         -D_FILE_OFFSET_BITS)
24129           ac_cv_sys_file_offset_bits=1 ;;
24130         -D_FILE_OFFSET_BITS=*)
24131           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24132         esac
24133       done
24134
24135 fi
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24137 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24138    if test "$ac_cv_sys_file_offset_bits" != no; then
24139
24140 cat >>confdefs.h <<_ACEOF
24141 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24142 _ACEOF
24143
24144    fi
24145      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24146 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24147 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24148   $as_echo_n "(cached) " >&6
24149 else
24150   ac_cv_sys_largefile_source=no
24151       ac_cv_sys_largefile_source=1
24152       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24153         case "$ac_flag" in
24154         -D_LARGEFILE_SOURCE)
24155           ac_cv_sys_largefile_source=1 ;;
24156         -D_LARGEFILE_SOURCE=*)
24157           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24158         esac
24159       done
24160
24161 fi
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24163 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24164    if test "$ac_cv_sys_largefile_source" != no; then
24165
24166 cat >>confdefs.h <<_ACEOF
24167 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24168 _ACEOF
24169
24170    fi
24171      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24172 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24173 if test "${ac_cv_sys_large_files+set}" = set; then :
24174   $as_echo_n "(cached) " >&6
24175 else
24176   ac_cv_sys_large_files=no
24177       ac_cv_sys_large_files=1
24178       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24179         case "$ac_flag" in
24180         -D_LARGE_FILES)
24181           ac_cv_sys_large_files=1 ;;
24182         -D_LARGE_FILES=*)
24183           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24184         esac
24185       done
24186
24187 fi
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24189 $as_echo "$ac_cv_sys_large_files" >&6; }
24190    if test "$ac_cv_sys_large_files" != no; then
24191
24192 cat >>confdefs.h <<_ACEOF
24193 #define _LARGE_FILES $ac_cv_sys_large_files
24194 _ACEOF
24195
24196    fi
24197    fi
24198
24199
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24201 $as_echo_n "checking for X... " >&6; }
24202
24203
24204 # Check whether --with-x was given.
24205 if test "${with_x+set}" = set; then :
24206   withval=$with_x;
24207 fi
24208
24209 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24210 if test "x$with_x" = xno; then
24211   # The user explicitly disabled X.
24212   have_x=disabled
24213 else
24214   case $x_includes,$x_libraries in #(
24215     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24216     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24217   $as_echo_n "(cached) " >&6
24218 else
24219   # One or both of the vars are not set, and there is no cached value.
24220 ac_x_includes=no ac_x_libraries=no
24221 rm -f -r conftest.dir
24222 if mkdir conftest.dir; then
24223   cd conftest.dir
24224   cat >Imakefile <<'_ACEOF'
24225 incroot:
24226         @echo incroot='${INCROOT}'
24227 usrlibdir:
24228         @echo usrlibdir='${USRLIBDIR}'
24229 libdir:
24230         @echo libdir='${LIBDIR}'
24231 _ACEOF
24232   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24233     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24234     for ac_var in incroot usrlibdir libdir; do
24235       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24236     done
24237     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24238     for ac_extension in a so sl dylib la dll; do
24239       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24240          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24241         ac_im_usrlibdir=$ac_im_libdir; break
24242       fi
24243     done
24244     # Screen out bogus values from the imake configuration.  They are
24245     # bogus both because they are the default anyway, and because
24246     # using them would break gcc on systems where it needs fixed includes.
24247     case $ac_im_incroot in
24248         /usr/include) ac_x_includes= ;;
24249         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24250     esac
24251     case $ac_im_usrlibdir in
24252         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24253         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24254     esac
24255   fi
24256   cd ..
24257   rm -f -r conftest.dir
24258 fi
24259
24260 # Standard set of common directories for X headers.
24261 # Check X11 before X11Rn because it is often a symlink to the current release.
24262 ac_x_header_dirs='
24263 /usr/X11/include
24264 /usr/X11R7/include
24265 /usr/X11R6/include
24266 /usr/X11R5/include
24267 /usr/X11R4/include
24268
24269 /usr/include/X11
24270 /usr/include/X11R7
24271 /usr/include/X11R6
24272 /usr/include/X11R5
24273 /usr/include/X11R4
24274
24275 /usr/local/X11/include
24276 /usr/local/X11R7/include
24277 /usr/local/X11R6/include
24278 /usr/local/X11R5/include
24279 /usr/local/X11R4/include
24280
24281 /usr/local/include/X11
24282 /usr/local/include/X11R7
24283 /usr/local/include/X11R6
24284 /usr/local/include/X11R5
24285 /usr/local/include/X11R4
24286
24287 /usr/X386/include
24288 /usr/x386/include
24289 /usr/XFree86/include/X11
24290
24291 /usr/include
24292 /usr/local/include
24293 /usr/unsupported/include
24294 /usr/athena/include
24295 /usr/local/x11r5/include
24296 /usr/lpp/Xamples/include
24297
24298 /usr/openwin/include
24299 /usr/openwin/share/include'
24300
24301 if test "$ac_x_includes" = no; then
24302   # Guess where to find include files, by looking for Xlib.h.
24303   # First, try using that file with no special directory specified.
24304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h.  */
24306 #include <X11/Xlib.h>
24307 _ACEOF
24308 if ac_fn_c_try_cpp "$LINENO"; then :
24309   # We can compile using X headers with no special include directory.
24310 ac_x_includes=
24311 else
24312   for ac_dir in $ac_x_header_dirs; do
24313   if test -r "$ac_dir/X11/Xlib.h"; then
24314     ac_x_includes=$ac_dir
24315     break
24316   fi
24317 done
24318 fi
24319 rm -f conftest.err conftest.$ac_ext
24320 fi # $ac_x_includes = no
24321
24322 if test "$ac_x_libraries" = no; then
24323   # Check for the libraries.
24324   # See if we find them without any special options.
24325   # Don't add to $LIBS permanently.
24326   ac_save_LIBS=$LIBS
24327   LIBS="-lX11 $LIBS"
24328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24329 /* end confdefs.h.  */
24330 #include <X11/Xlib.h>
24331 int
24332 main ()
24333 {
24334 XrmInitialize ()
24335   ;
24336   return 0;
24337 }
24338 _ACEOF
24339 if ac_fn_c_try_link "$LINENO"; then :
24340   LIBS=$ac_save_LIBS
24341 # We can link X programs with no special library path.
24342 ac_x_libraries=
24343 else
24344   LIBS=$ac_save_LIBS
24345 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24346 do
24347   # Don't even attempt the hair of trying to link an X program!
24348   for ac_extension in a so sl dylib la dll; do
24349     if test -r "$ac_dir/libX11.$ac_extension"; then
24350       ac_x_libraries=$ac_dir
24351       break 2
24352     fi
24353   done
24354 done
24355 fi
24356 rm -f core conftest.err conftest.$ac_objext \
24357     conftest$ac_exeext conftest.$ac_ext
24358 fi # $ac_x_libraries = no
24359
24360 case $ac_x_includes,$ac_x_libraries in #(
24361   no,* | *,no | *\'*)
24362     # Didn't find X, or a directory has "'" in its name.
24363     ac_cv_have_x="have_x=no";; #(
24364   *)
24365     # Record where we found X for the cache.
24366     ac_cv_have_x="have_x=yes\
24367         ac_x_includes='$ac_x_includes'\
24368         ac_x_libraries='$ac_x_libraries'"
24369 esac
24370 fi
24371 ;; #(
24372     *) have_x=yes;;
24373   esac
24374   eval "$ac_cv_have_x"
24375 fi # $with_x != no
24376
24377 if test "$have_x" != yes; then
24378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24379 $as_echo "$have_x" >&6; }
24380   no_x=yes
24381 else
24382   # If each of the values was on the command line, it overrides each guess.
24383   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24384   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24385   # Update the cache value to reflect the command line values.
24386   ac_cv_have_x="have_x=yes\
24387         ac_x_includes='$x_includes'\
24388         ac_x_libraries='$x_libraries'"
24389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24390 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24391 fi
24392
24393 if test "$no_x" = yes; then
24394   # Not all programs may use this symbol, but it does not hurt to define it.
24395
24396 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24397
24398   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24399 else
24400   if test -n "$x_includes"; then
24401     X_CFLAGS="$X_CFLAGS -I$x_includes"
24402   fi
24403
24404   # It would also be nice to do this for all -L options, not just this one.
24405   if test -n "$x_libraries"; then
24406     X_LIBS="$X_LIBS -L$x_libraries"
24407     # For Solaris; some versions of Sun CC require a space after -R and
24408     # others require no space.  Words are not sufficient . . . .
24409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24410 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24411     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24412     ac_xsave_c_werror_flag=$ac_c_werror_flag
24413     ac_c_werror_flag=yes
24414     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24415 /* end confdefs.h.  */
24416
24417 int
24418 main ()
24419 {
24420
24421   ;
24422   return 0;
24423 }
24424 _ACEOF
24425 if ac_fn_c_try_link "$LINENO"; then :
24426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24427 $as_echo "no" >&6; }
24428        X_LIBS="$X_LIBS -R$x_libraries"
24429 else
24430   LIBS="$ac_xsave_LIBS -R $x_libraries"
24431        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24432 /* end confdefs.h.  */
24433
24434 int
24435 main ()
24436 {
24437
24438   ;
24439   return 0;
24440 }
24441 _ACEOF
24442 if ac_fn_c_try_link "$LINENO"; then :
24443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24444 $as_echo "yes" >&6; }
24445           X_LIBS="$X_LIBS -R $x_libraries"
24446 else
24447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24448 $as_echo "neither works" >&6; }
24449 fi
24450 rm -f core conftest.err conftest.$ac_objext \
24451     conftest$ac_exeext conftest.$ac_ext
24452 fi
24453 rm -f core conftest.err conftest.$ac_objext \
24454     conftest$ac_exeext conftest.$ac_ext
24455     ac_c_werror_flag=$ac_xsave_c_werror_flag
24456     LIBS=$ac_xsave_LIBS
24457   fi
24458
24459   # Check for system-dependent libraries X programs must link with.
24460   # Do this before checking for the system-independent R6 libraries
24461   # (-lICE), since we may need -lsocket or whatever for X linking.
24462
24463   if test "$ISC" = yes; then
24464     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24465   else
24466     # Martyn Johnson says this is needed for Ultrix, if the X
24467     # libraries were built with DECnet support.  And Karl Berry says
24468     # the Alpha needs dnet_stub (dnet does not exist).
24469     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h.  */
24472
24473 /* Override any GCC internal prototype to avoid an error.
24474    Use char because int might match the return type of a GCC
24475    builtin and then its argument prototype would still apply.  */
24476 #ifdef __cplusplus
24477 extern "C"
24478 #endif
24479 char XOpenDisplay ();
24480 int
24481 main ()
24482 {
24483 return XOpenDisplay ();
24484   ;
24485   return 0;
24486 }
24487 _ACEOF
24488 if ac_fn_c_try_link "$LINENO"; then :
24489
24490 else
24491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24492 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24493 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24494   $as_echo_n "(cached) " >&6
24495 else
24496   ac_check_lib_save_LIBS=$LIBS
24497 LIBS="-ldnet  $LIBS"
24498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24499 /* end confdefs.h.  */
24500
24501 /* Override any GCC internal prototype to avoid an error.
24502    Use char because int might match the return type of a GCC
24503    builtin and then its argument prototype would still apply.  */
24504 #ifdef __cplusplus
24505 extern "C"
24506 #endif
24507 char dnet_ntoa ();
24508 int
24509 main ()
24510 {
24511 return dnet_ntoa ();
24512   ;
24513   return 0;
24514 }
24515 _ACEOF
24516 if ac_fn_c_try_link "$LINENO"; then :
24517   ac_cv_lib_dnet_dnet_ntoa=yes
24518 else
24519   ac_cv_lib_dnet_dnet_ntoa=no
24520 fi
24521 rm -f core conftest.err conftest.$ac_objext \
24522     conftest$ac_exeext conftest.$ac_ext
24523 LIBS=$ac_check_lib_save_LIBS
24524 fi
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24526 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24527 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24528   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24529 fi
24530
24531     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24533 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24534 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24535   $as_echo_n "(cached) " >&6
24536 else
24537   ac_check_lib_save_LIBS=$LIBS
24538 LIBS="-ldnet_stub  $LIBS"
24539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24540 /* end confdefs.h.  */
24541
24542 /* Override any GCC internal prototype to avoid an error.
24543    Use char because int might match the return type of a GCC
24544    builtin and then its argument prototype would still apply.  */
24545 #ifdef __cplusplus
24546 extern "C"
24547 #endif
24548 char dnet_ntoa ();
24549 int
24550 main ()
24551 {
24552 return dnet_ntoa ();
24553   ;
24554   return 0;
24555 }
24556 _ACEOF
24557 if ac_fn_c_try_link "$LINENO"; then :
24558   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24559 else
24560   ac_cv_lib_dnet_stub_dnet_ntoa=no
24561 fi
24562 rm -f core conftest.err conftest.$ac_objext \
24563     conftest$ac_exeext conftest.$ac_ext
24564 LIBS=$ac_check_lib_save_LIBS
24565 fi
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24567 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24568 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24569   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24570 fi
24571
24572     fi
24573 fi
24574 rm -f core conftest.err conftest.$ac_objext \
24575     conftest$ac_exeext conftest.$ac_ext
24576     LIBS="$ac_xsave_LIBS"
24577
24578     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24579     # to get the SysV transport functions.
24580     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24581     # needs -lnsl.
24582     # The nsl library prevents programs from opening the X display
24583     # on Irix 5.2, according to T.E. Dickey.
24584     # The functions gethostbyname, getservbyname, and inet_addr are
24585     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24586     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24587 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24588
24589 fi
24590
24591     if test $ac_cv_func_gethostbyname = no; then
24592       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24593 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24594 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24595   $as_echo_n "(cached) " >&6
24596 else
24597   ac_check_lib_save_LIBS=$LIBS
24598 LIBS="-lnsl  $LIBS"
24599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24600 /* end confdefs.h.  */
24601
24602 /* Override any GCC internal prototype to avoid an error.
24603    Use char because int might match the return type of a GCC
24604    builtin and then its argument prototype would still apply.  */
24605 #ifdef __cplusplus
24606 extern "C"
24607 #endif
24608 char gethostbyname ();
24609 int
24610 main ()
24611 {
24612 return gethostbyname ();
24613   ;
24614   return 0;
24615 }
24616 _ACEOF
24617 if ac_fn_c_try_link "$LINENO"; then :
24618   ac_cv_lib_nsl_gethostbyname=yes
24619 else
24620   ac_cv_lib_nsl_gethostbyname=no
24621 fi
24622 rm -f core conftest.err conftest.$ac_objext \
24623     conftest$ac_exeext conftest.$ac_ext
24624 LIBS=$ac_check_lib_save_LIBS
24625 fi
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24627 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24628 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24629   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24630 fi
24631
24632       if test $ac_cv_lib_nsl_gethostbyname = no; then
24633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24634 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24635 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24636   $as_echo_n "(cached) " >&6
24637 else
24638   ac_check_lib_save_LIBS=$LIBS
24639 LIBS="-lbsd  $LIBS"
24640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24641 /* end confdefs.h.  */
24642
24643 /* Override any GCC internal prototype to avoid an error.
24644    Use char because int might match the return type of a GCC
24645    builtin and then its argument prototype would still apply.  */
24646 #ifdef __cplusplus
24647 extern "C"
24648 #endif
24649 char gethostbyname ();
24650 int
24651 main ()
24652 {
24653 return gethostbyname ();
24654   ;
24655   return 0;
24656 }
24657 _ACEOF
24658 if ac_fn_c_try_link "$LINENO"; then :
24659   ac_cv_lib_bsd_gethostbyname=yes
24660 else
24661   ac_cv_lib_bsd_gethostbyname=no
24662 fi
24663 rm -f core conftest.err conftest.$ac_objext \
24664     conftest$ac_exeext conftest.$ac_ext
24665 LIBS=$ac_check_lib_save_LIBS
24666 fi
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24668 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24669 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24670   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24671 fi
24672
24673       fi
24674     fi
24675
24676     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24677     # socket/setsockopt and other routines are undefined under SCO ODT
24678     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24679     # on later versions), says Simon Leinen: it contains gethostby*
24680     # variants that don't use the name server (or something).  -lsocket
24681     # must be given before -lnsl if both are needed.  We assume that
24682     # if connect needs -lnsl, so does gethostbyname.
24683     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24684 if test "x$ac_cv_func_connect" = x""yes; then :
24685
24686 fi
24687
24688     if test $ac_cv_func_connect = no; then
24689       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24690 $as_echo_n "checking for connect in -lsocket... " >&6; }
24691 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24692   $as_echo_n "(cached) " >&6
24693 else
24694   ac_check_lib_save_LIBS=$LIBS
24695 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24697 /* end confdefs.h.  */
24698
24699 /* Override any GCC internal prototype to avoid an error.
24700    Use char because int might match the return type of a GCC
24701    builtin and then its argument prototype would still apply.  */
24702 #ifdef __cplusplus
24703 extern "C"
24704 #endif
24705 char connect ();
24706 int
24707 main ()
24708 {
24709 return connect ();
24710   ;
24711   return 0;
24712 }
24713 _ACEOF
24714 if ac_fn_c_try_link "$LINENO"; then :
24715   ac_cv_lib_socket_connect=yes
24716 else
24717   ac_cv_lib_socket_connect=no
24718 fi
24719 rm -f core conftest.err conftest.$ac_objext \
24720     conftest$ac_exeext conftest.$ac_ext
24721 LIBS=$ac_check_lib_save_LIBS
24722 fi
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24724 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24725 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24726   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24727 fi
24728
24729     fi
24730
24731     # Guillermo Gomez says -lposix is necessary on A/UX.
24732     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24733 if test "x$ac_cv_func_remove" = x""yes; then :
24734
24735 fi
24736
24737     if test $ac_cv_func_remove = no; then
24738       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24739 $as_echo_n "checking for remove in -lposix... " >&6; }
24740 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24741   $as_echo_n "(cached) " >&6
24742 else
24743   ac_check_lib_save_LIBS=$LIBS
24744 LIBS="-lposix  $LIBS"
24745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24746 /* end confdefs.h.  */
24747
24748 /* Override any GCC internal prototype to avoid an error.
24749    Use char because int might match the return type of a GCC
24750    builtin and then its argument prototype would still apply.  */
24751 #ifdef __cplusplus
24752 extern "C"
24753 #endif
24754 char remove ();
24755 int
24756 main ()
24757 {
24758 return remove ();
24759   ;
24760   return 0;
24761 }
24762 _ACEOF
24763 if ac_fn_c_try_link "$LINENO"; then :
24764   ac_cv_lib_posix_remove=yes
24765 else
24766   ac_cv_lib_posix_remove=no
24767 fi
24768 rm -f core conftest.err conftest.$ac_objext \
24769     conftest$ac_exeext conftest.$ac_ext
24770 LIBS=$ac_check_lib_save_LIBS
24771 fi
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24773 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24774 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24775   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24776 fi
24777
24778     fi
24779
24780     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24781     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24782 if test "x$ac_cv_func_shmat" = x""yes; then :
24783
24784 fi
24785
24786     if test $ac_cv_func_shmat = no; then
24787       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24788 $as_echo_n "checking for shmat in -lipc... " >&6; }
24789 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24790   $as_echo_n "(cached) " >&6
24791 else
24792   ac_check_lib_save_LIBS=$LIBS
24793 LIBS="-lipc  $LIBS"
24794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h.  */
24796
24797 /* Override any GCC internal prototype to avoid an error.
24798    Use char because int might match the return type of a GCC
24799    builtin and then its argument prototype would still apply.  */
24800 #ifdef __cplusplus
24801 extern "C"
24802 #endif
24803 char shmat ();
24804 int
24805 main ()
24806 {
24807 return shmat ();
24808   ;
24809   return 0;
24810 }
24811 _ACEOF
24812 if ac_fn_c_try_link "$LINENO"; then :
24813   ac_cv_lib_ipc_shmat=yes
24814 else
24815   ac_cv_lib_ipc_shmat=no
24816 fi
24817 rm -f core conftest.err conftest.$ac_objext \
24818     conftest$ac_exeext conftest.$ac_ext
24819 LIBS=$ac_check_lib_save_LIBS
24820 fi
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24822 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24823 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24824   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24825 fi
24826
24827     fi
24828   fi
24829
24830   # Check for libraries that X11R6 Xt/Xaw programs need.
24831   ac_save_LDFLAGS=$LDFLAGS
24832   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24833   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24834   # check for ICE first), but we must link in the order -lSM -lICE or
24835   # we get undefined symbols.  So assume we have SM if we have ICE.
24836   # These have to be linked with before -lX11, unlike the other
24837   # libraries we check for below, so use a different variable.
24838   # John Interrante, Karl Berry
24839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24840 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24841 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24842   $as_echo_n "(cached) " >&6
24843 else
24844   ac_check_lib_save_LIBS=$LIBS
24845 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24847 /* end confdefs.h.  */
24848
24849 /* Override any GCC internal prototype to avoid an error.
24850    Use char because int might match the return type of a GCC
24851    builtin and then its argument prototype would still apply.  */
24852 #ifdef __cplusplus
24853 extern "C"
24854 #endif
24855 char IceConnectionNumber ();
24856 int
24857 main ()
24858 {
24859 return IceConnectionNumber ();
24860   ;
24861   return 0;
24862 }
24863 _ACEOF
24864 if ac_fn_c_try_link "$LINENO"; then :
24865   ac_cv_lib_ICE_IceConnectionNumber=yes
24866 else
24867   ac_cv_lib_ICE_IceConnectionNumber=no
24868 fi
24869 rm -f core conftest.err conftest.$ac_objext \
24870     conftest$ac_exeext conftest.$ac_ext
24871 LIBS=$ac_check_lib_save_LIBS
24872 fi
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24874 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24875 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24876   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24877 fi
24878
24879   LDFLAGS=$ac_save_LDFLAGS
24880
24881 fi
24882
24883
24884 for ac_header in \
24885    assert.h \
24886    fcntl.h \
24887    grp.h \
24888    pwd.h \
24889    libc.h \
24890    limits.h \
24891    stdarg.h \
24892    stdlib.h \
24893    stdint.h \
24894    string.h \
24895    strings.h \
24896    termios.h \
24897    termcap.h \
24898    term.h \
24899    unistd.h \
24900    sys/bitypes.h \
24901    sys/byteorder.h \
24902    sys/ioctl.h \
24903    sys/select.h \
24904    sys/socket.h \
24905    sys/sockio.h \
24906    sys/stat.h \
24907    sys/time.h \
24908    sys/types.h \
24909    arpa/nameser.h \
24910    mtio.h \
24911    sys/mtio.h \
24912    sys/tape.h \
24913    regex.h \
24914
24915 do :
24916   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24917 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24918 eval as_val=\$$as_ac_Header
24919    if test "x$as_val" = x""yes; then :
24920   cat >>confdefs.h <<_ACEOF
24921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24922 _ACEOF
24923
24924 fi
24925
24926 done
24927
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24929 $as_echo_n "checking for ANSI C header files... " >&6; }
24930 if test "${ac_cv_header_stdc+set}" = set; then :
24931   $as_echo_n "(cached) " >&6
24932 else
24933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h.  */
24935 #include <stdlib.h>
24936 #include <stdarg.h>
24937 #include <string.h>
24938 #include <float.h>
24939
24940 int
24941 main ()
24942 {
24943
24944   ;
24945   return 0;
24946 }
24947 _ACEOF
24948 if ac_fn_c_try_compile "$LINENO"; then :
24949   ac_cv_header_stdc=yes
24950 else
24951   ac_cv_header_stdc=no
24952 fi
24953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24954
24955 if test $ac_cv_header_stdc = yes; then
24956   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24958 /* end confdefs.h.  */
24959 #include <string.h>
24960
24961 _ACEOF
24962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24963   $EGREP "memchr" >/dev/null 2>&1; then :
24964
24965 else
24966   ac_cv_header_stdc=no
24967 fi
24968 rm -f conftest*
24969
24970 fi
24971
24972 if test $ac_cv_header_stdc = yes; then
24973   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24975 /* end confdefs.h.  */
24976 #include <stdlib.h>
24977
24978 _ACEOF
24979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24980   $EGREP "free" >/dev/null 2>&1; then :
24981
24982 else
24983   ac_cv_header_stdc=no
24984 fi
24985 rm -f conftest*
24986
24987 fi
24988
24989 if test $ac_cv_header_stdc = yes; then
24990   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24991   if test "$cross_compiling" = yes; then :
24992   :
24993 else
24994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24995 /* end confdefs.h.  */
24996 #include <ctype.h>
24997 #include <stdlib.h>
24998 #if ((' ' & 0x0FF) == 0x020)
24999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25001 #else
25002 # define ISLOWER(c) \
25003                    (('a' <= (c) && (c) <= 'i') \
25004                      || ('j' <= (c) && (c) <= 'r') \
25005                      || ('s' <= (c) && (c) <= 'z'))
25006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25007 #endif
25008
25009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25010 int
25011 main ()
25012 {
25013   int i;
25014   for (i = 0; i < 256; i++)
25015     if (XOR (islower (i), ISLOWER (i))
25016         || toupper (i) != TOUPPER (i))
25017       return 2;
25018   return 0;
25019 }
25020 _ACEOF
25021 if ac_fn_c_try_run "$LINENO"; then :
25022
25023 else
25024   ac_cv_header_stdc=no
25025 fi
25026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25027   conftest.$ac_objext conftest.beam conftest.$ac_ext
25028 fi
25029
25030 fi
25031 fi
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25033 $as_echo "$ac_cv_header_stdc" >&6; }
25034 if test $ac_cv_header_stdc = yes; then
25035
25036 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25037
25038 fi
25039
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25041 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25042 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25043   $as_echo_n "(cached) " >&6
25044 else
25045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25046 /* end confdefs.h.  */
25047 #include <sys/types.h>
25048 int
25049 main ()
25050 {
25051 return makedev(0, 0);
25052   ;
25053   return 0;
25054 }
25055 _ACEOF
25056 if ac_fn_c_try_link "$LINENO"; then :
25057   ac_cv_header_sys_types_h_makedev=yes
25058 else
25059   ac_cv_header_sys_types_h_makedev=no
25060 fi
25061 rm -f core conftest.err conftest.$ac_objext \
25062     conftest$ac_exeext conftest.$ac_ext
25063
25064 fi
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25066 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25067
25068 if test $ac_cv_header_sys_types_h_makedev = no; then
25069 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25070 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25071
25072 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25073
25074 fi
25075
25076
25077
25078   if test $ac_cv_header_sys_mkdev_h = no; then
25079     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25080 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25081
25082 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25083
25084 fi
25085
25086
25087   fi
25088 fi
25089
25090 ac_header_dirent=no
25091 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25092   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25094 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25096   $as_echo_n "(cached) " >&6
25097 else
25098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25099 /* end confdefs.h.  */
25100 #include <sys/types.h>
25101 #include <$ac_hdr>
25102
25103 int
25104 main ()
25105 {
25106 if ((DIR *) 0)
25107 return 0;
25108   ;
25109   return 0;
25110 }
25111 _ACEOF
25112 if ac_fn_c_try_compile "$LINENO"; then :
25113   eval "$as_ac_Header=yes"
25114 else
25115   eval "$as_ac_Header=no"
25116 fi
25117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25118 fi
25119 eval ac_res=\$$as_ac_Header
25120                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25121 $as_echo "$ac_res" >&6; }
25122 eval as_val=\$$as_ac_Header
25123    if test "x$as_val" = x""yes; then :
25124   cat >>confdefs.h <<_ACEOF
25125 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25126 _ACEOF
25127
25128 ac_header_dirent=$ac_hdr; break
25129 fi
25130
25131 done
25132 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25133 if test $ac_header_dirent = dirent.h; then
25134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25135 $as_echo_n "checking for library containing opendir... " >&6; }
25136 if test "${ac_cv_search_opendir+set}" = set; then :
25137   $as_echo_n "(cached) " >&6
25138 else
25139   ac_func_search_save_LIBS=$LIBS
25140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141 /* end confdefs.h.  */
25142
25143 /* Override any GCC internal prototype to avoid an error.
25144    Use char because int might match the return type of a GCC
25145    builtin and then its argument prototype would still apply.  */
25146 #ifdef __cplusplus
25147 extern "C"
25148 #endif
25149 char opendir ();
25150 int
25151 main ()
25152 {
25153 return opendir ();
25154   ;
25155   return 0;
25156 }
25157 _ACEOF
25158 for ac_lib in '' dir; do
25159   if test -z "$ac_lib"; then
25160     ac_res="none required"
25161   else
25162     ac_res=-l$ac_lib
25163     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25164   fi
25165   if ac_fn_c_try_link "$LINENO"; then :
25166   ac_cv_search_opendir=$ac_res
25167 fi
25168 rm -f core conftest.err conftest.$ac_objext \
25169     conftest$ac_exeext
25170   if test "${ac_cv_search_opendir+set}" = set; then :
25171   break
25172 fi
25173 done
25174 if test "${ac_cv_search_opendir+set}" = set; then :
25175
25176 else
25177   ac_cv_search_opendir=no
25178 fi
25179 rm conftest.$ac_ext
25180 LIBS=$ac_func_search_save_LIBS
25181 fi
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25183 $as_echo "$ac_cv_search_opendir" >&6; }
25184 ac_res=$ac_cv_search_opendir
25185 if test "$ac_res" != no; then :
25186   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25187
25188 fi
25189
25190 else
25191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25192 $as_echo_n "checking for library containing opendir... " >&6; }
25193 if test "${ac_cv_search_opendir+set}" = set; then :
25194   $as_echo_n "(cached) " >&6
25195 else
25196   ac_func_search_save_LIBS=$LIBS
25197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25198 /* end confdefs.h.  */
25199
25200 /* Override any GCC internal prototype to avoid an error.
25201    Use char because int might match the return type of a GCC
25202    builtin and then its argument prototype would still apply.  */
25203 #ifdef __cplusplus
25204 extern "C"
25205 #endif
25206 char opendir ();
25207 int
25208 main ()
25209 {
25210 return opendir ();
25211   ;
25212   return 0;
25213 }
25214 _ACEOF
25215 for ac_lib in '' x; do
25216   if test -z "$ac_lib"; then
25217     ac_res="none required"
25218   else
25219     ac_res=-l$ac_lib
25220     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25221   fi
25222   if ac_fn_c_try_link "$LINENO"; then :
25223   ac_cv_search_opendir=$ac_res
25224 fi
25225 rm -f core conftest.err conftest.$ac_objext \
25226     conftest$ac_exeext
25227   if test "${ac_cv_search_opendir+set}" = set; then :
25228   break
25229 fi
25230 done
25231 if test "${ac_cv_search_opendir+set}" = set; then :
25232
25233 else
25234   ac_cv_search_opendir=no
25235 fi
25236 rm conftest.$ac_ext
25237 LIBS=$ac_func_search_save_LIBS
25238 fi
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25240 $as_echo "$ac_cv_search_opendir" >&6; }
25241 ac_res=$ac_cv_search_opendir
25242 if test "$ac_res" != no; then :
25243   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25244
25245 fi
25246
25247 fi
25248
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25250 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25251 if test "${ac_cv_header_stat_broken+set}" = set; then :
25252   $as_echo_n "(cached) " >&6
25253 else
25254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25255 /* end confdefs.h.  */
25256 #include <sys/types.h>
25257 #include <sys/stat.h>
25258
25259 #if defined S_ISBLK && defined S_IFDIR
25260 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25261 #endif
25262
25263 #if defined S_ISBLK && defined S_IFCHR
25264 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25265 #endif
25266
25267 #if defined S_ISLNK && defined S_IFREG
25268 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25269 #endif
25270
25271 #if defined S_ISSOCK && defined S_IFREG
25272 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25273 #endif
25274
25275 _ACEOF
25276 if ac_fn_c_try_compile "$LINENO"; then :
25277   ac_cv_header_stat_broken=no
25278 else
25279   ac_cv_header_stat_broken=yes
25280 fi
25281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25282 fi
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25284 $as_echo "$ac_cv_header_stat_broken" >&6; }
25285 if test $ac_cv_header_stat_broken = yes; then
25286
25287 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25288
25289 fi
25290
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25292 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25293 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25294   $as_echo_n "(cached) " >&6
25295 else
25296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25297 /* end confdefs.h.  */
25298 #include <sys/types.h>
25299 #include <sys/wait.h>
25300 #ifndef WEXITSTATUS
25301 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25302 #endif
25303 #ifndef WIFEXITED
25304 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25305 #endif
25306
25307 int
25308 main ()
25309 {
25310   int s;
25311   wait (&s);
25312   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25313   ;
25314   return 0;
25315 }
25316 _ACEOF
25317 if ac_fn_c_try_compile "$LINENO"; then :
25318   ac_cv_header_sys_wait_h=yes
25319 else
25320   ac_cv_header_sys_wait_h=no
25321 fi
25322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25323 fi
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25325 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25326 if test $ac_cv_header_sys_wait_h = yes; then
25327
25328 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25329
25330 fi
25331
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25333 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25334 if test "${ac_cv_header_time+set}" = set; then :
25335   $as_echo_n "(cached) " >&6
25336 else
25337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25338 /* end confdefs.h.  */
25339 #include <sys/types.h>
25340 #include <sys/time.h>
25341 #include <time.h>
25342
25343 int
25344 main ()
25345 {
25346 if ((struct tm *) 0)
25347 return 0;
25348   ;
25349   return 0;
25350 }
25351 _ACEOF
25352 if ac_fn_c_try_compile "$LINENO"; then :
25353   ac_cv_header_time=yes
25354 else
25355   ac_cv_header_time=no
25356 fi
25357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25358 fi
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25360 $as_echo "$ac_cv_header_time" >&6; }
25361 if test $ac_cv_header_time = yes; then
25362
25363 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25364
25365 fi
25366
25367 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25368 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25369
25370 cat >>confdefs.h <<_ACEOF
25371 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25372 _ACEOF
25373
25374
25375 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25376
25377 fi
25378
25379
25380 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25381 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25382
25383 cat >>confdefs.h <<_ACEOF
25384 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25385 _ACEOF
25386
25387
25388 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25389
25390 else
25391   case " $LIBOBJS " in
25392   *" fileblocks.$ac_objext "* ) ;;
25393   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25394  ;;
25395 esac
25396
25397 fi
25398
25399
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25401 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25402 if test "${ac_cv_struct_tm+set}" = set; then :
25403   $as_echo_n "(cached) " >&6
25404 else
25405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406 /* end confdefs.h.  */
25407 #include <sys/types.h>
25408 #include <time.h>
25409
25410 int
25411 main ()
25412 {
25413 struct tm tm;
25414                                      int *p = &tm.tm_sec;
25415                                      return !p;
25416   ;
25417   return 0;
25418 }
25419 _ACEOF
25420 if ac_fn_c_try_compile "$LINENO"; then :
25421   ac_cv_struct_tm=time.h
25422 else
25423   ac_cv_struct_tm=sys/time.h
25424 fi
25425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25426 fi
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25428 $as_echo "$ac_cv_struct_tm" >&6; }
25429 if test $ac_cv_struct_tm = sys/time.h; then
25430
25431 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25432
25433 fi
25434
25435 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25436 #include <$ac_cv_struct_tm>
25437
25438 "
25439 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25440
25441 cat >>confdefs.h <<_ACEOF
25442 #define HAVE_STRUCT_TM_TM_ZONE 1
25443 _ACEOF
25444
25445
25446 fi
25447
25448 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25449
25450 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25451
25452 else
25453   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25454 "
25455 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25456   ac_have_decl=1
25457 else
25458   ac_have_decl=0
25459 fi
25460
25461 cat >>confdefs.h <<_ACEOF
25462 #define HAVE_DECL_TZNAME $ac_have_decl
25463 _ACEOF
25464
25465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25466 $as_echo_n "checking for tzname... " >&6; }
25467 if test "${ac_cv_var_tzname+set}" = set; then :
25468   $as_echo_n "(cached) " >&6
25469 else
25470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471 /* end confdefs.h.  */
25472 #include <time.h>
25473 #if !HAVE_DECL_TZNAME
25474 extern char *tzname[];
25475 #endif
25476
25477 int
25478 main ()
25479 {
25480 return tzname[0][0];
25481   ;
25482   return 0;
25483 }
25484 _ACEOF
25485 if ac_fn_c_try_link "$LINENO"; then :
25486   ac_cv_var_tzname=yes
25487 else
25488   ac_cv_var_tzname=no
25489 fi
25490 rm -f core conftest.err conftest.$ac_objext \
25491     conftest$ac_exeext conftest.$ac_ext
25492 fi
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25494 $as_echo "$ac_cv_var_tzname" >&6; }
25495   if test $ac_cv_var_tzname = yes; then
25496
25497 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25498
25499   fi
25500 fi
25501
25502
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25504 $as_echo_n "checking for utime.h... " >&6; }
25505 if test "${ba_cv_header_utime_h+set}" = set; then :
25506   $as_echo_n "(cached) " >&6
25507 else
25508
25509        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25510 /* end confdefs.h.  */
25511
25512               #include <sys/types.h>
25513               #include <utime.h>
25514
25515 int
25516 main ()
25517 {
25518
25519               struct utimbuf foo
25520
25521   ;
25522   return 0;
25523 }
25524 _ACEOF
25525 if ac_fn_c_try_compile "$LINENO"; then :
25526
25527               ba_cv_header_utime_h=yes
25528
25529 else
25530
25531               ba_cv_header_utime_h=no
25532
25533
25534 fi
25535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25536
25537
25538 fi
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25540 $as_echo "$ba_cv_header_utime_h" >&6; }
25541 test $ba_cv_header_utime_h = yes &&
25542 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25543
25544
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25546 $as_echo_n "checking for socklen_t... " >&6; }
25547 if test "${ba_cv_header_socklen_t+set}" = set; then :
25548   $as_echo_n "(cached) " >&6
25549 else
25550
25551        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25552 /* end confdefs.h.  */
25553
25554               #include <sys/types.h>
25555               #include <sys/socket.h>
25556
25557 int
25558 main ()
25559 {
25560
25561               socklen_t x
25562
25563   ;
25564   return 0;
25565 }
25566 _ACEOF
25567 if ac_fn_c_try_compile "$LINENO"; then :
25568
25569              ba_cv_header_socklen_t=yes
25570
25571 else
25572
25573              ba_cv_header_socklen_t=no
25574
25575
25576 fi
25577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25578
25579
25580 fi
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25582 $as_echo "$ba_cv_header_socklen_t" >&6; }
25583 test $ba_cv_header_socklen_t = yes &&
25584 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25585
25586
25587 ac_ext=cpp
25588 ac_cpp='$CXXCPP $CPPFLAGS'
25589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25592
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25594 $as_echo_n "checking for ioctl_req_t... " >&6; }
25595 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25596   $as_echo_n "(cached) " >&6
25597 else
25598
25599        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25600 /* end confdefs.h.  */
25601
25602               #include <unistd.h>
25603               #include <sys/types.h>
25604               #include <sys/ioctl.h>
25605
25606 int
25607 main ()
25608 {
25609
25610               int (*d_ioctl)(int fd, unsigned long int request, ...);
25611               d_ioctl = ::ioctl;
25612
25613   ;
25614   return 0;
25615 }
25616 _ACEOF
25617 if ac_fn_cxx_try_compile "$LINENO"; then :
25618
25619              ba_cv_header_ioctl_req_t=yes
25620
25621 else
25622
25623              ba_cv_header_ioctl_req_t=no
25624
25625
25626 fi
25627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25628
25629
25630 fi
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25632 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25633 test $ba_cv_header_ioctl_req_t = yes &&
25634 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25635
25636
25637 ac_ext=c
25638 ac_cpp='$CPP $CPPFLAGS'
25639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25642
25643
25644 ac_ext=cpp
25645 ac_cpp='$CXXCPP $CPPFLAGS'
25646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25649
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25651 $as_echo_n "checking for typeof... " >&6; }
25652 if test "${ba_cv_have_typeof+set}" = set; then :
25653   $as_echo_n "(cached) " >&6
25654 else
25655
25656        if test "$cross_compiling" = yes; then :
25657
25658               ba_cv_have_typeof=no
25659
25660
25661 else
25662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25663 /* end confdefs.h.  */
25664
25665               main(){char *a = 0; a = (typeof a)a;}
25666
25667 _ACEOF
25668 if ac_fn_cxx_try_run "$LINENO"; then :
25669
25670               ba_cv_have_typeof=yes
25671
25672 else
25673
25674               ba_cv_have_typeof=no
25675
25676 fi
25677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25678   conftest.$ac_objext conftest.beam conftest.$ac_ext
25679 fi
25680
25681
25682
25683 fi
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25685 $as_echo "$ba_cv_have_typeof" >&6; }
25686 test $ba_cv_have_typeof = yes &&
25687 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25688
25689 ac_ext=c
25690 ac_cpp='$CPP $CPPFLAGS'
25691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25694
25695
25696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25697 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25698 if test "${ac_cv_c_const+set}" = set; then :
25699   $as_echo_n "(cached) " >&6
25700 else
25701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25702 /* end confdefs.h.  */
25703
25704 int
25705 main ()
25706 {
25707 /* FIXME: Include the comments suggested by Paul. */
25708 #ifndef __cplusplus
25709   /* Ultrix mips cc rejects this.  */
25710   typedef int charset[2];
25711   const charset cs;
25712   /* SunOS 4.1.1 cc rejects this.  */
25713   char const *const *pcpcc;
25714   char **ppc;
25715   /* NEC SVR4.0.2 mips cc rejects this.  */
25716   struct point {int x, y;};
25717   static struct point const zero = {0,0};
25718   /* AIX XL C 1.02.0.0 rejects this.
25719      It does not let you subtract one const X* pointer from another in
25720      an arm of an if-expression whose if-part is not a constant
25721      expression */
25722   const char *g = "string";
25723   pcpcc = &g + (g ? g-g : 0);
25724   /* HPUX 7.0 cc rejects these. */
25725   ++pcpcc;
25726   ppc = (char**) pcpcc;
25727   pcpcc = (char const *const *) ppc;
25728   { /* SCO 3.2v4 cc rejects this.  */
25729     char *t;
25730     char const *s = 0 ? (char *) 0 : (char const *) 0;
25731
25732     *t++ = 0;
25733     if (s) return 0;
25734   }
25735   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25736     int x[] = {25, 17};
25737     const int *foo = &x[0];
25738     ++foo;
25739   }
25740   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25741     typedef const int *iptr;
25742     iptr p = 0;
25743     ++p;
25744   }
25745   { /* AIX XL C 1.02.0.0 rejects this saying
25746        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25747     struct s { int j; const int *ap[3]; };
25748     struct s *b; b->j = 5;
25749   }
25750   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25751     const int foo = 10;
25752     if (!foo) return 0;
25753   }
25754   return !cs[0] && !zero.x;
25755 #endif
25756
25757   ;
25758   return 0;
25759 }
25760 _ACEOF
25761 if ac_fn_c_try_compile "$LINENO"; then :
25762   ac_cv_c_const=yes
25763 else
25764   ac_cv_c_const=no
25765 fi
25766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25767 fi
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25769 $as_echo "$ac_cv_c_const" >&6; }
25770 if test $ac_cv_c_const = no; then
25771
25772 $as_echo "#define const /**/" >>confdefs.h
25773
25774 fi
25775
25776
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25778 $as_echo_n "checking how to get filesystem type... " >&6; }
25779 fstype=no
25780 # The order of these tests is important.
25781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25782 /* end confdefs.h.  */
25783
25784        #include <sys/statvfs.h>
25785        #include <sys/fstyp.h>
25786
25787 _ACEOF
25788 if ac_fn_c_try_cpp "$LINENO"; then :
25789   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25790  fstype=SVR4
25791
25792 fi
25793 rm -f conftest.err conftest.$ac_ext
25794 if test $fstype = no; then
25795    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25796 /* end confdefs.h.  */
25797
25798           #include <sys/statfs.h>
25799           #include <sys/fstyp.h>
25800
25801 _ACEOF
25802 if ac_fn_c_try_cpp "$LINENO"; then :
25803   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25804  fstype=SVR3
25805
25806 fi
25807 rm -f conftest.err conftest.$ac_ext
25808 fi
25809 if test $fstype = no; then
25810    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h.  */
25812
25813           #include <sys/statfs.h>
25814           #include <sys/vmount.h>
25815
25816 _ACEOF
25817 if ac_fn_c_try_cpp "$LINENO"; then :
25818   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25819  fstype=AIX
25820
25821 fi
25822 rm -f conftest.err conftest.$ac_ext
25823 fi
25824 if test $fstype = no; then
25825    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25826 /* end confdefs.h.  */
25827
25828           #include <mntent.h>
25829
25830 _ACEOF
25831 if ac_fn_c_try_cpp "$LINENO"; then :
25832   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25833  fstype=4.3BSD
25834
25835 fi
25836 rm -f conftest.err conftest.$ac_ext
25837 fi
25838 if test $fstype = no; then
25839    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25840 /* end confdefs.h.  */
25841 #include <sys/mount.h>
25842
25843 _ACEOF
25844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25845   $EGREP "f_type;" >/dev/null 2>&1; then :
25846   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25847  fstype=4.4BSD/OSF1
25848 fi
25849 rm -f conftest*
25850
25851 fi
25852 if test $fstype = no; then
25853    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25854 /* end confdefs.h.  */
25855
25856           #include <sys/mount.h>
25857           #include <sys/fs_types.h>
25858
25859 _ACEOF
25860 if ac_fn_c_try_cpp "$LINENO"; then :
25861   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25862  fstype=Ultrix
25863
25864 fi
25865 rm -f conftest.err conftest.$ac_ext
25866 fi
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25868 $as_echo "$fstype" >&6; }
25869
25870 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25871 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25872
25873 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25874
25875 fi
25876
25877
25878
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25880 $as_echo_n "checking return type of signal handlers... " >&6; }
25881 if test "${ac_cv_type_signal+set}" = set; then :
25882   $as_echo_n "(cached) " >&6
25883 else
25884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25885 /* end confdefs.h.  */
25886 #include <sys/types.h>
25887 #include <signal.h>
25888
25889 int
25890 main ()
25891 {
25892 return *(signal (0, 0)) (0) == 1;
25893   ;
25894   return 0;
25895 }
25896 _ACEOF
25897 if ac_fn_c_try_compile "$LINENO"; then :
25898   ac_cv_type_signal=int
25899 else
25900   ac_cv_type_signal=void
25901 fi
25902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25903 fi
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25905 $as_echo "$ac_cv_type_signal" >&6; }
25906
25907 cat >>confdefs.h <<_ACEOF
25908 #define RETSIGTYPE $ac_cv_type_signal
25909 _ACEOF
25910
25911
25912
25913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25914 $as_echo_n "checking for type of signal functions... " >&6; }
25915   if test "${bash_cv_signal_vintage+set}" = set; then :
25916   $as_echo_n "(cached) " >&6
25917 else
25918
25919     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25920 /* end confdefs.h.  */
25921 #include <signal.h>
25922 int
25923 main ()
25924 {
25925
25926       sigset_t ss;
25927       struct sigaction sa;
25928       sigemptyset(&ss); sigsuspend(&ss);
25929       sigaction(SIGINT, &sa, (struct sigaction *) 0);
25930       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25931
25932   ;
25933   return 0;
25934 }
25935 _ACEOF
25936 if ac_fn_c_try_link "$LINENO"; then :
25937   bash_cv_signal_vintage="posix"
25938 else
25939
25940       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25941 /* end confdefs.h.  */
25942 #include <signal.h>
25943 int
25944 main ()
25945 {
25946
25947           int mask = sigmask(SIGINT);
25948           sigsetmask(mask); sigblock(mask); sigpause(mask);
25949
25950   ;
25951   return 0;
25952 }
25953 _ACEOF
25954 if ac_fn_c_try_link "$LINENO"; then :
25955   bash_cv_signal_vintage="4.2bsd"
25956 else
25957
25958         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25959 /* end confdefs.h.  */
25960
25961           #include <signal.h>
25962           RETSIGTYPE foo() { }
25963 int
25964 main ()
25965 {
25966
25967                   int mask = sigmask(SIGINT);
25968                   sigset(SIGINT, foo); sigrelse(SIGINT);
25969                   sighold(SIGINT); sigpause(SIGINT);
25970
25971   ;
25972   return 0;
25973 }
25974 _ACEOF
25975 if ac_fn_c_try_link "$LINENO"; then :
25976   bash_cv_signal_vintage="svr3"
25977 else
25978   bash_cv_signal_vintage="v7"
25979
25980 fi
25981 rm -f core conftest.err conftest.$ac_objext \
25982     conftest$ac_exeext conftest.$ac_ext
25983
25984 fi
25985 rm -f core conftest.err conftest.$ac_objext \
25986     conftest$ac_exeext conftest.$ac_ext
25987
25988 fi
25989 rm -f core conftest.err conftest.$ac_objext \
25990     conftest$ac_exeext conftest.$ac_ext
25991
25992 fi
25993
25994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
25995 $as_echo "$bash_cv_signal_vintage" >&6; }
25996   if test "$bash_cv_signal_vintage" = "posix"; then
25997     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
25998
25999   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26000     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26001
26002   elif test "$bash_cv_signal_vintage" = "svr3"; then
26003     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26004
26005   fi
26006
26007 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26008 if test "x$ac_cv_type_mode_t" = x""yes; then :
26009
26010 else
26011
26012 cat >>confdefs.h <<_ACEOF
26013 #define mode_t int
26014 _ACEOF
26015
26016 fi
26017
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26019 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26020 if test "${ac_cv_type_uid_t+set}" = set; then :
26021   $as_echo_n "(cached) " >&6
26022 else
26023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26024 /* end confdefs.h.  */
26025 #include <sys/types.h>
26026
26027 _ACEOF
26028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26029   $EGREP "uid_t" >/dev/null 2>&1; then :
26030   ac_cv_type_uid_t=yes
26031 else
26032   ac_cv_type_uid_t=no
26033 fi
26034 rm -f conftest*
26035
26036 fi
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26038 $as_echo "$ac_cv_type_uid_t" >&6; }
26039 if test $ac_cv_type_uid_t = no; then
26040
26041 $as_echo "#define uid_t int" >>confdefs.h
26042
26043
26044 $as_echo "#define gid_t int" >>confdefs.h
26045
26046 fi
26047
26048 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26049 if test "x$ac_cv_type_size_t" = x""yes; then :
26050
26051 else
26052
26053 cat >>confdefs.h <<_ACEOF
26054 #define size_t unsigned int
26055 _ACEOF
26056
26057 fi
26058
26059 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26060 if test "x$ac_cv_type_pid_t" = x""yes; then :
26061
26062 else
26063
26064 cat >>confdefs.h <<_ACEOF
26065 #define pid_t int
26066 _ACEOF
26067
26068 fi
26069
26070 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26071 if test "x$ac_cv_type_off_t" = x""yes; then :
26072
26073 else
26074
26075 cat >>confdefs.h <<_ACEOF
26076 #define off_t long int
26077 _ACEOF
26078
26079 fi
26080
26081
26082   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26083 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26084
26085 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26086
26087 else
26088   for ac_type in 'int' 'long int' 'long long int'; do
26089        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090 /* end confdefs.h.  */
26091 $ac_includes_default
26092 int
26093 main ()
26094 {
26095 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26096 test_array [0] = 0
26097
26098   ;
26099   return 0;
26100 }
26101 _ACEOF
26102 if ac_fn_c_try_compile "$LINENO"; then :
26103
26104 cat >>confdefs.h <<_ACEOF
26105 #define intptr_t $ac_type
26106 _ACEOF
26107
26108           ac_type=
26109 fi
26110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26111        test -z "$ac_type" && break
26112      done
26113 fi
26114
26115
26116
26117   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26118 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26119
26120 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26121
26122 else
26123   for ac_type in 'unsigned int' 'unsigned long int' \
26124         'unsigned long long int'; do
26125        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26126 /* end confdefs.h.  */
26127 $ac_includes_default
26128 int
26129 main ()
26130 {
26131 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26132 test_array [0] = 0
26133
26134   ;
26135   return 0;
26136 }
26137 _ACEOF
26138 if ac_fn_c_try_compile "$LINENO"; then :
26139
26140 cat >>confdefs.h <<_ACEOF
26141 #define uintptr_t $ac_type
26142 _ACEOF
26143
26144           ac_type=
26145 fi
26146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147        test -z "$ac_type" && break
26148      done
26149 fi
26150
26151
26152 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26153 if test "x$ac_cv_type_ino_t" = x""yes; then :
26154
26155 else
26156
26157 cat >>confdefs.h <<_ACEOF
26158 #define ino_t unsigned long
26159 _ACEOF
26160
26161 fi
26162
26163 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26164 if test "x$ac_cv_type_dev_t" = x""yes; then :
26165
26166 else
26167
26168 cat >>confdefs.h <<_ACEOF
26169 #define dev_t unsigned long
26170 _ACEOF
26171
26172 fi
26173
26174 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26175 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26176
26177 else
26178
26179 cat >>confdefs.h <<_ACEOF
26180 #define daddr_t long
26181 _ACEOF
26182
26183 fi
26184
26185 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26186 if test "x$ac_cv_type_major_t" = x""yes; then :
26187
26188 else
26189
26190 cat >>confdefs.h <<_ACEOF
26191 #define major_t int
26192 _ACEOF
26193
26194 fi
26195
26196 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26197 if test "x$ac_cv_type_minor_t" = x""yes; then :
26198
26199 else
26200
26201 cat >>confdefs.h <<_ACEOF
26202 #define minor_t int
26203 _ACEOF
26204
26205 fi
26206
26207 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26208 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26209
26210 else
26211
26212 cat >>confdefs.h <<_ACEOF
26213 #define ssize_t int
26214 _ACEOF
26215
26216 fi
26217
26218 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26219 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26220
26221 cat >>confdefs.h <<_ACEOF
26222 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26223 _ACEOF
26224
26225
26226 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26227
26228 else
26229   case " $LIBOBJS " in
26230   *" fileblocks.$ac_objext "* ) ;;
26231   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26232  ;;
26233 esac
26234
26235 fi
26236
26237
26238 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26239 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26240
26241 cat >>confdefs.h <<_ACEOF
26242 #define HAVE_STRUCT_STAT_ST_RDEV 1
26243 _ACEOF
26244
26245
26246 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26247
26248 fi
26249
26250
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26252 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26253 if test "${ac_cv_struct_tm+set}" = set; then :
26254   $as_echo_n "(cached) " >&6
26255 else
26256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26257 /* end confdefs.h.  */
26258 #include <sys/types.h>
26259 #include <time.h>
26260
26261 int
26262 main ()
26263 {
26264 struct tm tm;
26265                                      int *p = &tm.tm_sec;
26266                                      return !p;
26267   ;
26268   return 0;
26269 }
26270 _ACEOF
26271 if ac_fn_c_try_compile "$LINENO"; then :
26272   ac_cv_struct_tm=time.h
26273 else
26274   ac_cv_struct_tm=sys/time.h
26275 fi
26276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26277 fi
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26279 $as_echo "$ac_cv_struct_tm" >&6; }
26280 if test $ac_cv_struct_tm = sys/time.h; then
26281
26282 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26283
26284 fi
26285
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26287 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26288 if test "${ac_cv_c_const+set}" = set; then :
26289   $as_echo_n "(cached) " >&6
26290 else
26291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26292 /* end confdefs.h.  */
26293
26294 int
26295 main ()
26296 {
26297 /* FIXME: Include the comments suggested by Paul. */
26298 #ifndef __cplusplus
26299   /* Ultrix mips cc rejects this.  */
26300   typedef int charset[2];
26301   const charset cs;
26302   /* SunOS 4.1.1 cc rejects this.  */
26303   char const *const *pcpcc;
26304   char **ppc;
26305   /* NEC SVR4.0.2 mips cc rejects this.  */
26306   struct point {int x, y;};
26307   static struct point const zero = {0,0};
26308   /* AIX XL C 1.02.0.0 rejects this.
26309      It does not let you subtract one const X* pointer from another in
26310      an arm of an if-expression whose if-part is not a constant
26311      expression */
26312   const char *g = "string";
26313   pcpcc = &g + (g ? g-g : 0);
26314   /* HPUX 7.0 cc rejects these. */
26315   ++pcpcc;
26316   ppc = (char**) pcpcc;
26317   pcpcc = (char const *const *) ppc;
26318   { /* SCO 3.2v4 cc rejects this.  */
26319     char *t;
26320     char const *s = 0 ? (char *) 0 : (char const *) 0;
26321
26322     *t++ = 0;
26323     if (s) return 0;
26324   }
26325   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26326     int x[] = {25, 17};
26327     const int *foo = &x[0];
26328     ++foo;
26329   }
26330   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26331     typedef const int *iptr;
26332     iptr p = 0;
26333     ++p;
26334   }
26335   { /* AIX XL C 1.02.0.0 rejects this saying
26336        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26337     struct s { int j; const int *ap[3]; };
26338     struct s *b; b->j = 5;
26339   }
26340   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26341     const int foo = 10;
26342     if (!foo) return 0;
26343   }
26344   return !cs[0] && !zero.x;
26345 #endif
26346
26347   ;
26348   return 0;
26349 }
26350 _ACEOF
26351 if ac_fn_c_try_compile "$LINENO"; then :
26352   ac_cv_c_const=yes
26353 else
26354   ac_cv_c_const=no
26355 fi
26356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26357 fi
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26359 $as_echo "$ac_cv_c_const" >&6; }
26360 if test $ac_cv_c_const = no; then
26361
26362 $as_echo "#define const /**/" >>confdefs.h
26363
26364 fi
26365
26366
26367 # The cast to long int works around a bug in the HP C Compiler
26368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26370 # This bug is HP SR number 8606223364.
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26372 $as_echo_n "checking size of char... " >&6; }
26373 if test "${ac_cv_sizeof_char+set}" = set; then :
26374   $as_echo_n "(cached) " >&6
26375 else
26376   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26377
26378 else
26379   if test "$ac_cv_type_char" = yes; then
26380      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26382 { as_fn_set_status 77
26383 as_fn_error "cannot compute sizeof (char)
26384 See \`config.log' for more details." "$LINENO" 5; }; }
26385    else
26386      ac_cv_sizeof_char=0
26387    fi
26388 fi
26389
26390 fi
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26392 $as_echo "$ac_cv_sizeof_char" >&6; }
26393
26394
26395
26396 cat >>confdefs.h <<_ACEOF
26397 #define SIZEOF_CHAR $ac_cv_sizeof_char
26398 _ACEOF
26399
26400
26401 # The cast to long int works around a bug in the HP C Compiler
26402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26404 # This bug is HP SR number 8606223364.
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26406 $as_echo_n "checking size of short int... " >&6; }
26407 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26408   $as_echo_n "(cached) " >&6
26409 else
26410   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26411
26412 else
26413   if test "$ac_cv_type_short_int" = yes; then
26414      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26416 { as_fn_set_status 77
26417 as_fn_error "cannot compute sizeof (short int)
26418 See \`config.log' for more details." "$LINENO" 5; }; }
26419    else
26420      ac_cv_sizeof_short_int=0
26421    fi
26422 fi
26423
26424 fi
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26426 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26427
26428
26429
26430 cat >>confdefs.h <<_ACEOF
26431 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26432 _ACEOF
26433
26434
26435 # The cast to long int works around a bug in the HP C Compiler
26436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26438 # This bug is HP SR number 8606223364.
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26440 $as_echo_n "checking size of int... " >&6; }
26441 if test "${ac_cv_sizeof_int+set}" = set; then :
26442   $as_echo_n "(cached) " >&6
26443 else
26444   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26445
26446 else
26447   if test "$ac_cv_type_int" = yes; then
26448      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26450 { as_fn_set_status 77
26451 as_fn_error "cannot compute sizeof (int)
26452 See \`config.log' for more details." "$LINENO" 5; }; }
26453    else
26454      ac_cv_sizeof_int=0
26455    fi
26456 fi
26457
26458 fi
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26460 $as_echo "$ac_cv_sizeof_int" >&6; }
26461
26462
26463
26464 cat >>confdefs.h <<_ACEOF
26465 #define SIZEOF_INT $ac_cv_sizeof_int
26466 _ACEOF
26467
26468
26469 # The cast to long int works around a bug in the HP C Compiler
26470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26472 # This bug is HP SR number 8606223364.
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26474 $as_echo_n "checking size of long int... " >&6; }
26475 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26476   $as_echo_n "(cached) " >&6
26477 else
26478   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26479
26480 else
26481   if test "$ac_cv_type_long_int" = yes; then
26482      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26484 { as_fn_set_status 77
26485 as_fn_error "cannot compute sizeof (long int)
26486 See \`config.log' for more details." "$LINENO" 5; }; }
26487    else
26488      ac_cv_sizeof_long_int=0
26489    fi
26490 fi
26491
26492 fi
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26494 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26495
26496
26497
26498 cat >>confdefs.h <<_ACEOF
26499 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26500 _ACEOF
26501
26502
26503 # The cast to long int works around a bug in the HP C Compiler
26504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26506 # This bug is HP SR number 8606223364.
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26508 $as_echo_n "checking size of long long int... " >&6; }
26509 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26510   $as_echo_n "(cached) " >&6
26511 else
26512   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26513
26514 else
26515   if test "$ac_cv_type_long_long_int" = yes; then
26516      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26518 { as_fn_set_status 77
26519 as_fn_error "cannot compute sizeof (long long int)
26520 See \`config.log' for more details." "$LINENO" 5; }; }
26521    else
26522      ac_cv_sizeof_long_long_int=0
26523    fi
26524 fi
26525
26526 fi
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26528 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26529
26530
26531
26532 cat >>confdefs.h <<_ACEOF
26533 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26534 _ACEOF
26535
26536
26537 # The cast to long int works around a bug in the HP C Compiler
26538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26540 # This bug is HP SR number 8606223364.
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26542 $as_echo_n "checking size of int *... " >&6; }
26543 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26544   $as_echo_n "(cached) " >&6
26545 else
26546   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26547
26548 else
26549   if test "$ac_cv_type_int_p" = yes; then
26550      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26552 { as_fn_set_status 77
26553 as_fn_error "cannot compute sizeof (int *)
26554 See \`config.log' for more details." "$LINENO" 5; }; }
26555    else
26556      ac_cv_sizeof_int_p=0
26557    fi
26558 fi
26559
26560 fi
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26562 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26563
26564
26565
26566 cat >>confdefs.h <<_ACEOF
26567 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26568 _ACEOF
26569
26570
26571
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26573 $as_echo_n "checking for u_int type... " >&6; }
26574 if test "${ac_cv_have_u_int+set}" = set; then :
26575   $as_echo_n "(cached) " >&6
26576 else
26577
26578        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26579 /* end confdefs.h.  */
26580
26581               #include <sys/types.h>
26582
26583 int
26584 main ()
26585 {
26586
26587               u_int a; a = 1;
26588
26589   ;
26590   return 0;
26591 }
26592 _ACEOF
26593 if ac_fn_c_try_compile "$LINENO"; then :
26594
26595               ac_cv_have_u_int="yes"
26596
26597 else
26598
26599               ac_cv_have_u_int="no"
26600
26601
26602 fi
26603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26604
26605
26606 fi
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26608 $as_echo "$ac_cv_have_u_int" >&6; }
26609 if test "x$ac_cv_have_u_int" = "xyes" ; then
26610    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26611
26612    have_u_int=1
26613 fi
26614
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26616 $as_echo_n "checking for intmax_t type... " >&6; }
26617 if test "${ac_cv_have_intmax_t+set}" = set; then :
26618   $as_echo_n "(cached) " >&6
26619 else
26620
26621        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26622 /* end confdefs.h.  */
26623
26624               #include <sys/types.h>
26625
26626 int
26627 main ()
26628 {
26629
26630               intmax_t a; a = 1;
26631
26632   ;
26633   return 0;
26634 }
26635 _ACEOF
26636 if ac_fn_c_try_compile "$LINENO"; then :
26637
26638               ac_cv_have_intmax_t="yes"
26639
26640 else
26641
26642               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26643 /* end confdefs.h.  */
26644
26645                      #include <stdint.h>
26646
26647 int
26648 main ()
26649 {
26650
26651                      intmax_t a; a = 1;
26652
26653   ;
26654   return 0;
26655 }
26656 _ACEOF
26657 if ac_fn_c_try_compile "$LINENO"; then :
26658
26659                      ac_cv_have_intmax_t="yes"
26660
26661 else
26662
26663                      ac_cv_have_intmax_t="no"
26664
26665
26666 fi
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26668
26669
26670 fi
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672
26673
26674 fi
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26676 $as_echo "$ac_cv_have_intmax_t" >&6; }
26677 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26678    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26679
26680    have_intmax_t=1
26681 fi
26682
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26684 $as_echo_n "checking for u_intmax_t type... " >&6; }
26685 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26686   $as_echo_n "(cached) " >&6
26687 else
26688
26689        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26690 /* end confdefs.h.  */
26691
26692               #include <sys/types.h>
26693
26694 int
26695 main ()
26696 {
26697
26698               u_intmax_t a; a = 1;
26699
26700   ;
26701   return 0;
26702 }
26703 _ACEOF
26704 if ac_fn_c_try_compile "$LINENO"; then :
26705
26706               ac_cv_have_u_intmax_t="yes"
26707
26708 else
26709
26710               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26711 /* end confdefs.h.  */
26712
26713                      #include <stdint.h>
26714
26715 int
26716 main ()
26717 {
26718
26719                     u_intmax_t a; a = 1;
26720
26721   ;
26722   return 0;
26723 }
26724 _ACEOF
26725 if ac_fn_c_try_compile "$LINENO"; then :
26726
26727                     ac_cv_have_u_intmax_t="yes"
26728
26729 else
26730
26731                     ac_cv_have_u_intmax_t="no"
26732
26733
26734 fi
26735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26736
26737
26738 fi
26739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26740
26741
26742 fi
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26744 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26745 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26746    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26747
26748    have_u_intmax_t=1
26749 fi
26750
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26752 $as_echo_n "checking for intXX_t types... " >&6; }
26753 if test "${ac_cv_have_intxx_t+set}" = set; then :
26754   $as_echo_n "(cached) " >&6
26755 else
26756
26757        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26758 /* end confdefs.h.  */
26759
26760               #include <sys/types.h>
26761
26762 int
26763 main ()
26764 {
26765
26766               int8_t a; int16_t b; int32_t c; a = b = c = 1;
26767
26768   ;
26769   return 0;
26770 }
26771 _ACEOF
26772 if ac_fn_c_try_compile "$LINENO"; then :
26773
26774               ac_cv_have_intxx_t="yes"
26775
26776 else
26777
26778               ac_cv_have_intxx_t="no"
26779
26780
26781 fi
26782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26783
26784
26785 fi
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26787 $as_echo "$ac_cv_have_intxx_t" >&6; }
26788 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26789    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26790
26791    have_intxx_t=1
26792 fi
26793
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26795 $as_echo_n "checking for int64_t type... " >&6; }
26796 if test "${ac_cv_have_int64_t+set}" = set; then :
26797   $as_echo_n "(cached) " >&6
26798 else
26799
26800        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26801 /* end confdefs.h.  */
26802
26803               #include <sys/types.h>
26804
26805 int
26806 main ()
26807 {
26808
26809               int64_t a; a = 1;
26810
26811   ;
26812   return 0;
26813 }
26814 _ACEOF
26815 if ac_fn_c_try_compile "$LINENO"; then :
26816
26817               ac_cv_have_int64_t="yes"
26818
26819 else
26820
26821               ac_cv_have_int64_t="no"
26822
26823
26824 fi
26825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26826
26827
26828 fi
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26830 $as_echo "$ac_cv_have_int64_t" >&6; }
26831 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26832    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26833
26834    have_int64_t=1
26835 fi
26836
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26838 $as_echo_n "checking for u_intXX_t types... " >&6; }
26839 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26840   $as_echo_n "(cached) " >&6
26841 else
26842
26843        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26844 /* end confdefs.h.  */
26845
26846               #include <sys/types.h>
26847
26848 int
26849 main ()
26850 {
26851
26852               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26853
26854   ;
26855   return 0;
26856 }
26857 _ACEOF
26858 if ac_fn_c_try_compile "$LINENO"; then :
26859
26860              ac_cv_have_u_intxx_t="yes"
26861
26862 else
26863
26864              ac_cv_have_u_intxx_t="no"
26865
26866
26867 fi
26868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26869
26870
26871 fi
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26873 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26874 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26875    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26876
26877    have_u_intxx_t=1
26878 fi
26879
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26881 $as_echo_n "checking for u_int64_t types... " >&6; }
26882 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26883   $as_echo_n "(cached) " >&6
26884 else
26885
26886        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26887 /* end confdefs.h.  */
26888
26889               #include <sys/types.h>
26890
26891 int
26892 main ()
26893 {
26894
26895               u_int64_t a; a = 1;
26896
26897   ;
26898   return 0;
26899 }
26900 _ACEOF
26901 if ac_fn_c_try_compile "$LINENO"; then :
26902
26903              ac_cv_have_u_int64_t="yes"
26904
26905 else
26906
26907              ac_cv_have_u_int64_t="no"
26908
26909
26910 fi
26911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26912
26913
26914 fi
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26916 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26917 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26918    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26919
26920    have_u_int64_t=1
26921 fi
26922
26923 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26924     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26925 then
26926    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26927 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
26928    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26929 /* end confdefs.h.  */
26930
26931           #include <sys/bitypes.h>
26932
26933 int
26934 main ()
26935 {
26936
26937           int8_t a; int16_t b; int32_t c;
26938           u_int8_t e; u_int16_t f; u_int32_t g;
26939           a = b = c = e = f = g = 1;
26940
26941   ;
26942   return 0;
26943 }
26944 _ACEOF
26945 if ac_fn_c_try_compile "$LINENO"; then :
26946
26947           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26948
26949           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26950
26951           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
26952
26953           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26954 $as_echo "yes" >&6; }
26955
26956 else
26957
26958           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26959 $as_echo "no" >&6; }
26960
26961
26962 fi
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26964 fi
26965
26966 if test -z "$have_u_intxx_t" ; then
26967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
26968 $as_echo_n "checking for uintXX_t types... " >&6; }
26969 if test "${ac_cv_have_uintxx_t+set}" = set; then :
26970   $as_echo_n "(cached) " >&6
26971 else
26972
26973           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26974 /* end confdefs.h.  */
26975
26976                  #include <sys/types.h>
26977
26978 int
26979 main ()
26980 {
26981
26982                  uint8_t a; uint16_t b;
26983                  uint32_t c; a = b = c = 1;
26984
26985   ;
26986   return 0;
26987 }
26988 _ACEOF
26989 if ac_fn_c_try_compile "$LINENO"; then :
26990
26991                 ac_cv_have_uintxx_t="yes"
26992
26993 else
26994
26995                 ac_cv_have_uintxx_t="no"
26996
26997
26998 fi
26999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27000
27001
27002 fi
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27004 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27005    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27006       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27007
27008    fi
27009 fi
27010
27011 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27012     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27013 then
27014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27015 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27016    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27017 /* end confdefs.h.  */
27018
27019           #include <sys/bitypes.h>
27020
27021 int
27022 main ()
27023 {
27024
27025           int64_t a; u_int64_t b;
27026           a = b = 1;
27027
27028   ;
27029   return 0;
27030 }
27031 _ACEOF
27032 if ac_fn_c_try_compile "$LINENO"; then :
27033
27034           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27035
27036           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27037
27038           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27039 $as_echo "yes" >&6; }
27040
27041 else
27042
27043           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27044 $as_echo "no" >&6; }
27045
27046
27047 fi
27048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27049 fi
27050
27051 if (test -z "$have_uintxx_t" && \
27052     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27053 then
27054    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27055 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27056    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27057 /* end confdefs.h.  */
27058
27059           #include <sys/bitypes.h>
27060
27061 int
27062 main ()
27063 {
27064
27065           uint8_t a; uint16_t b;
27066           uint32_t c; a = b = c = 1;
27067
27068   ;
27069   return 0;
27070 }
27071 _ACEOF
27072 if ac_fn_c_try_compile "$LINENO"; then :
27073
27074           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27075
27076           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27077 $as_echo "yes" >&6; }
27078
27079 else
27080
27081           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27082 $as_echo "no" >&6; }
27083
27084
27085 fi
27086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27087 fi
27088
27089 for ac_func in \
27090    fork \
27091    getcwd \
27092    gethostname \
27093    getpid \
27094    gettimeofday \
27095    setpgid \
27096    setpgrp \
27097    setsid \
27098    signal \
27099    strerror \
27100    strncmp \
27101    strncpy \
27102    vfprintf \
27103
27104 do :
27105   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27107 eval as_val=\$$as_ac_var
27108    if test "x$as_val" = x""yes; then :
27109   cat >>confdefs.h <<_ACEOF
27110 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27111 _ACEOF
27112
27113 else
27114   echo 'configure: cannot find needed function.'; exit 1
27115
27116 fi
27117 done
27118
27119
27120 for ac_func in fchdir
27121 do :
27122   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27123 if test "x$ac_cv_func_fchdir" = x""yes; then :
27124   cat >>confdefs.h <<_ACEOF
27125 #define HAVE_FCHDIR 1
27126 _ACEOF
27127  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27128
27129 fi
27130 done
27131
27132 for ac_func in strtoll
27133 do :
27134   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27135 if test "x$ac_cv_func_strtoll" = x""yes; then :
27136   cat >>confdefs.h <<_ACEOF
27137 #define HAVE_STRTOLL 1
27138 _ACEOF
27139  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27140
27141 fi
27142 done
27143
27144 for ac_func in posix_fadvise
27145 do :
27146   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27147 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27148   cat >>confdefs.h <<_ACEOF
27149 #define HAVE_POSIX_FADVISE 1
27150 _ACEOF
27151
27152 fi
27153 done
27154
27155 for ac_func in fdatasync
27156 do :
27157   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27158 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27159   cat >>confdefs.h <<_ACEOF
27160 #define HAVE_FDATASYNC 1
27161 _ACEOF
27162
27163 fi
27164 done
27165
27166
27167 for ac_func in chflags
27168 do :
27169   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27170 if test "x$ac_cv_func_chflags" = x""yes; then :
27171   cat >>confdefs.h <<_ACEOF
27172 #define HAVE_CHFLAGS 1
27173 _ACEOF
27174
27175 fi
27176 done
27177
27178
27179 for ac_func in snprintf vsnprintf gethostid fseeko
27180 do :
27181   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27183 eval as_val=\$$as_ac_var
27184    if test "x$as_val" = x""yes; then :
27185   cat >>confdefs.h <<_ACEOF
27186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27187 _ACEOF
27188
27189 fi
27190 done
27191
27192
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27194 $as_echo_n "checking for va_copy... " >&6; }
27195 if test "${ba_cv_va_copy+set}" = set; then :
27196   $as_echo_n "(cached) " >&6
27197 else
27198
27199        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27200 /* end confdefs.h.  */
27201
27202               #include <stdarg.h>
27203               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27204               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27205
27206 int
27207 main ()
27208 {
27209
27210               call_use_va_copy(1,2,3)
27211
27212   ;
27213   return 0;
27214 }
27215 _ACEOF
27216 if ac_fn_c_try_link "$LINENO"; then :
27217
27218               ba_cv_va_copy=yes,
27219
27220 else
27221
27222               ba_cv_va_copy=no
27223
27224
27225 fi
27226 rm -f core conftest.err conftest.$ac_objext \
27227     conftest$ac_exeext conftest.$ac_ext
27228
27229
27230 fi
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27232 $as_echo "$ba_cv_va_copy" >&6; }
27233 test $ba_cv_va_copy = yes &&
27234 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27235
27236
27237 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27238 do :
27239   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27241 eval as_val=\$$as_ac_var
27242    if test "x$as_val" = x""yes; then :
27243   cat >>confdefs.h <<_ACEOF
27244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27245 _ACEOF
27246
27247 fi
27248 done
27249
27250
27251 # If resolver functions are not in libc check for -lnsl or -lresolv.
27252 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27253 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27255 $as_echo "using libc's resolver" >&6; }
27256 else
27257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27258 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27259 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27260   $as_echo_n "(cached) " >&6
27261 else
27262   ac_check_lib_save_LIBS=$LIBS
27263 LIBS="-lnsl  $LIBS"
27264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27265 /* end confdefs.h.  */
27266
27267 /* Override any GCC internal prototype to avoid an error.
27268    Use char because int might match the return type of a GCC
27269    builtin and then its argument prototype would still apply.  */
27270 #ifdef __cplusplus
27271 extern "C"
27272 #endif
27273 char gethostbyname_r ();
27274 int
27275 main ()
27276 {
27277 return gethostbyname_r ();
27278   ;
27279   return 0;
27280 }
27281 _ACEOF
27282 if ac_fn_c_try_link "$LINENO"; then :
27283   ac_cv_lib_nsl_gethostbyname_r=yes
27284 else
27285   ac_cv_lib_nsl_gethostbyname_r=no
27286 fi
27287 rm -f core conftest.err conftest.$ac_objext \
27288     conftest$ac_exeext conftest.$ac_ext
27289 LIBS=$ac_check_lib_save_LIBS
27290 fi
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27292 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27293 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27294   cat >>confdefs.h <<_ACEOF
27295 #define HAVE_LIBNSL 1
27296 _ACEOF
27297
27298   LIBS="-lnsl $LIBS"
27299
27300 fi
27301
27302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27303 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27304 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27305   $as_echo_n "(cached) " >&6
27306 else
27307   ac_check_lib_save_LIBS=$LIBS
27308 LIBS="-lresolv  $LIBS"
27309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27310 /* end confdefs.h.  */
27311
27312 /* Override any GCC internal prototype to avoid an error.
27313    Use char because int might match the return type of a GCC
27314    builtin and then its argument prototype would still apply.  */
27315 #ifdef __cplusplus
27316 extern "C"
27317 #endif
27318 char gethostbyname_r ();
27319 int
27320 main ()
27321 {
27322 return gethostbyname_r ();
27323   ;
27324   return 0;
27325 }
27326 _ACEOF
27327 if ac_fn_c_try_link "$LINENO"; then :
27328   ac_cv_lib_resolv_gethostbyname_r=yes
27329 else
27330   ac_cv_lib_resolv_gethostbyname_r=no
27331 fi
27332 rm -f core conftest.err conftest.$ac_objext \
27333     conftest$ac_exeext conftest.$ac_ext
27334 LIBS=$ac_check_lib_save_LIBS
27335 fi
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27337 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27338 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27339   cat >>confdefs.h <<_ACEOF
27340 #define HAVE_LIBRESOLV 1
27341 _ACEOF
27342
27343   LIBS="-lresolv $LIBS"
27344
27345 fi
27346
27347 fi
27348
27349
27350 for ac_func in inet_pton
27351 do :
27352   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27353 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27354   cat >>confdefs.h <<_ACEOF
27355 #define HAVE_INET_PTON 1
27356 _ACEOF
27357  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27358
27359 fi
27360 done
27361
27362 for ac_func in inet_ntop
27363 do :
27364   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27365 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27366   cat >>confdefs.h <<_ACEOF
27367 #define HAVE_INET_NTOP 1
27368 _ACEOF
27369  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27370
27371 fi
27372 done
27373
27374 for ac_func in gethostbyname2
27375 do :
27376   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27377 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27378   cat >>confdefs.h <<_ACEOF
27379 #define HAVE_GETHOSTBYNAME2 1
27380 _ACEOF
27381  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27382
27383 fi
27384 done
27385
27386
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27388 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27389 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27390   $as_echo_n "(cached) " >&6
27391 else
27392
27393        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27394 /* end confdefs.h.  */
27395
27396               #include <sys/socket.h>
27397
27398 int
27399 main ()
27400 {
27401
27402               struct sockaddr s; s.sa_len;
27403
27404   ;
27405   return 0;
27406 }
27407 _ACEOF
27408 if ac_fn_c_try_compile "$LINENO"; then :
27409
27410              ac_cv_struct_sockaddr_sa_len=yes
27411
27412 else
27413   ac_cv_struct_sockaddr_sa_len=no
27414
27415
27416 fi
27417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27418
27419
27420 fi
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27422 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27423
27424 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27425
27426 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27427
27428 fi
27429
27430 for ac_func in strftime
27431 do :
27432   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27433 if test "x$ac_cv_func_strftime" = x""yes; then :
27434   cat >>confdefs.h <<_ACEOF
27435 #define HAVE_STRFTIME 1
27436 _ACEOF
27437
27438 else
27439   # strftime is in -lintl on SCO UNIX.
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27441 $as_echo_n "checking for strftime in -lintl... " >&6; }
27442 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27443   $as_echo_n "(cached) " >&6
27444 else
27445   ac_check_lib_save_LIBS=$LIBS
27446 LIBS="-lintl  $LIBS"
27447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27448 /* end confdefs.h.  */
27449
27450 /* Override any GCC internal prototype to avoid an error.
27451    Use char because int might match the return type of a GCC
27452    builtin and then its argument prototype would still apply.  */
27453 #ifdef __cplusplus
27454 extern "C"
27455 #endif
27456 char strftime ();
27457 int
27458 main ()
27459 {
27460 return strftime ();
27461   ;
27462   return 0;
27463 }
27464 _ACEOF
27465 if ac_fn_c_try_link "$LINENO"; then :
27466   ac_cv_lib_intl_strftime=yes
27467 else
27468   ac_cv_lib_intl_strftime=no
27469 fi
27470 rm -f core conftest.err conftest.$ac_objext \
27471     conftest$ac_exeext conftest.$ac_ext
27472 LIBS=$ac_check_lib_save_LIBS
27473 fi
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27475 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27476 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27477   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27478
27479 LIBS="-lintl $LIBS"
27480 fi
27481
27482 fi
27483 done
27484
27485 for ac_func in vprintf
27486 do :
27487   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27488 if test "x$ac_cv_func_vprintf" = x""yes; then :
27489   cat >>confdefs.h <<_ACEOF
27490 #define HAVE_VPRINTF 1
27491 _ACEOF
27492
27493 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27494 if test "x$ac_cv_func__doprnt" = x""yes; then :
27495
27496 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27497
27498 fi
27499
27500 fi
27501 done
27502
27503
27504 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27505 # for constant arguments.  Useless!
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27507 $as_echo_n "checking for working alloca.h... " >&6; }
27508 if test "${ac_cv_working_alloca_h+set}" = set; then :
27509   $as_echo_n "(cached) " >&6
27510 else
27511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27512 /* end confdefs.h.  */
27513 #include <alloca.h>
27514 int
27515 main ()
27516 {
27517 char *p = (char *) alloca (2 * sizeof (int));
27518                           if (p) return 0;
27519   ;
27520   return 0;
27521 }
27522 _ACEOF
27523 if ac_fn_c_try_link "$LINENO"; then :
27524   ac_cv_working_alloca_h=yes
27525 else
27526   ac_cv_working_alloca_h=no
27527 fi
27528 rm -f core conftest.err conftest.$ac_objext \
27529     conftest$ac_exeext conftest.$ac_ext
27530 fi
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27532 $as_echo "$ac_cv_working_alloca_h" >&6; }
27533 if test $ac_cv_working_alloca_h = yes; then
27534
27535 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27536
27537 fi
27538
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27540 $as_echo_n "checking for alloca... " >&6; }
27541 if test "${ac_cv_func_alloca_works+set}" = set; then :
27542   $as_echo_n "(cached) " >&6
27543 else
27544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27545 /* end confdefs.h.  */
27546 #ifdef __GNUC__
27547 # define alloca __builtin_alloca
27548 #else
27549 # ifdef _MSC_VER
27550 #  include <malloc.h>
27551 #  define alloca _alloca
27552 # else
27553 #  ifdef HAVE_ALLOCA_H
27554 #   include <alloca.h>
27555 #  else
27556 #   ifdef _AIX
27557  #pragma alloca
27558 #   else
27559 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27560 char *alloca ();
27561 #    endif
27562 #   endif
27563 #  endif
27564 # endif
27565 #endif
27566
27567 int
27568 main ()
27569 {
27570 char *p = (char *) alloca (1);
27571                                     if (p) return 0;
27572   ;
27573   return 0;
27574 }
27575 _ACEOF
27576 if ac_fn_c_try_link "$LINENO"; then :
27577   ac_cv_func_alloca_works=yes
27578 else
27579   ac_cv_func_alloca_works=no
27580 fi
27581 rm -f core conftest.err conftest.$ac_objext \
27582     conftest$ac_exeext conftest.$ac_ext
27583 fi
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27585 $as_echo "$ac_cv_func_alloca_works" >&6; }
27586
27587 if test $ac_cv_func_alloca_works = yes; then
27588
27589 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27590
27591 else
27592   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27593 # that cause trouble.  Some versions do not even contain alloca or
27594 # contain a buggy version.  If you still want to use their alloca,
27595 # use ar to extract alloca.o from them instead of compiling alloca.c.
27596
27597 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27598
27599 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27600
27601
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27603 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27604 if test "${ac_cv_os_cray+set}" = set; then :
27605   $as_echo_n "(cached) " >&6
27606 else
27607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27608 /* end confdefs.h.  */
27609 #if defined CRAY && ! defined CRAY2
27610 webecray
27611 #else
27612 wenotbecray
27613 #endif
27614
27615 _ACEOF
27616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27617   $EGREP "webecray" >/dev/null 2>&1; then :
27618   ac_cv_os_cray=yes
27619 else
27620   ac_cv_os_cray=no
27621 fi
27622 rm -f conftest*
27623
27624 fi
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27626 $as_echo "$ac_cv_os_cray" >&6; }
27627 if test $ac_cv_os_cray = yes; then
27628   for ac_func in _getb67 GETB67 getb67; do
27629     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27631 eval as_val=\$$as_ac_var
27632    if test "x$as_val" = x""yes; then :
27633
27634 cat >>confdefs.h <<_ACEOF
27635 #define CRAY_STACKSEG_END $ac_func
27636 _ACEOF
27637
27638     break
27639 fi
27640
27641   done
27642 fi
27643
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27645 $as_echo_n "checking stack direction for C alloca... " >&6; }
27646 if test "${ac_cv_c_stack_direction+set}" = set; then :
27647   $as_echo_n "(cached) " >&6
27648 else
27649   if test "$cross_compiling" = yes; then :
27650   ac_cv_c_stack_direction=0
27651 else
27652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27653 /* end confdefs.h.  */
27654 $ac_includes_default
27655 int
27656 find_stack_direction ()
27657 {
27658   static char *addr = 0;
27659   auto char dummy;
27660   if (addr == 0)
27661     {
27662       addr = &dummy;
27663       return find_stack_direction ();
27664     }
27665   else
27666     return (&dummy > addr) ? 1 : -1;
27667 }
27668
27669 int
27670 main ()
27671 {
27672   return find_stack_direction () < 0;
27673 }
27674 _ACEOF
27675 if ac_fn_c_try_run "$LINENO"; then :
27676   ac_cv_c_stack_direction=1
27677 else
27678   ac_cv_c_stack_direction=-1
27679 fi
27680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27681   conftest.$ac_objext conftest.beam conftest.$ac_ext
27682 fi
27683
27684 fi
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27686 $as_echo "$ac_cv_c_stack_direction" >&6; }
27687 cat >>confdefs.h <<_ACEOF
27688 #define STACK_DIRECTION $ac_cv_c_stack_direction
27689 _ACEOF
27690
27691
27692 fi
27693
27694 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27695 # -lseq on Dynix/PTX, -lgen on Unixware.
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27697 $as_echo_n "checking for library containing getmntent... " >&6; }
27698 if test "${ac_cv_search_getmntent+set}" = set; then :
27699   $as_echo_n "(cached) " >&6
27700 else
27701   ac_func_search_save_LIBS=$LIBS
27702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27703 /* end confdefs.h.  */
27704
27705 /* Override any GCC internal prototype to avoid an error.
27706    Use char because int might match the return type of a GCC
27707    builtin and then its argument prototype would still apply.  */
27708 #ifdef __cplusplus
27709 extern "C"
27710 #endif
27711 char getmntent ();
27712 int
27713 main ()
27714 {
27715 return getmntent ();
27716   ;
27717   return 0;
27718 }
27719 _ACEOF
27720 for ac_lib in '' sun seq gen; do
27721   if test -z "$ac_lib"; then
27722     ac_res="none required"
27723   else
27724     ac_res=-l$ac_lib
27725     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27726   fi
27727   if ac_fn_c_try_link "$LINENO"; then :
27728   ac_cv_search_getmntent=$ac_res
27729 fi
27730 rm -f core conftest.err conftest.$ac_objext \
27731     conftest$ac_exeext
27732   if test "${ac_cv_search_getmntent+set}" = set; then :
27733   break
27734 fi
27735 done
27736 if test "${ac_cv_search_getmntent+set}" = set; then :
27737
27738 else
27739   ac_cv_search_getmntent=no
27740 fi
27741 rm conftest.$ac_ext
27742 LIBS=$ac_func_search_save_LIBS
27743 fi
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27745 $as_echo "$ac_cv_search_getmntent" >&6; }
27746 ac_res=$ac_cv_search_getmntent
27747 if test "$ac_res" != no; then :
27748   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27749   ac_cv_func_getmntent=yes
27750
27751 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27752
27753 else
27754   ac_cv_func_getmntent=no
27755 fi
27756
27757
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27759 $as_echo_n "checking whether closedir returns void... " >&6; }
27760 if test "${ac_cv_func_closedir_void+set}" = set; then :
27761   $as_echo_n "(cached) " >&6
27762 else
27763   if test "$cross_compiling" = yes; then :
27764   ac_cv_func_closedir_void=yes
27765 else
27766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27767 /* end confdefs.h.  */
27768 $ac_includes_default
27769 #include <$ac_header_dirent>
27770 #ifndef __cplusplus
27771 int closedir ();
27772 #endif
27773
27774 int
27775 main ()
27776 {
27777 return closedir (opendir (".")) != 0;
27778   ;
27779   return 0;
27780 }
27781 _ACEOF
27782 if ac_fn_c_try_run "$LINENO"; then :
27783   ac_cv_func_closedir_void=no
27784 else
27785   ac_cv_func_closedir_void=yes
27786 fi
27787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27788   conftest.$ac_objext conftest.beam conftest.$ac_ext
27789 fi
27790
27791 fi
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27793 $as_echo "$ac_cv_func_closedir_void" >&6; }
27794 if test $ac_cv_func_closedir_void = yes; then
27795
27796 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27797
27798 fi
27799
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27801 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27802 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27803   $as_echo_n "(cached) " >&6
27804 else
27805   if test "$cross_compiling" = yes; then :
27806   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27807 else
27808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27809 /* end confdefs.h.  */
27810 $ac_includes_default
27811 int
27812 main ()
27813 {
27814 /* If this system has a BSD-style setpgrp which takes arguments,
27815   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27816   exit successfully. */
27817   return setpgrp (1,1) != -1;
27818   ;
27819   return 0;
27820 }
27821 _ACEOF
27822 if ac_fn_c_try_run "$LINENO"; then :
27823   ac_cv_func_setpgrp_void=no
27824 else
27825   ac_cv_func_setpgrp_void=yes
27826 fi
27827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27828   conftest.$ac_objext conftest.beam conftest.$ac_ext
27829 fi
27830
27831 fi
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27833 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27834 if test $ac_cv_func_setpgrp_void = yes; then
27835
27836 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27837
27838 fi
27839             # AC_FUNC_FNMATCH    dnl use local version
27840
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27842 $as_echo_n "checking for gettext in -lintl... " >&6; }
27843 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27844   $as_echo_n "(cached) " >&6
27845 else
27846   ac_check_lib_save_LIBS=$LIBS
27847 LIBS="-lintl  $LIBS"
27848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27849 /* end confdefs.h.  */
27850
27851 /* Override any GCC internal prototype to avoid an error.
27852    Use char because int might match the return type of a GCC
27853    builtin and then its argument prototype would still apply.  */
27854 #ifdef __cplusplus
27855 extern "C"
27856 #endif
27857 char gettext ();
27858 int
27859 main ()
27860 {
27861 return gettext ();
27862   ;
27863   return 0;
27864 }
27865 _ACEOF
27866 if ac_fn_c_try_link "$LINENO"; then :
27867   ac_cv_lib_intl_gettext=yes
27868 else
27869   ac_cv_lib_intl_gettext=no
27870 fi
27871 rm -f core conftest.err conftest.$ac_objext \
27872     conftest$ac_exeext conftest.$ac_ext
27873 LIBS=$ac_check_lib_save_LIBS
27874 fi
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27876 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27877 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27878   LIBS="$LIBS -lintl"
27879 fi
27880
27881
27882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27883 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27884 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27885   $as_echo_n "(cached) " >&6
27886 else
27887   ac_check_lib_save_LIBS=$LIBS
27888 LIBS="-lsun  $LIBS"
27889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27890 /* end confdefs.h.  */
27891
27892 /* Override any GCC internal prototype to avoid an error.
27893    Use char because int might match the return type of a GCC
27894    builtin and then its argument prototype would still apply.  */
27895 #ifdef __cplusplus
27896 extern "C"
27897 #endif
27898 char getpwnam ();
27899 int
27900 main ()
27901 {
27902 return getpwnam ();
27903   ;
27904   return 0;
27905 }
27906 _ACEOF
27907 if ac_fn_c_try_link "$LINENO"; then :
27908   ac_cv_lib_sun_getpwnam=yes
27909 else
27910   ac_cv_lib_sun_getpwnam=no
27911 fi
27912 rm -f core conftest.err conftest.$ac_objext \
27913     conftest$ac_exeext conftest.$ac_ext
27914 LIBS=$ac_check_lib_save_LIBS
27915 fi
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
27917 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
27918 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
27919   cat >>confdefs.h <<_ACEOF
27920 #define HAVE_LIBSUN 1
27921 _ACEOF
27922
27923   LIBS="-lsun $LIBS"
27924
27925 fi
27926
27927
27928 for ac_header in zlib.h
27929 do :
27930   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27931 if test "x$ac_cv_header_zlib_h" = x""yes; then :
27932   cat >>confdefs.h <<_ACEOF
27933 #define HAVE_ZLIB_H 1
27934 _ACEOF
27935
27936 fi
27937
27938 done
27939
27940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27941 $as_echo_n "checking for deflate in -lz... " >&6; }
27942 if test "${ac_cv_lib_z_deflate+set}" = set; then :
27943   $as_echo_n "(cached) " >&6
27944 else
27945   ac_check_lib_save_LIBS=$LIBS
27946 LIBS="-lz  $LIBS"
27947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27948 /* end confdefs.h.  */
27949
27950 /* Override any GCC internal prototype to avoid an error.
27951    Use char because int might match the return type of a GCC
27952    builtin and then its argument prototype would still apply.  */
27953 #ifdef __cplusplus
27954 extern "C"
27955 #endif
27956 char deflate ();
27957 int
27958 main ()
27959 {
27960 return deflate ();
27961   ;
27962   return 0;
27963 }
27964 _ACEOF
27965 if ac_fn_c_try_link "$LINENO"; then :
27966   ac_cv_lib_z_deflate=yes
27967 else
27968   ac_cv_lib_z_deflate=no
27969 fi
27970 rm -f core conftest.err conftest.$ac_objext \
27971     conftest$ac_exeext conftest.$ac_ext
27972 LIBS=$ac_check_lib_save_LIBS
27973 fi
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27975 $as_echo "$ac_cv_lib_z_deflate" >&6; }
27976 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
27977   FDLIBS="-lz"
27978 fi
27979
27980 have_zlib=no
27981 if test x$FDLIBS = x-lz; then
27982    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
27983
27984    have_zlib=yes
27985 fi
27986
27987 support_acl=auto
27988 # Check whether --enable-acl was given.
27989 if test "${enable_acl+set}" = set; then :
27990   enableval=$enable_acl;
27991        if test x$enableval = xyes; then
27992           support_acl=yes
27993        elif test x$enableval = xno; then
27994           support_acl=no
27995        fi
27996
27997
27998 fi
27999
28000
28001 have_acl=no
28002 have_extended_acl=no
28003 if test x$support_acl = xyes -o x$support_acl = xauto; then
28004    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28005 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28006
28007 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28008
28009 fi
28010
28011
28012    ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28013 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28014
28015           have_acl=yes
28016
28017 else
28018
28019           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28020 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28021 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28022   $as_echo_n "(cached) " >&6
28023 else
28024   ac_check_lib_save_LIBS=$LIBS
28025 LIBS="-lacl  $LIBS"
28026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28027 /* end confdefs.h.  */
28028
28029 /* Override any GCC internal prototype to avoid an error.
28030    Use char because int might match the return type of a GCC
28031    builtin and then its argument prototype would still apply.  */
28032 #ifdef __cplusplus
28033 extern "C"
28034 #endif
28035 char acl_get_file ();
28036 int
28037 main ()
28038 {
28039 return acl_get_file ();
28040   ;
28041   return 0;
28042 }
28043 _ACEOF
28044 if ac_fn_c_try_link "$LINENO"; then :
28045   ac_cv_lib_acl_acl_get_file=yes
28046 else
28047   ac_cv_lib_acl_acl_get_file=no
28048 fi
28049 rm -f core conftest.err conftest.$ac_objext \
28050     conftest$ac_exeext conftest.$ac_ext
28051 LIBS=$ac_check_lib_save_LIBS
28052 fi
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28054 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28055 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28056
28057                  have_acl=yes;
28058                  FDLIBS="-lacl $FDLIBS"
28059
28060 else
28061
28062                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28063 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28064 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28065   $as_echo_n "(cached) " >&6
28066 else
28067   ac_check_lib_save_LIBS=$LIBS
28068 LIBS="-lpacl  $LIBS"
28069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28070 /* end confdefs.h.  */
28071
28072 /* Override any GCC internal prototype to avoid an error.
28073    Use char because int might match the return type of a GCC
28074    builtin and then its argument prototype would still apply.  */
28075 #ifdef __cplusplus
28076 extern "C"
28077 #endif
28078 char acl_get_file ();
28079 int
28080 main ()
28081 {
28082 return acl_get_file ();
28083   ;
28084   return 0;
28085 }
28086 _ACEOF
28087 if ac_fn_c_try_link "$LINENO"; then :
28088   ac_cv_lib_pacl_acl_get_file=yes
28089 else
28090   ac_cv_lib_pacl_acl_get_file=no
28091 fi
28092 rm -f core conftest.err conftest.$ac_objext \
28093     conftest$ac_exeext conftest.$ac_ext
28094 LIBS=$ac_check_lib_save_LIBS
28095 fi
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28097 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28098 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28099
28100                         have_acl=yes;
28101                         FDLIBS="-lpacl $FDLIBS"
28102
28103 else
28104
28105                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28106 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28107 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28108   $as_echo_n "(cached) " >&6
28109 else
28110   ac_check_lib_save_LIBS=$LIBS
28111 LIBS="-lsec  $LIBS"
28112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28113 /* end confdefs.h.  */
28114
28115 /* Override any GCC internal prototype to avoid an error.
28116    Use char because int might match the return type of a GCC
28117    builtin and then its argument prototype would still apply.  */
28118 #ifdef __cplusplus
28119 extern "C"
28120 #endif
28121 char acltotext ();
28122 int
28123 main ()
28124 {
28125 return acltotext ();
28126   ;
28127   return 0;
28128 }
28129 _ACEOF
28130 if ac_fn_c_try_link "$LINENO"; then :
28131   ac_cv_lib_sec_acltotext=yes
28132 else
28133   ac_cv_lib_sec_acltotext=no
28134 fi
28135 rm -f core conftest.err conftest.$ac_objext \
28136     conftest$ac_exeext conftest.$ac_ext
28137 LIBS=$ac_check_lib_save_LIBS
28138 fi
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28140 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28141 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28142
28143                                have_acl=yes;
28144                                FDLIBS="-lsec $FDLIBS"
28145
28146                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28147 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28148 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28149   $as_echo_n "(cached) " >&6
28150 else
28151   ac_check_lib_save_LIBS=$LIBS
28152 LIBS="-lsec  $LIBS"
28153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28154 /* end confdefs.h.  */
28155
28156 /* Override any GCC internal prototype to avoid an error.
28157    Use char because int might match the return type of a GCC
28158    builtin and then its argument prototype would still apply.  */
28159 #ifdef __cplusplus
28160 extern "C"
28161 #endif
28162 char acl_totext ();
28163 int
28164 main ()
28165 {
28166 return acl_totext ();
28167   ;
28168   return 0;
28169 }
28170 _ACEOF
28171 if ac_fn_c_try_link "$LINENO"; then :
28172   ac_cv_lib_sec_acl_totext=yes
28173 else
28174   ac_cv_lib_sec_acl_totext=no
28175 fi
28176 rm -f core conftest.err conftest.$ac_objext \
28177     conftest$ac_exeext conftest.$ac_ext
28178 LIBS=$ac_check_lib_save_LIBS
28179 fi
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28181 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28182 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28183
28184                                       have_extended_acl=yes
28185
28186
28187 fi
28188
28189
28190
28191 fi
28192
28193
28194
28195 fi
28196
28197
28198
28199 fi
28200
28201
28202
28203 fi
28204
28205
28206    if test x$support_acl = xyes -a $have_acl != yes; then
28207       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28208   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28209    else
28210       if test $have_acl = yes; then
28211
28212 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28213
28214       fi
28215
28216       if test $have_extended_acl = yes; then
28217
28218 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28219
28220       fi
28221    fi
28222 fi
28223
28224 support_xattr=auto
28225 # Check whether --enable-xattr was given.
28226 if test "${enable_xattr+set}" = set; then :
28227   enableval=$enable_xattr;
28228        if test x$enableval = xyes; then
28229           support_xattr=yes
28230        elif test x$enableval = xno; then
28231           support_xattr=no
28232        fi
28233
28234
28235 fi
28236
28237
28238 have_xattr=no
28239 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28240             ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28241 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28242
28243 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28244
28245 fi
28246
28247
28248    ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28249 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28250
28251 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28252
28253 fi
28254
28255
28256    for ac_func in extattr_get_link extattr_set_link extattr_list_link
28257 do :
28258   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28260 eval as_val=\$$as_ac_var
28261    if test "x$as_val" = x""yes; then :
28262   cat >>confdefs.h <<_ACEOF
28263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28264 _ACEOF
28265
28266           have_xattr=yes
28267
28268 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28269
28270
28271 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28272
28273
28274 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28275
28276
28277
28278 fi
28279 done
28280
28281
28282    if test $have_xattr = no; then
28283       for ac_func in extattr_get_file extattr_set_file extattr_list_file
28284 do :
28285   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28286 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28287 eval as_val=\$$as_ac_var
28288    if test "x$as_val" = x""yes; then :
28289   cat >>confdefs.h <<_ACEOF
28290 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28291 _ACEOF
28292
28293              have_xattr=yes
28294
28295 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28296
28297
28298 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28299
28300
28301 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28302
28303
28304
28305 fi
28306 done
28307
28308    fi
28309
28310    if test $have_xattr = yes; then
28311       have_extattr_string_in_libc=no
28312       for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28313 do :
28314   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28315 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28316 eval as_val=\$$as_ac_var
28317    if test "x$as_val" = x""yes; then :
28318   cat >>confdefs.h <<_ACEOF
28319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28320 _ACEOF
28321
28322              have_extattr_string_in_libc=yes
28323
28324 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28325
28326
28327 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28328
28329
28330
28331 fi
28332 done
28333
28334
28335                         if test $have_extattr_string_in_libc = no; then
28336          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28337 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28338 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28339   $as_echo_n "(cached) " >&6
28340 else
28341   ac_check_lib_save_LIBS=$LIBS
28342 LIBS="-lutil  $LIBS"
28343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28344 /* end confdefs.h.  */
28345
28346 /* Override any GCC internal prototype to avoid an error.
28347    Use char because int might match the return type of a GCC
28348    builtin and then its argument prototype would still apply.  */
28349 #ifdef __cplusplus
28350 extern "C"
28351 #endif
28352 char extattr_namespace_to_string extattr_string_to_namespace ();
28353 int
28354 main ()
28355 {
28356 return extattr_namespace_to_string extattr_string_to_namespace ();
28357   ;
28358   return 0;
28359 }
28360 _ACEOF
28361 if ac_fn_c_try_link "$LINENO"; then :
28362   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28363 else
28364   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28365 fi
28366 rm -f core conftest.err conftest.$ac_objext \
28367     conftest$ac_exeext conftest.$ac_ext
28368 LIBS=$ac_check_lib_save_LIBS
28369 fi
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28371 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28372 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28373
28374
28375 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28376
28377
28378 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28379
28380                 FDLIBS="-lutil $FDLIBS"
28381
28382
28383 fi
28384
28385       fi
28386    fi
28387
28388             if test $have_xattr = no; then
28389       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28390 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28391
28392 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28393
28394 fi
28395
28396
28397       for ac_func in llistxattr lgetxattr lsetxattr
28398 do :
28399   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28401 eval as_val=\$$as_ac_var
28402    if test "x$as_val" = x""yes; then :
28403   cat >>confdefs.h <<_ACEOF
28404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28405 _ACEOF
28406
28407              have_xattr=yes
28408
28409 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28410
28411
28412 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28413
28414
28415 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28416
28417
28418
28419 fi
28420 done
28421
28422
28423       if test $have_xattr = no; then
28424          for ac_func in listxattr getxattr setxattr
28425 do :
28426   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28428 eval as_val=\$$as_ac_var
28429    if test "x$as_val" = x""yes; then :
28430   cat >>confdefs.h <<_ACEOF
28431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28432 _ACEOF
28433
28434                 have_xattr=yes
28435
28436 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28437
28438
28439 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28440
28441
28442 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28443
28444
28445
28446 fi
28447 done
28448
28449       fi
28450    fi
28451
28452             if test $have_xattr = no; then
28453       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28454 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28455
28456 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28457
28458 fi
28459
28460
28461       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28462 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28463
28464 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28465
28466 fi
28467
28468
28469       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28470 if test "x$ac_cv_header_attr_h" = x""yes; then :
28471
28472 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28473
28474 fi
28475
28476
28477
28478       for ac_func in openat fstatat unlinkat fchownat futimesat
28479 do :
28480   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28481 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28482 eval as_val=\$$as_ac_var
28483    if test "x$as_val" = x""yes; then :
28484   cat >>confdefs.h <<_ACEOF
28485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28486 _ACEOF
28487
28488              have_xattr=yes
28489
28490 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28491
28492
28493 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28494
28495
28496 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28497
28498
28499 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28500
28501
28502 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28503
28504
28505
28506 fi
28507 done
28508
28509
28510       if test $have_xattr = yes; then
28511          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28512 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28513 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28514   $as_echo_n "(cached) " >&6
28515 else
28516   ac_check_lib_save_LIBS=$LIBS
28517 LIBS="-lnvpair  $LIBS"
28518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28519 /* end confdefs.h.  */
28520
28521 /* Override any GCC internal prototype to avoid an error.
28522    Use char because int might match the return type of a GCC
28523    builtin and then its argument prototype would still apply.  */
28524 #ifdef __cplusplus
28525 extern "C"
28526 #endif
28527 char nvlist_next_nvpair ();
28528 int
28529 main ()
28530 {
28531 return nvlist_next_nvpair ();
28532   ;
28533   return 0;
28534 }
28535 _ACEOF
28536 if ac_fn_c_try_link "$LINENO"; then :
28537   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28538 else
28539   ac_cv_lib_nvpair_nvlist_next_nvpair=no
28540 fi
28541 rm -f core conftest.err conftest.$ac_objext \
28542     conftest$ac_exeext conftest.$ac_ext
28543 LIBS=$ac_check_lib_save_LIBS
28544 fi
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28546 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28547 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28548
28549
28550 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28551
28552                 FDLIBS="-lnvpair $FDLIBS"
28553
28554
28555 fi
28556
28557       fi
28558    fi
28559
28560    if test x$support_xattr = xyes -a $have_xattr != yes; then
28561       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28562   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28563    else
28564       if test $have_xattr = yes; then
28565
28566 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28567
28568       fi
28569    fi
28570 fi
28571
28572 PTHREAD_LIB=""
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28574 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28575 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28576   $as_echo_n "(cached) " >&6
28577 else
28578   ac_check_lib_save_LIBS=$LIBS
28579 LIBS="-lpthread  $LIBS"
28580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28581 /* end confdefs.h.  */
28582
28583 /* Override any GCC internal prototype to avoid an error.
28584    Use char because int might match the return type of a GCC
28585    builtin and then its argument prototype would still apply.  */
28586 #ifdef __cplusplus
28587 extern "C"
28588 #endif
28589 char pthread_create ();
28590 int
28591 main ()
28592 {
28593 return pthread_create ();
28594   ;
28595   return 0;
28596 }
28597 _ACEOF
28598 if ac_fn_c_try_link "$LINENO"; then :
28599   ac_cv_lib_pthread_pthread_create=yes
28600 else
28601   ac_cv_lib_pthread_pthread_create=no
28602 fi
28603 rm -f core conftest.err conftest.$ac_objext \
28604     conftest$ac_exeext conftest.$ac_ext
28605 LIBS=$ac_check_lib_save_LIBS
28606 fi
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28608 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28609 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28610   PTHREAD_LIB="-lpthread"
28611 else
28612
28613        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28614 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28615 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28616   $as_echo_n "(cached) " >&6
28617 else
28618   ac_check_lib_save_LIBS=$LIBS
28619 LIBS="-lpthreads  $LIBS"
28620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28621 /* end confdefs.h.  */
28622
28623 /* Override any GCC internal prototype to avoid an error.
28624    Use char because int might match the return type of a GCC
28625    builtin and then its argument prototype would still apply.  */
28626 #ifdef __cplusplus
28627 extern "C"
28628 #endif
28629 char pthread_create ();
28630 int
28631 main ()
28632 {
28633 return pthread_create ();
28634   ;
28635   return 0;
28636 }
28637 _ACEOF
28638 if ac_fn_c_try_link "$LINENO"; then :
28639   ac_cv_lib_pthreads_pthread_create=yes
28640 else
28641   ac_cv_lib_pthreads_pthread_create=no
28642 fi
28643 rm -f core conftest.err conftest.$ac_objext \
28644     conftest$ac_exeext conftest.$ac_ext
28645 LIBS=$ac_check_lib_save_LIBS
28646 fi
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28648 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28649 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28650   PTHREAD_LIB="-lpthreads"
28651 else
28652
28653               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28654 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28655 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28656   $as_echo_n "(cached) " >&6
28657 else
28658   ac_check_lib_save_LIBS=$LIBS
28659 LIBS="-lc_r  $LIBS"
28660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28661 /* end confdefs.h.  */
28662
28663 /* Override any GCC internal prototype to avoid an error.
28664    Use char because int might match the return type of a GCC
28665    builtin and then its argument prototype would still apply.  */
28666 #ifdef __cplusplus
28667 extern "C"
28668 #endif
28669 char pthread_create ();
28670 int
28671 main ()
28672 {
28673 return pthread_create ();
28674   ;
28675   return 0;
28676 }
28677 _ACEOF
28678 if ac_fn_c_try_link "$LINENO"; then :
28679   ac_cv_lib_c_r_pthread_create=yes
28680 else
28681   ac_cv_lib_c_r_pthread_create=no
28682 fi
28683 rm -f core conftest.err conftest.$ac_objext \
28684     conftest$ac_exeext conftest.$ac_ext
28685 LIBS=$ac_check_lib_save_LIBS
28686 fi
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28688 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28689 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28690   PTHREAD_LIB="-lc_r"
28691 else
28692
28693                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28694 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28695
28696 fi
28697
28698
28699
28700 fi
28701
28702
28703
28704 fi
28705
28706
28707
28708 fi
28709
28710
28711 for ac_header in sys/prctl.h sys/capability.h
28712 do :
28713   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28714 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28715 eval as_val=\$$as_ac_Header
28716    if test "x$as_val" = x""yes; then :
28717   cat >>confdefs.h <<_ACEOF
28718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28719 _ACEOF
28720
28721 fi
28722
28723 done
28724
28725 for ac_func in prctl setreuid
28726 do :
28727   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28729 eval as_val=\$$as_ac_var
28730    if test "x$as_val" = x""yes; then :
28731   cat >>confdefs.h <<_ACEOF
28732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28733 _ACEOF
28734
28735 fi
28736 done
28737
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28739 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28740 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28741   $as_echo_n "(cached) " >&6
28742 else
28743   ac_check_lib_save_LIBS=$LIBS
28744 LIBS="-lcap  $LIBS"
28745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28746 /* end confdefs.h.  */
28747
28748 /* Override any GCC internal prototype to avoid an error.
28749    Use char because int might match the return type of a GCC
28750    builtin and then its argument prototype would still apply.  */
28751 #ifdef __cplusplus
28752 extern "C"
28753 #endif
28754 char cap_set_proc ();
28755 int
28756 main ()
28757 {
28758 return cap_set_proc ();
28759   ;
28760   return 0;
28761 }
28762 _ACEOF
28763 if ac_fn_c_try_link "$LINENO"; then :
28764   ac_cv_lib_cap_cap_set_proc=yes
28765 else
28766   ac_cv_lib_cap_cap_set_proc=no
28767 fi
28768 rm -f core conftest.err conftest.$ac_objext \
28769     conftest$ac_exeext conftest.$ac_ext
28770 LIBS=$ac_check_lib_save_LIBS
28771 fi
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28773 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28774 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28775   CAP_LIBS="-lcap"
28776 else
28777   CAP_LIBS=
28778 fi
28779
28780 if test x$CAP_LIBS = x-lcap; then
28781
28782 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28783
28784 fi
28785
28786
28787
28788 $as_echo "#define FDLIBS 1" >>confdefs.h
28789
28790
28791 CFLAGS=${CFLAGS--O}
28792
28793 if test x$have_gcc = xyes ; then
28794    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28795    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28796 fi
28797 LDFLAGS=${LDFLAGS--O}
28798 DB_LIBS="${SQL_LFLAGS}"
28799 CPPFLAGS="$CPPFLAGS"
28800 CFLAGS="$CFLAGS"
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816
28817 OBJLIST=
28818
28819
28820 lld="lld"
28821 llu="llu"
28822
28823 WCFLAGS=
28824 WLDFLAGS=
28825
28826 PFILES="platforms/Makefile"
28827 PSCMD="ps -e"
28828 WIN32=
28829 MACOSX=
28830
28831 hostname=`uname -n | cut -d '.' -f 1`
28832 if test x${hostname} = x ; then
28833    hostname="localhost"
28834 fi
28835 ping -c 1 $hostname 2>/dev/null 1>/dev/null
28836 if test ! $? = 0; then
28837   hostname="localhost"
28838 fi
28839
28840 case "$DISTNAME" in
28841 aix)
28842    DISTVER=`uname -r`
28843    PSCMD="ps -e -o pid,comm"
28844    PFILES="${PFILES} \
28845       platforms/aix/Makefile"
28846    TAPEDRIVE="/dev/rmt0.1"
28847   ;;
28848 alpha)
28849    DISTVER=`uname -r`
28850    PTHREAD_LIB="-lpthread -lexc"
28851    if test "${CC}" = "gcc" ; then
28852       lld="lld"
28853       llu="llu"
28854    else
28855       lld="ld"
28856       llu="lu"
28857    fi
28858    TAPEDRIVE="/dev/nrmt0"
28859   ;;
28860 bsdi)
28861    DISTVER=`uname -a |awk '{print $3}'`
28862    TAPEDRIVE="/dev/nrmt0"
28863    PTHREAD_LIB="-pthread"
28864    CFLAGS="${CFLAGS} -pthread"
28865    PSCMD="ps -ax -o pid,command"
28866    lld="qd"
28867    llu="qu"
28868    PFILES="${PFILES} \
28869        platforms/bsdi/Makefile \
28870        platforms/bsdi/bacula-fd \
28871        platforms/bsdi/bacula-sd \
28872        platforms/bsdi/bacula-dir"
28873    largefile_support="yes"
28874   ;;
28875 cygwin)
28876    DISTVER=`uname -a |awk '{print $3}'`
28877    TAPEDRIVE="/dev/nrst0"
28878    WIN32=win32
28879    WCFLAGS="-mwindows"
28880    WLDFLAGS="-mwindows"
28881   ;;
28882 darwin)
28883    DISTVER=`uname -r`
28884    TAPEDRIVE="/dev/nst0"
28885    PSCMD="ps -e -o pid,command"
28886    MACOSX=macosx
28887    PFILES="${PFILES} \
28888       platforms/darwin/Makefile"
28889   ;;
28890 osx)
28891    DISTVER=`uname -r`
28892    TAPEDRIVE="/dev/nst0"
28893    PSCMD="ps -e -o pid,command"
28894    MACOSX=macosx
28895    PFILES="${PFILES} \
28896       platforms/osx/Makefile"
28897   ;;
28898 debian)
28899    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
28900       DISTNAME="ubuntu"
28901    fi
28902    DISTVER=`cat /etc/debian_version`
28903    if test -f /etc/lsb-release ; then
28904       . /etc/lsb-release
28905       if test "x$DISTRIB_ID" != "x" ; then
28906          DISTNAME=$DISTRIB_ID
28907       fi
28908       if test "x$DISTRIB_RELEASE" != "x" ; then
28909          DISTVER=$DISTRIB_RELEASE
28910       fi
28911    fi
28912    if test "$DISTNAME" = "Ubuntu" ; then
28913       DISTNAME="ubuntu"
28914    fi
28915    TAPEDRIVE="/dev/nst0"
28916    PSCMD="ps -e -o pid,command"
28917    if test "$DISTNAME" = "ubuntu" ; then
28918       PFILES="${PFILES} \
28919          platforms/ubuntu/Makefile \
28920          platforms/ubuntu/bacula-fd \
28921          platforms/ubuntu/bacula-sd \
28922          platforms/ubuntu/bacula-dir"
28923    else
28924       PFILES="${PFILES} \
28925          platforms/debian/Makefile \
28926          platforms/debian/bacula-fd \
28927          platforms/debian/bacula-sd \
28928          platforms/debian/bacula-dir"
28929    fi
28930   ;;
28931 freebsd)
28932    DISTVER=`uname -a |awk '{print $3}'`
28933    VER=`echo $DISTVER | cut -c 1`
28934    if test x$VER = x4 ; then
28935       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
28936       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
28937    fi
28938    lld="qd"
28939    llu="qu"
28940    TAPEDRIVE="/dev/nrsa0"
28941    PSCMD="ps -ax -o pid,command"
28942    PFILES="${PFILES} \
28943        platforms/freebsd/Makefile \
28944        platforms/freebsd/bacula-fd \
28945        platforms/freebsd/bacula-sd \
28946        platforms/freebsd/bacula-dir"
28947    largefile_support="yes"
28948   ;;
28949 hpux)
28950    PSCMD="UNIX95=1; ps -e -o pid,comm"
28951    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
28952    DISTVER=`uname -r`
28953    TAPEDRIVE="/dev/rmt/0hnb"
28954    PTHREAD_LIB="-lpthread"
28955    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
28956
28957   ;;
28958 irix)
28959    DISTVER=`uname -r`
28960    TAPEDRIVE="/dev/rmt/0cbn"
28961    PSCMD="ps -e -o pid,comm"
28962    PFILES="${PFILES} \
28963        platforms/irix/Makefile \
28964        platforms/irix/bacula-fd \
28965        platforms/irix/bacula-sd \
28966        platforms/irix/bacula-dir"
28967   ;;
28968 netbsd)
28969    DISTVER=`uname -a |awk '{print $3}'`
28970    lld="qd"
28971    llu="qu"
28972    TAPEDRIVE="/dev/nrst0"
28973    PSCMD="ps -ax -o pid,command"
28974    PTHREAD_LIB="-pthread"
28975    CFLAGS="${CFLAGS} -pthread"
28976   ;;
28977 openbsd)
28978    DISTVER=`uname -a |awk '{print $3}'`
28979    lld="qd"
28980    llu="qu"
28981    TAPEDRIVE="/dev/nrst0"
28982    PSCMD="ps -ax -o pid,command"
28983    PTHREAD_LIB="-pthread"
28984    CFLAGS="${CFLAGS} -pthread"
28985    PFILES="${PFILES} \
28986        platforms/openbsd/Makefile \
28987        platforms/openbsd/bacula-fd \
28988        platforms/openbsd/bacula-sd \
28989        platforms/openbsd/bacula-dir"
28990   ;;
28991 redhat)
28992    if test -f /etc/whitebox-release ; then
28993       f=/etc/whitebox-release
28994    else
28995       f=/etc/redhat-release
28996    fi
28997    if test `cat $f | grep release |\
28998          cut -f 3 -d ' '`x = "Enterprise"x ; then
28999       DISTVER="Enterprise "`cat $f | grep release |\
29000           cut -f 6 -d ' '`
29001    else
29002        DISTVER=`cat /etc/redhat-release | grep release |\
29003            cut -f 5 -d ' '`
29004    fi
29005    TAPEDRIVE="/dev/nst0"
29006    PSCMD="ps -e -o pid,command"
29007    PFILES="${PFILES} \
29008        platforms/redhat/Makefile \
29009        platforms/redhat/bacula-fd \
29010        platforms/redhat/bacula-sd \
29011        platforms/redhat/bacula-dir
29012        "
29013   ;;
29014 mandrake)
29015    DISTVER=`cat /etc/mandrake-release | grep release |\
29016       cut -f 5 -d ' '`
29017    TAPEDRIVE="/dev/nst0"
29018    PSCMD="ps -e -o pid,command"
29019    PFILES="${PFILES} \
29020        platforms/mandrake/Makefile \
29021        platforms/mandrake/bacula-fd \
29022        platforms/mandrake/bacula-sd \
29023        platforms/mandrake/bacula-dir \
29024        platforms/mandrake/bacula.spec \
29025        "
29026   ;;
29027 gentoo)
29028    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29029    TAPEDRIVE="/dev/nst0"
29030    PSCMD="ps -e -o pid,command"
29031    PFILES="${PFILES} \
29032        platforms/gentoo/Makefile \
29033     platforms/gentoo/bacula-init \
29034        platforms/gentoo/bacula-fd \
29035        platforms/gentoo/bacula-sd \
29036        platforms/gentoo/bacula-dir"
29037   ;;
29038 slackware)
29039    DISTVER=`cat /etc/slackware-version`
29040    TAPEDRIVE="/dev/nst0"
29041    PSCMD="ps -e -o pid,command"
29042    PFILES="${PFILES} \
29043        platforms/slackware/Makefile \
29044        platforms/slackware/rc.bacula-fd \
29045        platforms/slackware/rc.bacula-sd \
29046        platforms/slackware/rc.bacula-dir\
29047        platforms/slackware/functions.bacula"
29048   ;;
29049 solaris)
29050    DISTVER=`uname -r`
29051    TAPEDRIVE="/dev/rmt/0cbn"
29052    PSCMD="ps -e -o pid,comm"
29053    PFILES="${PFILES} \
29054        platforms/solaris/Makefile \
29055        platforms/solaris/bacula-fd \
29056        platforms/solaris/bacula-sd \
29057        platforms/solaris/bacula-dir"
29058    if test x$DISTVER = x5.6 ; then
29059        $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29060
29061    fi
29062    LIBS="$LIBS -lresolv"
29063   ;;
29064 suse)
29065    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29066        cut -f 3 -d ' '`
29067    TAPEDRIVE="/dev/nst0"
29068    PSCMD="ps -e -o pid,command"
29069    PFILES="${PFILES} \
29070        platforms/suse/Makefile \
29071        platforms/suse/bacula-fd \
29072        platforms/suse/bacula-sd \
29073        platforms/suse/bacula-dir \
29074        platforms/suse/bacula \
29075        platforms/suse/bacula.spec"
29076   ;;
29077 suse5)
29078    DISTNAME=suse
29079    DISTVER=5.x
29080    TAPEDRIVE="/dev/nst0"
29081    PSCMD="ps -e -o pid,command"
29082    PFILES="${PFILES} \
29083        platforms/suse/Makefile \
29084        platforms/suse/bacula-fd \
29085        platforms/suse/bacula-sd \
29086        platforms/suse/bacula-dir"
29087   ;;
29088 unknown)
29089    DISTVER=unknown
29090    TAPEDRIVE="/dev/nst0"
29091   ;;
29092 *)
29093   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29094   ;;
29095 esac
29096
29097
29098
29099 LIBS="$PTHREAD_LIB $LIBS"
29100
29101 cat >>confdefs.h <<_ACEOF
29102 #define lld "$lld"
29103 _ACEOF
29104
29105 cat >>confdefs.h <<_ACEOF
29106 #define llu "$llu"
29107 _ACEOF
29108
29109
29110
29111
29112
29113
29114
29115
29116 MCOMMON=./autoconf/Make.common
29117
29118
29119 if test "x${subsysdir}" = "x${sbindir}" ; then
29120    echo " "
29121    echo " "
29122    echo "You have set both --sbindir and --with-subsys-dir"
29123    echo "  equal to: ${subsysdir} "
29124    echo "This is not permitted. Please reconfigure."
29125    echo " "
29126    echo "Aborting configuration ..."
29127    echo " "
29128    echo " "
29129    exit 1
29130 fi
29131
29132 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
29133
29134 ac_config_commands="$ac_config_commands default"
29135
29136 cat >confcache <<\_ACEOF
29137 # This file is a shell script that caches the results of configure
29138 # tests run on this system so they can be shared between configure
29139 # scripts and configure runs, see configure's option --config-cache.
29140 # It is not useful on other systems.  If it contains results you don't
29141 # want to keep, you may remove or edit it.
29142 #
29143 # config.status only pays attention to the cache file if you give it
29144 # the --recheck option to rerun configure.
29145 #
29146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29148 # following values.
29149
29150 _ACEOF
29151
29152 # The following way of writing the cache mishandles newlines in values,
29153 # but we know of no workaround that is simple, portable, and efficient.
29154 # So, we kill variables containing newlines.
29155 # Ultrix sh set writes to stderr and can't be redirected directly,
29156 # and sets the high bit in the cache file unless we assign to the vars.
29157 (
29158   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29159     eval ac_val=\$$ac_var
29160     case $ac_val in #(
29161     *${as_nl}*)
29162       case $ac_var in #(
29163       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29165       esac
29166       case $ac_var in #(
29167       _ | IFS | as_nl) ;; #(
29168       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29169       *) { eval $ac_var=; unset $ac_var;} ;;
29170       esac ;;
29171     esac
29172   done
29173
29174   (set) 2>&1 |
29175     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29176     *${as_nl}ac_space=\ *)
29177       # `set' does not quote correctly, so add quotes: double-quote
29178       # substitution turns \\\\ into \\, and sed turns \\ into \.
29179       sed -n \
29180         "s/'/'\\\\''/g;
29181           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29182       ;; #(
29183     *)
29184       # `set' quotes correctly as required by POSIX, so do not add quotes.
29185       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29186       ;;
29187     esac |
29188     sort
29189 ) |
29190   sed '
29191      /^ac_cv_env_/b end
29192      t clear
29193      :clear
29194      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29195      t end
29196      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29197      :end' >>confcache
29198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29199   if test -w "$cache_file"; then
29200     test "x$cache_file" != "x/dev/null" &&
29201       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29202 $as_echo "$as_me: updating cache $cache_file" >&6;}
29203     cat confcache >$cache_file
29204   else
29205     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29206 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29207   fi
29208 fi
29209 rm -f confcache
29210
29211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29212 # Let make expand exec_prefix.
29213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29214
29215 DEFS=-DHAVE_CONFIG_H
29216
29217 ac_libobjs=
29218 ac_ltlibobjs=
29219 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29220   # 1. Remove the extension, and $U if already installed.
29221   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29222   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29223   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29224   #    will be set to the directory where LIBOBJS objects are built.
29225   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29226   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29227 done
29228 LIBOBJS=$ac_libobjs
29229
29230 LTLIBOBJS=$ac_ltlibobjs
29231
29232
29233
29234 : ${CONFIG_STATUS=./config.status}
29235 ac_write_fail=0
29236 ac_clean_files_save=$ac_clean_files
29237 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29239 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29240 as_write_fail=0
29241 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29242 #! $SHELL
29243 # Generated by $as_me.
29244 # Run this file to recreate the current configuration.
29245 # Compiler output produced by configure, useful for debugging
29246 # configure, is in config.log if it exists.
29247
29248 debug=false
29249 ac_cs_recheck=false
29250 ac_cs_silent=false
29251
29252 SHELL=\${CONFIG_SHELL-$SHELL}
29253 export SHELL
29254 _ASEOF
29255 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29256 ## -------------------- ##
29257 ## M4sh Initialization. ##
29258 ## -------------------- ##
29259
29260 # Be more Bourne compatible
29261 DUALCASE=1; export DUALCASE # for MKS sh
29262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29263   emulate sh
29264   NULLCMD=:
29265   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29266   # is contrary to our usage.  Disable this feature.
29267   alias -g '${1+"$@"}'='"$@"'
29268   setopt NO_GLOB_SUBST
29269 else
29270   case `(set -o) 2>/dev/null` in #(
29271   *posix*) :
29272     set -o posix ;; #(
29273   *) :
29274      ;;
29275 esac
29276 fi
29277
29278
29279 as_nl='
29280 '
29281 export as_nl
29282 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29283 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29284 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29285 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29286 # Prefer a ksh shell builtin over an external printf program on Solaris,
29287 # but without wasting forks for bash or zsh.
29288 if test -z "$BASH_VERSION$ZSH_VERSION" \
29289     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29290   as_echo='print -r --'
29291   as_echo_n='print -rn --'
29292 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29293   as_echo='printf %s\n'
29294   as_echo_n='printf %s'
29295 else
29296   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29297     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29298     as_echo_n='/usr/ucb/echo -n'
29299   else
29300     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29301     as_echo_n_body='eval
29302       arg=$1;
29303       case $arg in #(
29304       *"$as_nl"*)
29305         expr "X$arg" : "X\\(.*\\)$as_nl";
29306         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29307       esac;
29308       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29309     '
29310     export as_echo_n_body
29311     as_echo_n='sh -c $as_echo_n_body as_echo'
29312   fi
29313   export as_echo_body
29314   as_echo='sh -c $as_echo_body as_echo'
29315 fi
29316
29317 # The user is always right.
29318 if test "${PATH_SEPARATOR+set}" != set; then
29319   PATH_SEPARATOR=:
29320   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29321     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29322       PATH_SEPARATOR=';'
29323   }
29324 fi
29325
29326
29327 # IFS
29328 # We need space, tab and new line, in precisely that order.  Quoting is
29329 # there to prevent editors from complaining about space-tab.
29330 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29331 # splitting by setting IFS to empty value.)
29332 IFS=" ""        $as_nl"
29333
29334 # Find who we are.  Look in the path if we contain no directory separator.
29335 case $0 in #((
29336   *[\\/]* ) as_myself=$0 ;;
29337   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29338 for as_dir in $PATH
29339 do
29340   IFS=$as_save_IFS
29341   test -z "$as_dir" && as_dir=.
29342     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29343   done
29344 IFS=$as_save_IFS
29345
29346      ;;
29347 esac
29348 # We did not find ourselves, most probably we were run as `sh COMMAND'
29349 # in which case we are not to be found in the path.
29350 if test "x$as_myself" = x; then
29351   as_myself=$0
29352 fi
29353 if test ! -f "$as_myself"; then
29354   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29355   exit 1
29356 fi
29357
29358 # Unset variables that we do not need and which cause bugs (e.g. in
29359 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29360 # suppresses any "Segmentation fault" message there.  '((' could
29361 # trigger a bug in pdksh 5.2.14.
29362 for as_var in BASH_ENV ENV MAIL MAILPATH
29363 do eval test x\${$as_var+set} = xset \
29364   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29365 done
29366 PS1='$ '
29367 PS2='> '
29368 PS4='+ '
29369
29370 # NLS nuisances.
29371 LC_ALL=C
29372 export LC_ALL
29373 LANGUAGE=C
29374 export LANGUAGE
29375
29376 # CDPATH.
29377 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29378
29379
29380 # as_fn_error ERROR [LINENO LOG_FD]
29381 # ---------------------------------
29382 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29383 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29384 # script with status $?, using 1 if that was 0.
29385 as_fn_error ()
29386 {
29387   as_status=$?; test $as_status -eq 0 && as_status=1
29388   if test "$3"; then
29389     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29390     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29391   fi
29392   $as_echo "$as_me: error: $1" >&2
29393   as_fn_exit $as_status
29394 } # as_fn_error
29395
29396
29397 # as_fn_set_status STATUS
29398 # -----------------------
29399 # Set $? to STATUS, without forking.
29400 as_fn_set_status ()
29401 {
29402   return $1
29403 } # as_fn_set_status
29404
29405 # as_fn_exit STATUS
29406 # -----------------
29407 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29408 as_fn_exit ()
29409 {
29410   set +e
29411   as_fn_set_status $1
29412   exit $1
29413 } # as_fn_exit
29414
29415 # as_fn_unset VAR
29416 # ---------------
29417 # Portably unset VAR.
29418 as_fn_unset ()
29419 {
29420   { eval $1=; unset $1;}
29421 }
29422 as_unset=as_fn_unset
29423 # as_fn_append VAR VALUE
29424 # ----------------------
29425 # Append the text in VALUE to the end of the definition contained in VAR. Take
29426 # advantage of any shell optimizations that allow amortized linear growth over
29427 # repeated appends, instead of the typical quadratic growth present in naive
29428 # implementations.
29429 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29430   eval 'as_fn_append ()
29431   {
29432     eval $1+=\$2
29433   }'
29434 else
29435   as_fn_append ()
29436   {
29437     eval $1=\$$1\$2
29438   }
29439 fi # as_fn_append
29440
29441 # as_fn_arith ARG...
29442 # ------------------
29443 # Perform arithmetic evaluation on the ARGs, and store the result in the
29444 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29445 # must be portable across $(()) and expr.
29446 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29447   eval 'as_fn_arith ()
29448   {
29449     as_val=$(( $* ))
29450   }'
29451 else
29452   as_fn_arith ()
29453   {
29454     as_val=`expr "$@" || test $? -eq 1`
29455   }
29456 fi # as_fn_arith
29457
29458
29459 if expr a : '\(a\)' >/dev/null 2>&1 &&
29460    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29461   as_expr=expr
29462 else
29463   as_expr=false
29464 fi
29465
29466 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29467   as_basename=basename
29468 else
29469   as_basename=false
29470 fi
29471
29472 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29473   as_dirname=dirname
29474 else
29475   as_dirname=false
29476 fi
29477
29478 as_me=`$as_basename -- "$0" ||
29479 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29480          X"$0" : 'X\(//\)$' \| \
29481          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29482 $as_echo X/"$0" |
29483     sed '/^.*\/\([^/][^/]*\)\/*$/{
29484             s//\1/
29485             q
29486           }
29487           /^X\/\(\/\/\)$/{
29488             s//\1/
29489             q
29490           }
29491           /^X\/\(\/\).*/{
29492             s//\1/
29493             q
29494           }
29495           s/.*/./; q'`
29496
29497 # Avoid depending upon Character Ranges.
29498 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29499 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29500 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29501 as_cr_digits='0123456789'
29502 as_cr_alnum=$as_cr_Letters$as_cr_digits
29503
29504 ECHO_C= ECHO_N= ECHO_T=
29505 case `echo -n x` in #(((((
29506 -n*)
29507   case `echo 'xy\c'` in
29508   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29509   xy)  ECHO_C='\c';;
29510   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29511        ECHO_T=' ';;
29512   esac;;
29513 *)
29514   ECHO_N='-n';;
29515 esac
29516
29517 rm -f conf$$ conf$$.exe conf$$.file
29518 if test -d conf$$.dir; then
29519   rm -f conf$$.dir/conf$$.file
29520 else
29521   rm -f conf$$.dir
29522   mkdir conf$$.dir 2>/dev/null
29523 fi
29524 if (echo >conf$$.file) 2>/dev/null; then
29525   if ln -s conf$$.file conf$$ 2>/dev/null; then
29526     as_ln_s='ln -s'
29527     # ... but there are two gotchas:
29528     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29529     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29530     # In both cases, we have to default to `cp -p'.
29531     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29532       as_ln_s='cp -p'
29533   elif ln conf$$.file conf$$ 2>/dev/null; then
29534     as_ln_s=ln
29535   else
29536     as_ln_s='cp -p'
29537   fi
29538 else
29539   as_ln_s='cp -p'
29540 fi
29541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29542 rmdir conf$$.dir 2>/dev/null
29543
29544
29545 # as_fn_mkdir_p
29546 # -------------
29547 # Create "$as_dir" as a directory, including parents if necessary.
29548 as_fn_mkdir_p ()
29549 {
29550
29551   case $as_dir in #(
29552   -*) as_dir=./$as_dir;;
29553   esac
29554   test -d "$as_dir" || eval $as_mkdir_p || {
29555     as_dirs=
29556     while :; do
29557       case $as_dir in #(
29558       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29559       *) as_qdir=$as_dir;;
29560       esac
29561       as_dirs="'$as_qdir' $as_dirs"
29562       as_dir=`$as_dirname -- "$as_dir" ||
29563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29564          X"$as_dir" : 'X\(//\)[^/]' \| \
29565          X"$as_dir" : 'X\(//\)$' \| \
29566          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29567 $as_echo X"$as_dir" |
29568     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29569             s//\1/
29570             q
29571           }
29572           /^X\(\/\/\)[^/].*/{
29573             s//\1/
29574             q
29575           }
29576           /^X\(\/\/\)$/{
29577             s//\1/
29578             q
29579           }
29580           /^X\(\/\).*/{
29581             s//\1/
29582             q
29583           }
29584           s/.*/./; q'`
29585       test -d "$as_dir" && break
29586     done
29587     test -z "$as_dirs" || eval "mkdir $as_dirs"
29588   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29589
29590
29591 } # as_fn_mkdir_p
29592 if mkdir -p . 2>/dev/null; then
29593   as_mkdir_p='mkdir -p "$as_dir"'
29594 else
29595   test -d ./-p && rmdir ./-p
29596   as_mkdir_p=false
29597 fi
29598
29599 if test -x / >/dev/null 2>&1; then
29600   as_test_x='test -x'
29601 else
29602   if ls -dL / >/dev/null 2>&1; then
29603     as_ls_L_option=L
29604   else
29605     as_ls_L_option=
29606   fi
29607   as_test_x='
29608     eval sh -c '\''
29609       if test -d "$1"; then
29610         test -d "$1/.";
29611       else
29612         case $1 in #(
29613         -*)set "./$1";;
29614         esac;
29615         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29616         ???[sx]*):;;*)false;;esac;fi
29617     '\'' sh
29618   '
29619 fi
29620 as_executable_p=$as_test_x
29621
29622 # Sed expression to map a string onto a valid CPP name.
29623 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29624
29625 # Sed expression to map a string onto a valid variable name.
29626 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29627
29628
29629 exec 6>&1
29630 ## ----------------------------------- ##
29631 ## Main body of $CONFIG_STATUS script. ##
29632 ## ----------------------------------- ##
29633 _ASEOF
29634 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29635
29636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29637 # Save the log message, to keep $0 and so on meaningful, and to
29638 # report actual input values of CONFIG_FILES etc. instead of their
29639 # values after options handling.
29640 ac_log="
29641 This file was extended by $as_me, which was
29642 generated by GNU Autoconf 2.65.  Invocation command line was
29643
29644   CONFIG_FILES    = $CONFIG_FILES
29645   CONFIG_HEADERS  = $CONFIG_HEADERS
29646   CONFIG_LINKS    = $CONFIG_LINKS
29647   CONFIG_COMMANDS = $CONFIG_COMMANDS
29648   $ $0 $@
29649
29650 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29651 "
29652
29653 _ACEOF
29654
29655 case $ac_config_files in *"
29656 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29657 esac
29658
29659 case $ac_config_headers in *"
29660 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29661 esac
29662
29663
29664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29665 # Files that config.status was made for.
29666 config_files="$ac_config_files"
29667 config_headers="$ac_config_headers"
29668 config_commands="$ac_config_commands"
29669
29670 _ACEOF
29671
29672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29673 ac_cs_usage="\
29674 \`$as_me' instantiates files and other configuration actions
29675 from templates according to the current configuration.  Unless the files
29676 and actions are specified as TAGs, all are instantiated by default.
29677
29678 Usage: $0 [OPTION]... [TAG]...
29679
29680   -h, --help       print this help, then exit
29681   -V, --version    print version number and configuration settings, then exit
29682       --config     print configuration, then exit
29683   -q, --quiet, --silent
29684                    do not print progress messages
29685   -d, --debug      don't remove temporary files
29686       --recheck    update $as_me by reconfiguring in the same conditions
29687       --file=FILE[:TEMPLATE]
29688                    instantiate the configuration file FILE
29689       --header=FILE[:TEMPLATE]
29690                    instantiate the configuration header FILE
29691
29692 Configuration files:
29693 $config_files
29694
29695 Configuration headers:
29696 $config_headers
29697
29698 Configuration commands:
29699 $config_commands
29700
29701 Report bugs to the package provider."
29702
29703 _ACEOF
29704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29705 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29706 ac_cs_version="\\
29707 config.status
29708 configured by $0, generated by GNU Autoconf 2.65,
29709   with options \\"\$ac_cs_config\\"
29710
29711 Copyright (C) 2009 Free Software Foundation, Inc.
29712 This config.status script is free software; the Free Software Foundation
29713 gives unlimited permission to copy, distribute and modify it."
29714
29715 ac_pwd='$ac_pwd'
29716 srcdir='$srcdir'
29717 INSTALL='$INSTALL'
29718 AWK='$AWK'
29719 test -n "\$AWK" || AWK=awk
29720 _ACEOF
29721
29722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29723 # The default lists apply if the user does not specify any file.
29724 ac_need_defaults=:
29725 while test $# != 0
29726 do
29727   case $1 in
29728   --*=*)
29729     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29730     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29731     ac_shift=:
29732     ;;
29733   *)
29734     ac_option=$1
29735     ac_optarg=$2
29736     ac_shift=shift
29737     ;;
29738   esac
29739
29740   case $ac_option in
29741   # Handling of the options.
29742   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29743     ac_cs_recheck=: ;;
29744   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29745     $as_echo "$ac_cs_version"; exit ;;
29746   --config | --confi | --conf | --con | --co | --c )
29747     $as_echo "$ac_cs_config"; exit ;;
29748   --debug | --debu | --deb | --de | --d | -d )
29749     debug=: ;;
29750   --file | --fil | --fi | --f )
29751     $ac_shift
29752     case $ac_optarg in
29753     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29754     esac
29755     as_fn_append CONFIG_FILES " '$ac_optarg'"
29756     ac_need_defaults=false;;
29757   --header | --heade | --head | --hea )
29758     $ac_shift
29759     case $ac_optarg in
29760     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29761     esac
29762     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29763     ac_need_defaults=false;;
29764   --he | --h)
29765     # Conflict between --help and --header
29766     as_fn_error "ambiguous option: \`$1'
29767 Try \`$0 --help' for more information.";;
29768   --help | --hel | -h )
29769     $as_echo "$ac_cs_usage"; exit ;;
29770   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29771   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29772     ac_cs_silent=: ;;
29773
29774   # This is an error.
29775   -*) as_fn_error "unrecognized option: \`$1'
29776 Try \`$0 --help' for more information." ;;
29777
29778   *) as_fn_append ac_config_targets " $1"
29779      ac_need_defaults=false ;;
29780
29781   esac
29782   shift
29783 done
29784
29785 ac_configure_extra_args=
29786
29787 if $ac_cs_silent; then
29788   exec 6>/dev/null
29789   ac_configure_extra_args="$ac_configure_extra_args --silent"
29790 fi
29791
29792 _ACEOF
29793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29794 if \$ac_cs_recheck; then
29795   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29796   shift
29797   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29798   CONFIG_SHELL='$SHELL'
29799   export CONFIG_SHELL
29800   exec "\$@"
29801 fi
29802
29803 _ACEOF
29804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29805 exec 5>>config.log
29806 {
29807   echo
29808   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29809 ## Running $as_me. ##
29810 _ASBOX
29811   $as_echo "$ac_log"
29812 } >&5
29813
29814 _ACEOF
29815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29816 #
29817 # INIT-COMMANDS
29818 #
29819
29820
29821 # The HP-UX ksh and POSIX shell print the target directory to stdout
29822 # if CDPATH is set.
29823 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29824
29825 sed_quote_subst='$sed_quote_subst'
29826 double_quote_subst='$double_quote_subst'
29827 delay_variable_subst='$delay_variable_subst'
29828 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29829 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29830 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29831 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29832 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29833 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29834 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29835 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29836 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29837 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29838 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29839 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29840 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29841 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29842 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29843 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29844 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29845 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29846 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29847 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29848 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29849 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29850 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29851 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29852 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29853 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29854 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29855 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29856 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29857 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29858 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29859 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29860 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29861 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29862 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29863 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29864 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29865 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29866 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29867 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29868 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29869 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29870 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29871 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29872 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"`'
29873 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"`'
29874 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29875 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29876 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29877 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29878 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29879 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29880 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29881 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29882 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29883 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29884 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29885 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29886 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29887 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29888 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29889 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29890 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29891 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29892 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29893 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29894 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29895 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29896 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29897 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29898 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29899 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29900 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29901 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29902 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29903 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29904 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29905 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29906 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29907 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29908 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29909 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29910 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29911 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29912 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29913 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29914 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29915 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29916 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29917 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29918 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29919 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29920 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29921 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29922 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29923 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29924 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29925 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29926 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29927 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29928 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29929 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29930 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29931 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29932 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29933 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29934 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29935 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29936 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29937 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29938 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29939 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29940 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29941 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29942 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29943 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29944 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29945 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29946 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29947 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29948 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29949 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29950 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29951 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29952 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29953 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29954 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29955 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29956 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29957 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29958 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29959 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29960 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29961 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29962 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29963 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29964 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29965 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29966 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29967 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29968 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29969 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29970 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29971 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29972 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29973 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29974 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29975 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29976 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29977 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29978 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29979 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29980 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29981 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29982 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29983 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29984 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29985 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29986 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29987 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29988 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29989 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29990 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29991 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29992 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29993 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29994 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29995 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29996 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29997 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29998 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29999
30000 LTCC='$LTCC'
30001 LTCFLAGS='$LTCFLAGS'
30002 compiler='$compiler_DEFAULT'
30003
30004 # Quote evaled strings.
30005 for var in SED \
30006 GREP \
30007 EGREP \
30008 FGREP \
30009 LD \
30010 NM \
30011 LN_S \
30012 lt_SP2NL \
30013 lt_NL2SP \
30014 reload_flag \
30015 OBJDUMP \
30016 deplibs_check_method \
30017 file_magic_cmd \
30018 AR \
30019 AR_FLAGS \
30020 STRIP \
30021 RANLIB \
30022 CC \
30023 CFLAGS \
30024 compiler \
30025 lt_cv_sys_global_symbol_pipe \
30026 lt_cv_sys_global_symbol_to_cdecl \
30027 lt_cv_sys_global_symbol_to_c_name_address \
30028 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30029 SHELL \
30030 ECHO \
30031 lt_prog_compiler_no_builtin_flag \
30032 lt_prog_compiler_wl \
30033 lt_prog_compiler_pic \
30034 lt_prog_compiler_static \
30035 lt_cv_prog_compiler_c_o \
30036 need_locks \
30037 DSYMUTIL \
30038 NMEDIT \
30039 LIPO \
30040 OTOOL \
30041 OTOOL64 \
30042 shrext_cmds \
30043 export_dynamic_flag_spec \
30044 whole_archive_flag_spec \
30045 compiler_needs_object \
30046 with_gnu_ld \
30047 allow_undefined_flag \
30048 no_undefined_flag \
30049 hardcode_libdir_flag_spec \
30050 hardcode_libdir_flag_spec_ld \
30051 hardcode_libdir_separator \
30052 fix_srcfile_path \
30053 exclude_expsyms \
30054 include_expsyms \
30055 file_list_spec \
30056 variables_saved_for_relink \
30057 libname_spec \
30058 library_names_spec \
30059 soname_spec \
30060 finish_eval \
30061 old_striplib \
30062 striplib \
30063 compiler_lib_search_dirs \
30064 predep_objects \
30065 postdep_objects \
30066 predeps \
30067 postdeps \
30068 compiler_lib_search_path \
30069 LD_CXX \
30070 compiler_CXX \
30071 lt_prog_compiler_no_builtin_flag_CXX \
30072 lt_prog_compiler_wl_CXX \
30073 lt_prog_compiler_pic_CXX \
30074 lt_prog_compiler_static_CXX \
30075 lt_cv_prog_compiler_c_o_CXX \
30076 export_dynamic_flag_spec_CXX \
30077 whole_archive_flag_spec_CXX \
30078 compiler_needs_object_CXX \
30079 with_gnu_ld_CXX \
30080 allow_undefined_flag_CXX \
30081 no_undefined_flag_CXX \
30082 hardcode_libdir_flag_spec_CXX \
30083 hardcode_libdir_flag_spec_ld_CXX \
30084 hardcode_libdir_separator_CXX \
30085 fix_srcfile_path_CXX \
30086 exclude_expsyms_CXX \
30087 include_expsyms_CXX \
30088 file_list_spec_CXX \
30089 compiler_lib_search_dirs_CXX \
30090 predep_objects_CXX \
30091 postdep_objects_CXX \
30092 predeps_CXX \
30093 postdeps_CXX \
30094 compiler_lib_search_path_CXX; do
30095     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30096     *[\\\\\\\`\\"\\\$]*)
30097       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30098       ;;
30099     *)
30100       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30101       ;;
30102     esac
30103 done
30104
30105 # Double-quote double-evaled strings.
30106 for var in reload_cmds \
30107 old_postinstall_cmds \
30108 old_postuninstall_cmds \
30109 old_archive_cmds \
30110 extract_expsyms_cmds \
30111 old_archive_from_new_cmds \
30112 old_archive_from_expsyms_cmds \
30113 archive_cmds \
30114 archive_expsym_cmds \
30115 module_cmds \
30116 module_expsym_cmds \
30117 export_symbols_cmds \
30118 prelink_cmds \
30119 postinstall_cmds \
30120 postuninstall_cmds \
30121 finish_cmds \
30122 sys_lib_search_path_spec \
30123 sys_lib_dlsearch_path_spec \
30124 old_archive_cmds_CXX \
30125 old_archive_from_new_cmds_CXX \
30126 old_archive_from_expsyms_cmds_CXX \
30127 archive_cmds_CXX \
30128 archive_expsym_cmds_CXX \
30129 module_cmds_CXX \
30130 module_expsym_cmds_CXX \
30131 export_symbols_cmds_CXX \
30132 prelink_cmds_CXX; do
30133     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30134     *[\\\\\\\`\\"\\\$]*)
30135       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30136       ;;
30137     *)
30138       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30139       ;;
30140     esac
30141 done
30142
30143 # Fix-up fallback echo if it was mangled by the above quoting rules.
30144 case \$lt_ECHO in
30145 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30146   ;;
30147 esac
30148
30149 ac_aux_dir='$ac_aux_dir'
30150 xsi_shell='$xsi_shell'
30151 lt_shell_append='$lt_shell_append'
30152
30153 # See if we are running on zsh, and set the options which allow our
30154 # commands through without removal of \ escapes INIT.
30155 if test -n "\${ZSH_VERSION+set}" ; then
30156    setopt NO_GLOB_SUBST
30157 fi
30158
30159
30160     PACKAGE='$PACKAGE'
30161     VERSION='$VERSION'
30162     TIMESTAMP='$TIMESTAMP'
30163     RM='$RM'
30164     ofile='$ofile'
30165
30166
30167
30168
30169
30170 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30171     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30172     # from automake.
30173     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30174     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30175     LINGUAS="${LINGUAS-%UNSET%}"
30176
30177
30178 _ACEOF
30179
30180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30181
30182 # Handling of arguments.
30183 for ac_config_target in $ac_config_targets
30184 do
30185   case $ac_config_target in
30186     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30187     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30188     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30189     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30190     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30191     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30192     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30193     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30194     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30195     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30196     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30197     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30198     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30199     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30200     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30201     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30202     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30203     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30204     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30205     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30206     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30207     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30208     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30209     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30210     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30211     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30212     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30213     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30214     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30215     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30216     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30217     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30218     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30219     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30220     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30221     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30222     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30223     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30224     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30225     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30226     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30227     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30228     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30229     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30230     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30231     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30232     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30233     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30234     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30235     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30236     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30237     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30238     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30239     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30240     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30241     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30242     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30243     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30244     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30245     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30246     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30247     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30248     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30249     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30250     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30251     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30252     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30253     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30254     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30255     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30256     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30257     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30258     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30259     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30260     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30261     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30262     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30263     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30264     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30265     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30266     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30267     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30268     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30269     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30270     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30271     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30272     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30273     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30274     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30275     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30276     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30277     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30278     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30279     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30280     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30281     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30282     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30283     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30284     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30285     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30286     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30287     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30288     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30289     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30290     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30291     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30292     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30293     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30294     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30295     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30296     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30297     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30298     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30299     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30300     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30301     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30302     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30303     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30304
30305   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30306   esac
30307 done
30308
30309
30310 # If the user did not use the arguments to specify the items to instantiate,
30311 # then the envvar interface is used.  Set only those that are not.
30312 # We use the long form for the default assignment because of an extremely
30313 # bizarre bug on SunOS 4.1.3.
30314 if $ac_need_defaults; then
30315   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30316   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30317   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30318 fi
30319
30320 # Have a temporary directory for convenience.  Make it in the build tree
30321 # simply because there is no reason against having it here, and in addition,
30322 # creating and moving files from /tmp can sometimes cause problems.
30323 # Hook for its removal unless debugging.
30324 # Note that there is a small window in which the directory will not be cleaned:
30325 # after its creation but before its name has been assigned to `$tmp'.
30326 $debug ||
30327 {
30328   tmp=
30329   trap 'exit_status=$?
30330   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30331 ' 0
30332   trap 'as_fn_exit 1' 1 2 13 15
30333 }
30334 # Create a (secure) tmp directory for tmp files.
30335
30336 {
30337   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30338   test -n "$tmp" && test -d "$tmp"
30339 }  ||
30340 {
30341   tmp=./conf$$-$RANDOM
30342   (umask 077 && mkdir "$tmp")
30343 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30344
30345 # Set up the scripts for CONFIG_FILES section.
30346 # No need to generate them if there are no CONFIG_FILES.
30347 # This happens for instance with `./config.status config.h'.
30348 if test -n "$CONFIG_FILES"; then
30349
30350 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30351   ac_cs_awk_getline=:
30352   ac_cs_awk_pipe_init=
30353   ac_cs_awk_read_file='
30354       while ((getline aline < (F[key])) > 0)
30355         print(aline)
30356       close(F[key])'
30357   ac_cs_awk_pipe_fini=
30358 else
30359   ac_cs_awk_getline=false
30360   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30361   ac_cs_awk_read_file='
30362       print "|#_!!_#|"
30363       print "cat " F[key] " &&"
30364       '$ac_cs_awk_pipe_init
30365   # The final `:' finishes the AND list.
30366   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30367 fi
30368 ac_cr=`echo X | tr X '\015'`
30369 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30370 # But we know of no other shell where ac_cr would be empty at this
30371 # point, so we can use a bashism as a fallback.
30372 if test "x$ac_cr" = x; then
30373   eval ac_cr=\$\'\\r\'
30374 fi
30375 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30376 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30377   ac_cs_awk_cr='\r'
30378 else
30379   ac_cs_awk_cr=$ac_cr
30380 fi
30381
30382 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30383 _ACEOF
30384
30385 # Create commands to substitute file output variables.
30386 {
30387   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30388   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30389   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30390   echo "_ACAWK" &&
30391   echo "_ACEOF"
30392 } >conf$$files.sh &&
30393 . ./conf$$files.sh ||
30394   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30395 rm -f conf$$files.sh
30396
30397 {
30398   echo "cat >conf$$subs.awk <<_ACEOF" &&
30399   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30400   echo "_ACEOF"
30401 } >conf$$subs.sh ||
30402   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30403 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30404 ac_delim='%!_!# '
30405 for ac_last_try in false false false false false :; do
30406   . ./conf$$subs.sh ||
30407     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30408
30409   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30410   if test $ac_delim_n = $ac_delim_num; then
30411     break
30412   elif $ac_last_try; then
30413     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30414   else
30415     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30416   fi
30417 done
30418 rm -f conf$$subs.sh
30419
30420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30421 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30422 _ACEOF
30423 sed -n '
30424 h
30425 s/^/S["/; s/!.*/"]=/
30426 p
30427 g
30428 s/^[^!]*!//
30429 :repl
30430 t repl
30431 s/'"$ac_delim"'$//
30432 t delim
30433 :nl
30434 h
30435 s/\(.\{148\}\)..*/\1/
30436 t more1
30437 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30438 p
30439 n
30440 b repl
30441 :more1
30442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30443 p
30444 g
30445 s/.\{148\}//
30446 t nl
30447 :delim
30448 h
30449 s/\(.\{148\}\)..*/\1/
30450 t more2
30451 s/["\\]/\\&/g; s/^/"/; s/$/"/
30452 p
30453 b
30454 :more2
30455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30456 p
30457 g
30458 s/.\{148\}//
30459 t delim
30460 ' <conf$$subs.awk | sed '
30461 /^[^""]/{
30462   N
30463   s/\n//
30464 }
30465 ' >>$CONFIG_STATUS || ac_write_fail=1
30466 rm -f conf$$subs.awk
30467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30468 _ACAWK
30469 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30470   for (key in S) S_is_set[key] = 1
30471   FS = "\a"
30472   \$ac_cs_awk_pipe_init
30473 }
30474 {
30475   line = $ 0
30476   nfields = split(line, field, "@")
30477   substed = 0
30478   len = length(field[1])
30479   for (i = 2; i < nfields; i++) {
30480     key = field[i]
30481     keylen = length(key)
30482     if (S_is_set[key]) {
30483       value = S[key]
30484       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30485       len += length(value) + length(field[++i])
30486       substed = 1
30487     } else
30488       len += 1 + keylen
30489   }
30490   if (nfields == 3 && !substed) {
30491     key = field[2]
30492     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30493       \$ac_cs_awk_read_file
30494       next
30495     }
30496   }
30497   print line
30498 }
30499 \$ac_cs_awk_pipe_fini
30500 _ACAWK
30501 _ACEOF
30502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30503 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30504   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30505 else
30506   cat
30507 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30508   || as_fn_error "could not setup config files machinery" "$LINENO" 5
30509 _ACEOF
30510
30511 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30512 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30513 # trailing colons and then remove the whole line if VPATH becomes empty
30514 # (actually we leave an empty line to preserve line numbers).
30515 if test "x$srcdir" = x.; then
30516   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30517 s/:*\$(srcdir):*/:/
30518 s/:*\${srcdir}:*/:/
30519 s/:*@srcdir@:*/:/
30520 s/^\([^=]*=[     ]*\):*/\1/
30521 s/:*$//
30522 s/^[^=]*=[       ]*$//
30523 }'
30524 fi
30525
30526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30527 fi # test -n "$CONFIG_FILES"
30528
30529 # Set up the scripts for CONFIG_HEADERS section.
30530 # No need to generate them if there are no CONFIG_HEADERS.
30531 # This happens for instance with `./config.status Makefile'.
30532 if test -n "$CONFIG_HEADERS"; then
30533 cat >"$tmp/defines.awk" <<\_ACAWK ||
30534 BEGIN {
30535 _ACEOF
30536
30537 # Transform confdefs.h into an awk script `defines.awk', embedded as
30538 # here-document in config.status, that substitutes the proper values into
30539 # config.h.in to produce config.h.
30540
30541 # Create a delimiter string that does not exist in confdefs.h, to ease
30542 # handling of long lines.
30543 ac_delim='%!_!# '
30544 for ac_last_try in false false :; do
30545   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30546   if test -z "$ac_t"; then
30547     break
30548   elif $ac_last_try; then
30549     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30550   else
30551     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30552   fi
30553 done
30554
30555 # For the awk script, D is an array of macro values keyed by name,
30556 # likewise P contains macro parameters if any.  Preserve backslash
30557 # newline sequences.
30558
30559 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30560 sed -n '
30561 s/.\{148\}/&'"$ac_delim"'/g
30562 t rset
30563 :rset
30564 s/^[     ]*#[    ]*define[       ][      ]*/ /
30565 t def
30566 d
30567 :def
30568 s/\\$//
30569 t bsnl
30570 s/["\\]/\\&/g
30571 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30572 D["\1"]=" \3"/p
30573 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30574 d
30575 :bsnl
30576 s/["\\]/\\&/g
30577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30578 D["\1"]=" \3\\\\\\n"\\/p
30579 t cont
30580 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30581 t cont
30582 d
30583 :cont
30584 n
30585 s/.\{148\}/&'"$ac_delim"'/g
30586 t clear
30587 :clear
30588 s/\\$//
30589 t bsnlc
30590 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30591 d
30592 :bsnlc
30593 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30594 b cont
30595 ' <confdefs.h | sed '
30596 s/'"$ac_delim"'/"\\\
30597 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30598
30599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30600   for (key in D) D_is_set[key] = 1
30601   FS = "\a"
30602 }
30603 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30604   line = \$ 0
30605   split(line, arg, " ")
30606   if (arg[1] == "#") {
30607     defundef = arg[2]
30608     mac1 = arg[3]
30609   } else {
30610     defundef = substr(arg[1], 2)
30611     mac1 = arg[2]
30612   }
30613   split(mac1, mac2, "(") #)
30614   macro = mac2[1]
30615   prefix = substr(line, 1, index(line, defundef) - 1)
30616   if (D_is_set[macro]) {
30617     # Preserve the white space surrounding the "#".
30618     print prefix "define", macro P[macro] D[macro]
30619     next
30620   } else {
30621     # Replace #undef with comments.  This is necessary, for example,
30622     # in the case of _POSIX_SOURCE, which is predefined and required
30623     # on some systems where configure will not decide to define it.
30624     if (defundef == "undef") {
30625       print "/*", prefix defundef, macro, "*/"
30626       next
30627     }
30628   }
30629 }
30630 { print }
30631 _ACAWK
30632 _ACEOF
30633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30634   as_fn_error "could not setup config headers machinery" "$LINENO" 5
30635 fi # test -n "$CONFIG_HEADERS"
30636
30637
30638 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30639 shift
30640 for ac_tag
30641 do
30642   case $ac_tag in
30643   :[FHLC]) ac_mode=$ac_tag; continue;;
30644   esac
30645   case $ac_mode$ac_tag in
30646   :[FHL]*:*);;
30647   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30648   :[FH]-) ac_tag=-:-;;
30649   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30650   esac
30651   ac_save_IFS=$IFS
30652   IFS=:
30653   set x $ac_tag
30654   IFS=$ac_save_IFS
30655   shift
30656   ac_file=$1
30657   shift
30658
30659   case $ac_mode in
30660   :L) ac_source=$1;;
30661   :[FH])
30662     ac_file_inputs=
30663     for ac_f
30664     do
30665       case $ac_f in
30666       -) ac_f="$tmp/stdin";;
30667       *) # Look for the file first in the build tree, then in the source tree
30668          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30669          # because $ac_f cannot contain `:'.
30670          test -f "$ac_f" ||
30671            case $ac_f in
30672            [\\/$]*) false;;
30673            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30674            esac ||
30675            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30676       esac
30677       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30678       as_fn_append ac_file_inputs " '$ac_f'"
30679     done
30680
30681     # Let's still pretend it is `configure' which instantiates (i.e., don't
30682     # use $as_me), people would be surprised to read:
30683     #    /* config.h.  Generated by config.status.  */
30684     configure_input='Generated from '`
30685           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30686         `' by configure.'
30687     if test x"$ac_file" != x-; then
30688       configure_input="$ac_file.  $configure_input"
30689       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30690 $as_echo "$as_me: creating $ac_file" >&6;}
30691     fi
30692     # Neutralize special characters interpreted by sed in replacement strings.
30693     case $configure_input in #(
30694     *\&* | *\|* | *\\* )
30695        ac_sed_conf_input=`$as_echo "$configure_input" |
30696        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30697     *) ac_sed_conf_input=$configure_input;;
30698     esac
30699
30700     case $ac_tag in
30701     *:-:* | *:-) cat >"$tmp/stdin" \
30702       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30703     esac
30704     ;;
30705   esac
30706
30707   ac_dir=`$as_dirname -- "$ac_file" ||
30708 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30709          X"$ac_file" : 'X\(//\)[^/]' \| \
30710          X"$ac_file" : 'X\(//\)$' \| \
30711          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30712 $as_echo X"$ac_file" |
30713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30714             s//\1/
30715             q
30716           }
30717           /^X\(\/\/\)[^/].*/{
30718             s//\1/
30719             q
30720           }
30721           /^X\(\/\/\)$/{
30722             s//\1/
30723             q
30724           }
30725           /^X\(\/\).*/{
30726             s//\1/
30727             q
30728           }
30729           s/.*/./; q'`
30730   as_dir="$ac_dir"; as_fn_mkdir_p
30731   ac_builddir=.
30732
30733 case "$ac_dir" in
30734 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30735 *)
30736   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30737   # A ".." for each directory in $ac_dir_suffix.
30738   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30739   case $ac_top_builddir_sub in
30740   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30741   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30742   esac ;;
30743 esac
30744 ac_abs_top_builddir=$ac_pwd
30745 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30746 # for backward compatibility:
30747 ac_top_builddir=$ac_top_build_prefix
30748
30749 case $srcdir in
30750   .)  # We are building in place.
30751     ac_srcdir=.
30752     ac_top_srcdir=$ac_top_builddir_sub
30753     ac_abs_top_srcdir=$ac_pwd ;;
30754   [\\/]* | ?:[\\/]* )  # Absolute name.
30755     ac_srcdir=$srcdir$ac_dir_suffix;
30756     ac_top_srcdir=$srcdir
30757     ac_abs_top_srcdir=$srcdir ;;
30758   *) # Relative name.
30759     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30760     ac_top_srcdir=$ac_top_build_prefix$srcdir
30761     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30762 esac
30763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30764
30765
30766   case $ac_mode in
30767   :F)
30768   #
30769   # CONFIG_FILE
30770   #
30771
30772   case $INSTALL in
30773   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30774   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30775   esac
30776 _ACEOF
30777
30778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30779 # If the template does not know about datarootdir, expand it.
30780 # FIXME: This hack should be removed a few years after 2.60.
30781 ac_datarootdir_hack=; ac_datarootdir_seen=
30782 ac_sed_dataroot='
30783 /datarootdir/ {
30784   p
30785   q
30786 }
30787 /@datadir@/p
30788 /@docdir@/p
30789 /@infodir@/p
30790 /@localedir@/p
30791 /@mandir@/p'
30792 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30793 *datarootdir*) ac_datarootdir_seen=yes;;
30794 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30795   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30796 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30797 _ACEOF
30798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30799   ac_datarootdir_hack='
30800   s&@datadir@&$datadir&g
30801   s&@docdir@&$docdir&g
30802   s&@infodir@&$infodir&g
30803   s&@localedir@&$localedir&g
30804   s&@mandir@&$mandir&g
30805   s&\\\${datarootdir}&$datarootdir&g' ;;
30806 esac
30807 _ACEOF
30808
30809 # Neutralize VPATH when `$srcdir' = `.'.
30810 # Shell code in configure.ac might set extrasub.
30811 # FIXME: do we really want to maintain this feature?
30812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30813 ac_sed_extra="$ac_vpsub
30814 $extrasub
30815 _ACEOF
30816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30817 :t
30818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30819 s|@configure_input@|$ac_sed_conf_input|;t t
30820 s&@top_builddir@&$ac_top_builddir_sub&;t t
30821 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30822 s&@srcdir@&$ac_srcdir&;t t
30823 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30824 s&@top_srcdir@&$ac_top_srcdir&;t t
30825 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30826 s&@builddir@&$ac_builddir&;t t
30827 s&@abs_builddir@&$ac_abs_builddir&;t t
30828 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30829 s&@INSTALL@&$ac_INSTALL&;t t
30830 $ac_datarootdir_hack
30831 "
30832 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30833 if $ac_cs_awk_getline; then
30834   $AWK -f "$tmp/subs.awk"
30835 else
30836   $AWK -f "$tmp/subs.awk" | $SHELL
30837 fi >$tmp/out \
30838   || as_fn_error "could not create $ac_file" "$LINENO" 5
30839
30840 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30841   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30842   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30843   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30844 which seems to be undefined.  Please make sure it is defined." >&5
30845 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30846 which seems to be undefined.  Please make sure it is defined." >&2;}
30847
30848   rm -f "$tmp/stdin"
30849   case $ac_file in
30850   -) cat "$tmp/out" && rm -f "$tmp/out";;
30851   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30852   esac \
30853   || as_fn_error "could not create $ac_file" "$LINENO" 5
30854  ;;
30855   :H)
30856   #
30857   # CONFIG_HEADER
30858   #
30859   if test x"$ac_file" != x-; then
30860     {
30861       $as_echo "/* $configure_input  */" \
30862       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30863     } >"$tmp/config.h" \
30864       || as_fn_error "could not create $ac_file" "$LINENO" 5
30865     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30866       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30867 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30868     else
30869       rm -f "$ac_file"
30870       mv "$tmp/config.h" "$ac_file" \
30871         || as_fn_error "could not create $ac_file" "$LINENO" 5
30872     fi
30873   else
30874     $as_echo "/* $configure_input  */" \
30875       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30876       || as_fn_error "could not create -" "$LINENO" 5
30877   fi
30878  ;;
30879
30880   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30881 $as_echo "$as_me: executing $ac_file commands" >&6;}
30882  ;;
30883   esac
30884
30885
30886   case $ac_file$ac_mode in
30887     "libtool":C)
30888
30889     # See if we are running on zsh, and set the options which allow our
30890     # commands through without removal of \ escapes.
30891     if test -n "${ZSH_VERSION+set}" ; then
30892       setopt NO_GLOB_SUBST
30893     fi
30894
30895     cfgfile="${ofile}T"
30896     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30897     $RM "$cfgfile"
30898
30899     cat <<_LT_EOF >> "$cfgfile"
30900 #! $SHELL
30901
30902 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30903 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30904 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30905 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30906 #
30907 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30908 #                 2006, 2007, 2008 Free Software Foundation, Inc.
30909 #   Written by Gordon Matzigkeit, 1996
30910 #
30911 #   This file is part of GNU Libtool.
30912 #
30913 # GNU Libtool is free software; you can redistribute it and/or
30914 # modify it under the terms of the GNU General Public License as
30915 # published by the Free Software Foundation; either version 2 of
30916 # the License, or (at your option) any later version.
30917 #
30918 # As a special exception to the GNU General Public License,
30919 # if you distribute this file as part of a program or library that
30920 # is built using GNU Libtool, you may include this file under the
30921 # same distribution terms that you use for the rest of that program.
30922 #
30923 # GNU Libtool is distributed in the hope that it will be useful,
30924 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30926 # GNU General Public License for more details.
30927 #
30928 # You should have received a copy of the GNU General Public License
30929 # along with GNU Libtool; see the file COPYING.  If not, a copy
30930 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30931 # obtained by writing to the Free Software Foundation, Inc.,
30932 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30933
30934
30935 # The names of the tagged configurations supported by this script.
30936 available_tags="CXX "
30937
30938 # ### BEGIN LIBTOOL CONFIG
30939
30940 # Which release of libtool.m4 was used?
30941 macro_version=$macro_version
30942 macro_revision=$macro_revision
30943
30944 # Whether or not to build shared libraries.
30945 build_libtool_libs=$enable_shared
30946
30947 # Whether or not to build static libraries.
30948 build_old_libs=$enable_static
30949
30950 # What type of objects to build.
30951 pic_mode=$pic_mode
30952
30953 # Whether or not to optimize for fast installation.
30954 fast_install=$enable_fast_install
30955
30956 # The host system.
30957 host_alias=$host_alias
30958 host=$host
30959 host_os=$host_os
30960
30961 # The build system.
30962 build_alias=$build_alias
30963 build=$build
30964 build_os=$build_os
30965
30966 # A sed program that does not truncate output.
30967 SED=$lt_SED
30968
30969 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30970 Xsed="\$SED -e 1s/^X//"
30971
30972 # A grep program that handles long lines.
30973 GREP=$lt_GREP
30974
30975 # An ERE matcher.
30976 EGREP=$lt_EGREP
30977
30978 # A literal string matcher.
30979 FGREP=$lt_FGREP
30980
30981 # A BSD- or MS-compatible name lister.
30982 NM=$lt_NM
30983
30984 # Whether we need soft or hard links.
30985 LN_S=$lt_LN_S
30986
30987 # What is the maximum length of a command?
30988 max_cmd_len=$max_cmd_len
30989
30990 # Object file suffix (normally "o").
30991 objext=$ac_objext
30992
30993 # Executable file suffix (normally "").
30994 exeext=$exeext
30995
30996 # whether the shell understands "unset".
30997 lt_unset=$lt_unset
30998
30999 # turn spaces into newlines.
31000 SP2NL=$lt_lt_SP2NL
31001
31002 # turn newlines into spaces.
31003 NL2SP=$lt_lt_NL2SP
31004
31005 # How to create reloadable object files.
31006 reload_flag=$lt_reload_flag
31007 reload_cmds=$lt_reload_cmds
31008
31009 # An object symbol dumper.
31010 OBJDUMP=$lt_OBJDUMP
31011
31012 # Method to check whether dependent libraries are shared objects.
31013 deplibs_check_method=$lt_deplibs_check_method
31014
31015 # Command to use when deplibs_check_method == "file_magic".
31016 file_magic_cmd=$lt_file_magic_cmd
31017
31018 # The archiver.
31019 AR=$lt_AR
31020 AR_FLAGS=$lt_AR_FLAGS
31021
31022 # A symbol stripping program.
31023 STRIP=$lt_STRIP
31024
31025 # Commands used to install an old-style archive.
31026 RANLIB=$lt_RANLIB
31027 old_postinstall_cmds=$lt_old_postinstall_cmds
31028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31029
31030 # A C compiler.
31031 LTCC=$lt_CC
31032
31033 # LTCC compiler flags.
31034 LTCFLAGS=$lt_CFLAGS
31035
31036 # Take the output of nm and produce a listing of raw symbols and C names.
31037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31038
31039 # Transform the output of nm in a proper C declaration.
31040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31041
31042 # Transform the output of nm in a C name address pair.
31043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31044
31045 # Transform the output of nm in a C name address pair when lib prefix is needed.
31046 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31047
31048 # The name of the directory that contains temporary libtool files.
31049 objdir=$objdir
31050
31051 # Shell to use when invoking shell scripts.
31052 SHELL=$lt_SHELL
31053
31054 # An echo program that does not interpret backslashes.
31055 ECHO=$lt_ECHO
31056
31057 # Used to examine libraries when file_magic_cmd begins with "file".
31058 MAGIC_CMD=$MAGIC_CMD
31059
31060 # Must we lock files when doing compilation?
31061 need_locks=$lt_need_locks
31062
31063 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31064 DSYMUTIL=$lt_DSYMUTIL
31065
31066 # Tool to change global to local symbols on Mac OS X.
31067 NMEDIT=$lt_NMEDIT
31068
31069 # Tool to manipulate fat objects and archives on Mac OS X.
31070 LIPO=$lt_LIPO
31071
31072 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31073 OTOOL=$lt_OTOOL
31074
31075 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31076 OTOOL64=$lt_OTOOL64
31077
31078 # Old archive suffix (normally "a").
31079 libext=$libext
31080
31081 # Shared library suffix (normally ".so").
31082 shrext_cmds=$lt_shrext_cmds
31083
31084 # The commands to extract the exported symbol list from a shared archive.
31085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31086
31087 # Variables whose values should be saved in libtool wrapper scripts and
31088 # restored at link time.
31089 variables_saved_for_relink=$lt_variables_saved_for_relink
31090
31091 # Do we need the "lib" prefix for modules?
31092 need_lib_prefix=$need_lib_prefix
31093
31094 # Do we need a version for libraries?
31095 need_version=$need_version
31096
31097 # Library versioning type.
31098 version_type=$version_type
31099
31100 # Shared library runtime path variable.
31101 runpath_var=$runpath_var
31102
31103 # Shared library path variable.
31104 shlibpath_var=$shlibpath_var
31105
31106 # Is shlibpath searched before the hard-coded library search path?
31107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31108
31109 # Format of library name prefix.
31110 libname_spec=$lt_libname_spec
31111
31112 # List of archive names.  First name is the real one, the rest are links.
31113 # The last name is the one that the linker finds with -lNAME
31114 library_names_spec=$lt_library_names_spec
31115
31116 # The coded name of the library, if different from the real name.
31117 soname_spec=$lt_soname_spec
31118
31119 # Command to use after installation of a shared archive.
31120 postinstall_cmds=$lt_postinstall_cmds
31121
31122 # Command to use after uninstallation of a shared archive.
31123 postuninstall_cmds=$lt_postuninstall_cmds
31124
31125 # Commands used to finish a libtool library installation in a directory.
31126 finish_cmds=$lt_finish_cmds
31127
31128 # As "finish_cmds", except a single script fragment to be evaled but
31129 # not shown.
31130 finish_eval=$lt_finish_eval
31131
31132 # Whether we should hardcode library paths into libraries.
31133 hardcode_into_libs=$hardcode_into_libs
31134
31135 # Compile-time system search path for libraries.
31136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31137
31138 # Run-time system search path for libraries.
31139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31140
31141 # Whether dlopen is supported.
31142 dlopen_support=$enable_dlopen
31143
31144 # Whether dlopen of programs is supported.
31145 dlopen_self=$enable_dlopen_self
31146
31147 # Whether dlopen of statically linked programs is supported.
31148 dlopen_self_static=$enable_dlopen_self_static
31149
31150 # Commands to strip libraries.
31151 old_striplib=$lt_old_striplib
31152 striplib=$lt_striplib
31153
31154
31155 # The linker used to build libraries.
31156 LD=$lt_LD
31157
31158 # Commands used to build an old-style archive.
31159 old_archive_cmds=$lt_old_archive_cmds
31160
31161 # A language specific compiler.
31162 CC=$lt_compiler
31163
31164 # Is the compiler the GNU compiler?
31165 with_gcc=$GCC
31166
31167 # Compiler flag to turn off builtin functions.
31168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31169
31170 # How to pass a linker flag through the compiler.
31171 wl=$lt_lt_prog_compiler_wl
31172
31173 # Additional compiler flags for building library objects.
31174 pic_flag=$lt_lt_prog_compiler_pic
31175
31176 # Compiler flag to prevent dynamic linking.
31177 link_static_flag=$lt_lt_prog_compiler_static
31178
31179 # Does compiler simultaneously support -c and -o options?
31180 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31181
31182 # Whether or not to add -lc for building shared libraries.
31183 build_libtool_need_lc=$archive_cmds_need_lc
31184
31185 # Whether or not to disallow shared libs when runtime libs are static.
31186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31187
31188 # Compiler flag to allow reflexive dlopens.
31189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31190
31191 # Compiler flag to generate shared objects directly from archives.
31192 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31193
31194 # Whether the compiler copes with passing no objects directly.
31195 compiler_needs_object=$lt_compiler_needs_object
31196
31197 # Create an old-style archive from a shared archive.
31198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31199
31200 # Create a temporary old-style archive to link instead of a shared archive.
31201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31202
31203 # Commands used to build a shared archive.
31204 archive_cmds=$lt_archive_cmds
31205 archive_expsym_cmds=$lt_archive_expsym_cmds
31206
31207 # Commands used to build a loadable module if different from building
31208 # a shared archive.
31209 module_cmds=$lt_module_cmds
31210 module_expsym_cmds=$lt_module_expsym_cmds
31211
31212 # Whether we are building with GNU ld or not.
31213 with_gnu_ld=$lt_with_gnu_ld
31214
31215 # Flag that allows shared libraries with undefined symbols to be built.
31216 allow_undefined_flag=$lt_allow_undefined_flag
31217
31218 # Flag that enforces no undefined symbols.
31219 no_undefined_flag=$lt_no_undefined_flag
31220
31221 # Flag to hardcode \$libdir into a binary during linking.
31222 # This must work even if \$libdir does not exist
31223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31224
31225 # If ld is used when linking, flag to hardcode \$libdir into a binary
31226 # during linking.  This must work even if \$libdir does not exist.
31227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31228
31229 # Whether we need a single "-rpath" flag with a separated argument.
31230 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31231
31232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31233 # DIR into the resulting binary.
31234 hardcode_direct=$hardcode_direct
31235
31236 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31237 # DIR into the resulting binary and the resulting library dependency is
31238 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31239 # library is relocated.
31240 hardcode_direct_absolute=$hardcode_direct_absolute
31241
31242 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31243 # into the resulting binary.
31244 hardcode_minus_L=$hardcode_minus_L
31245
31246 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31247 # into the resulting binary.
31248 hardcode_shlibpath_var=$hardcode_shlibpath_var
31249
31250 # Set to "yes" if building a shared library automatically hardcodes DIR
31251 # into the library and all subsequent libraries and executables linked
31252 # against it.
31253 hardcode_automatic=$hardcode_automatic
31254
31255 # Set to yes if linker adds runtime paths of dependent libraries
31256 # to runtime path list.
31257 inherit_rpath=$inherit_rpath
31258
31259 # Whether libtool must link a program against all its dependency libraries.
31260 link_all_deplibs=$link_all_deplibs
31261
31262 # Fix the shell variable \$srcfile for the compiler.
31263 fix_srcfile_path=$lt_fix_srcfile_path
31264
31265 # Set to "yes" if exported symbols are required.
31266 always_export_symbols=$always_export_symbols
31267
31268 # The commands to list exported symbols.
31269 export_symbols_cmds=$lt_export_symbols_cmds
31270
31271 # Symbols that should not be listed in the preloaded symbols.
31272 exclude_expsyms=$lt_exclude_expsyms
31273
31274 # Symbols that must always be exported.
31275 include_expsyms=$lt_include_expsyms
31276
31277 # Commands necessary for linking programs (against libraries) with templates.
31278 prelink_cmds=$lt_prelink_cmds
31279
31280 # Specify filename containing input files.
31281 file_list_spec=$lt_file_list_spec
31282
31283 # How to hardcode a shared library path into an executable.
31284 hardcode_action=$hardcode_action
31285
31286 # The directories searched by this compiler when creating a shared library.
31287 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31288
31289 # Dependencies to place before and after the objects being linked to
31290 # create a shared library.
31291 predep_objects=$lt_predep_objects
31292 postdep_objects=$lt_postdep_objects
31293 predeps=$lt_predeps
31294 postdeps=$lt_postdeps
31295
31296 # The library search path used internally by the compiler when linking
31297 # a shared library.
31298 compiler_lib_search_path=$lt_compiler_lib_search_path
31299
31300 # ### END LIBTOOL CONFIG
31301
31302 _LT_EOF
31303
31304   case $host_os in
31305   aix3*)
31306     cat <<\_LT_EOF >> "$cfgfile"
31307 # AIX sometimes has problems with the GCC collect2 program.  For some
31308 # reason, if we set the COLLECT_NAMES environment variable, the problems
31309 # vanish in a puff of smoke.
31310 if test "X${COLLECT_NAMES+set}" != Xset; then
31311   COLLECT_NAMES=
31312   export COLLECT_NAMES
31313 fi
31314 _LT_EOF
31315     ;;
31316   esac
31317
31318
31319 ltmain="$ac_aux_dir/ltmain.sh"
31320
31321
31322   # We use sed instead of cat because bash on DJGPP gets confused if
31323   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31324   # text mode, it properly converts lines to CR/LF.  This bash problem
31325   # is reportedly fixed, but why not run on old versions too?
31326   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31327     || (rm -f "$cfgfile"; exit 1)
31328
31329   case $xsi_shell in
31330   yes)
31331     cat << \_LT_EOF >> "$cfgfile"
31332
31333 # func_dirname file append nondir_replacement
31334 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31335 # otherwise set result to NONDIR_REPLACEMENT.
31336 func_dirname ()
31337 {
31338   case ${1} in
31339     */*) func_dirname_result="${1%/*}${2}" ;;
31340     *  ) func_dirname_result="${3}" ;;
31341   esac
31342 }
31343
31344 # func_basename file
31345 func_basename ()
31346 {
31347   func_basename_result="${1##*/}"
31348 }
31349
31350 # func_dirname_and_basename file append nondir_replacement
31351 # perform func_basename and func_dirname in a single function
31352 # call:
31353 #   dirname:  Compute the dirname of FILE.  If nonempty,
31354 #             add APPEND to the result, otherwise set result
31355 #             to NONDIR_REPLACEMENT.
31356 #             value returned in "$func_dirname_result"
31357 #   basename: Compute filename of FILE.
31358 #             value retuned in "$func_basename_result"
31359 # Implementation must be kept synchronized with func_dirname
31360 # and func_basename. For efficiency, we do not delegate to
31361 # those functions but instead duplicate the functionality here.
31362 func_dirname_and_basename ()
31363 {
31364   case ${1} in
31365     */*) func_dirname_result="${1%/*}${2}" ;;
31366     *  ) func_dirname_result="${3}" ;;
31367   esac
31368   func_basename_result="${1##*/}"
31369 }
31370
31371 # func_stripname prefix suffix name
31372 # strip PREFIX and SUFFIX off of NAME.
31373 # PREFIX and SUFFIX must not contain globbing or regex special
31374 # characters, hashes, percent signs, but SUFFIX may contain a leading
31375 # dot (in which case that matches only a dot).
31376 func_stripname ()
31377 {
31378   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31379   # positional parameters, so assign one to ordinary parameter first.
31380   func_stripname_result=${3}
31381   func_stripname_result=${func_stripname_result#"${1}"}
31382   func_stripname_result=${func_stripname_result%"${2}"}
31383 }
31384
31385 # func_opt_split
31386 func_opt_split ()
31387 {
31388   func_opt_split_opt=${1%%=*}
31389   func_opt_split_arg=${1#*=}
31390 }
31391
31392 # func_lo2o object
31393 func_lo2o ()
31394 {
31395   case ${1} in
31396     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31397     *)    func_lo2o_result=${1} ;;
31398   esac
31399 }
31400
31401 # func_xform libobj-or-source
31402 func_xform ()
31403 {
31404   func_xform_result=${1%.*}.lo
31405 }
31406
31407 # func_arith arithmetic-term...
31408 func_arith ()
31409 {
31410   func_arith_result=$(( $* ))
31411 }
31412
31413 # func_len string
31414 # STRING may not start with a hyphen.
31415 func_len ()
31416 {
31417   func_len_result=${#1}
31418 }
31419
31420 _LT_EOF
31421     ;;
31422   *) # Bourne compatible functions.
31423     cat << \_LT_EOF >> "$cfgfile"
31424
31425 # func_dirname file append nondir_replacement
31426 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31427 # otherwise set result to NONDIR_REPLACEMENT.
31428 func_dirname ()
31429 {
31430   # Extract subdirectory from the argument.
31431   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31432   if test "X$func_dirname_result" = "X${1}"; then
31433     func_dirname_result="${3}"
31434   else
31435     func_dirname_result="$func_dirname_result${2}"
31436   fi
31437 }
31438
31439 # func_basename file
31440 func_basename ()
31441 {
31442   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31443 }
31444
31445
31446 # func_stripname prefix suffix name
31447 # strip PREFIX and SUFFIX off of NAME.
31448 # PREFIX and SUFFIX must not contain globbing or regex special
31449 # characters, hashes, percent signs, but SUFFIX may contain a leading
31450 # dot (in which case that matches only a dot).
31451 # func_strip_suffix prefix name
31452 func_stripname ()
31453 {
31454   case ${2} in
31455     .*) func_stripname_result=`$ECHO "X${3}" \
31456            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31457     *)  func_stripname_result=`$ECHO "X${3}" \
31458            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31459   esac
31460 }
31461
31462 # sed scripts:
31463 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31464 my_sed_long_arg='1s/^-[^=]*=//'
31465
31466 # func_opt_split
31467 func_opt_split ()
31468 {
31469   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31470   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31471 }
31472
31473 # func_lo2o object
31474 func_lo2o ()
31475 {
31476   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31477 }
31478
31479 # func_xform libobj-or-source
31480 func_xform ()
31481 {
31482   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31483 }
31484
31485 # func_arith arithmetic-term...
31486 func_arith ()
31487 {
31488   func_arith_result=`expr "$@"`
31489 }
31490
31491 # func_len string
31492 # STRING may not start with a hyphen.
31493 func_len ()
31494 {
31495   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31496 }
31497
31498 _LT_EOF
31499 esac
31500
31501 case $lt_shell_append in
31502   yes)
31503     cat << \_LT_EOF >> "$cfgfile"
31504
31505 # func_append var value
31506 # Append VALUE to the end of shell variable VAR.
31507 func_append ()
31508 {
31509   eval "$1+=\$2"
31510 }
31511 _LT_EOF
31512     ;;
31513   *)
31514     cat << \_LT_EOF >> "$cfgfile"
31515
31516 # func_append var value
31517 # Append VALUE to the end of shell variable VAR.
31518 func_append ()
31519 {
31520   eval "$1=\$$1\$2"
31521 }
31522
31523 _LT_EOF
31524     ;;
31525   esac
31526
31527
31528   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31529     || (rm -f "$cfgfile"; exit 1)
31530
31531   mv -f "$cfgfile" "$ofile" ||
31532     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31533   chmod +x "$ofile"
31534
31535
31536     cat <<_LT_EOF >> "$ofile"
31537
31538 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31539
31540 # The linker used to build libraries.
31541 LD=$lt_LD_CXX
31542
31543 # Commands used to build an old-style archive.
31544 old_archive_cmds=$lt_old_archive_cmds_CXX
31545
31546 # A language specific compiler.
31547 CC=$lt_compiler_CXX
31548
31549 # Is the compiler the GNU compiler?
31550 with_gcc=$GCC_CXX
31551
31552 # Compiler flag to turn off builtin functions.
31553 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31554
31555 # How to pass a linker flag through the compiler.
31556 wl=$lt_lt_prog_compiler_wl_CXX
31557
31558 # Additional compiler flags for building library objects.
31559 pic_flag=$lt_lt_prog_compiler_pic_CXX
31560
31561 # Compiler flag to prevent dynamic linking.
31562 link_static_flag=$lt_lt_prog_compiler_static_CXX
31563
31564 # Does compiler simultaneously support -c and -o options?
31565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31566
31567 # Whether or not to add -lc for building shared libraries.
31568 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31569
31570 # Whether or not to disallow shared libs when runtime libs are static.
31571 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31572
31573 # Compiler flag to allow reflexive dlopens.
31574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31575
31576 # Compiler flag to generate shared objects directly from archives.
31577 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31578
31579 # Whether the compiler copes with passing no objects directly.
31580 compiler_needs_object=$lt_compiler_needs_object_CXX
31581
31582 # Create an old-style archive from a shared archive.
31583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31584
31585 # Create a temporary old-style archive to link instead of a shared archive.
31586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31587
31588 # Commands used to build a shared archive.
31589 archive_cmds=$lt_archive_cmds_CXX
31590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31591
31592 # Commands used to build a loadable module if different from building
31593 # a shared archive.
31594 module_cmds=$lt_module_cmds_CXX
31595 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31596
31597 # Whether we are building with GNU ld or not.
31598 with_gnu_ld=$lt_with_gnu_ld_CXX
31599
31600 # Flag that allows shared libraries with undefined symbols to be built.
31601 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31602
31603 # Flag that enforces no undefined symbols.
31604 no_undefined_flag=$lt_no_undefined_flag_CXX
31605
31606 # Flag to hardcode \$libdir into a binary during linking.
31607 # This must work even if \$libdir does not exist
31608 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31609
31610 # If ld is used when linking, flag to hardcode \$libdir into a binary
31611 # during linking.  This must work even if \$libdir does not exist.
31612 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31613
31614 # Whether we need a single "-rpath" flag with a separated argument.
31615 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31616
31617 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31618 # DIR into the resulting binary.
31619 hardcode_direct=$hardcode_direct_CXX
31620
31621 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31622 # DIR into the resulting binary and the resulting library dependency is
31623 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31624 # library is relocated.
31625 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31626
31627 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31628 # into the resulting binary.
31629 hardcode_minus_L=$hardcode_minus_L_CXX
31630
31631 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31632 # into the resulting binary.
31633 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31634
31635 # Set to "yes" if building a shared library automatically hardcodes DIR
31636 # into the library and all subsequent libraries and executables linked
31637 # against it.
31638 hardcode_automatic=$hardcode_automatic_CXX
31639
31640 # Set to yes if linker adds runtime paths of dependent libraries
31641 # to runtime path list.
31642 inherit_rpath=$inherit_rpath_CXX
31643
31644 # Whether libtool must link a program against all its dependency libraries.
31645 link_all_deplibs=$link_all_deplibs_CXX
31646
31647 # Fix the shell variable \$srcfile for the compiler.
31648 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31649
31650 # Set to "yes" if exported symbols are required.
31651 always_export_symbols=$always_export_symbols_CXX
31652
31653 # The commands to list exported symbols.
31654 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31655
31656 # Symbols that should not be listed in the preloaded symbols.
31657 exclude_expsyms=$lt_exclude_expsyms_CXX
31658
31659 # Symbols that must always be exported.
31660 include_expsyms=$lt_include_expsyms_CXX
31661
31662 # Commands necessary for linking programs (against libraries) with templates.
31663 prelink_cmds=$lt_prelink_cmds_CXX
31664
31665 # Specify filename containing input files.
31666 file_list_spec=$lt_file_list_spec_CXX
31667
31668 # How to hardcode a shared library path into an executable.
31669 hardcode_action=$hardcode_action_CXX
31670
31671 # The directories searched by this compiler when creating a shared library.
31672 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31673
31674 # Dependencies to place before and after the objects being linked to
31675 # create a shared library.
31676 predep_objects=$lt_predep_objects_CXX
31677 postdep_objects=$lt_postdep_objects_CXX
31678 predeps=$lt_predeps_CXX
31679 postdeps=$lt_postdeps_CXX
31680
31681 # The library search path used internally by the compiler when linking
31682 # a shared library.
31683 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31684
31685 # ### END LIBTOOL TAG CONFIG: CXX
31686 _LT_EOF
31687
31688  ;;
31689     "default-1":C)
31690     for ac_file in $CONFIG_FILES; do
31691       # Support "outfile[:infile[:infile...]]"
31692       case "$ac_file" in
31693         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31694       esac
31695       # PO directories have a Makefile.in generated from Makefile.in.in.
31696       case "$ac_file" in */Makefile.in)
31697         # Adjust a relative srcdir.
31698         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31699         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31700         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31701         # In autoconf-2.13 it is called $ac_given_srcdir.
31702         # In autoconf-2.50 it is called $srcdir.
31703         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31704         case "$ac_given_srcdir" in
31705           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31706           /*) top_srcdir="$ac_given_srcdir" ;;
31707           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31708         esac
31709         # Treat a directory as a PO directory if and only if it has a
31710         # POTFILES.in file. This allows packages to have multiple PO
31711         # directories under different names or in different locations.
31712         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31713           rm -f "$ac_dir/POTFILES"
31714           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31715           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31716           POMAKEFILEDEPS="POTFILES.in"
31717           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31718           # on $ac_dir but don't depend on user-specified configuration
31719           # parameters.
31720           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31721             # The LINGUAS file contains the set of available languages.
31722             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31723               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31724             fi
31725             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31726             # Hide the ALL_LINGUAS assigment from automake.
31727             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31728             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31729           else
31730             # The set of available languages was given in configure.in.
31731             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31732           fi
31733           # Compute POFILES
31734           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31735           # Compute UPDATEPOFILES
31736           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31737           # Compute DUMMYPOFILES
31738           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31739           # Compute GMOFILES
31740           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31741           case "$ac_given_srcdir" in
31742             .) srcdirpre= ;;
31743             *) srcdirpre='$(srcdir)/' ;;
31744           esac
31745           POFILES=
31746           UPDATEPOFILES=
31747           DUMMYPOFILES=
31748           GMOFILES=
31749           for lang in $ALL_LINGUAS; do
31750             POFILES="$POFILES $srcdirpre$lang.po"
31751             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31752             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31753             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31754           done
31755           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31756           # environment variable.
31757           INST_LINGUAS=
31758           if test -n "$ALL_LINGUAS"; then
31759             for presentlang in $ALL_LINGUAS; do
31760               useit=no
31761               if test "%UNSET%" != "$LINGUAS"; then
31762                 desiredlanguages="$LINGUAS"
31763               else
31764                 desiredlanguages="$ALL_LINGUAS"
31765               fi
31766               for desiredlang in $desiredlanguages; do
31767                 # Use the presentlang catalog if desiredlang is
31768                 #   a. equal to presentlang, or
31769                 #   b. a variant of presentlang (because in this case,
31770                 #      presentlang can be used as a fallback for messages
31771                 #      which are not translated in the desiredlang catalog).
31772                 case "$desiredlang" in
31773                   "$presentlang"*) useit=yes;;
31774                 esac
31775               done
31776               if test $useit = yes; then
31777                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31778               fi
31779             done
31780           fi
31781           CATALOGS=
31782           if test -n "$INST_LINGUAS"; then
31783             for lang in $INST_LINGUAS; do
31784               CATALOGS="$CATALOGS $lang.gmo"
31785             done
31786           fi
31787           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31788           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"
31789           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31790             if test -f "$f"; then
31791               case "$f" in
31792                 *.orig | *.bak | *~) ;;
31793                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31794               esac
31795             fi
31796           done
31797         fi
31798         ;;
31799       esac
31800     done ;;
31801     "default":C)
31802  ;;
31803
31804   esac
31805 done # for ac_tag
31806
31807
31808 as_fn_exit 0
31809 _ACEOF
31810 ac_clean_files=$ac_clean_files_save
31811
31812 test $ac_write_fail = 0 ||
31813   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31814
31815
31816 # configure is writing to config.log, and then calls config.status.
31817 # config.status does its own redirection, appending to config.log.
31818 # Unfortunately, on DOS this fails, as config.log is still kept open
31819 # by configure, so config.status won't be able to write to it; its
31820 # output is simply discarded.  So we exec the FD to /dev/null,
31821 # effectively closing config.log, so it can be properly (re)opened and
31822 # appended to by config.status.  When coming back to configure, we
31823 # need to make the FD available again.
31824 if test "$no_create" != yes; then
31825   ac_cs_success=:
31826   ac_config_status_args=
31827   test "$silent" = yes &&
31828     ac_config_status_args="$ac_config_status_args --quiet"
31829   exec 5>/dev/null
31830   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31831   exec 5>>config.log
31832   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31833   # would make configure fail if this is the last instruction.
31834   $ac_cs_success || as_fn_exit $?
31835 fi
31836 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31837   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31838 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31839 fi
31840
31841
31842 if test "${support_bat}" = "yes" ; then
31843    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31844       as_fn_error "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" "$LINENO" 5
31845    fi
31846
31847    QMAKEBIN="qmake"
31848
31849    if test "x$QMAKEQT4" != "xnone"; then
31850        QMAKEBIN=qmake-qt4
31851    fi
31852
31853    cd src/qt-console
31854    echo "Creating bat Makefile"
31855    touch bat
31856    chmod 755 bat
31857    $QMAKEBIN
31858    ${MAKE:-make} clean
31859    cd ${BUILD_DIR}
31860 fi
31861
31862 if test X"$GCC" = "Xyes" ; then
31863   echo "Doing make of dependencies"
31864   ${MAKE:-make} depend
31865 fi
31866
31867 cd src/qt-console
31868 chmod 755 install_conf_file build-depkgs-qt-console
31869 cd ${BUILD_DIR}
31870
31871 cd scripts
31872 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31873 chmod 755 dvd-handler dvd-simulator
31874 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31875 cd ..
31876
31877 c=updatedb
31878 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
31879 chmod 755 $c/update_postgresql_tables_10_to_11
31880
31881 c=src/cats
31882
31883 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31884 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31885
31886 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31887 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31888
31889 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31890 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31891
31892 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31893 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31894
31895 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31896 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31897
31898 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
31899 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
31900
31901
31902 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  make_catalog_backup.pl
31903 chmod 755 $c/sqlite
31904 chmod 755 $c/mysql
31905
31906 chmod 755 src/win32/build-depkgs-mingw32
31907
31908 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31909    largefile_support="yes"
31910 fi
31911
31912 if test X"$GCC" = "Xyes" ; then
31913                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31914    if test "x${CCVERSION}" = "x" ; then
31915       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31916    fi
31917    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31918    if test x"${CXXVERSION}" = x ; then
31919       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31920    fi
31921 fi
31922
31923 # clean up any old junk
31924 echo " "
31925 echo "Cleaning up"
31926 echo " "
31927 ${MAKE:-make} clean
31928
31929 if test "x${db_type}" = "xInternal" ; then
31930    echo " "
31931    echo " "
31932    echo "You have not specified either --enable-client-only or one of the"
31933    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
31934    echo "  This is not permitted. Please reconfigure."
31935    echo " "
31936    echo "Aborting the configuration ..."
31937    echo " "
31938    echo " "
31939    exit 1
31940 fi
31941
31942 echo "
31943 Configuration on `date`:
31944
31945    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
31946    Bacula version:          ${BACULA} ${VERSION} (${DATE})
31947    Source code location:    ${srcdir}
31948    Install binaries:        ${sbindir}
31949    Install libraries:       ${libdir}
31950    Install config files:    ${sysconfdir}
31951    Scripts directory:       ${scriptdir}
31952    Archive directory:       ${archivedir}
31953    Working directory:       ${working_dir}
31954    PID directory:           ${piddir}
31955    Subsys directory:        ${subsysdir}
31956    Man directory:           ${mandir}
31957    Data directory:          ${datarootdir}
31958    Plugin directory:        ${plugindir}
31959    C Compiler:              ${CC} ${CCVERSION}
31960    C++ Compiler:            ${CXX} ${CXXVERSION}
31961    Compiler flags:          ${WCFLAGS} ${CFLAGS}
31962    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
31963    Libraries:               ${LIBS}
31964    Statically Linked Tools: ${support_static_tools}
31965    Statically Linked FD:    ${support_static_fd}
31966    Statically Linked SD:    ${support_static_sd}
31967    Statically Linked DIR:   ${support_static_dir}
31968    Statically Linked CONS:  ${support_static_cons}
31969    Database type:           ${db_type}
31970    Database port:           ${db_port}
31971    Database lib:            ${DB_LIBS}
31972    Database name:           ${db_name}
31973    Database user:           ${db_user}
31974
31975    Job Output Email:        ${job_email}
31976    Traceback Email:         ${dump_email}
31977    SMTP Host Address:       ${smtp_host}
31978
31979    Director Port:           ${dir_port}
31980    File daemon Port:        ${fd_port}
31981    Storage daemon Port:     ${sd_port}
31982
31983    Director User:           ${dir_user}
31984    Director Group:          ${dir_group}
31985    Storage Daemon User:     ${sd_user}
31986    Storage DaemonGroup:     ${sd_group}
31987    File Daemon User:        ${fd_user}
31988    File Daemon Group:       ${fd_group}
31989
31990    SQL binaries Directory   ${SQL_BINDIR}
31991
31992    Large file support:      $largefile_support
31993    Bacula conio support:    ${got_conio} ${CONS_LIBS}
31994    readline support:        ${got_readline} ${PRTREADLINE_SRC}
31995    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
31996    TLS support:             ${support_tls}
31997    Encryption support:      ${support_crypto}
31998    ZLIB support:            ${have_zlib}
31999    enable-smartalloc:       ${support_smartalloc}
32000    enable-lockmgr:          ${support_lockmgr}
32001    bat support:             ${support_bat}
32002    enable-gnome:            ${support_gnome} ${gnome_version}
32003    enable-bwx-console:      ${support_wx_console} ${wx_version}
32004    enable-tray-monitor:     ${support_tray_monitor}
32005    client-only:             ${build_client_only}
32006    build-dird:              ${build_dird}
32007    build-stored:            ${build_stored}
32008    Plugin support:          ${have_plugins}
32009    ACL support:             ${have_acl}
32010    XATTR support:           ${have_xattr}
32011    Python support:          ${support_python} ${PYTHON_LIBS}
32012    Batch insert enabled:    ${support_batch_insert}
32013
32014   " > config.out
32015
32016 # create a small shell script useful for support with
32017 # configure options and config.out info
32018 cat > scripts/bacula_config << EOF
32019 #!/bin/sh
32020 cat << __EOC__
32021 $ $0 $ac_configure_args
32022 EOF
32023 cat config.out >> scripts/bacula_config
32024 echo __EOC__ >> scripts/bacula_config
32025 chmod 755 scripts/bacula_config
32026
32027 cat config.out
32028
32029 # Display a warning message if postgresql client lib is <= 8.1
32030 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
32031         -a x$support_batch_insert = xyes
32032 then
32033         echo "WARNING: Your PostgreSQL client library is too old to detect "
32034         echo " if it was compiled with --enable-thread-safety, consider to"
32035         echo " upgrade it in order to avoid problems with Batch insert mode"
32036         echo
32037 fi