]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
update configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="src/version.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_header_list=
744 ac_subst_vars='LTLIBOBJS
745 DISTVER
746 DISTNAME
747 MACOSX
748 WIN32
749 PSCMD
750 TAPEDRIVE
751 OBJLIST
752 WRAPLIBS
753 WLDFLAGS
754 WCFLAGS
755 DB_LIBS
756 DLIB
757 DINCLUDE
758 DEBUG
759 FDLIBS
760 CAP_LIBS
761 AFS_LIBS
762 AFS_CFLAGS
763 ZLIBS
764 LIBOBJS
765 X_EXTRA_LIBS
766 X_LIBS
767 X_PRE_LIBS
768 X_CFLAGS
769 XMKMF
770 GETCONF
771 DB_TYPE
772 cats
773 DB_PROG_LIB
774 DB_PROG
775 uncomment_dbi
776 DBI_DBD_DRIVERDIR
777 SQL_BINDIR
778 SQL_INCLUDE
779 SQL_LFLAGS
780 SBINPERM
781 fd_group
782 fd_user
783 sd_group
784 sd_user
785 dir_group
786 dir_user
787 db_port
788 db_password
789 db_user
790 db_name
791 mon_sd_password
792 mon_fd_password
793 mon_dir_password
794 sd_password
795 fd_password
796 dir_password
797 sd_port
798 fd_port
799 dir_port
800 baseport
801 subsysdir
802 piddir
803 smtp_host
804 job_email
805 dump_email
806 plugindir
807 logdir
808 bsrdir
809 scriptdir
810 hostname
811 basename
812 archivedir
813 working_dir
814 OPENSSL_INC
815 OPENSSL_LIBS
816 PYTHON_INCDIR
817 PYTHON_LIBS
818 READLINE_SRC
819 CONS_LDFLAGS
820 CONS_LIBS
821 CONS_SRC
822 CONS_OBJ
823 CONS_INC
824 STORED_DIR
825 DIR_TOOLS
826 DIRD_DIR
827 ALL_DIRS
828 STATIC_WX_CONS
829 STATIC_GNOME_CONS
830 STATIC_CONS
831 STATIC_DIR
832 STATIC_SD
833 STATIC_FD
834 TTOOL_LDFLAGS
835 TRAY_MONITOR_DIR
836 TRAY_MONITOR_LDFLAGS
837 TRAY_MONITOR_CPPFLAGS
838 WX_DIR
839 WXCONS_LDFLAGS
840 WXCONS_CPPFLAGS
841 QWT
842 QWT_LIB
843 QWT_LDFLAGS
844 QWT_INC
845 BAT_DIR
846 INTL_LIBTOOL_SUFFIX_PREFIX
847 INTLOBJS
848 GENCAT
849 INSTOBJEXT
850 DATADIRNAME
851 CATOBJEXT
852 USE_INCLUDED_LIBINTL
853 BUILD_INCLUDED_LIBINTL
854 INTLBISON
855 HAVE_WPRINTF
856 HAVE_SNPRINTF
857 HAVE_ASPRINTF
858 HAVE_POSIX_PRINTF
859 GLIBC21
860 ALLOCA
861 GLIBC2
862 POSUB
863 LTLIBINTL
864 LIBINTL
865 INTLLIBS
866 LTLIBICONV
867 LIBICONV
868 INTL_MACOSX_LIBS
869 MSGMERGE
870 XGETTEXT
871 GMSGFMT
872 MSGFMT
873 USE_NLS
874 MKINSTALLDIRS
875 SET_MAKE
876 HAVE_DARWIN_OS_FALSE
877 HAVE_DARWIN_OS_TRUE
878 HAVE_IRIX_OS_FALSE
879 HAVE_IRIX_OS_TRUE
880 HAVE_SGI_OS_FALSE
881 HAVE_SGI_OS_TRUE
882 HAVE_BSDI_OS_FALSE
883 HAVE_BSDI_OS_TRUE
884 HAVE_OPENBSD_OS_FALSE
885 HAVE_OPENBSD_OS_TRUE
886 HAVE_NETBSD_OS_FALSE
887 HAVE_NETBSD_OS_TRUE
888 HAVE_FREEBSD_OS_FALSE
889 HAVE_FREEBSD_OS_TRUE
890 HAVE_LINUX_OS_FALSE
891 HAVE_LINUX_OS_TRUE
892 HAVE_HPUX_OS_FALSE
893 HAVE_HPUX_OS_TRUE
894 HAVE_AIX_OS_FALSE
895 HAVE_AIX_OS_TRUE
896 HAVE_OSF1_OS_FALSE
897 HAVE_OSF1_OS_TRUE
898 HAVE_SUN_OS_FALSE
899 HAVE_SUN_OS_TRUE
900 INCLUDE_UNINSTALL_TARGET
901 INCLUDE_INSTALL_TARGET
902 FD_PLUGIN_DIR
903 QMAKE_LIBTOOL
904 LIBTOOL_CLEAN_TARGET
905 LIBTOOL_UNINSTALL_TARGET
906 LIBTOOL_INSTALL_TARGET
907 DEFAULT_SHARED_OBJECT_TYPE
908 DEFAULT_ARCHIVE_TYPE
909 DEFAULT_OBJECT_TYPE
910 CXXCPP
911 OTOOL64
912 OTOOL
913 LIPO
914 NMEDIT
915 DSYMUTIL
916 lt_ECHO
917 RANLIB
918 STRIP
919 OBJDUMP
920 LN_S
921 NM
922 ac_ct_DUMPBIN
923 DUMPBIN
924 LD
925 FGREP
926 host_os
927 host_vendor
928 host_cpu
929 host
930 build_os
931 build_vendor
932 build_cpu
933 build
934 LIBTOOL
935 LOCAL_DEFS
936 LOCAL_LDFLAGS
937 LOCAL_CFLAGS
938 LOCAL_LIBS
939 MAKE_SHELL
940 ARFLAGS
941 AWK
942 PIDOF
943 CDRECORD
944 WXFLAGS
945 WXCONFIG
946 GMAKE
947 QMAKE
948 PKGCONFIG
949 DVDRWFORMAT
950 DVDRWMEDIAINFO
951 GROWISOFS
952 PYTHON
953 MKISOFS
954 DD
955 MTX
956 OPENSSL
957 AR
958 TBL
959 CMP
960 ECHO
961 SED
962 CP
963 REMOVE
964 MV
965 INSTALL_DATA
966 INSTALL_SCRIPT
967 INSTALL_PROGRAM
968 EGREP
969 GREP
970 CPP
971 ac_ct_CXX
972 CXXFLAGS
973 CXX
974 OBJEXT
975 EXEEXT
976 ac_ct_CC
977 CPPFLAGS
978 LDFLAGS
979 CFLAGS
980 CC
981 LIBBACFIND_LT_RELEASE
982 LIBBACSQL_LT_RELEASE
983 LIBBACPY_LT_RELEASE
984 LIBBACCFG_LT_RELEASE
985 LIBBAC_LT_RELEASE
986 post_host
987 BACULA
988 LSMDATE
989 DATE
990 VERSION
991 FALSEPRG
992 TRUEPRG
993 WIN32TOPDIR
994 WIN32MAINDIR
995 WIN32BUILDDIR
996 TOP_DIR
997 BUILD_DIR
998 target_alias
999 host_alias
1000 build_alias
1001 LIBS
1002 ECHO_T
1003 ECHO_N
1004 ECHO_C
1005 DEFS
1006 mandir
1007 localedir
1008 libdir
1009 psdir
1010 pdfdir
1011 dvidir
1012 htmldir
1013 infodir
1014 docdir
1015 oldincludedir
1016 includedir
1017 localstatedir
1018 sharedstatedir
1019 sysconfdir
1020 datadir
1021 datarootdir
1022 libexecdir
1023 sbindir
1024 bindir
1025 program_transform_name
1026 prefix
1027 exec_prefix
1028 PACKAGE_URL
1029 PACKAGE_BUGREPORT
1030 PACKAGE_STRING
1031 PACKAGE_VERSION
1032 PACKAGE_TARNAME
1033 PACKAGE_NAME
1034 PATH_SEPARATOR
1035 SHELL'
1036 ac_subst_files='MCOMMON'
1037 ac_user_opts='
1038 enable_option_checking
1039 enable_libtool
1040 enable_shared
1041 enable_static
1042 with_pic
1043 enable_fast_install
1044 with_gnu_ld
1045 enable_libtool_lock
1046 enable_includes
1047 enable_nls
1048 enable_rpath
1049 with_libiconv_prefix
1050 with_libintl_prefix
1051 with_included_gettext
1052 enable_gnome
1053 enable_bat
1054 enable_bwx_console
1055 enable_tray_monitor
1056 enable_smartalloc
1057 enable_lockmgr
1058 enable_static_tools
1059 enable_static_fd
1060 enable_static_sd
1061 enable_static_dir
1062 enable_static_cons
1063 enable_client_only
1064 enable_build_dird
1065 enable_build_stored
1066 enable_conio
1067 enable_ipv6
1068 enable_readline
1069 with_readline
1070 with_python
1071 with_tcp_wrappers
1072 with_openssl
1073 with_working_dir
1074 with_archivedir
1075 with_basename
1076 with_hostname
1077 with_scriptdir
1078 with_bsrdir
1079 with_logdir
1080 with_plugindir
1081 with_dump_email
1082 with_job_email
1083 with_smtp_host
1084 with_pid_dir
1085 with_subsys_dir
1086 with_baseport
1087 with_dir_password
1088 with_fd_password
1089 with_sd_password
1090 with_mon_dir_password
1091 with_mon_fd_password
1092 with_mon_sd_password
1093 with_db_name
1094 with_db_user
1095 with_db_password
1096 with_db_port
1097 with_dir_user
1098 with_dir_group
1099 with_sd_user
1100 with_sd_group
1101 with_fd_user
1102 with_fd_group
1103 with_sbin_perm
1104 with_postgresql
1105 with_mysql
1106 with_embedded_mysql
1107 with_ingres
1108 with_sqlite3
1109 with_dbi
1110 with_dbi_driver
1111 enable_batch_insert
1112 enable_largefile
1113 with_x
1114 enable_afs
1115 with_afsdir
1116 enable_acl
1117 enable_xattr
1118 '
1119       ac_precious_vars='build_alias
1120 host_alias
1121 target_alias
1122 CC
1123 CFLAGS
1124 LDFLAGS
1125 LIBS
1126 CPPFLAGS
1127 CXX
1128 CXXFLAGS
1129 CCC
1130 CPP
1131 WXCONFIG
1132 WXFLAGS
1133 CXXCPP
1134 XMKMF'
1135
1136
1137 # Initialize some variables set by options.
1138 ac_init_help=
1139 ac_init_version=false
1140 ac_unrecognized_opts=
1141 ac_unrecognized_sep=
1142 # The variables have the same names as the options, with
1143 # dashes changed to underlines.
1144 cache_file=/dev/null
1145 exec_prefix=NONE
1146 no_create=
1147 no_recursion=
1148 prefix=NONE
1149 program_prefix=NONE
1150 program_suffix=NONE
1151 program_transform_name=s,x,x,
1152 silent=
1153 site=
1154 srcdir=
1155 verbose=
1156 x_includes=NONE
1157 x_libraries=NONE
1158
1159 # Installation directory options.
1160 # These are left unexpanded so users can "make install exec_prefix=/foo"
1161 # and all the variables that are supposed to be based on exec_prefix
1162 # by default will actually change.
1163 # Use braces instead of parens because sh, perl, etc. also accept them.
1164 # (The list follows the same order as the GNU Coding Standards.)
1165 bindir='${exec_prefix}/bin'
1166 sbindir='${exec_prefix}/sbin'
1167 libexecdir='${exec_prefix}/libexec'
1168 datarootdir='${prefix}/share'
1169 datadir='${datarootdir}'
1170 sysconfdir='${prefix}/etc'
1171 sharedstatedir='${prefix}/com'
1172 localstatedir='${prefix}/var'
1173 includedir='${prefix}/include'
1174 oldincludedir='/usr/include'
1175 docdir='${datarootdir}/doc/${PACKAGE}'
1176 infodir='${datarootdir}/info'
1177 htmldir='${docdir}'
1178 dvidir='${docdir}'
1179 pdfdir='${docdir}'
1180 psdir='${docdir}'
1181 libdir='${exec_prefix}/lib'
1182 localedir='${datarootdir}/locale'
1183 mandir='${datarootdir}/man'
1184
1185 ac_prev=
1186 ac_dashdash=
1187 for ac_option
1188 do
1189   # If the previous option needs an argument, assign it.
1190   if test -n "$ac_prev"; then
1191     eval $ac_prev=\$ac_option
1192     ac_prev=
1193     continue
1194   fi
1195
1196   case $ac_option in
1197   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1198   *)    ac_optarg=yes ;;
1199   esac
1200
1201   # Accept the important Cygnus configure options, so we can diagnose typos.
1202
1203   case $ac_dashdash$ac_option in
1204   --)
1205     ac_dashdash=yes ;;
1206
1207   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1208     ac_prev=bindir ;;
1209   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1210     bindir=$ac_optarg ;;
1211
1212   -build | --build | --buil | --bui | --bu)
1213     ac_prev=build_alias ;;
1214   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1215     build_alias=$ac_optarg ;;
1216
1217   -cache-file | --cache-file | --cache-fil | --cache-fi \
1218   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1219     ac_prev=cache_file ;;
1220   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1221   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1222     cache_file=$ac_optarg ;;
1223
1224   --config-cache | -C)
1225     cache_file=config.cache ;;
1226
1227   -datadir | --datadir | --datadi | --datad)
1228     ac_prev=datadir ;;
1229   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1230     datadir=$ac_optarg ;;
1231
1232   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1233   | --dataroo | --dataro | --datar)
1234     ac_prev=datarootdir ;;
1235   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1236   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1237     datarootdir=$ac_optarg ;;
1238
1239   -disable-* | --disable-*)
1240     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1241     # Reject names that are not valid shell variable names.
1242     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243       as_fn_error "invalid feature name: $ac_useropt"
1244     ac_useropt_orig=$ac_useropt
1245     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246     case $ac_user_opts in
1247       *"
1248 "enable_$ac_useropt"
1249 "*) ;;
1250       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1251          ac_unrecognized_sep=', ';;
1252     esac
1253     eval enable_$ac_useropt=no ;;
1254
1255   -docdir | --docdir | --docdi | --doc | --do)
1256     ac_prev=docdir ;;
1257   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1258     docdir=$ac_optarg ;;
1259
1260   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1261     ac_prev=dvidir ;;
1262   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1263     dvidir=$ac_optarg ;;
1264
1265   -enable-* | --enable-*)
1266     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1267     # Reject names that are not valid shell variable names.
1268     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269       as_fn_error "invalid feature name: $ac_useropt"
1270     ac_useropt_orig=$ac_useropt
1271     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272     case $ac_user_opts in
1273       *"
1274 "enable_$ac_useropt"
1275 "*) ;;
1276       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1277          ac_unrecognized_sep=', ';;
1278     esac
1279     eval enable_$ac_useropt=\$ac_optarg ;;
1280
1281   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1282   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1283   | --exec | --exe | --ex)
1284     ac_prev=exec_prefix ;;
1285   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1286   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1287   | --exec=* | --exe=* | --ex=*)
1288     exec_prefix=$ac_optarg ;;
1289
1290   -gas | --gas | --ga | --g)
1291     # Obsolete; use --with-gas.
1292     with_gas=yes ;;
1293
1294   -help | --help | --hel | --he | -h)
1295     ac_init_help=long ;;
1296   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1297     ac_init_help=recursive ;;
1298   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1299     ac_init_help=short ;;
1300
1301   -host | --host | --hos | --ho)
1302     ac_prev=host_alias ;;
1303   -host=* | --host=* | --hos=* | --ho=*)
1304     host_alias=$ac_optarg ;;
1305
1306   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1307     ac_prev=htmldir ;;
1308   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1309   | --ht=*)
1310     htmldir=$ac_optarg ;;
1311
1312   -includedir | --includedir | --includedi | --included | --include \
1313   | --includ | --inclu | --incl | --inc)
1314     ac_prev=includedir ;;
1315   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1316   | --includ=* | --inclu=* | --incl=* | --inc=*)
1317     includedir=$ac_optarg ;;
1318
1319   -infodir | --infodir | --infodi | --infod | --info | --inf)
1320     ac_prev=infodir ;;
1321   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1322     infodir=$ac_optarg ;;
1323
1324   -libdir | --libdir | --libdi | --libd)
1325     ac_prev=libdir ;;
1326   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1327     libdir=$ac_optarg ;;
1328
1329   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1330   | --libexe | --libex | --libe)
1331     ac_prev=libexecdir ;;
1332   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1333   | --libexe=* | --libex=* | --libe=*)
1334     libexecdir=$ac_optarg ;;
1335
1336   -localedir | --localedir | --localedi | --localed | --locale)
1337     ac_prev=localedir ;;
1338   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1339     localedir=$ac_optarg ;;
1340
1341   -localstatedir | --localstatedir | --localstatedi | --localstated \
1342   | --localstate | --localstat | --localsta | --localst | --locals)
1343     ac_prev=localstatedir ;;
1344   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1345   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1346     localstatedir=$ac_optarg ;;
1347
1348   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1349     ac_prev=mandir ;;
1350   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1351     mandir=$ac_optarg ;;
1352
1353   -nfp | --nfp | --nf)
1354     # Obsolete; use --without-fp.
1355     with_fp=no ;;
1356
1357   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1358   | --no-cr | --no-c | -n)
1359     no_create=yes ;;
1360
1361   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1362   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1363     no_recursion=yes ;;
1364
1365   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1366   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1367   | --oldin | --oldi | --old | --ol | --o)
1368     ac_prev=oldincludedir ;;
1369   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1370   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1371   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1372     oldincludedir=$ac_optarg ;;
1373
1374   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1375     ac_prev=prefix ;;
1376   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1377     prefix=$ac_optarg ;;
1378
1379   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1380   | --program-pre | --program-pr | --program-p)
1381     ac_prev=program_prefix ;;
1382   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1383   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1384     program_prefix=$ac_optarg ;;
1385
1386   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1387   | --program-suf | --program-su | --program-s)
1388     ac_prev=program_suffix ;;
1389   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1390   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1391     program_suffix=$ac_optarg ;;
1392
1393   -program-transform-name | --program-transform-name \
1394   | --program-transform-nam | --program-transform-na \
1395   | --program-transform-n | --program-transform- \
1396   | --program-transform | --program-transfor \
1397   | --program-transfo | --program-transf \
1398   | --program-trans | --program-tran \
1399   | --progr-tra | --program-tr | --program-t)
1400     ac_prev=program_transform_name ;;
1401   -program-transform-name=* | --program-transform-name=* \
1402   | --program-transform-nam=* | --program-transform-na=* \
1403   | --program-transform-n=* | --program-transform-=* \
1404   | --program-transform=* | --program-transfor=* \
1405   | --program-transfo=* | --program-transf=* \
1406   | --program-trans=* | --program-tran=* \
1407   | --progr-tra=* | --program-tr=* | --program-t=*)
1408     program_transform_name=$ac_optarg ;;
1409
1410   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1411     ac_prev=pdfdir ;;
1412   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1413     pdfdir=$ac_optarg ;;
1414
1415   -psdir | --psdir | --psdi | --psd | --ps)
1416     ac_prev=psdir ;;
1417   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1418     psdir=$ac_optarg ;;
1419
1420   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1421   | -silent | --silent | --silen | --sile | --sil)
1422     silent=yes ;;
1423
1424   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1425     ac_prev=sbindir ;;
1426   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1427   | --sbi=* | --sb=*)
1428     sbindir=$ac_optarg ;;
1429
1430   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1431   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1432   | --sharedst | --shareds | --shared | --share | --shar \
1433   | --sha | --sh)
1434     ac_prev=sharedstatedir ;;
1435   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1436   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1437   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1438   | --sha=* | --sh=*)
1439     sharedstatedir=$ac_optarg ;;
1440
1441   -site | --site | --sit)
1442     ac_prev=site ;;
1443   -site=* | --site=* | --sit=*)
1444     site=$ac_optarg ;;
1445
1446   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1447     ac_prev=srcdir ;;
1448   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1449     srcdir=$ac_optarg ;;
1450
1451   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1452   | --syscon | --sysco | --sysc | --sys | --sy)
1453     ac_prev=sysconfdir ;;
1454   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1455   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1456     sysconfdir=$ac_optarg ;;
1457
1458   -target | --target | --targe | --targ | --tar | --ta | --t)
1459     ac_prev=target_alias ;;
1460   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1461     target_alias=$ac_optarg ;;
1462
1463   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1464     verbose=yes ;;
1465
1466   -version | --version | --versio | --versi | --vers | -V)
1467     ac_init_version=: ;;
1468
1469   -with-* | --with-*)
1470     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1471     # Reject names that are not valid shell variable names.
1472     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1473       as_fn_error "invalid package name: $ac_useropt"
1474     ac_useropt_orig=$ac_useropt
1475     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1476     case $ac_user_opts in
1477       *"
1478 "with_$ac_useropt"
1479 "*) ;;
1480       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1481          ac_unrecognized_sep=', ';;
1482     esac
1483     eval with_$ac_useropt=\$ac_optarg ;;
1484
1485   -without-* | --without-*)
1486     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1487     # Reject names that are not valid shell variable names.
1488     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1489       as_fn_error "invalid package name: $ac_useropt"
1490     ac_useropt_orig=$ac_useropt
1491     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1492     case $ac_user_opts in
1493       *"
1494 "with_$ac_useropt"
1495 "*) ;;
1496       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1497          ac_unrecognized_sep=', ';;
1498     esac
1499     eval with_$ac_useropt=no ;;
1500
1501   --x)
1502     # Obsolete; use --with-x.
1503     with_x=yes ;;
1504
1505   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1506   | --x-incl | --x-inc | --x-in | --x-i)
1507     ac_prev=x_includes ;;
1508   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1509   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1510     x_includes=$ac_optarg ;;
1511
1512   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1513   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1514     ac_prev=x_libraries ;;
1515   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1516   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1517     x_libraries=$ac_optarg ;;
1518
1519   -*) as_fn_error "unrecognized option: \`$ac_option'
1520 Try \`$0 --help' for more information."
1521     ;;
1522
1523   *=*)
1524     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1525     # Reject names that are not valid shell variable names.
1526     case $ac_envvar in #(
1527       '' | [0-9]* | *[!_$as_cr_alnum]* )
1528       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1529     esac
1530     eval $ac_envvar=\$ac_optarg
1531     export $ac_envvar ;;
1532
1533   *)
1534     # FIXME: should be removed in autoconf 3.0.
1535     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1536     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1537       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1538     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1539     ;;
1540
1541   esac
1542 done
1543
1544 if test -n "$ac_prev"; then
1545   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1546   as_fn_error "missing argument to $ac_option"
1547 fi
1548
1549 if test -n "$ac_unrecognized_opts"; then
1550   case $enable_option_checking in
1551     no) ;;
1552     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1553     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1554   esac
1555 fi
1556
1557 # Check all directory arguments for consistency.
1558 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1559                 datadir sysconfdir sharedstatedir localstatedir includedir \
1560                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1561                 libdir localedir mandir
1562 do
1563   eval ac_val=\$$ac_var
1564   # Remove trailing slashes.
1565   case $ac_val in
1566     */ )
1567       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1568       eval $ac_var=\$ac_val;;
1569   esac
1570   # Be sure to have absolute directory names.
1571   case $ac_val in
1572     [\\/$]* | ?:[\\/]* )  continue;;
1573     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1574   esac
1575   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1576 done
1577
1578 # There might be people who depend on the old broken behavior: `$host'
1579 # used to hold the argument of --host etc.
1580 # FIXME: To remove some day.
1581 build=$build_alias
1582 host=$host_alias
1583 target=$target_alias
1584
1585 # FIXME: To remove some day.
1586 if test "x$host_alias" != x; then
1587   if test "x$build_alias" = x; then
1588     cross_compiling=maybe
1589     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1590     If a cross compiler is detected then cross compile mode will be used." >&2
1591   elif test "x$build_alias" != "x$host_alias"; then
1592     cross_compiling=yes
1593   fi
1594 fi
1595
1596 ac_tool_prefix=
1597 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1598
1599 test "$silent" = yes && exec 6>/dev/null
1600
1601
1602 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1603 ac_ls_di=`ls -di .` &&
1604 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1605   as_fn_error "working directory cannot be determined"
1606 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1607   as_fn_error "pwd does not report name of working directory"
1608
1609
1610 # Find the source files, if location was not specified.
1611 if test -z "$srcdir"; then
1612   ac_srcdir_defaulted=yes
1613   # Try the directory containing this script, then the parent directory.
1614   ac_confdir=`$as_dirname -- "$as_myself" ||
1615 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1616          X"$as_myself" : 'X\(//\)[^/]' \| \
1617          X"$as_myself" : 'X\(//\)$' \| \
1618          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1619 $as_echo X"$as_myself" |
1620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1621             s//\1/
1622             q
1623           }
1624           /^X\(\/\/\)[^/].*/{
1625             s//\1/
1626             q
1627           }
1628           /^X\(\/\/\)$/{
1629             s//\1/
1630             q
1631           }
1632           /^X\(\/\).*/{
1633             s//\1/
1634             q
1635           }
1636           s/.*/./; q'`
1637   srcdir=$ac_confdir
1638   if test ! -r "$srcdir/$ac_unique_file"; then
1639     srcdir=..
1640   fi
1641 else
1642   ac_srcdir_defaulted=no
1643 fi
1644 if test ! -r "$srcdir/$ac_unique_file"; then
1645   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1646   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1647 fi
1648 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1649 ac_abs_confdir=`(
1650         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1651         pwd)`
1652 # When building in place, set srcdir=.
1653 if test "$ac_abs_confdir" = "$ac_pwd"; then
1654   srcdir=.
1655 fi
1656 # Remove unnecessary trailing slashes from srcdir.
1657 # Double slashes in file names in object file debugging info
1658 # mess up M-x gdb in Emacs.
1659 case $srcdir in
1660 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1661 esac
1662 for ac_var in $ac_precious_vars; do
1663   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1664   eval ac_env_${ac_var}_value=\$${ac_var}
1665   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1666   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1667 done
1668
1669 #
1670 # Report the --help message.
1671 #
1672 if test "$ac_init_help" = "long"; then
1673   # Omit some internal or obsolete options to make the list less imposing.
1674   # This message is too long to be a string in the A/UX 3.1 sh.
1675   cat <<_ACEOF
1676 \`configure' configures this package to adapt to many kinds of systems.
1677
1678 Usage: $0 [OPTION]... [VAR=VALUE]...
1679
1680 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1681 VAR=VALUE.  See below for descriptions of some of the useful variables.
1682
1683 Defaults for the options are specified in brackets.
1684
1685 Configuration:
1686   -h, --help              display this help and exit
1687       --help=short        display options specific to this package
1688       --help=recursive    display the short help of all the included packages
1689   -V, --version           display version information and exit
1690   -q, --quiet, --silent   do not print \`checking...' messages
1691       --cache-file=FILE   cache test results in FILE [disabled]
1692   -C, --config-cache      alias for \`--cache-file=config.cache'
1693   -n, --no-create         do not create output files
1694       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1695
1696 Installation directories:
1697   --prefix=PREFIX         install architecture-independent files in PREFIX
1698                           [$ac_default_prefix]
1699   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1700                           [PREFIX]
1701
1702 By default, \`make install' will install all the files in
1703 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1704 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1705 for instance \`--prefix=\$HOME'.
1706
1707 For better control, use the options below.
1708
1709 Fine tuning of the installation directories:
1710   --bindir=DIR            user executables [EPREFIX/bin]
1711   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1712   --libexecdir=DIR        program executables [EPREFIX/libexec]
1713   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1714   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1715   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1716   --libdir=DIR            object code libraries [EPREFIX/lib]
1717   --includedir=DIR        C header files [PREFIX/include]
1718   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1719   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1720   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1721   --infodir=DIR           info documentation [DATAROOTDIR/info]
1722   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1723   --mandir=DIR            man documentation [DATAROOTDIR/man]
1724   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1725   --htmldir=DIR           html documentation [DOCDIR]
1726   --dvidir=DIR            dvi documentation [DOCDIR]
1727   --pdfdir=DIR            pdf documentation [DOCDIR]
1728   --psdir=DIR             ps documentation [DOCDIR]
1729 _ACEOF
1730
1731   cat <<\_ACEOF
1732
1733 X features:
1734   --x-includes=DIR    X include files are in DIR
1735   --x-libraries=DIR   X library files are in DIR
1736
1737 System types:
1738   --build=BUILD     configure for building on BUILD [guessed]
1739   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1740 _ACEOF
1741 fi
1742
1743 if test -n "$ac_init_help"; then
1744
1745   cat <<\_ACEOF
1746
1747 Optional Features:
1748   --disable-option-checking  ignore unrecognized --enable/--with options
1749   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1750   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1751   --enable-libtool        enable building using GNU libtool [default=yes]
1752   --enable-shared[=PKGS]  build shared libraries [default=yes]
1753   --enable-static[=PKGS]  build static libraries [default=no]
1754   --enable-fast-install[=PKGS]
1755                           optimize for fast installation [default=yes]
1756   --disable-libtool-lock  avoid locking (might break parallel builds)
1757   --enable-includes       enable installing of include files [default=no]
1758   --disable-nls           do not use Native Language Support
1759   --disable-rpath         do not hardcode runtime library paths
1760   --enable-gnome          enable build of bgnome-console GUI [default=no]
1761   --enable-bat            enable build of bat Qt4 GUI [default=no]
1762   --enable-bwx-console    enable build of wxWidgets console [default=no]
1763   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1764                           KDE [default=no]
1765   --enable-smartalloc     enable smartalloc debugging support [default=no]
1766   --enable-lockmgr        enable lock manager support [default=no]
1767   --enable-static-tools   enable static tape tools [default=no]
1768   --enable-static-fd      enable static File daemon [default=no]
1769   --enable-static-sd      enable static Storage daemon [default=no]
1770   --enable-static-dir     enable static Director [default=no]
1771   --enable-static-cons    enable static Console [default=no]
1772   --enable-client-only    build client (File daemon) only [default=no]
1773   --enable-build-dird     enable building of dird (Director) [default=yes]
1774   --enable-build-stored   enable building of stored (Storage daemon)
1775                           [default=yes]
1776   --disable-conio         disable conio support [default=no]
1777   --enable-ipv6           enable ipv6 support [default=yes]
1778   --disable-readline      disable readline support [default=yes]
1779   --enable-batch-insert   enable the DB batch insert code [default=no]
1780   --disable-largefile     omit support for large files
1781   --disable-afs           disable afs support [default=auto]
1782   --disable-acl           disable acl support [default=auto]
1783   --disable-xattr         disable xattr support [default=auto]
1784
1785 Optional Packages:
1786   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1787   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1788   --with-pic              try to use only PIC/non-PIC objects [default=use
1789                           both]
1790   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1791   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1792   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1793   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1794   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1795   --without-libintl-prefix     don't search for libintl in includedir and libdir
1796   --with-included-gettext use the GNU gettext library included here
1797   --with-readline[=DIR]   specify readline library directory
1798   --with-python[=DIR]     Include Python support. DIR is the Python base
1799                           install directory, default is to search through a
1800                           number of common places for the Python files.
1801   --with-tcp-wrappers[=DIR]
1802                           enable tcpwrappers support
1803   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1804   --with-working-dir=PATH specify path of Bacula working directory
1805   --with-archivedir=PATH  specify path of SD archive directory
1806   --with-basename=RESNAME specify base resource name for daemons
1807   --with-hostname=RESNAME specify host name for daemons
1808   --with-scriptdir=PATH   specify path of Bacula scripts directory
1809   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1810   --with-logdir=PATH      specify path of Bacula logs directory
1811   --with-plugindir=PATH   specify path of Bacula plugins directory
1812   --with-dump-email=EMAIL dump email address
1813   --with-job-email=EMAIL  job output email address
1814   --with-smtp-host=HOST   SMTP mail host address
1815   --with-pid-dir=PATH     specify location of Bacula pid files
1816   --with-subsys-dir=PATH  specify location of Bacula subsys file
1817   --with-baseport=PORT    specify base port address for daemons
1818   --with-dir-password=PASSWORD
1819                           specify Director's password
1820   --with-fd-password=PASSWORD
1821                           specify Client's password
1822   --with-sd-password=PASSWORD
1823                           specify Storage daemon's password
1824   --with-mon-dir-password=PASSWORD
1825                           specify Director's password used by the monitor
1826   --with-mon-fd-password=PASSWORD
1827                           specify Client's password used by the monitor
1828   --with-mon-sd-password=PASSWORD
1829                           specify Storage daemon's password used by the
1830                           monitor
1831   --with-db-name=DBNAME   specify database name [default=bacula]
1832   --with-db-user=UNAME    specify database user [default=bacula]
1833   --with-db-password=PWD  specify database password [default=*none*]
1834   --with-db-port=DBPORT   specify a database port [default=null]
1835   --with-dir-user=USER    specify user for Director daemon
1836   --with-dir-group=GROUP  specify group for Director daemon
1837   --with-sd-user=USER     specify user for Storage daemon
1838   --with-sd-group=GROUP   specify group for Storage daemon
1839   --with-fd-user=USER     specify user for File daemon
1840   --with-fd-group=GROUP   specify group for File daemon
1841   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1842   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1843                           base install directory, [default=/usr/local/pgsql]
1844   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1845                           directory, default is to search through a number of
1846                           common places for the MySQL files.
1847   --with-embedded-mysql[=DIR]
1848                           Include MySQL support. DIR is the MySQL base install
1849                           directory, default is to search through a number of
1850                           common places for the MySQL files.
1851   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1852                           install directory, default is to search through a
1853                           number of common places for the Ingres files.
1854   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1855                           install directory, default is to search through a
1856                           number of common places for the SQLite3 files.
1857   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1858                           directory, default is to search through a number of
1859                           common places for the DBI files.
1860   --with-dbi-driver[=DRIVER]
1861                           Suport for DBI driver. DRIVER is the one DBI driver
1862                           like Mysql, Postgresql, others. Default is to not
1863                           configure any driver.
1864   --with-x                use the X Window System
1865   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1866
1867 Some influential environment variables:
1868   CC          C compiler command
1869   CFLAGS      C compiler flags
1870   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1871               nonstandard directory <lib dir>
1872   LIBS        libraries to pass to the linker, e.g. -l<library>
1873   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1874               you have headers in a nonstandard directory <include dir>
1875   CXX         C++ compiler command
1876   CXXFLAGS    C++ compiler flags
1877   CPP         C preprocessor
1878   WXCONFIG    wx-config command. On some systems, you must set it to
1879               wx-config-2.6 to use wxWidgets 2.6.
1880   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1881   CXXCPP      C++ preprocessor
1882   XMKMF       Path to xmkmf, Makefile generator for X Window System
1883
1884 Use these variables to override the choices made by `configure' or to help
1885 it to find libraries and programs with nonstandard names/locations.
1886
1887 Report bugs to the package provider.
1888 _ACEOF
1889 ac_status=$?
1890 fi
1891
1892 if test "$ac_init_help" = "recursive"; then
1893   # If there are subdirs, report their specific --help.
1894   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1895     test -d "$ac_dir" ||
1896       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1897       continue
1898     ac_builddir=.
1899
1900 case "$ac_dir" in
1901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1902 *)
1903   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1904   # A ".." for each directory in $ac_dir_suffix.
1905   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1906   case $ac_top_builddir_sub in
1907   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1908   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1909   esac ;;
1910 esac
1911 ac_abs_top_builddir=$ac_pwd
1912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1913 # for backward compatibility:
1914 ac_top_builddir=$ac_top_build_prefix
1915
1916 case $srcdir in
1917   .)  # We are building in place.
1918     ac_srcdir=.
1919     ac_top_srcdir=$ac_top_builddir_sub
1920     ac_abs_top_srcdir=$ac_pwd ;;
1921   [\\/]* | ?:[\\/]* )  # Absolute name.
1922     ac_srcdir=$srcdir$ac_dir_suffix;
1923     ac_top_srcdir=$srcdir
1924     ac_abs_top_srcdir=$srcdir ;;
1925   *) # Relative name.
1926     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1927     ac_top_srcdir=$ac_top_build_prefix$srcdir
1928     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1929 esac
1930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1931
1932     cd "$ac_dir" || { ac_status=$?; continue; }
1933     # Check for guested configure.
1934     if test -f "$ac_srcdir/configure.gnu"; then
1935       echo &&
1936       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1937     elif test -f "$ac_srcdir/configure"; then
1938       echo &&
1939       $SHELL "$ac_srcdir/configure" --help=recursive
1940     else
1941       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1942     fi || ac_status=$?
1943     cd "$ac_pwd" || { ac_status=$?; break; }
1944   done
1945 fi
1946
1947 test -n "$ac_init_help" && exit $ac_status
1948 if $ac_init_version; then
1949   cat <<\_ACEOF
1950 configure
1951 generated by GNU Autoconf 2.65
1952
1953 Copyright (C) 2009 Free Software Foundation, Inc.
1954 This configure script is free software; the Free Software Foundation
1955 gives unlimited permission to copy, distribute and modify it.
1956 _ACEOF
1957   exit
1958 fi
1959
1960 ## ------------------------ ##
1961 ## Autoconf initialization. ##
1962 ## ------------------------ ##
1963
1964 # ac_fn_c_try_compile LINENO
1965 # --------------------------
1966 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1967 ac_fn_c_try_compile ()
1968 {
1969   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970   rm -f conftest.$ac_objext
1971   if { { ac_try="$ac_compile"
1972 case "(($ac_try" in
1973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974   *) ac_try_echo=$ac_try;;
1975 esac
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978   (eval "$ac_compile") 2>conftest.err
1979   ac_status=$?
1980   if test -s conftest.err; then
1981     grep -v '^ *+' conftest.err >conftest.er1
1982     cat conftest.er1 >&5
1983     mv -f conftest.er1 conftest.err
1984   fi
1985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986   test $ac_status = 0; } && {
1987          test -z "$ac_c_werror_flag" ||
1988          test ! -s conftest.err
1989        } && test -s conftest.$ac_objext; then :
1990   ac_retval=0
1991 else
1992   $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1994
1995         ac_retval=1
1996 fi
1997   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1998   as_fn_set_status $ac_retval
1999
2000 } # ac_fn_c_try_compile
2001
2002 # ac_fn_cxx_try_compile LINENO
2003 # ----------------------------
2004 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2005 ac_fn_cxx_try_compile ()
2006 {
2007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008   rm -f conftest.$ac_objext
2009   if { { ac_try="$ac_compile"
2010 case "(($ac_try" in
2011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012   *) ac_try_echo=$ac_try;;
2013 esac
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016   (eval "$ac_compile") 2>conftest.err
2017   ac_status=$?
2018   if test -s conftest.err; then
2019     grep -v '^ *+' conftest.err >conftest.er1
2020     cat conftest.er1 >&5
2021     mv -f conftest.er1 conftest.err
2022   fi
2023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024   test $ac_status = 0; } && {
2025          test -z "$ac_cxx_werror_flag" ||
2026          test ! -s conftest.err
2027        } && test -s conftest.$ac_objext; then :
2028   ac_retval=0
2029 else
2030   $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033         ac_retval=1
2034 fi
2035   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036   as_fn_set_status $ac_retval
2037
2038 } # ac_fn_cxx_try_compile
2039
2040 # ac_fn_c_try_cpp LINENO
2041 # ----------------------
2042 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2043 ac_fn_c_try_cpp ()
2044 {
2045   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046   if { { ac_try="$ac_cpp conftest.$ac_ext"
2047 case "(($ac_try" in
2048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049   *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2054   ac_status=$?
2055   if test -s conftest.err; then
2056     grep -v '^ *+' conftest.err >conftest.er1
2057     cat conftest.er1 >&5
2058     mv -f conftest.er1 conftest.err
2059   fi
2060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061   test $ac_status = 0; } >/dev/null && {
2062          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2063          test ! -s conftest.err
2064        }; then :
2065   ac_retval=0
2066 else
2067   $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2069
2070     ac_retval=1
2071 fi
2072   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073   as_fn_set_status $ac_retval
2074
2075 } # ac_fn_c_try_cpp
2076
2077 # ac_fn_c_try_link LINENO
2078 # -----------------------
2079 # Try to link conftest.$ac_ext, and return whether this succeeded.
2080 ac_fn_c_try_link ()
2081 {
2082   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083   rm -f conftest.$ac_objext conftest$ac_exeext
2084   if { { ac_try="$ac_link"
2085 case "(($ac_try" in
2086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087   *) ac_try_echo=$ac_try;;
2088 esac
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091   (eval "$ac_link") 2>conftest.err
2092   ac_status=$?
2093   if test -s conftest.err; then
2094     grep -v '^ *+' conftest.err >conftest.er1
2095     cat conftest.er1 >&5
2096     mv -f conftest.er1 conftest.err
2097   fi
2098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099   test $ac_status = 0; } && {
2100          test -z "$ac_c_werror_flag" ||
2101          test ! -s conftest.err
2102        } && test -s conftest$ac_exeext && {
2103          test "$cross_compiling" = yes ||
2104          $as_test_x conftest$ac_exeext
2105        }; then :
2106   ac_retval=0
2107 else
2108   $as_echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2110
2111         ac_retval=1
2112 fi
2113   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2114   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2115   # interfere with the next link command; also delete a directory that is
2116   # left behind by Apple's compiler.  We do this before executing the actions.
2117   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2118   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119   as_fn_set_status $ac_retval
2120
2121 } # ac_fn_c_try_link
2122
2123 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2124 # -------------------------------------------------------
2125 # Tests whether HEADER exists and can be compiled using the include files in
2126 # INCLUDES, setting the cache variable VAR accordingly.
2127 ac_fn_c_check_header_compile ()
2128 {
2129   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133   $as_echo_n "(cached) " >&6
2134 else
2135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h.  */
2137 $4
2138 #include <$2>
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141   eval "$3=yes"
2142 else
2143   eval "$3=no"
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 fi
2147 eval ac_res=\$$3
2148                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151
2152 } # ac_fn_c_check_header_compile
2153
2154 # ac_fn_c_try_run LINENO
2155 # ----------------------
2156 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2157 # that executables *can* be run.
2158 ac_fn_c_try_run ()
2159 {
2160   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161   if { { ac_try="$ac_link"
2162 case "(($ac_try" in
2163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164   *) ac_try_echo=$ac_try;;
2165 esac
2166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2167 $as_echo "$ac_try_echo"; } >&5
2168   (eval "$ac_link") 2>&5
2169   ac_status=$?
2170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2172   { { case "(($ac_try" in
2173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174   *) ac_try_echo=$ac_try;;
2175 esac
2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177 $as_echo "$ac_try_echo"; } >&5
2178   (eval "$ac_try") 2>&5
2179   ac_status=$?
2180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181   test $ac_status = 0; }; }; then :
2182   ac_retval=0
2183 else
2184   $as_echo "$as_me: program exited with status $ac_status" >&5
2185        $as_echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188        ac_retval=$ac_status
2189 fi
2190   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2191   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192   as_fn_set_status $ac_retval
2193
2194 } # ac_fn_c_try_run
2195
2196 # ac_fn_c_check_func LINENO FUNC VAR
2197 # ----------------------------------
2198 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2199 ac_fn_c_check_func ()
2200 {
2201   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2205   $as_echo_n "(cached) " >&6
2206 else
2207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h.  */
2209 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2211 #define $2 innocuous_$2
2212
2213 /* System header to define __stub macros and hopefully few prototypes,
2214     which can conflict with char $2 (); below.
2215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2216     <limits.h> exists even on freestanding compilers.  */
2217
2218 #ifdef __STDC__
2219 # include <limits.h>
2220 #else
2221 # include <assert.h>
2222 #endif
2223
2224 #undef $2
2225
2226 /* Override any GCC internal prototype to avoid an error.
2227    Use char because int might match the return type of a GCC
2228    builtin and then its argument prototype would still apply.  */
2229 #ifdef __cplusplus
2230 extern "C"
2231 #endif
2232 char $2 ();
2233 /* The GNU C library defines this for functions which it implements
2234     to always fail with ENOSYS.  Some functions are actually named
2235     something starting with __ and the normal name is an alias.  */
2236 #if defined __stub_$2 || defined __stub___$2
2237 choke me
2238 #endif
2239
2240 int
2241 main ()
2242 {
2243 return $2 ();
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_link "$LINENO"; then :
2249   eval "$3=yes"
2250 else
2251   eval "$3=no"
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext \
2254     conftest$ac_exeext conftest.$ac_ext
2255 fi
2256 eval ac_res=\$$3
2257                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260
2261 } # ac_fn_c_check_func
2262
2263 # ac_fn_cxx_try_cpp LINENO
2264 # ------------------------
2265 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_cxx_try_cpp ()
2267 {
2268   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269   if { { ac_try="$ac_cpp conftest.$ac_ext"
2270 case "(($ac_try" in
2271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272   *) ac_try_echo=$ac_try;;
2273 esac
2274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275 $as_echo "$ac_try_echo"; } >&5
2276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2277   ac_status=$?
2278   if test -s conftest.err; then
2279     grep -v '^ *+' conftest.err >conftest.er1
2280     cat conftest.er1 >&5
2281     mv -f conftest.er1 conftest.err
2282   fi
2283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284   test $ac_status = 0; } >/dev/null && {
2285          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2286          test ! -s conftest.err
2287        }; then :
2288   ac_retval=0
2289 else
2290   $as_echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2292
2293     ac_retval=1
2294 fi
2295   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2296   as_fn_set_status $ac_retval
2297
2298 } # ac_fn_cxx_try_cpp
2299
2300 # ac_fn_cxx_try_link LINENO
2301 # -------------------------
2302 # Try to link conftest.$ac_ext, and return whether this succeeded.
2303 ac_fn_cxx_try_link ()
2304 {
2305   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306   rm -f conftest.$ac_objext conftest$ac_exeext
2307   if { { ac_try="$ac_link"
2308 case "(($ac_try" in
2309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310   *) ac_try_echo=$ac_try;;
2311 esac
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314   (eval "$ac_link") 2>conftest.err
2315   ac_status=$?
2316   if test -s conftest.err; then
2317     grep -v '^ *+' conftest.err >conftest.er1
2318     cat conftest.er1 >&5
2319     mv -f conftest.er1 conftest.err
2320   fi
2321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322   test $ac_status = 0; } && {
2323          test -z "$ac_cxx_werror_flag" ||
2324          test ! -s conftest.err
2325        } && test -s conftest$ac_exeext && {
2326          test "$cross_compiling" = yes ||
2327          $as_test_x conftest$ac_exeext
2328        }; then :
2329   ac_retval=0
2330 else
2331   $as_echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334         ac_retval=1
2335 fi
2336   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2337   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2338   # interfere with the next link command; also delete a directory that is
2339   # left behind by Apple's compiler.  We do this before executing the actions.
2340   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2341   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342   as_fn_set_status $ac_retval
2343
2344 } # ac_fn_cxx_try_link
2345
2346 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2347 # -------------------------------------------
2348 # Tests whether TYPE exists after having included INCLUDES, setting cache
2349 # variable VAR accordingly.
2350 ac_fn_c_check_type ()
2351 {
2352   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2354 $as_echo_n "checking for $2... " >&6; }
2355 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2356   $as_echo_n "(cached) " >&6
2357 else
2358   eval "$3=no"
2359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h.  */
2361 $4
2362 int
2363 main ()
2364 {
2365 if (sizeof ($2))
2366          return 0;
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 if ac_fn_c_try_compile "$LINENO"; then :
2372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h.  */
2374 $4
2375 int
2376 main ()
2377 {
2378 if (sizeof (($2)))
2379             return 0;
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385
2386 else
2387   eval "$3=yes"
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 eval ac_res=\$$3
2394                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397
2398 } # ac_fn_c_check_type
2399
2400 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2401 # -------------------------------------------------------
2402 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2403 # the include files in INCLUDES and setting the cache variable VAR
2404 # accordingly.
2405 ac_fn_c_check_header_mongrel ()
2406 {
2407   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412   $as_echo_n "(cached) " >&6
2413 fi
2414 eval ac_res=\$$3
2415                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416 $as_echo "$ac_res" >&6; }
2417 else
2418   # Is the header compilable?
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2420 $as_echo_n "checking $2 usability... " >&6; }
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h.  */
2423 $4
2424 #include <$2>
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427   ac_header_compiler=yes
2428 else
2429   ac_header_compiler=no
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2433 $as_echo "$ac_header_compiler" >&6; }
2434
2435 # Is the header present?
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2437 $as_echo_n "checking $2 presence... " >&6; }
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h.  */
2440 #include <$2>
2441 _ACEOF
2442 if ac_fn_c_try_cpp "$LINENO"; then :
2443   ac_header_preproc=yes
2444 else
2445   ac_header_preproc=no
2446 fi
2447 rm -f conftest.err conftest.$ac_ext
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2449 $as_echo "$ac_header_preproc" >&6; }
2450
2451 # So?  What about this header?
2452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2453   yes:no: )
2454     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2455 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2456     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2457 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2458     ;;
2459   no:yes:* )
2460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2461 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2462     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2463 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2464     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2465 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2466     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2467 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2468     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2469 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2470     ;;
2471 esac
2472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2473 $as_echo_n "checking for $2... " >&6; }
2474 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2475   $as_echo_n "(cached) " >&6
2476 else
2477   eval "$3=\$ac_header_compiler"
2478 fi
2479 eval ac_res=\$$3
2480                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 fi
2483   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484
2485 } # ac_fn_c_check_header_mongrel
2486
2487 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2488 # --------------------------------------------
2489 # Tries to find the compile-time value of EXPR in a program that includes
2490 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2491 # computed
2492 ac_fn_c_compute_int ()
2493 {
2494   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495   if test "$cross_compiling" = yes; then
2496     # Depending upon the size, compute the lo and hi bounds.
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h.  */
2499 $4
2500 int
2501 main ()
2502 {
2503 static int test_array [1 - 2 * !(($2) >= 0)];
2504 test_array [0] = 0
2505
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 if ac_fn_c_try_compile "$LINENO"; then :
2511   ac_lo=0 ac_mid=0
2512   while :; do
2513     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h.  */
2515 $4
2516 int
2517 main ()
2518 {
2519 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2520 test_array [0] = 0
2521
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 if ac_fn_c_try_compile "$LINENO"; then :
2527   ac_hi=$ac_mid; break
2528 else
2529   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2530                         if test $ac_lo -le $ac_mid; then
2531                           ac_lo= ac_hi=
2532                           break
2533                         fi
2534                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2535 fi
2536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537   done
2538 else
2539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h.  */
2541 $4
2542 int
2543 main ()
2544 {
2545 static int test_array [1 - 2 * !(($2) < 0)];
2546 test_array [0] = 0
2547
2548   ;
2549   return 0;
2550 }
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553   ac_hi=-1 ac_mid=-1
2554   while :; do
2555     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h.  */
2557 $4
2558 int
2559 main ()
2560 {
2561 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2562 test_array [0] = 0
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 if ac_fn_c_try_compile "$LINENO"; then :
2569   ac_lo=$ac_mid; break
2570 else
2571   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2572                         if test $ac_mid -le $ac_hi; then
2573                           ac_lo= ac_hi=
2574                           break
2575                         fi
2576                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2577 fi
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579   done
2580 else
2581   ac_lo= ac_hi=
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 # Binary search between lo and hi bounds.
2587 while test "x$ac_lo" != "x$ac_hi"; do
2588   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h.  */
2591 $4
2592 int
2593 main ()
2594 {
2595 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2596 test_array [0] = 0
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603   ac_hi=$ac_mid
2604 else
2605   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2606 fi
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 done
2609 case $ac_lo in #((
2610 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2611 '') ac_retval=1 ;;
2612 esac
2613   else
2614     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h.  */
2616 $4
2617 static long int longval () { return $2; }
2618 static unsigned long int ulongval () { return $2; }
2619 #include <stdio.h>
2620 #include <stdlib.h>
2621 int
2622 main ()
2623 {
2624
2625   FILE *f = fopen ("conftest.val", "w");
2626   if (! f)
2627     return 1;
2628   if (($2) < 0)
2629     {
2630       long int i = longval ();
2631       if (i != ($2))
2632         return 1;
2633       fprintf (f, "%ld", i);
2634     }
2635   else
2636     {
2637       unsigned long int i = ulongval ();
2638       if (i != ($2))
2639         return 1;
2640       fprintf (f, "%lu", i);
2641     }
2642   /* Do not output a trailing newline, as this causes \r\n confusion
2643      on some platforms.  */
2644   return ferror (f) || fclose (f) != 0;
2645
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 if ac_fn_c_try_run "$LINENO"; then :
2651   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2652 else
2653   ac_retval=1
2654 fi
2655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2656   conftest.$ac_objext conftest.beam conftest.$ac_ext
2657 rm -f conftest.val
2658
2659   fi
2660   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2661   as_fn_set_status $ac_retval
2662
2663 } # ac_fn_c_compute_int
2664
2665 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2666 # ----------------------------------------------------
2667 # Tries to find if the field MEMBER exists in type AGGR, after including
2668 # INCLUDES, setting cache variable VAR accordingly.
2669 ac_fn_c_check_member ()
2670 {
2671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2673 $as_echo_n "checking for $2.$3... " >&6; }
2674 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2675   $as_echo_n "(cached) " >&6
2676 else
2677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h.  */
2679 $5
2680 int
2681 main ()
2682 {
2683 static $2 ac_aggr;
2684 if (ac_aggr.$3)
2685 return 0;
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 if ac_fn_c_try_compile "$LINENO"; then :
2691   eval "$4=yes"
2692 else
2693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h.  */
2695 $5
2696 int
2697 main ()
2698 {
2699 static $2 ac_aggr;
2700 if (sizeof ac_aggr.$3)
2701 return 0;
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 if ac_fn_c_try_compile "$LINENO"; then :
2707   eval "$4=yes"
2708 else
2709   eval "$4=no"
2710 fi
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712 fi
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 fi
2715 eval ac_res=\$$4
2716                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717 $as_echo "$ac_res" >&6; }
2718   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2719
2720 } # ac_fn_c_check_member
2721
2722 # ac_fn_c_check_decl LINENO SYMBOL VAR
2723 # ------------------------------------
2724 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2725 ac_fn_c_check_decl ()
2726 {
2727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2729 $as_echo_n "checking whether $2 is declared... " >&6; }
2730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2731   $as_echo_n "(cached) " >&6
2732 else
2733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h.  */
2735 $4
2736 int
2737 main ()
2738 {
2739 #ifndef $2
2740   (void) $2;
2741 #endif
2742
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 if ac_fn_c_try_compile "$LINENO"; then :
2748   eval "$3=yes"
2749 else
2750   eval "$3=no"
2751 fi
2752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2753 fi
2754 eval ac_res=\$$3
2755                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756 $as_echo "$ac_res" >&6; }
2757   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2758
2759 } # ac_fn_c_check_decl
2760
2761 # ac_fn_cxx_try_run LINENO
2762 # ------------------------
2763 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2764 # that executables *can* be run.
2765 ac_fn_cxx_try_run ()
2766 {
2767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2768   if { { ac_try="$ac_link"
2769 case "(($ac_try" in
2770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771   *) ac_try_echo=$ac_try;;
2772 esac
2773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774 $as_echo "$ac_try_echo"; } >&5
2775   (eval "$ac_link") 2>&5
2776   ac_status=$?
2777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2779   { { case "(($ac_try" in
2780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781   *) ac_try_echo=$ac_try;;
2782 esac
2783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2784 $as_echo "$ac_try_echo"; } >&5
2785   (eval "$ac_try") 2>&5
2786   ac_status=$?
2787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2788   test $ac_status = 0; }; }; then :
2789   ac_retval=0
2790 else
2791   $as_echo "$as_me: program exited with status $ac_status" >&5
2792        $as_echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795        ac_retval=$ac_status
2796 fi
2797   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2798   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2799   as_fn_set_status $ac_retval
2800
2801 } # ac_fn_cxx_try_run
2802 cat >config.log <<_ACEOF
2803 This file contains any messages produced by compilers while
2804 running configure, to aid debugging if configure makes a mistake.
2805
2806 It was created by $as_me, which was
2807 generated by GNU Autoconf 2.65.  Invocation command line was
2808
2809   $ $0 $@
2810
2811 _ACEOF
2812 exec 5>>config.log
2813 {
2814 cat <<_ASUNAME
2815 ## --------- ##
2816 ## Platform. ##
2817 ## --------- ##
2818
2819 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2820 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2821 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2822 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2823 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2824
2825 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2826 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2827
2828 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2829 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2830 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2831 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2832 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2833 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2834 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2835
2836 _ASUNAME
2837
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841   IFS=$as_save_IFS
2842   test -z "$as_dir" && as_dir=.
2843     $as_echo "PATH: $as_dir"
2844   done
2845 IFS=$as_save_IFS
2846
2847 } >&5
2848
2849 cat >&5 <<_ACEOF
2850
2851
2852 ## ----------- ##
2853 ## Core tests. ##
2854 ## ----------- ##
2855
2856 _ACEOF
2857
2858
2859 # Keep a trace of the command line.
2860 # Strip out --no-create and --no-recursion so they do not pile up.
2861 # Strip out --silent because we don't want to record it for future runs.
2862 # Also quote any args containing shell meta-characters.
2863 # Make two passes to allow for proper duplicate-argument suppression.
2864 ac_configure_args=
2865 ac_configure_args0=
2866 ac_configure_args1=
2867 ac_must_keep_next=false
2868 for ac_pass in 1 2
2869 do
2870   for ac_arg
2871   do
2872     case $ac_arg in
2873     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2874     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2875     | -silent | --silent | --silen | --sile | --sil)
2876       continue ;;
2877     *\'*)
2878       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2879     esac
2880     case $ac_pass in
2881     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2882     2)
2883       as_fn_append ac_configure_args1 " '$ac_arg'"
2884       if test $ac_must_keep_next = true; then
2885         ac_must_keep_next=false # Got value, back to normal.
2886       else
2887         case $ac_arg in
2888           *=* | --config-cache | -C | -disable-* | --disable-* \
2889           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2890           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2891           | -with-* | --with-* | -without-* | --without-* | --x)
2892             case "$ac_configure_args0 " in
2893               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2894             esac
2895             ;;
2896           -* ) ac_must_keep_next=true ;;
2897         esac
2898       fi
2899       as_fn_append ac_configure_args " '$ac_arg'"
2900       ;;
2901     esac
2902   done
2903 done
2904 { ac_configure_args0=; unset ac_configure_args0;}
2905 { ac_configure_args1=; unset ac_configure_args1;}
2906
2907 # When interrupted or exit'd, cleanup temporary files, and complete
2908 # config.log.  We remove comments because anyway the quotes in there
2909 # would cause problems or look ugly.
2910 # WARNING: Use '\'' to represent an apostrophe within the trap.
2911 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2912 trap 'exit_status=$?
2913   # Save into config.log some information that might help in debugging.
2914   {
2915     echo
2916
2917     cat <<\_ASBOX
2918 ## ---------------- ##
2919 ## Cache variables. ##
2920 ## ---------------- ##
2921 _ASBOX
2922     echo
2923     # The following way of writing the cache mishandles newlines in values,
2924 (
2925   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2926     eval ac_val=\$$ac_var
2927     case $ac_val in #(
2928     *${as_nl}*)
2929       case $ac_var in #(
2930       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2932       esac
2933       case $ac_var in #(
2934       _ | IFS | as_nl) ;; #(
2935       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2936       *) { eval $ac_var=; unset $ac_var;} ;;
2937       esac ;;
2938     esac
2939   done
2940   (set) 2>&1 |
2941     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2942     *${as_nl}ac_space=\ *)
2943       sed -n \
2944         "s/'\''/'\''\\\\'\'''\''/g;
2945           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2946       ;; #(
2947     *)
2948       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2949       ;;
2950     esac |
2951     sort
2952 )
2953     echo
2954
2955     cat <<\_ASBOX
2956 ## ----------------- ##
2957 ## Output variables. ##
2958 ## ----------------- ##
2959 _ASBOX
2960     echo
2961     for ac_var in $ac_subst_vars
2962     do
2963       eval ac_val=\$$ac_var
2964       case $ac_val in
2965       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2966       esac
2967       $as_echo "$ac_var='\''$ac_val'\''"
2968     done | sort
2969     echo
2970
2971     if test -n "$ac_subst_files"; then
2972       cat <<\_ASBOX
2973 ## ------------------- ##
2974 ## File substitutions. ##
2975 ## ------------------- ##
2976 _ASBOX
2977       echo
2978       for ac_var in $ac_subst_files
2979       do
2980         eval ac_val=\$$ac_var
2981         case $ac_val in
2982         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2983         esac
2984         $as_echo "$ac_var='\''$ac_val'\''"
2985       done | sort
2986       echo
2987     fi
2988
2989     if test -s confdefs.h; then
2990       cat <<\_ASBOX
2991 ## ----------- ##
2992 ## confdefs.h. ##
2993 ## ----------- ##
2994 _ASBOX
2995       echo
2996       cat confdefs.h
2997       echo
2998     fi
2999     test "$ac_signal" != 0 &&
3000       $as_echo "$as_me: caught signal $ac_signal"
3001     $as_echo "$as_me: exit $exit_status"
3002   } >&5
3003   rm -f core *.core core.conftest.* &&
3004     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3005     exit $exit_status
3006 ' 0
3007 for ac_signal in 1 2 13 15; do
3008   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3009 done
3010 ac_signal=0
3011
3012 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3013 rm -f -r conftest* confdefs.h
3014
3015 $as_echo "/* confdefs.h */" > confdefs.h
3016
3017 # Predefined preprocessor variables.
3018
3019 cat >>confdefs.h <<_ACEOF
3020 #define PACKAGE_NAME "$PACKAGE_NAME"
3021 _ACEOF
3022
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3025 _ACEOF
3026
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3029 _ACEOF
3030
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE_STRING "$PACKAGE_STRING"
3033 _ACEOF
3034
3035 cat >>confdefs.h <<_ACEOF
3036 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3037 _ACEOF
3038
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_URL "$PACKAGE_URL"
3041 _ACEOF
3042
3043
3044 # Let the site file select an alternate cache file if it wants to.
3045 # Prefer an explicitly selected file to automatically selected ones.
3046 ac_site_file1=NONE
3047 ac_site_file2=NONE
3048 if test -n "$CONFIG_SITE"; then
3049   ac_site_file1=$CONFIG_SITE
3050 elif test "x$prefix" != xNONE; then
3051   ac_site_file1=$prefix/share/config.site
3052   ac_site_file2=$prefix/etc/config.site
3053 else
3054   ac_site_file1=$ac_default_prefix/share/config.site
3055   ac_site_file2=$ac_default_prefix/etc/config.site
3056 fi
3057 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3058 do
3059   test "x$ac_site_file" = xNONE && continue
3060   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3061     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3062 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3063     sed 's/^/| /' "$ac_site_file" >&5
3064     . "$ac_site_file"
3065   fi
3066 done
3067
3068 if test -r "$cache_file"; then
3069   # Some versions of bash will fail to source /dev/null (special files
3070   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3071   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3072     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3073 $as_echo "$as_me: loading cache $cache_file" >&6;}
3074     case $cache_file in
3075       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3076       *)                      . "./$cache_file";;
3077     esac
3078   fi
3079 else
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3081 $as_echo "$as_me: creating cache $cache_file" >&6;}
3082   >$cache_file
3083 fi
3084
3085 as_fn_append ac_header_list " stdlib.h"
3086 as_fn_append ac_header_list " unistd.h"
3087 as_fn_append ac_header_list " sys/param.h"
3088 # Check that the precious variables saved in the cache have kept the same
3089 # value.
3090 ac_cache_corrupted=false
3091 for ac_var in $ac_precious_vars; do
3092   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3093   eval ac_new_set=\$ac_env_${ac_var}_set
3094   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3095   eval ac_new_val=\$ac_env_${ac_var}_value
3096   case $ac_old_set,$ac_new_set in
3097     set,)
3098       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3099 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3100       ac_cache_corrupted=: ;;
3101     ,set)
3102       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3103 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3104       ac_cache_corrupted=: ;;
3105     ,);;
3106     *)
3107       if test "x$ac_old_val" != "x$ac_new_val"; then
3108         # differences in whitespace do not lead to failure.
3109         ac_old_val_w=`echo x $ac_old_val`
3110         ac_new_val_w=`echo x $ac_new_val`
3111         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3112           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3113 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3114           ac_cache_corrupted=:
3115         else
3116           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3117 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3118           eval $ac_var=\$ac_old_val
3119         fi
3120         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3121 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3122         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3123 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3124       fi;;
3125   esac
3126   # Pass precious variables to config.status.
3127   if test "$ac_new_set" = set; then
3128     case $ac_new_val in
3129     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3130     *) ac_arg=$ac_var=$ac_new_val ;;
3131     esac
3132     case " $ac_configure_args " in
3133       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3134       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3135     esac
3136   fi
3137 done
3138 if $ac_cache_corrupted; then
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3142 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3143   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3144 fi
3145 ## -------------------- ##
3146 ## Main body of script. ##
3147 ## -------------------- ##
3148
3149 ac_ext=c
3150 ac_cpp='$CPP $CPPFLAGS'
3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3154
3155
3156 BUILD_DIR=`pwd`
3157 cd ..
3158 TOP_DIR=`pwd`
3159 cd ${BUILD_DIR}
3160
3161
3162 ac_aux_dir=
3163 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3164   for ac_t in install-sh install.sh shtool; do
3165     if test -f "$ac_dir/$ac_t"; then
3166       ac_aux_dir=$ac_dir
3167       ac_install_sh="$ac_aux_dir/$ac_t -c"
3168       break 2
3169     fi
3170   done
3171 done
3172 if test -z "$ac_aux_dir"; then
3173   as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3174 fi
3175
3176 # These three variables are undocumented and unsupported,
3177 # and are intended to be withdrawn in a future Autoconf release.
3178 # They can cause serious problems if a builder's source tree is in a directory
3179 # whose full name contains unusual characters.
3180 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3181 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3182 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3183
3184
3185 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3186
3187
3188 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3189 WIN32MAINDIR=${BUILD_DIR}
3190 WIN32TOPDIR=${TOP_DIR}
3191
3192
3193
3194
3195 for ac_prog in true
3196 do
3197   # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3202   $as_echo_n "(cached) " >&6
3203 else
3204   case $TRUEPRG in
3205   [\\/]* | ?:[\\/]*)
3206   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3207   ;;
3208   *)
3209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214     for ac_exec_ext in '' $ac_executable_extensions; do
3215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221   done
3222 IFS=$as_save_IFS
3223
3224   ;;
3225 esac
3226 fi
3227 TRUEPRG=$ac_cv_path_TRUEPRG
3228 if test -n "$TRUEPRG"; then
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3230 $as_echo "$TRUEPRG" >&6; }
3231 else
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237   test -n "$TRUEPRG" && break
3238 done
3239 test -n "$TRUEPRG" || TRUEPRG=":"
3240
3241 for ac_prog in false
3242 do
3243   # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy $ac_prog; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   case $FALSEPRG in
3251   [\\/]* | ?:[\\/]*)
3252   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3253   ;;
3254   *)
3255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258   IFS=$as_save_IFS
3259   test -z "$as_dir" && as_dir=.
3260     for ac_exec_ext in '' $ac_executable_extensions; do
3261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264     break 2
3265   fi
3266 done
3267   done
3268 IFS=$as_save_IFS
3269
3270   ;;
3271 esac
3272 fi
3273 FALSEPRG=$ac_cv_path_FALSEPRG
3274 if test -n "$FALSEPRG"; then
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3276 $as_echo "$FALSEPRG" >&6; }
3277 else
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280 fi
3281
3282
3283   test -n "$FALSEPRG" && break
3284 done
3285 test -n "$FALSEPRG" || FALSEPRG=":"
3286
3287
3288
3289 post_host=
3290 if test "x$BACULA" != x; then
3291    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3292 fi
3293 BACULA=${BACULA:-Bacula}
3294 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3295 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3296 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3297
3298 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3299 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3300 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3301
3302 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3303 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3304 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3305
3306
3307 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3308
3309 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3310
3311
3312 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3313
3314 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3315
3316
3317 echo "configuring for ${BACULA} $VERSION ($DATE)"
3318
3319
3320
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 if test -n "$ac_tool_prefix"; then
3327   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_CC+set}" = set; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334   if test -n "$CC"; then
3335   ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340   IFS=$as_save_IFS
3341   test -z "$as_dir" && as_dir=.
3342     for ac_exec_ext in '' $ac_executable_extensions; do
3343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346     break 2
3347   fi
3348 done
3349   done
3350 IFS=$as_save_IFS
3351
3352 fi
3353 fi
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 fi
3362
3363
3364 fi
3365 if test -z "$ac_cv_prog_CC"; then
3366   ac_ct_CC=$CC
3367   # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   if test -n "$ac_ct_CC"; then
3375   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380   IFS=$as_save_IFS
3381   test -z "$as_dir" && as_dir=.
3382     for ac_exec_ext in '' $ac_executable_extensions; do
3383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384     ac_cv_prog_ac_ct_CC="gcc"
3385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386     break 2
3387   fi
3388 done
3389   done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3398 else
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401 fi
3402
3403   if test "x$ac_ct_CC" = x; then
3404     CC=""
3405   else
3406     case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412     CC=$ac_ct_CC
3413   fi
3414 else
3415   CC="$ac_cv_prog_CC"
3416 fi
3417
3418 if test -z "$CC"; then
3419           if test -n "$ac_tool_prefix"; then
3420     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   if test -n "$CC"; then
3428   ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435     for ac_exec_ext in '' $ac_executable_extensions; do
3436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437     ac_cv_prog_CC="${ac_tool_prefix}cc"
3438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442   done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457   fi
3458 fi
3459 if test -z "$CC"; then
3460   # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if test "${ac_cv_prog_CC+set}" = set; then :
3465   $as_echo_n "(cached) " >&6
3466 else
3467   if test -n "$CC"; then
3468   ac_cv_prog_CC="$CC" # Let the user override the test.
3469 else
3470   ac_prog_rejected=no
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476     for ac_exec_ext in '' $ac_executable_extensions; do
3477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479        ac_prog_rejected=yes
3480        continue
3481      fi
3482     ac_cv_prog_CC="cc"
3483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484     break 2
3485   fi
3486 done
3487   done
3488 IFS=$as_save_IFS
3489
3490 if test $ac_prog_rejected = yes; then
3491   # We found a bogon in the path, so make sure we never use it.
3492   set dummy $ac_cv_prog_CC
3493   shift
3494   if test $# != 0; then
3495     # We chose a different compiler from the bogus one.
3496     # However, it has the same basename, so the bogon will be chosen
3497     # first if we set CC to just the basename; use the full file name.
3498     shift
3499     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3500   fi
3501 fi
3502 fi
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513
3514 fi
3515 if test -z "$CC"; then
3516   if test -n "$ac_tool_prefix"; then
3517   for ac_prog in cl.exe
3518   do
3519     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if test "${ac_cv_prog_CC+set}" = set; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   if test -n "$CC"; then
3527   ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532   IFS=$as_save_IFS
3533   test -z "$as_dir" && as_dir=.
3534     for ac_exec_ext in '' $ac_executable_extensions; do
3535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538     break 2
3539   fi
3540 done
3541   done
3542 IFS=$as_save_IFS
3543
3544 fi
3545 fi
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555
3556     test -n "$CC" && break
3557   done
3558 fi
3559 if test -z "$CC"; then
3560   ac_ct_CC=$CC
3561   for ac_prog in cl.exe
3562 do
3563   # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3568   $as_echo_n "(cached) " >&6
3569 else
3570   if test -n "$ac_ct_CC"; then
3571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576   IFS=$as_save_IFS
3577   test -z "$as_dir" && as_dir=.
3578     for ac_exec_ext in '' $ac_executable_extensions; do
3579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580     ac_cv_prog_ac_ct_CC="$ac_prog"
3581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582     break 2
3583   fi
3584 done
3585   done
3586 IFS=$as_save_IFS
3587
3588 fi
3589 fi
3590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593 $as_echo "$ac_ct_CC" >&6; }
3594 else
3595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 fi
3598
3599
3600   test -n "$ac_ct_CC" && break
3601 done
3602
3603   if test "x$ac_ct_CC" = x; then
3604     CC=""
3605   else
3606     case $cross_compiling:$ac_tool_warned in
3607 yes:)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3611 esac
3612     CC=$ac_ct_CC
3613   fi
3614 fi
3615
3616 fi
3617
3618
3619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error "no acceptable C compiler found in \$PATH
3622 See \`config.log' for more details." "$LINENO" 5; }
3623
3624 # Provide some information about the compiler.
3625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3626 set X $ac_compile
3627 ac_compiler=$2
3628 for ac_option in --version -v -V -qversion; do
3629   { { ac_try="$ac_compiler $ac_option >&5"
3630 case "(($ac_try" in
3631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632   *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3637   ac_status=$?
3638   if test -s conftest.err; then
3639     sed '10a\
3640 ... rest of stderr output deleted ...
3641          10q' conftest.err >conftest.er1
3642     cat conftest.er1 >&5
3643   fi
3644   rm -f conftest.er1 conftest.err
3645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646   test $ac_status = 0; }
3647 done
3648
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 ac_clean_files_save=$ac_clean_files
3661 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3662 # Try to create an executable without -o first, disregard a.out.
3663 # It will help us diagnose broken compilers, and finding out an intuition
3664 # of exeext.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3666 $as_echo_n "checking whether the C compiler works... " >&6; }
3667 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3668
3669 # The possible output files:
3670 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3671
3672 ac_rmfiles=
3673 for ac_file in $ac_files
3674 do
3675   case $ac_file in
3676     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3678   esac
3679 done
3680 rm -f $ac_rmfiles
3681
3682 if { { ac_try="$ac_link_default"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689   (eval "$ac_link_default") 2>&5
3690   ac_status=$?
3691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692   test $ac_status = 0; }; then :
3693   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3696 # so that the user can short-circuit this test for compilers unknown to
3697 # Autoconf.
3698 for ac_file in $ac_files ''
3699 do
3700   test -f "$ac_file" || continue
3701   case $ac_file in
3702     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3703         ;;
3704     [ab].out )
3705         # We found the default executable, but exeext='' is most
3706         # certainly right.
3707         break;;
3708     *.* )
3709         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3710         then :; else
3711            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3712         fi
3713         # We set ac_cv_exeext here because the later test for it is not
3714         # safe: cross compilers may not add the suffix if given an `-o'
3715         # argument, so we may need to know it at that point already.
3716         # Even if this section looks crufty: it has the advantage of
3717         # actually working.
3718         break;;
3719     * )
3720         break;;
3721   esac
3722 done
3723 test "$ac_cv_exeext" = no && ac_cv_exeext=
3724
3725 else
3726   ac_file=''
3727 fi
3728 if test -z "$ac_file"; then :
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 { as_fn_set_status 77
3737 as_fn_error "C compiler cannot create executables
3738 See \`config.log' for more details." "$LINENO" 5; }; }
3739 else
3740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3741 $as_echo "yes" >&6; }
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3744 $as_echo_n "checking for C compiler default output file name... " >&6; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3746 $as_echo "$ac_file" >&6; }
3747 ac_exeext=$ac_cv_exeext
3748
3749 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3750 ac_clean_files=$ac_clean_files_save
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3752 $as_echo_n "checking for suffix of executables... " >&6; }
3753 if { { ac_try="$ac_link"
3754 case "(($ac_try" in
3755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756   *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 $as_echo "$ac_try_echo"; } >&5
3760   (eval "$ac_link") 2>&5
3761   ac_status=$?
3762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763   test $ac_status = 0; }; then :
3764   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3765 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3766 # work properly (i.e., refer to `conftest.exe'), while it won't with
3767 # `rm'.
3768 for ac_file in conftest.exe conftest conftest.*; do
3769   test -f "$ac_file" || continue
3770   case $ac_file in
3771     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3772     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3773           break;;
3774     * ) break;;
3775   esac
3776 done
3777 else
3778   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780 as_fn_error "cannot compute suffix of executables: cannot compile and link
3781 See \`config.log' for more details." "$LINENO" 5; }
3782 fi
3783 rm -f conftest conftest$ac_cv_exeext
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3785 $as_echo "$ac_cv_exeext" >&6; }
3786
3787 rm -f conftest.$ac_ext
3788 EXEEXT=$ac_cv_exeext
3789 ac_exeext=$EXEEXT
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h.  */
3792 #include <stdio.h>
3793 int
3794 main ()
3795 {
3796 FILE *f = fopen ("conftest.out", "w");
3797  return ferror (f) || fclose (f) != 0;
3798
3799   ;
3800   return 0;
3801 }
3802 _ACEOF
3803 ac_clean_files="$ac_clean_files conftest.out"
3804 # Check that the compiler produces executables we can run.  If not, either
3805 # the compiler is broken, or we cross compile.
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3807 $as_echo_n "checking whether we are cross compiling... " >&6; }
3808 if test "$cross_compiling" != yes; then
3809   { { ac_try="$ac_link"
3810 case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816   (eval "$ac_link") 2>&5
3817   ac_status=$?
3818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819   test $ac_status = 0; }
3820   if { ac_try='./conftest$ac_cv_exeext'
3821   { { case "(($ac_try" in
3822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823   *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827   (eval "$ac_try") 2>&5
3828   ac_status=$?
3829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830   test $ac_status = 0; }; }; then
3831     cross_compiling=no
3832   else
3833     if test "$cross_compiling" = maybe; then
3834         cross_compiling=yes
3835     else
3836         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838 as_fn_error "cannot run C compiled programs.
3839 If you meant to cross compile, use \`--host'.
3840 See \`config.log' for more details." "$LINENO" 5; }
3841     fi
3842   fi
3843 fi
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3845 $as_echo "$cross_compiling" >&6; }
3846
3847 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3848 ac_clean_files=$ac_clean_files_save
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3850 $as_echo_n "checking for suffix of object files... " >&6; }
3851 if test "${ac_cv_objext+set}" = set; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h.  */
3856
3857 int
3858 main ()
3859 {
3860
3861   ;
3862   return 0;
3863 }
3864 _ACEOF
3865 rm -f conftest.o conftest.obj
3866 if { { ac_try="$ac_compile"
3867 case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873   (eval "$ac_compile") 2>&5
3874   ac_status=$?
3875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876   test $ac_status = 0; }; then :
3877   for ac_file in conftest.o conftest.obj conftest.*; do
3878   test -f "$ac_file" || continue;
3879   case $ac_file in
3880     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3881     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3882        break;;
3883   esac
3884 done
3885 else
3886   $as_echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3888
3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error "cannot compute suffix of object files: cannot compile
3892 See \`config.log' for more details." "$LINENO" 5; }
3893 fi
3894 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3897 $as_echo "$ac_cv_objext" >&6; }
3898 OBJEXT=$ac_cv_objext
3899 ac_objext=$OBJEXT
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3901 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3902 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h.  */
3907
3908 int
3909 main ()
3910 {
3911 #ifndef __GNUC__
3912        choke me
3913 #endif
3914
3915   ;
3916   return 0;
3917 }
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920   ac_compiler_gnu=yes
3921 else
3922   ac_compiler_gnu=no
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3926
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3929 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3930 if test $ac_compiler_gnu = yes; then
3931   GCC=yes
3932 else
3933   GCC=
3934 fi
3935 ac_test_CFLAGS=${CFLAGS+set}
3936 ac_save_CFLAGS=$CFLAGS
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3938 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3939 if test "${ac_cv_prog_cc_g+set}" = set; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942   ac_save_c_werror_flag=$ac_c_werror_flag
3943    ac_c_werror_flag=yes
3944    ac_cv_prog_cc_g=no
3945    CFLAGS="-g"
3946    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h.  */
3948
3949 int
3950 main ()
3951 {
3952
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 if ac_fn_c_try_compile "$LINENO"; then :
3958   ac_cv_prog_cc_g=yes
3959 else
3960   CFLAGS=""
3961       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h.  */
3963
3964 int
3965 main ()
3966 {
3967
3968   ;
3969   return 0;
3970 }
3971 _ACEOF
3972 if ac_fn_c_try_compile "$LINENO"; then :
3973
3974 else
3975   ac_c_werror_flag=$ac_save_c_werror_flag
3976          CFLAGS="-g"
3977          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h.  */
3979
3980 int
3981 main ()
3982 {
3983
3984   ;
3985   return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989   ac_cv_prog_cc_g=yes
3990 fi
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996    ac_c_werror_flag=$ac_save_c_werror_flag
3997 fi
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3999 $as_echo "$ac_cv_prog_cc_g" >&6; }
4000 if test "$ac_test_CFLAGS" = set; then
4001   CFLAGS=$ac_save_CFLAGS
4002 elif test $ac_cv_prog_cc_g = yes; then
4003   if test "$GCC" = yes; then
4004     CFLAGS="-g -O2"
4005   else
4006     CFLAGS="-g"
4007   fi
4008 else
4009   if test "$GCC" = yes; then
4010     CFLAGS="-O2"
4011   else
4012     CFLAGS=
4013   fi
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4016 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4017 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4018   $as_echo_n "(cached) " >&6
4019 else
4020   ac_cv_prog_cc_c89=no
4021 ac_save_CC=$CC
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h.  */
4024 #include <stdarg.h>
4025 #include <stdio.h>
4026 #include <sys/types.h>
4027 #include <sys/stat.h>
4028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4029 struct buf { int x; };
4030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4031 static char *e (p, i)
4032      char **p;
4033      int i;
4034 {
4035   return p[i];
4036 }
4037 static char *f (char * (*g) (char **, int), char **p, ...)
4038 {
4039   char *s;
4040   va_list v;
4041   va_start (v,p);
4042   s = g (p, va_arg (v,int));
4043   va_end (v);
4044   return s;
4045 }
4046
4047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4048    function prototypes and stuff, but not '\xHH' hex character constants.
4049    These don't provoke an error unfortunately, instead are silently treated
4050    as 'x'.  The following induces an error, until -std is added to get
4051    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4052    array size at least.  It's necessary to write '\x00'==0 to get something
4053    that's true only with -std.  */
4054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4055
4056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4057    inside strings and character constants.  */
4058 #define FOO(x) 'x'
4059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4060
4061 int test (int i, double x);
4062 struct s1 {int (*f) (int a);};
4063 struct s2 {int (*f) (double a);};
4064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4065 int argc;
4066 char **argv;
4067 int
4068 main ()
4069 {
4070 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4071   ;
4072   return 0;
4073 }
4074 _ACEOF
4075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4076         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4077 do
4078   CC="$ac_save_CC $ac_arg"
4079   if ac_fn_c_try_compile "$LINENO"; then :
4080   ac_cv_prog_cc_c89=$ac_arg
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext
4083   test "x$ac_cv_prog_cc_c89" != "xno" && break
4084 done
4085 rm -f conftest.$ac_ext
4086 CC=$ac_save_CC
4087
4088 fi
4089 # AC_CACHE_VAL
4090 case "x$ac_cv_prog_cc_c89" in
4091   x)
4092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4093 $as_echo "none needed" >&6; } ;;
4094   xno)
4095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4096 $as_echo "unsupported" >&6; } ;;
4097   *)
4098     CC="$CC $ac_cv_prog_cc_c89"
4099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4100 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4101 esac
4102 if test "x$ac_cv_prog_cc_c89" != xno; then :
4103
4104 fi
4105
4106 ac_ext=c
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111
4112 ac_ext=cpp
4113 ac_cpp='$CXXCPP $CPPFLAGS'
4114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4117 if test -z "$CXX"; then
4118   if test -n "$CCC"; then
4119     CXX=$CCC
4120   else
4121     if test -n "$ac_tool_prefix"; then
4122   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4123   do
4124     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if test "${ac_cv_prog_CXX+set}" = set; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   if test -n "$CXX"; then
4132   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139     for ac_exec_ext in '' $ac_executable_extensions; do
4140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143     break 2
4144   fi
4145 done
4146   done
4147 IFS=$as_save_IFS
4148
4149 fi
4150 fi
4151 CXX=$ac_cv_prog_CXX
4152 if test -n "$CXX"; then
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4154 $as_echo "$CXX" >&6; }
4155 else
4156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4158 fi
4159
4160
4161     test -n "$CXX" && break
4162   done
4163 fi
4164 if test -z "$CXX"; then
4165   ac_ct_CXX=$CXX
4166   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4167 do
4168   # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy $ac_prog; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4173   $as_echo_n "(cached) " >&6
4174 else
4175   if test -n "$ac_ct_CXX"; then
4176   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183     for ac_exec_ext in '' $ac_executable_extensions; do
4184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185     ac_cv_prog_ac_ct_CXX="$ac_prog"
4186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187     break 2
4188   fi
4189 done
4190   done
4191 IFS=$as_save_IFS
4192
4193 fi
4194 fi
4195 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4196 if test -n "$ac_ct_CXX"; then
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4198 $as_echo "$ac_ct_CXX" >&6; }
4199 else
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4202 fi
4203
4204
4205   test -n "$ac_ct_CXX" && break
4206 done
4207
4208   if test "x$ac_ct_CXX" = x; then
4209     CXX="g++"
4210   else
4211     case $cross_compiling:$ac_tool_warned in
4212 yes:)
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215 ac_tool_warned=yes ;;
4216 esac
4217     CXX=$ac_ct_CXX
4218   fi
4219 fi
4220
4221   fi
4222 fi
4223 # Provide some information about the compiler.
4224 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4225 set X $ac_compile
4226 ac_compiler=$2
4227 for ac_option in --version -v -V -qversion; do
4228   { { ac_try="$ac_compiler $ac_option >&5"
4229 case "(($ac_try" in
4230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231   *) ac_try_echo=$ac_try;;
4232 esac
4233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4234 $as_echo "$ac_try_echo"; } >&5
4235   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4236   ac_status=$?
4237   if test -s conftest.err; then
4238     sed '10a\
4239 ... rest of stderr output deleted ...
4240          10q' conftest.err >conftest.er1
4241     cat conftest.er1 >&5
4242   fi
4243   rm -f conftest.er1 conftest.err
4244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245   test $ac_status = 0; }
4246 done
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4249 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4250 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h.  */
4255
4256 int
4257 main ()
4258 {
4259 #ifndef __GNUC__
4260        choke me
4261 #endif
4262
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 if ac_fn_cxx_try_compile "$LINENO"; then :
4268   ac_compiler_gnu=yes
4269 else
4270   ac_compiler_gnu=no
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4274
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4277 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4278 if test $ac_compiler_gnu = yes; then
4279   GXX=yes
4280 else
4281   GXX=
4282 fi
4283 ac_test_CXXFLAGS=${CXXFLAGS+set}
4284 ac_save_CXXFLAGS=$CXXFLAGS
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4286 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4287 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4288   $as_echo_n "(cached) " >&6
4289 else
4290   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4291    ac_cxx_werror_flag=yes
4292    ac_cv_prog_cxx_g=no
4293    CXXFLAGS="-g"
4294    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h.  */
4296
4297 int
4298 main ()
4299 {
4300
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_cxx_try_compile "$LINENO"; then :
4306   ac_cv_prog_cxx_g=yes
4307 else
4308   CXXFLAGS=""
4309       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h.  */
4311
4312 int
4313 main ()
4314 {
4315
4316   ;
4317   return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_cxx_try_compile "$LINENO"; then :
4321
4322 else
4323   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4324          CXXFLAGS="-g"
4325          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h.  */
4327
4328 int
4329 main ()
4330 {
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 if ac_fn_cxx_try_compile "$LINENO"; then :
4337   ac_cv_prog_cxx_g=yes
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 fi
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4347 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4348 if test "$ac_test_CXXFLAGS" = set; then
4349   CXXFLAGS=$ac_save_CXXFLAGS
4350 elif test $ac_cv_prog_cxx_g = yes; then
4351   if test "$GXX" = yes; then
4352     CXXFLAGS="-g -O2"
4353   else
4354     CXXFLAGS="-g"
4355   fi
4356 else
4357   if test "$GXX" = yes; then
4358     CXXFLAGS="-O2"
4359   else
4360     CXXFLAGS=
4361   fi
4362 fi
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368
4369 if test "x$CC" != xcc; then
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4371 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4372 else
4373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4374 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4375 fi
4376 set dummy $CC; ac_cc=`$as_echo "$2" |
4377                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4378 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4379   $as_echo_n "(cached) " >&6
4380 else
4381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h.  */
4383
4384 int
4385 main ()
4386 {
4387
4388   ;
4389   return 0;
4390 }
4391 _ACEOF
4392 # Make sure it works both with $CC and with simple cc.
4393 # We do the test twice because some compilers refuse to overwrite an
4394 # existing .o file with -o, though they will create one.
4395 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4396 rm -f conftest2.*
4397 if { { case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406   test $ac_status = 0; } &&
4407    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409   *) ac_try_echo=$ac_try;;
4410 esac
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 $as_echo "$ac_try_echo"; } >&5
4413   (eval "$ac_try") 2>&5
4414   ac_status=$?
4415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416   test $ac_status = 0; };
4417 then
4418   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4419   if test "x$CC" != xcc; then
4420     # Test first that cc exists at all.
4421     if { ac_try='cc -c conftest.$ac_ext >&5'
4422   { { case "(($ac_try" in
4423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424   *) ac_try_echo=$ac_try;;
4425 esac
4426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4427 $as_echo "$ac_try_echo"; } >&5
4428   (eval "$ac_try") 2>&5
4429   ac_status=$?
4430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431   test $ac_status = 0; }; }; then
4432       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4433       rm -f conftest2.*
4434       if { { case "(($ac_try" in
4435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436   *) ac_try_echo=$ac_try;;
4437 esac
4438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4439 $as_echo "$ac_try_echo"; } >&5
4440   (eval "$ac_try") 2>&5
4441   ac_status=$?
4442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443   test $ac_status = 0; } &&
4444          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446   *) ac_try_echo=$ac_try;;
4447 esac
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 $as_echo "$ac_try_echo"; } >&5
4450   (eval "$ac_try") 2>&5
4451   ac_status=$?
4452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4453   test $ac_status = 0; };
4454       then
4455         # cc works too.
4456         :
4457       else
4458         # cc exists but doesn't like -o.
4459         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4460       fi
4461     fi
4462   fi
4463 else
4464   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4465 fi
4466 rm -f core conftest*
4467
4468 fi
4469 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471 $as_echo "yes" >&6; }
4472 else
4473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475
4476 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4477
4478 fi
4479
4480 ac_ext=c
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4486 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4487 # On Suns, sometimes $CPP names a directory.
4488 if test -n "$CPP" && test -d "$CPP"; then
4489   CPP=
4490 fi
4491 if test -z "$CPP"; then
4492   if test "${ac_cv_prog_CPP+set}" = set; then :
4493   $as_echo_n "(cached) " >&6
4494 else
4495       # Double quotes because CPP needs to be expanded
4496     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4497     do
4498       ac_preproc_ok=false
4499 for ac_c_preproc_warn_flag in '' yes
4500 do
4501   # Use a header file that comes with gcc, so configuring glibc
4502   # with a fresh cross-compiler works.
4503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4504   # <limits.h> exists even on freestanding compilers.
4505   # On the NeXT, cc -E runs the code through the compiler's parser,
4506   # not just through cpp. "Syntax error" is here to catch this case.
4507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h.  */
4509 #ifdef __STDC__
4510 # include <limits.h>
4511 #else
4512 # include <assert.h>
4513 #endif
4514                      Syntax error
4515 _ACEOF
4516 if ac_fn_c_try_cpp "$LINENO"; then :
4517
4518 else
4519   # Broken: fails on valid input.
4520 continue
4521 fi
4522 rm -f conftest.err conftest.$ac_ext
4523
4524   # OK, works on sane cases.  Now check whether nonexistent headers
4525   # can be detected and how.
4526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h.  */
4528 #include <ac_nonexistent.h>
4529 _ACEOF
4530 if ac_fn_c_try_cpp "$LINENO"; then :
4531   # Broken: success on invalid input.
4532 continue
4533 else
4534   # Passes both tests.
4535 ac_preproc_ok=:
4536 break
4537 fi
4538 rm -f conftest.err conftest.$ac_ext
4539
4540 done
4541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4542 rm -f conftest.err conftest.$ac_ext
4543 if $ac_preproc_ok; then :
4544   break
4545 fi
4546
4547     done
4548     ac_cv_prog_CPP=$CPP
4549
4550 fi
4551   CPP=$ac_cv_prog_CPP
4552 else
4553   ac_cv_prog_CPP=$CPP
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4556 $as_echo "$CPP" >&6; }
4557 ac_preproc_ok=false
4558 for ac_c_preproc_warn_flag in '' yes
4559 do
4560   # Use a header file that comes with gcc, so configuring glibc
4561   # with a fresh cross-compiler works.
4562   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4563   # <limits.h> exists even on freestanding compilers.
4564   # On the NeXT, cc -E runs the code through the compiler's parser,
4565   # not just through cpp. "Syntax error" is here to catch this case.
4566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h.  */
4568 #ifdef __STDC__
4569 # include <limits.h>
4570 #else
4571 # include <assert.h>
4572 #endif
4573                      Syntax error
4574 _ACEOF
4575 if ac_fn_c_try_cpp "$LINENO"; then :
4576
4577 else
4578   # Broken: fails on valid input.
4579 continue
4580 fi
4581 rm -f conftest.err conftest.$ac_ext
4582
4583   # OK, works on sane cases.  Now check whether nonexistent headers
4584   # can be detected and how.
4585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h.  */
4587 #include <ac_nonexistent.h>
4588 _ACEOF
4589 if ac_fn_c_try_cpp "$LINENO"; then :
4590   # Broken: success on invalid input.
4591 continue
4592 else
4593   # Passes both tests.
4594 ac_preproc_ok=:
4595 break
4596 fi
4597 rm -f conftest.err conftest.$ac_ext
4598
4599 done
4600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4601 rm -f conftest.err conftest.$ac_ext
4602 if $ac_preproc_ok; then :
4603
4604 else
4605   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4607 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4608 See \`config.log' for more details." "$LINENO" 5; }
4609 fi
4610
4611 ac_ext=c
4612 ac_cpp='$CPP $CPPFLAGS'
4613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4619 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4620 if test "${ac_cv_path_GREP+set}" = set; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   if test -z "$GREP"; then
4624   ac_path_GREP_found=false
4625   # Loop through the user's path and test for each of PROGNAME-LIST
4626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631     for ac_prog in grep ggrep; do
4632     for ac_exec_ext in '' $ac_executable_extensions; do
4633       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4634       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4635 # Check for GNU ac_path_GREP and select it if it is found.
4636   # Check for GNU $ac_path_GREP
4637 case `"$ac_path_GREP" --version 2>&1` in
4638 *GNU*)
4639   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4640 *)
4641   ac_count=0
4642   $as_echo_n 0123456789 >"conftest.in"
4643   while :
4644   do
4645     cat "conftest.in" "conftest.in" >"conftest.tmp"
4646     mv "conftest.tmp" "conftest.in"
4647     cp "conftest.in" "conftest.nl"
4648     $as_echo 'GREP' >> "conftest.nl"
4649     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651     as_fn_arith $ac_count + 1 && ac_count=$as_val
4652     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4653       # Best one so far, save it but keep looking for a better one
4654       ac_cv_path_GREP="$ac_path_GREP"
4655       ac_path_GREP_max=$ac_count
4656     fi
4657     # 10*(2^10) chars as input seems more than enough
4658     test $ac_count -gt 10 && break
4659   done
4660   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4661 esac
4662
4663       $ac_path_GREP_found && break 3
4664     done
4665   done
4666   done
4667 IFS=$as_save_IFS
4668   if test -z "$ac_cv_path_GREP"; then
4669     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4670   fi
4671 else
4672   ac_cv_path_GREP=$GREP
4673 fi
4674
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4677 $as_echo "$ac_cv_path_GREP" >&6; }
4678  GREP="$ac_cv_path_GREP"
4679
4680
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4682 $as_echo_n "checking for egrep... " >&6; }
4683 if test "${ac_cv_path_EGREP+set}" = set; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4687    then ac_cv_path_EGREP="$GREP -E"
4688    else
4689      if test -z "$EGREP"; then
4690   ac_path_EGREP_found=false
4691   # Loop through the user's path and test for each of PROGNAME-LIST
4692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697     for ac_prog in egrep; do
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4700       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4701 # Check for GNU ac_path_EGREP and select it if it is found.
4702   # Check for GNU $ac_path_EGREP
4703 case `"$ac_path_EGREP" --version 2>&1` in
4704 *GNU*)
4705   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4706 *)
4707   ac_count=0
4708   $as_echo_n 0123456789 >"conftest.in"
4709   while :
4710   do
4711     cat "conftest.in" "conftest.in" >"conftest.tmp"
4712     mv "conftest.tmp" "conftest.in"
4713     cp "conftest.in" "conftest.nl"
4714     $as_echo 'EGREP' >> "conftest.nl"
4715     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717     as_fn_arith $ac_count + 1 && ac_count=$as_val
4718     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4719       # Best one so far, save it but keep looking for a better one
4720       ac_cv_path_EGREP="$ac_path_EGREP"
4721       ac_path_EGREP_max=$ac_count
4722     fi
4723     # 10*(2^10) chars as input seems more than enough
4724     test $ac_count -gt 10 && break
4725   done
4726   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727 esac
4728
4729       $ac_path_EGREP_found && break 3
4730     done
4731   done
4732   done
4733 IFS=$as_save_IFS
4734   if test -z "$ac_cv_path_EGREP"; then
4735     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736   fi
4737 else
4738   ac_cv_path_EGREP=$EGREP
4739 fi
4740
4741    fi
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4744 $as_echo "$ac_cv_path_EGREP" >&6; }
4745  EGREP="$ac_cv_path_EGREP"
4746
4747
4748 if test $ac_cv_c_compiler_gnu = yes; then
4749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4750 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4751 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754     ac_pattern="Autoconf.*'x'"
4755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h.  */
4757 #include <sgtty.h>
4758 Autoconf TIOCGETP
4759 _ACEOF
4760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4761   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4762   ac_cv_prog_gcc_traditional=yes
4763 else
4764   ac_cv_prog_gcc_traditional=no
4765 fi
4766 rm -f conftest*
4767
4768
4769   if test $ac_cv_prog_gcc_traditional = no; then
4770     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h.  */
4772 #include <termio.h>
4773 Autoconf TCGETA
4774 _ACEOF
4775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4777   ac_cv_prog_gcc_traditional=yes
4778 fi
4779 rm -f conftest*
4780
4781   fi
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4784 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4785   if test $ac_cv_prog_gcc_traditional = yes; then
4786     CC="$CC -traditional"
4787   fi
4788 fi
4789
4790 BASECC=`basename $CC`
4791 have_gcc=no
4792 if test "x$BASECC" = xgcc; then
4793    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4794
4795    have_gcc=yes
4796 fi
4797 # Extract the first word of "$CXX", so it can be a program name with args.
4798 set dummy $CXX; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if test "${ac_cv_path_CXX+set}" = set; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   case $CXX in
4805   [\\/]* | ?:[\\/]*)
4806   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4807   ;;
4808   *)
4809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814     for ac_exec_ext in '' $ac_executable_extensions; do
4815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821   done
4822 IFS=$as_save_IFS
4823
4824   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4825   ;;
4826 esac
4827 fi
4828 CXX=$ac_cv_path_CXX
4829 if test -n "$CXX"; then
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4831 $as_echo "$CXX" >&6; }
4832 else
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4835 fi
4836
4837
4838 if test ! -e $CXX; then
4839    as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4840 fi
4841
4842 # Find a good install program.  We prefer a C program (faster),
4843 # so one script is as good as another.  But avoid the broken or
4844 # incompatible versions:
4845 # SysV /etc/install, /usr/sbin/install
4846 # SunOS /usr/etc/install
4847 # IRIX /sbin/install
4848 # AIX /bin/install
4849 # AmigaOS /C/install, which installs bootblocks on floppy discs
4850 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4853 # OS/2's system install, which has a completely different semantic
4854 # ./install, which can be erroneously created by make from ./install.sh.
4855 # Reject install programs that cannot install multiple files.
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4857 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4858 if test -z "$INSTALL"; then
4859 if test "${ac_cv_path_install+set}" = set; then :
4860   $as_echo_n "(cached) " >&6
4861 else
4862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867     # Account for people who put trailing slashes in PATH elements.
4868 case $as_dir/ in #((
4869   ./ | .// | /[cC]/* | \
4870   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4871   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4872   /usr/ucb/* ) ;;
4873   *)
4874     # OSF1 and SCO ODT 3.0 have their own names for install.
4875     # Don't use installbsd from OSF since it installs stuff as root
4876     # by default.
4877     for ac_prog in ginstall scoinst install; do
4878       for ac_exec_ext in '' $ac_executable_extensions; do
4879         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4880           if test $ac_prog = install &&
4881             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4882             # AIX install.  It has an incompatible calling convention.
4883             :
4884           elif test $ac_prog = install &&
4885             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4886             # program-specific install script used by HP pwplus--don't use.
4887             :
4888           else
4889             rm -rf conftest.one conftest.two conftest.dir
4890             echo one > conftest.one
4891             echo two > conftest.two
4892             mkdir conftest.dir
4893             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4894               test -s conftest.one && test -s conftest.two &&
4895               test -s conftest.dir/conftest.one &&
4896               test -s conftest.dir/conftest.two
4897             then
4898               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4899               break 3
4900             fi
4901           fi
4902         fi
4903       done
4904     done
4905     ;;
4906 esac
4907
4908   done
4909 IFS=$as_save_IFS
4910
4911 rm -rf conftest.one conftest.two conftest.dir
4912
4913 fi
4914   if test "${ac_cv_path_install+set}" = set; then
4915     INSTALL=$ac_cv_path_install
4916   else
4917     # As a last resort, use the slow shell script.  Don't cache a
4918     # value for INSTALL within a source directory, because that will
4919     # break other packages using the cache if that directory is
4920     # removed, or if the value is a relative name.
4921     INSTALL=$ac_install_sh
4922   fi
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4925 $as_echo "$INSTALL" >&6; }
4926
4927 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4928 # It thinks the first close brace ends the variable substitution.
4929 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4930
4931 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4932
4933 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4934
4935 # Extract the first word of "mv", so it can be a program name with args.
4936 set dummy mv; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if test "${ac_cv_path_MV+set}" = set; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942   case $MV in
4943   [\\/]* | ?:[\\/]*)
4944   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4945   ;;
4946   *)
4947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952     for ac_exec_ext in '' $ac_executable_extensions; do
4953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959   done
4960 IFS=$as_save_IFS
4961
4962   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4963   ;;
4964 esac
4965 fi
4966 MV=$ac_cv_path_MV
4967 if test -n "$MV"; then
4968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4969 $as_echo "$MV" >&6; }
4970 else
4971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4973 fi
4974
4975
4976 # Extract the first word of "rm", so it can be a program name with args.
4977 set dummy rm; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if test "${ac_cv_path_REMOVE+set}" = set; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983   case $REMOVE in
4984   [\\/]* | ?:[\\/]*)
4985   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4986   ;;
4987   *)
4988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993     for ac_exec_ext in '' $ac_executable_extensions; do
4994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000   done
5001 IFS=$as_save_IFS
5002
5003   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5004   ;;
5005 esac
5006 fi
5007 REMOVE=$ac_cv_path_REMOVE
5008 if test -n "$REMOVE"; then
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5010 $as_echo "$REMOVE" >&6; }
5011 else
5012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5014 fi
5015
5016
5017 # Extract the first word of "cp", so it can be a program name with args.
5018 set dummy cp; ac_word=$2
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if test "${ac_cv_path_CP+set}" = set; then :
5022   $as_echo_n "(cached) " >&6
5023 else
5024   case $CP in
5025   [\\/]* | ?:[\\/]*)
5026   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5027   ;;
5028   *)
5029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034     for ac_exec_ext in '' $ac_executable_extensions; do
5035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041   done
5042 IFS=$as_save_IFS
5043
5044   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5045   ;;
5046 esac
5047 fi
5048 CP=$ac_cv_path_CP
5049 if test -n "$CP"; then
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5051 $as_echo "$CP" >&6; }
5052 else
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056
5057
5058 # Extract the first word of "sed", so it can be a program name with args.
5059 set dummy sed; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_path_SED+set}" = set; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   case $SED in
5066   [\\/]* | ?:[\\/]*)
5067   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5068   ;;
5069   *)
5070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075     for ac_exec_ext in '' $ac_executable_extensions; do
5076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082   done
5083 IFS=$as_save_IFS
5084
5085   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5086   ;;
5087 esac
5088 fi
5089 SED=$ac_cv_path_SED
5090 if test -n "$SED"; then
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5092 $as_echo "$SED" >&6; }
5093 else
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098
5099 # Extract the first word of "echo", so it can be a program name with args.
5100 set dummy echo; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if test "${ac_cv_path_ECHO+set}" = set; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   case $ECHO in
5107   [\\/]* | ?:[\\/]*)
5108   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5109   ;;
5110   *)
5111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116     for ac_exec_ext in '' $ac_executable_extensions; do
5117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123   done
5124 IFS=$as_save_IFS
5125
5126   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5127   ;;
5128 esac
5129 fi
5130 ECHO=$ac_cv_path_ECHO
5131 if test -n "$ECHO"; then
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5133 $as_echo "$ECHO" >&6; }
5134 else
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138
5139
5140 # Extract the first word of "cmp", so it can be a program name with args.
5141 set dummy cmp; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_path_CMP+set}" = set; then :
5145   $as_echo_n "(cached) " >&6
5146 else
5147   case $CMP in
5148   [\\/]* | ?:[\\/]*)
5149   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5150   ;;
5151   *)
5152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155   IFS=$as_save_IFS
5156   test -z "$as_dir" && as_dir=.
5157     for ac_exec_ext in '' $ac_executable_extensions; do
5158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161     break 2
5162   fi
5163 done
5164   done
5165 IFS=$as_save_IFS
5166
5167   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5168   ;;
5169 esac
5170 fi
5171 CMP=$ac_cv_path_CMP
5172 if test -n "$CMP"; then
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5174 $as_echo "$CMP" >&6; }
5175 else
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180
5181 # Extract the first word of "tbl", so it can be a program name with args.
5182 set dummy tbl; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if test "${ac_cv_path_TBL+set}" = set; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   case $TBL in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198     for ac_exec_ext in '' $ac_executable_extensions; do
5199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205   done
5206 IFS=$as_save_IFS
5207
5208   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5209   ;;
5210 esac
5211 fi
5212 TBL=$ac_cv_path_TBL
5213 if test -n "$TBL"; then
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5215 $as_echo "$TBL" >&6; }
5216 else
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221
5222 # Extract the first word of "ar", so it can be a program name with args.
5223 set dummy ar; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if test "${ac_cv_path_AR+set}" = set; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   case $AR in
5230   [\\/]* | ?:[\\/]*)
5231   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5232   ;;
5233   *)
5234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239     for ac_exec_ext in '' $ac_executable_extensions; do
5240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246   done
5247 IFS=$as_save_IFS
5248
5249   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5250   ;;
5251 esac
5252 fi
5253 AR=$ac_cv_path_AR
5254 if test -n "$AR"; then
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5256 $as_echo "$AR" >&6; }
5257 else
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5260 fi
5261
5262
5263 # Extract the first word of "openssl", so it can be a program name with args.
5264 set dummy openssl; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   case $OPENSSL in
5271   [\\/]* | ?:[\\/]*)
5272   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5273   ;;
5274   *)
5275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278   IFS=$as_save_IFS
5279   test -z "$as_dir" && as_dir=.
5280     for ac_exec_ext in '' $ac_executable_extensions; do
5281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284     break 2
5285   fi
5286 done
5287   done
5288 IFS=$as_save_IFS
5289
5290   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5291   ;;
5292 esac
5293 fi
5294 OPENSSL=$ac_cv_path_OPENSSL
5295 if test -n "$OPENSSL"; then
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5297 $as_echo "$OPENSSL" >&6; }
5298 else
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5301 fi
5302
5303
5304 # Extract the first word of "mtx", so it can be a program name with args.
5305 set dummy mtx; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if test "${ac_cv_path_MTX+set}" = set; then :
5309   $as_echo_n "(cached) " >&6
5310 else
5311   case $MTX in
5312   [\\/]* | ?:[\\/]*)
5313   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5314   ;;
5315   *)
5316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319   IFS=$as_save_IFS
5320   test -z "$as_dir" && as_dir=.
5321     for ac_exec_ext in '' $ac_executable_extensions; do
5322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5323     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325     break 2
5326   fi
5327 done
5328   done
5329 IFS=$as_save_IFS
5330
5331   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5332   ;;
5333 esac
5334 fi
5335 MTX=$ac_cv_path_MTX
5336 if test -n "$MTX"; then
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5338 $as_echo "$MTX" >&6; }
5339 else
5340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 fi
5343
5344
5345 # Extract the first word of "dd", so it can be a program name with args.
5346 set dummy dd; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_path_DD+set}" = set; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   case $DD in
5353   [\\/]* | ?:[\\/]*)
5354   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5355   ;;
5356   *)
5357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360   IFS=$as_save_IFS
5361   test -z "$as_dir" && as_dir=.
5362     for ac_exec_ext in '' $ac_executable_extensions; do
5363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366     break 2
5367   fi
5368 done
5369   done
5370 IFS=$as_save_IFS
5371
5372   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5373   ;;
5374 esac
5375 fi
5376 DD=$ac_cv_path_DD
5377 if test -n "$DD"; then
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5379 $as_echo "$DD" >&6; }
5380 else
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385
5386 # Extract the first word of "mkisofs", so it can be a program name with args.
5387 set dummy mkisofs; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393   case $MKISOFS in
5394   [\\/]* | ?:[\\/]*)
5395   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5396   ;;
5397   *)
5398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401   IFS=$as_save_IFS
5402   test -z "$as_dir" && as_dir=.
5403     for ac_exec_ext in '' $ac_executable_extensions; do
5404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407     break 2
5408   fi
5409 done
5410   done
5411 IFS=$as_save_IFS
5412
5413   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5414   ;;
5415 esac
5416 fi
5417 MKISOFS=$ac_cv_path_MKISOFS
5418 if test -n "$MKISOFS"; then
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5420 $as_echo "$MKISOFS" >&6; }
5421 else
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426
5427 # Extract the first word of "python", so it can be a program name with args.
5428 set dummy python; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if test "${ac_cv_path_PYTHON+set}" = set; then :
5432   $as_echo_n "(cached) " >&6
5433 else
5434   case $PYTHON in
5435   [\\/]* | ?:[\\/]*)
5436   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5437   ;;
5438   *)
5439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442   IFS=$as_save_IFS
5443   test -z "$as_dir" && as_dir=.
5444     for ac_exec_ext in '' $ac_executable_extensions; do
5445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448     break 2
5449   fi
5450 done
5451   done
5452 IFS=$as_save_IFS
5453
5454   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5455   ;;
5456 esac
5457 fi
5458 PYTHON=$ac_cv_path_PYTHON
5459 if test -n "$PYTHON"; then
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5461 $as_echo "$PYTHON" >&6; }
5462 else
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466
5467
5468 # Extract the first word of "growisofs", so it can be a program name with args.
5469 set dummy growisofs; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   case $GROWISOFS in
5476   [\\/]* | ?:[\\/]*)
5477   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5478   ;;
5479   *)
5480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5482 do
5483   IFS=$as_save_IFS
5484   test -z "$as_dir" && as_dir=.
5485     for ac_exec_ext in '' $ac_executable_extensions; do
5486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5487     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489     break 2
5490   fi
5491 done
5492   done
5493 IFS=$as_save_IFS
5494
5495   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5496   ;;
5497 esac
5498 fi
5499 GROWISOFS=$ac_cv_path_GROWISOFS
5500 if test -n "$GROWISOFS"; then
5501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5502 $as_echo "$GROWISOFS" >&6; }
5503 else
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5506 fi
5507
5508
5509 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5510 set dummy dvd+rw-mediainfo; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5514   $as_echo_n "(cached) " >&6
5515 else
5516   case $DVDRWMEDIAINFO in
5517   [\\/]* | ?:[\\/]*)
5518   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5519   ;;
5520   *)
5521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524   IFS=$as_save_IFS
5525   test -z "$as_dir" && as_dir=.
5526     for ac_exec_ext in '' $ac_executable_extensions; do
5527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5528     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530     break 2
5531   fi
5532 done
5533   done
5534 IFS=$as_save_IFS
5535
5536   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5537   ;;
5538 esac
5539 fi
5540 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5541 if test -n "$DVDRWMEDIAINFO"; then
5542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5543 $as_echo "$DVDRWMEDIAINFO" >&6; }
5544 else
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548
5549
5550 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5551 set dummy dvd+rw-format; ac_word=$2
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553 $as_echo_n "checking for $ac_word... " >&6; }
5554 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5555   $as_echo_n "(cached) " >&6
5556 else
5557   case $DVDRWFORMAT in
5558   [\\/]* | ?:[\\/]*)
5559   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5560   ;;
5561   *)
5562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   test -z "$as_dir" && as_dir=.
5567     for ac_exec_ext in '' $ac_executable_extensions; do
5568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571     break 2
5572   fi
5573 done
5574   done
5575 IFS=$as_save_IFS
5576
5577   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5578   ;;
5579 esac
5580 fi
5581 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5582 if test -n "$DVDRWFORMAT"; then
5583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5584 $as_echo "$DVDRWFORMAT" >&6; }
5585 else
5586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5588 fi
5589
5590
5591 # Extract the first word of "pkg-config", so it can be a program name with args.
5592 set dummy pkg-config; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5596   $as_echo_n "(cached) " >&6
5597 else
5598   case $PKGCONFIG in
5599   [\\/]* | ?:[\\/]*)
5600   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5601   ;;
5602   *)
5603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 for as_dir in $PATH
5605 do
5606   IFS=$as_save_IFS
5607   test -z "$as_dir" && as_dir=.
5608     for ac_exec_ext in '' $ac_executable_extensions; do
5609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5612     break 2
5613   fi
5614 done
5615   done
5616 IFS=$as_save_IFS
5617
5618   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5619   ;;
5620 esac
5621 fi
5622 PKGCONFIG=$ac_cv_path_PKGCONFIG
5623 if test -n "$PKGCONFIG"; then
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5625 $as_echo "$PKGCONFIG" >&6; }
5626 else
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }
5629 fi
5630
5631
5632 # Extract the first word of "qmake", so it can be a program name with args.
5633 set dummy qmake; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if test "${ac_cv_path_QMAKE+set}" = set; then :
5637   $as_echo_n "(cached) " >&6
5638 else
5639   case $QMAKE in
5640   [\\/]* | ?:[\\/]*)
5641   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5642   ;;
5643   *)
5644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647   IFS=$as_save_IFS
5648   test -z "$as_dir" && as_dir=.
5649     for ac_exec_ext in '' $ac_executable_extensions; do
5650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5651     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653     break 2
5654   fi
5655 done
5656   done
5657 IFS=$as_save_IFS
5658
5659   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5660   ;;
5661 esac
5662 fi
5663 QMAKE=$ac_cv_path_QMAKE
5664 if test -n "$QMAKE"; then
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5666 $as_echo "$QMAKE" >&6; }
5667 else
5668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5670 fi
5671
5672
5673 # Extract the first word of "gmake", so it can be a program name with args.
5674 set dummy gmake; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if test "${ac_cv_path_GMAKE+set}" = set; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   case $GMAKE in
5681   [\\/]* | ?:[\\/]*)
5682   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5683   ;;
5684   *)
5685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688   IFS=$as_save_IFS
5689   test -z "$as_dir" && as_dir=.
5690     for ac_exec_ext in '' $ac_executable_extensions; do
5691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5692     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694     break 2
5695   fi
5696 done
5697   done
5698 IFS=$as_save_IFS
5699
5700   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5701   ;;
5702 esac
5703 fi
5704 GMAKE=$ac_cv_path_GMAKE
5705 if test -n "$GMAKE"; then
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5707 $as_echo "$GMAKE" >&6; }
5708 else
5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 fi
5712
5713
5714
5715 if test "x$WXCONFIG" = x; then
5716    WXCONFIG=wx-config
5717 fi
5718 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5719 set dummy ${WXCONFIG}; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   case $WXCONFIG in
5726   [\\/]* | ?:[\\/]*)
5727   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5728   ;;
5729   *)
5730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5732 do
5733   IFS=$as_save_IFS
5734   test -z "$as_dir" && as_dir=.
5735     for ac_exec_ext in '' $ac_executable_extensions; do
5736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739     break 2
5740   fi
5741 done
5742   done
5743 IFS=$as_save_IFS
5744
5745   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5746   ;;
5747 esac
5748 fi
5749 WXCONFIG=$ac_cv_path_WXCONFIG
5750 if test -n "$WXCONFIG"; then
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5752 $as_echo "$WXCONFIG" >&6; }
5753 else
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5756 fi
5757
5758
5759
5760 # Extract the first word of "cdrecord", so it can be a program name with args.
5761 set dummy cdrecord; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5765   $as_echo_n "(cached) " >&6
5766 else
5767   case $CDRECORD in
5768   [\\/]* | ?:[\\/]*)
5769   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5770   ;;
5771   *)
5772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777     for ac_exec_ext in '' $ac_executable_extensions; do
5778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784   done
5785 IFS=$as_save_IFS
5786
5787   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5788   ;;
5789 esac
5790 fi
5791 CDRECORD=$ac_cv_path_CDRECORD
5792 if test -n "$CDRECORD"; then
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5794 $as_echo "$CDRECORD" >&6; }
5795 else
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5798 fi
5799
5800
5801 # Extract the first word of "pidof", so it can be a program name with args.
5802 set dummy pidof; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if test "${ac_cv_path_PIDOF+set}" = set; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   case $PIDOF in
5809   [\\/]* | ?:[\\/]*)
5810   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5811   ;;
5812   *)
5813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816   IFS=$as_save_IFS
5817   test -z "$as_dir" && as_dir=.
5818     for ac_exec_ext in '' $ac_executable_extensions; do
5819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822     break 2
5823   fi
5824 done
5825   done
5826 IFS=$as_save_IFS
5827
5828   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5829   ;;
5830 esac
5831 fi
5832 PIDOF=$ac_cv_path_PIDOF
5833 if test -n "$PIDOF"; then
5834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5835 $as_echo "$PIDOF" >&6; }
5836 else
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841
5842 for ac_prog in gawk mawk nawk awk
5843 do
5844   # Extract the first word of "$ac_prog", so it can be a program name with args.
5845 set dummy $ac_prog; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if test "${ac_cv_prog_AWK+set}" = set; then :
5849   $as_echo_n "(cached) " >&6
5850 else
5851   if test -n "$AWK"; then
5852   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857   IFS=$as_save_IFS
5858   test -z "$as_dir" && as_dir=.
5859     for ac_exec_ext in '' $ac_executable_extensions; do
5860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861     ac_cv_prog_AWK="$ac_prog"
5862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863     break 2
5864   fi
5865 done
5866   done
5867 IFS=$as_save_IFS
5868
5869 fi
5870 fi
5871 AWK=$ac_cv_prog_AWK
5872 if test -n "$AWK"; then
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5874 $as_echo "$AWK" >&6; }
5875 else
5876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5878 fi
5879
5880
5881   test -n "$AWK" && break
5882 done
5883
5884 # Some AWK programs fail, so test it and warn the user
5885 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5886       { if ((prog == $2) || (("(" prog ")") == $2) ||
5887       (("" prog "") == $2) ||
5888       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5889 else
5890   as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5891    The regex engine of $AWK is too broken to be used you
5892    might want to install GNU AWK.
5893    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5894 fi
5895 THE_AWK=$AWK
5896 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5897 set dummy $THE_AWK; ac_word=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if test "${ac_cv_path_AWK+set}" = set; then :
5901   $as_echo_n "(cached) " >&6
5902 else
5903   case $AWK in
5904   [\\/]* | ?:[\\/]*)
5905   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5906   ;;
5907   *)
5908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913     for ac_exec_ext in '' $ac_executable_extensions; do
5914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917     break 2
5918   fi
5919 done
5920   done
5921 IFS=$as_save_IFS
5922
5923   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5924   ;;
5925 esac
5926 fi
5927 AWK=$ac_cv_path_AWK
5928 if test -n "$AWK"; then
5929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5930 $as_echo "$AWK" >&6; }
5931 else
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 fi
5935
5936
5937
5938
5939 test -n "$ARFLAG" || ARFLAGS="cr"
5940
5941
5942 MAKE_SHELL=/bin/sh
5943
5944
5945
5946
5947
5948
5949
5950 use_libtool=yes
5951 # Check whether --enable-libtool was given.
5952 if test "${enable_libtool+set}" = set; then :
5953   enableval=$enable_libtool;
5954        if test x$enableval = xno; then
5955           use_libtool=no
5956        fi
5957
5958
5959 fi
5960
5961 case `pwd` in
5962   *\ * | *\     *)
5963     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5964 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5965 esac
5966
5967
5968
5969 macro_version='2.2.6'
5970 macro_revision='1.3012'
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984 ltmain="$ac_aux_dir/ltmain.sh"
5985
5986 # Make sure we can run config.sub.
5987 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5988   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5989
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5991 $as_echo_n "checking build system type... " >&6; }
5992 if test "${ac_cv_build+set}" = set; then :
5993   $as_echo_n "(cached) " >&6
5994 else
5995   ac_build_alias=$build_alias
5996 test "x$ac_build_alias" = x &&
5997   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5998 test "x$ac_build_alias" = x &&
5999   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6000 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6001   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6002
6003 fi
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6005 $as_echo "$ac_cv_build" >&6; }
6006 case $ac_cv_build in
6007 *-*-*) ;;
6008 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6009 esac
6010 build=$ac_cv_build
6011 ac_save_IFS=$IFS; IFS='-'
6012 set x $ac_cv_build
6013 shift
6014 build_cpu=$1
6015 build_vendor=$2
6016 shift; shift
6017 # Remember, the first character of IFS is used to create $*,
6018 # except with old shells:
6019 build_os=$*
6020 IFS=$ac_save_IFS
6021 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6022
6023
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6025 $as_echo_n "checking host system type... " >&6; }
6026 if test "${ac_cv_host+set}" = set; then :
6027   $as_echo_n "(cached) " >&6
6028 else
6029   if test "x$host_alias" = x; then
6030   ac_cv_host=$ac_cv_build
6031 else
6032   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6033     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6034 fi
6035
6036 fi
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6038 $as_echo "$ac_cv_host" >&6; }
6039 case $ac_cv_host in
6040 *-*-*) ;;
6041 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6042 esac
6043 host=$ac_cv_host
6044 ac_save_IFS=$IFS; IFS='-'
6045 set x $ac_cv_host
6046 shift
6047 host_cpu=$1
6048 host_vendor=$2
6049 shift; shift
6050 # Remember, the first character of IFS is used to create $*,
6051 # except with old shells:
6052 host_os=$*
6053 IFS=$ac_save_IFS
6054 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6055
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6058 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6059 if test "${ac_cv_path_SED+set}" = set; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6063      for ac_i in 1 2 3 4 5 6 7; do
6064        ac_script="$ac_script$as_nl$ac_script"
6065      done
6066      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6067      { ac_script=; unset ac_script;}
6068      if test -z "$SED"; then
6069   ac_path_SED_found=false
6070   # Loop through the user's path and test for each of PROGNAME-LIST
6071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074   IFS=$as_save_IFS
6075   test -z "$as_dir" && as_dir=.
6076     for ac_prog in sed gsed; do
6077     for ac_exec_ext in '' $ac_executable_extensions; do
6078       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6079       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6080 # Check for GNU ac_path_SED and select it if it is found.
6081   # Check for GNU $ac_path_SED
6082 case `"$ac_path_SED" --version 2>&1` in
6083 *GNU*)
6084   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6085 *)
6086   ac_count=0
6087   $as_echo_n 0123456789 >"conftest.in"
6088   while :
6089   do
6090     cat "conftest.in" "conftest.in" >"conftest.tmp"
6091     mv "conftest.tmp" "conftest.in"
6092     cp "conftest.in" "conftest.nl"
6093     $as_echo '' >> "conftest.nl"
6094     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6095     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6096     as_fn_arith $ac_count + 1 && ac_count=$as_val
6097     if test $ac_count -gt ${ac_path_SED_max-0}; then
6098       # Best one so far, save it but keep looking for a better one
6099       ac_cv_path_SED="$ac_path_SED"
6100       ac_path_SED_max=$ac_count
6101     fi
6102     # 10*(2^10) chars as input seems more than enough
6103     test $ac_count -gt 10 && break
6104   done
6105   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6106 esac
6107
6108       $ac_path_SED_found && break 3
6109     done
6110   done
6111   done
6112 IFS=$as_save_IFS
6113   if test -z "$ac_cv_path_SED"; then
6114     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6115   fi
6116 else
6117   ac_cv_path_SED=$SED
6118 fi
6119
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6122 $as_echo "$ac_cv_path_SED" >&6; }
6123  SED="$ac_cv_path_SED"
6124   rm -f conftest.sed
6125
6126 test -z "$SED" && SED=sed
6127 Xsed="$SED -e 1s/^X//"
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6140 $as_echo_n "checking for fgrep... " >&6; }
6141 if test "${ac_cv_path_FGREP+set}" = set; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6145    then ac_cv_path_FGREP="$GREP -F"
6146    else
6147      if test -z "$FGREP"; then
6148   ac_path_FGREP_found=false
6149   # Loop through the user's path and test for each of PROGNAME-LIST
6150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6152 do
6153   IFS=$as_save_IFS
6154   test -z "$as_dir" && as_dir=.
6155     for ac_prog in fgrep; do
6156     for ac_exec_ext in '' $ac_executable_extensions; do
6157       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6158       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6159 # Check for GNU ac_path_FGREP and select it if it is found.
6160   # Check for GNU $ac_path_FGREP
6161 case `"$ac_path_FGREP" --version 2>&1` in
6162 *GNU*)
6163   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6164 *)
6165   ac_count=0
6166   $as_echo_n 0123456789 >"conftest.in"
6167   while :
6168   do
6169     cat "conftest.in" "conftest.in" >"conftest.tmp"
6170     mv "conftest.tmp" "conftest.in"
6171     cp "conftest.in" "conftest.nl"
6172     $as_echo 'FGREP' >> "conftest.nl"
6173     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6174     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6175     as_fn_arith $ac_count + 1 && ac_count=$as_val
6176     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6177       # Best one so far, save it but keep looking for a better one
6178       ac_cv_path_FGREP="$ac_path_FGREP"
6179       ac_path_FGREP_max=$ac_count
6180     fi
6181     # 10*(2^10) chars as input seems more than enough
6182     test $ac_count -gt 10 && break
6183   done
6184   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6185 esac
6186
6187       $ac_path_FGREP_found && break 3
6188     done
6189   done
6190   done
6191 IFS=$as_save_IFS
6192   if test -z "$ac_cv_path_FGREP"; then
6193     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6194   fi
6195 else
6196   ac_cv_path_FGREP=$FGREP
6197 fi
6198
6199    fi
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6202 $as_echo "$ac_cv_path_FGREP" >&6; }
6203  FGREP="$ac_cv_path_FGREP"
6204
6205
6206 test -z "$GREP" && GREP=grep
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226 # Check whether --with-gnu-ld was given.
6227 if test "${with_gnu_ld+set}" = set; then :
6228   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6229 else
6230   with_gnu_ld=no
6231 fi
6232
6233 ac_prog=ld
6234 if test "$GCC" = yes; then
6235   # Check if gcc -print-prog-name=ld gives a path.
6236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6237 $as_echo_n "checking for ld used by $CC... " >&6; }
6238   case $host in
6239   *-*-mingw*)
6240     # gcc leaves a trailing carriage return which upsets mingw
6241     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6242   *)
6243     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6244   esac
6245   case $ac_prog in
6246     # Accept absolute paths.
6247     [\\/]* | ?:[\\/]*)
6248       re_direlt='/[^/][^/]*/\.\./'
6249       # Canonicalize the pathname of ld
6250       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6251       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6252         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6253       done
6254       test -z "$LD" && LD="$ac_prog"
6255       ;;
6256   "")
6257     # If it fails, then pretend we aren't using GCC.
6258     ac_prog=ld
6259     ;;
6260   *)
6261     # If it is relative, then search for the first ld in PATH.
6262     with_gnu_ld=unknown
6263     ;;
6264   esac
6265 elif test "$with_gnu_ld" = yes; then
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6267 $as_echo_n "checking for GNU ld... " >&6; }
6268 else
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6270 $as_echo_n "checking for non-GNU ld... " >&6; }
6271 fi
6272 if test "${lt_cv_path_LD+set}" = set; then :
6273   $as_echo_n "(cached) " >&6
6274 else
6275   if test -z "$LD"; then
6276   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6277   for ac_dir in $PATH; do
6278     IFS="$lt_save_ifs"
6279     test -z "$ac_dir" && ac_dir=.
6280     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6281       lt_cv_path_LD="$ac_dir/$ac_prog"
6282       # Check to see if the program is GNU ld.  I'd rather use --version,
6283       # but apparently some variants of GNU ld only accept -v.
6284       # Break only if it was the GNU/non-GNU ld that we prefer.
6285       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6286       *GNU* | *'with BFD'*)
6287         test "$with_gnu_ld" != no && break
6288         ;;
6289       *)
6290         test "$with_gnu_ld" != yes && break
6291         ;;
6292       esac
6293     fi
6294   done
6295   IFS="$lt_save_ifs"
6296 else
6297   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6298 fi
6299 fi
6300
6301 LD="$lt_cv_path_LD"
6302 if test -n "$LD"; then
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6304 $as_echo "$LD" >&6; }
6305 else
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6311 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6312 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6316 case `$LD -v 2>&1 </dev/null` in
6317 *GNU* | *'with BFD'*)
6318   lt_cv_prog_gnu_ld=yes
6319   ;;
6320 *)
6321   lt_cv_prog_gnu_ld=no
6322   ;;
6323 esac
6324 fi
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6326 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6327 with_gnu_ld=$lt_cv_prog_gnu_ld
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6338 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6339 if test "${lt_cv_path_NM+set}" = set; then :
6340   $as_echo_n "(cached) " >&6
6341 else
6342   if test -n "$NM"; then
6343   # Let the user override the test.
6344   lt_cv_path_NM="$NM"
6345 else
6346   lt_nm_to_check="${ac_tool_prefix}nm"
6347   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6348     lt_nm_to_check="$lt_nm_to_check nm"
6349   fi
6350   for lt_tmp_nm in $lt_nm_to_check; do
6351     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6352     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6353       IFS="$lt_save_ifs"
6354       test -z "$ac_dir" && ac_dir=.
6355       tmp_nm="$ac_dir/$lt_tmp_nm"
6356       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6357         # Check to see if the nm accepts a BSD-compat flag.
6358         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6359         #   nm: unknown option "B" ignored
6360         # Tru64's nm complains that /dev/null is an invalid object file
6361         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6362         */dev/null* | *'Invalid file or object type'*)
6363           lt_cv_path_NM="$tmp_nm -B"
6364           break
6365           ;;
6366         *)
6367           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6368           */dev/null*)
6369             lt_cv_path_NM="$tmp_nm -p"
6370             break
6371             ;;
6372           *)
6373             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6374             continue # so that we can try to find one that supports BSD flags
6375             ;;
6376           esac
6377           ;;
6378         esac
6379       fi
6380     done
6381     IFS="$lt_save_ifs"
6382   done
6383   : ${lt_cv_path_NM=no}
6384 fi
6385 fi
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6387 $as_echo "$lt_cv_path_NM" >&6; }
6388 if test "$lt_cv_path_NM" != "no"; then
6389   NM="$lt_cv_path_NM"
6390 else
6391   # Didn't find any BSD compatible name lister, look for dumpbin.
6392   if test -n "$ac_tool_prefix"; then
6393   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6394   do
6395     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6400   $as_echo_n "(cached) " >&6
6401 else
6402   if test -n "$DUMPBIN"; then
6403   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408   IFS=$as_save_IFS
6409   test -z "$as_dir" && as_dir=.
6410     for ac_exec_ext in '' $ac_executable_extensions; do
6411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6412     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414     break 2
6415   fi
6416 done
6417   done
6418 IFS=$as_save_IFS
6419
6420 fi
6421 fi
6422 DUMPBIN=$ac_cv_prog_DUMPBIN
6423 if test -n "$DUMPBIN"; then
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6425 $as_echo "$DUMPBIN" >&6; }
6426 else
6427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6429 fi
6430
6431
6432     test -n "$DUMPBIN" && break
6433   done
6434 fi
6435 if test -z "$DUMPBIN"; then
6436   ac_ct_DUMPBIN=$DUMPBIN
6437   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6438 do
6439   # Extract the first word of "$ac_prog", so it can be a program name with args.
6440 set dummy $ac_prog; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -n "$ac_ct_DUMPBIN"; then
6447   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454     for ac_exec_ext in '' $ac_executable_extensions; do
6455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461   done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6467 if test -n "$ac_ct_DUMPBIN"; then
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6469 $as_echo "$ac_ct_DUMPBIN" >&6; }
6470 else
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475
6476   test -n "$ac_ct_DUMPBIN" && break
6477 done
6478
6479   if test "x$ac_ct_DUMPBIN" = x; then
6480     DUMPBIN=":"
6481   else
6482     case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488     DUMPBIN=$ac_ct_DUMPBIN
6489   fi
6490 fi
6491
6492
6493   if test "$DUMPBIN" != ":"; then
6494     NM="$DUMPBIN"
6495   fi
6496 fi
6497 test -z "$NM" && NM=nm
6498
6499
6500
6501
6502
6503
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6505 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6506 if test "${lt_cv_nm_interface+set}" = set; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   lt_cv_nm_interface="BSD nm"
6510   echo "int some_variable = 0;" > conftest.$ac_ext
6511   (eval echo "\"\$as_me:6511: $ac_compile\"" >&5)
6512   (eval "$ac_compile" 2>conftest.err)
6513   cat conftest.err >&5
6514   (eval echo "\"\$as_me:6514: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6515   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6516   cat conftest.err >&5
6517   (eval echo "\"\$as_me:6517: output\"" >&5)
6518   cat conftest.out >&5
6519   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6520     lt_cv_nm_interface="MS dumpbin"
6521   fi
6522   rm -f conftest*
6523 fi
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6525 $as_echo "$lt_cv_nm_interface" >&6; }
6526
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6528 $as_echo_n "checking whether ln -s works... " >&6; }
6529 LN_S=$as_ln_s
6530 if test "$LN_S" = "ln -s"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6532 $as_echo "yes" >&6; }
6533 else
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6535 $as_echo "no, using $LN_S" >&6; }
6536 fi
6537
6538 # find the maximum length of command line arguments
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6540 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6541 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6542   $as_echo_n "(cached) " >&6
6543 else
6544     i=0
6545   teststring="ABCD"
6546
6547   case $build_os in
6548   msdosdjgpp*)
6549     # On DJGPP, this test can blow up pretty badly due to problems in libc
6550     # (any single argument exceeding 2000 bytes causes a buffer overrun
6551     # during glob expansion).  Even if it were fixed, the result of this
6552     # check would be larger than it should be.
6553     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6554     ;;
6555
6556   gnu*)
6557     # Under GNU Hurd, this test is not required because there is
6558     # no limit to the length of command line arguments.
6559     # Libtool will interpret -1 as no limit whatsoever
6560     lt_cv_sys_max_cmd_len=-1;
6561     ;;
6562
6563   cygwin* | mingw* | cegcc*)
6564     # On Win9x/ME, this test blows up -- it succeeds, but takes
6565     # about 5 minutes as the teststring grows exponentially.
6566     # Worse, since 9x/ME are not pre-emptively multitasking,
6567     # you end up with a "frozen" computer, even though with patience
6568     # the test eventually succeeds (with a max line length of 256k).
6569     # Instead, let's just punt: use the minimum linelength reported by
6570     # all of the supported platforms: 8192 (on NT/2K/XP).
6571     lt_cv_sys_max_cmd_len=8192;
6572     ;;
6573
6574   amigaos*)
6575     # On AmigaOS with pdksh, this test takes hours, literally.
6576     # So we just punt and use a minimum line length of 8192.
6577     lt_cv_sys_max_cmd_len=8192;
6578     ;;
6579
6580   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6581     # This has been around since 386BSD, at least.  Likely further.
6582     if test -x /sbin/sysctl; then
6583       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6584     elif test -x /usr/sbin/sysctl; then
6585       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6586     else
6587       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6588     fi
6589     # And add a safety zone
6590     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6591     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6592     ;;
6593
6594   interix*)
6595     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6596     lt_cv_sys_max_cmd_len=196608
6597     ;;
6598
6599   osf*)
6600     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6601     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6602     # nice to cause kernel panics so lets avoid the loop below.
6603     # First set a reasonable default.
6604     lt_cv_sys_max_cmd_len=16384
6605     #
6606     if test -x /sbin/sysconfig; then
6607       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6608         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6609       esac
6610     fi
6611     ;;
6612   sco3.2v5*)
6613     lt_cv_sys_max_cmd_len=102400
6614     ;;
6615   sysv5* | sco5v6* | sysv4.2uw2*)
6616     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6617     if test -n "$kargmax"; then
6618       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6619     else
6620       lt_cv_sys_max_cmd_len=32768
6621     fi
6622     ;;
6623   *)
6624     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6625     if test -n "$lt_cv_sys_max_cmd_len"; then
6626       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6627       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6628     else
6629       # Make teststring a little bigger before we do anything with it.
6630       # a 1K string should be a reasonable start.
6631       for i in 1 2 3 4 5 6 7 8 ; do
6632         teststring=$teststring$teststring
6633       done
6634       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6635       # If test is not a shell built-in, we'll probably end up computing a
6636       # maximum length that is only half of the actual maximum length, but
6637       # we can't tell.
6638       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6639                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6640               test $i != 17 # 1/2 MB should be enough
6641       do
6642         i=`expr $i + 1`
6643         teststring=$teststring$teststring
6644       done
6645       # Only check the string length outside the loop.
6646       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6647       teststring=
6648       # Add a significant safety factor because C++ compilers can tack on
6649       # massive amounts of additional arguments before passing them to the
6650       # linker.  It appears as though 1/2 is a usable value.
6651       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6652     fi
6653     ;;
6654   esac
6655
6656 fi
6657
6658 if test -n $lt_cv_sys_max_cmd_len ; then
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6660 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6661 else
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6663 $as_echo "none" >&6; }
6664 fi
6665 max_cmd_len=$lt_cv_sys_max_cmd_len
6666
6667
6668
6669
6670
6671
6672 : ${CP="cp -f"}
6673 : ${MV="mv -f"}
6674 : ${RM="rm -f"}
6675
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6677 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6678 # Try some XSI features
6679 xsi_shell=no
6680 ( _lt_dummy="a/b/c"
6681   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6682       = c,a/b,, \
6683     && eval 'test $(( 1 + 1 )) -eq 2 \
6684     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6685   && xsi_shell=yes
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6687 $as_echo "$xsi_shell" >&6; }
6688
6689
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6691 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6692 lt_shell_append=no
6693 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6694     >/dev/null 2>&1 \
6695   && lt_shell_append=yes
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6697 $as_echo "$lt_shell_append" >&6; }
6698
6699
6700 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6701   lt_unset=unset
6702 else
6703   lt_unset=false
6704 fi
6705
6706
6707
6708
6709
6710 # test EBCDIC or ASCII
6711 case `echo X|tr X '\101'` in
6712  A) # ASCII based system
6713     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6714   lt_SP2NL='tr \040 \012'
6715   lt_NL2SP='tr \015\012 \040\040'
6716   ;;
6717  *) # EBCDIC based system
6718   lt_SP2NL='tr \100 \n'
6719   lt_NL2SP='tr \r\n \100\100'
6720   ;;
6721 esac
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6732 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6733 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6734   $as_echo_n "(cached) " >&6
6735 else
6736   lt_cv_ld_reload_flag='-r'
6737 fi
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6739 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6740 reload_flag=$lt_cv_ld_reload_flag
6741 case $reload_flag in
6742 "" | " "*) ;;
6743 *) reload_flag=" $reload_flag" ;;
6744 esac
6745 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6746 case $host_os in
6747   darwin*)
6748     if test "$GCC" = yes; then
6749       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6750     else
6751       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6752     fi
6753     ;;
6754 esac
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764 if test -n "$ac_tool_prefix"; then
6765   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6766 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6770   $as_echo_n "(cached) " >&6
6771 else
6772   if test -n "$OBJDUMP"; then
6773   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778   IFS=$as_save_IFS
6779   test -z "$as_dir" && as_dir=.
6780     for ac_exec_ext in '' $ac_executable_extensions; do
6781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784     break 2
6785   fi
6786 done
6787   done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 OBJDUMP=$ac_cv_prog_OBJDUMP
6793 if test -n "$OBJDUMP"; then
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6795 $as_echo "$OBJDUMP" >&6; }
6796 else
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801
6802 fi
6803 if test -z "$ac_cv_prog_OBJDUMP"; then
6804   ac_ct_OBJDUMP=$OBJDUMP
6805   # Extract the first word of "objdump", so it can be a program name with args.
6806 set dummy objdump; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   if test -n "$ac_ct_OBJDUMP"; then
6813   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818   IFS=$as_save_IFS
6819   test -z "$as_dir" && as_dir=.
6820     for ac_exec_ext in '' $ac_executable_extensions; do
6821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824     break 2
6825   fi
6826 done
6827   done
6828 IFS=$as_save_IFS
6829
6830 fi
6831 fi
6832 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6833 if test -n "$ac_ct_OBJDUMP"; then
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6835 $as_echo "$ac_ct_OBJDUMP" >&6; }
6836 else
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840
6841   if test "x$ac_ct_OBJDUMP" = x; then
6842     OBJDUMP="false"
6843   else
6844     case $cross_compiling:$ac_tool_warned in
6845 yes:)
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848 ac_tool_warned=yes ;;
6849 esac
6850     OBJDUMP=$ac_ct_OBJDUMP
6851   fi
6852 else
6853   OBJDUMP="$ac_cv_prog_OBJDUMP"
6854 fi
6855
6856 test -z "$OBJDUMP" && OBJDUMP=objdump
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6867 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6868 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6869   $as_echo_n "(cached) " >&6
6870 else
6871   lt_cv_file_magic_cmd='$MAGIC_CMD'
6872 lt_cv_file_magic_test_file=
6873 lt_cv_deplibs_check_method='unknown'
6874 # Need to set the preceding variable on all platforms that support
6875 # interlibrary dependencies.
6876 # 'none' -- dependencies not supported.
6877 # `unknown' -- same as none, but documents that we really don't know.
6878 # 'pass_all' -- all dependencies passed with no checks.
6879 # 'test_compile' -- check by making test program.
6880 # 'file_magic [[regex]]' -- check by looking for files in library path
6881 # which responds to the $file_magic_cmd with a given extended regex.
6882 # If you have `file' or equivalent on your system and you're not sure
6883 # whether `pass_all' will *always* work, you probably want this one.
6884
6885 case $host_os in
6886 aix[4-9]*)
6887   lt_cv_deplibs_check_method=pass_all
6888   ;;
6889
6890 beos*)
6891   lt_cv_deplibs_check_method=pass_all
6892   ;;
6893
6894 bsdi[45]*)
6895   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6896   lt_cv_file_magic_cmd='/usr/bin/file -L'
6897   lt_cv_file_magic_test_file=/shlib/libc.so
6898   ;;
6899
6900 cygwin*)
6901   # func_win32_libid is a shell function defined in ltmain.sh
6902   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6903   lt_cv_file_magic_cmd='func_win32_libid'
6904   ;;
6905
6906 mingw* | pw32*)
6907   # Base MSYS/MinGW do not provide the 'file' command needed by
6908   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6909   # unless we find 'file', for example because we are cross-compiling.
6910   if ( file / ) >/dev/null 2>&1; then
6911     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6912     lt_cv_file_magic_cmd='func_win32_libid'
6913   else
6914     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6915     lt_cv_file_magic_cmd='$OBJDUMP -f'
6916   fi
6917   ;;
6918
6919 cegcc)
6920   # use the weaker test based on 'objdump'. See mingw*.
6921   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6922   lt_cv_file_magic_cmd='$OBJDUMP -f'
6923   ;;
6924
6925 darwin* | rhapsody*)
6926   lt_cv_deplibs_check_method=pass_all
6927   ;;
6928
6929 freebsd* | dragonfly*)
6930   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6931     case $host_cpu in
6932     i*86 )
6933       # Not sure whether the presence of OpenBSD here was a mistake.
6934       # Let's accept both of them until this is cleared up.
6935       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6936       lt_cv_file_magic_cmd=/usr/bin/file
6937       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6938       ;;
6939     esac
6940   else
6941     lt_cv_deplibs_check_method=pass_all
6942   fi
6943   ;;
6944
6945 gnu*)
6946   lt_cv_deplibs_check_method=pass_all
6947   ;;
6948
6949 hpux10.20* | hpux11*)
6950   lt_cv_file_magic_cmd=/usr/bin/file
6951   case $host_cpu in
6952   ia64*)
6953     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6954     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6955     ;;
6956   hppa*64*)
6957     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]'
6958     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6959     ;;
6960   *)
6961     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6962     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6963     ;;
6964   esac
6965   ;;
6966
6967 interix[3-9]*)
6968   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6969   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6970   ;;
6971
6972 irix5* | irix6* | nonstopux*)
6973   case $LD in
6974   *-32|*"-32 ") libmagic=32-bit;;
6975   *-n32|*"-n32 ") libmagic=N32;;
6976   *-64|*"-64 ") libmagic=64-bit;;
6977   *) libmagic=never-match;;
6978   esac
6979   lt_cv_deplibs_check_method=pass_all
6980   ;;
6981
6982 # This must be Linux ELF.
6983 linux* | k*bsd*-gnu)
6984   lt_cv_deplibs_check_method=pass_all
6985   ;;
6986
6987 netbsd*)
6988   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6989     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6990   else
6991     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6992   fi
6993   ;;
6994
6995 newos6*)
6996   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6997   lt_cv_file_magic_cmd=/usr/bin/file
6998   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6999   ;;
7000
7001 *nto* | *qnx*)
7002   lt_cv_deplibs_check_method=pass_all
7003   ;;
7004
7005 openbsd*)
7006   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7007     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7008   else
7009     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7010   fi
7011   ;;
7012
7013 osf3* | osf4* | osf5*)
7014   lt_cv_deplibs_check_method=pass_all
7015   ;;
7016
7017 rdos*)
7018   lt_cv_deplibs_check_method=pass_all
7019   ;;
7020
7021 solaris*)
7022   lt_cv_deplibs_check_method=pass_all
7023   ;;
7024
7025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7026   lt_cv_deplibs_check_method=pass_all
7027   ;;
7028
7029 sysv4 | sysv4.3*)
7030   case $host_vendor in
7031   motorola)
7032     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]'
7033     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7034     ;;
7035   ncr)
7036     lt_cv_deplibs_check_method=pass_all
7037     ;;
7038   sequent)
7039     lt_cv_file_magic_cmd='/bin/file'
7040     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7041     ;;
7042   sni)
7043     lt_cv_file_magic_cmd='/bin/file'
7044     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7045     lt_cv_file_magic_test_file=/lib/libc.so
7046     ;;
7047   siemens)
7048     lt_cv_deplibs_check_method=pass_all
7049     ;;
7050   pc)
7051     lt_cv_deplibs_check_method=pass_all
7052     ;;
7053   esac
7054   ;;
7055
7056 tpf*)
7057   lt_cv_deplibs_check_method=pass_all
7058   ;;
7059 esac
7060
7061 fi
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7063 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7064 file_magic_cmd=$lt_cv_file_magic_cmd
7065 deplibs_check_method=$lt_cv_deplibs_check_method
7066 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079 if test -n "$ac_tool_prefix"; then
7080   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7081 set dummy ${ac_tool_prefix}ar; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if test "${ac_cv_prog_AR+set}" = set; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   if test -n "$AR"; then
7088   ac_cv_prog_AR="$AR" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093   IFS=$as_save_IFS
7094   test -z "$as_dir" && as_dir=.
7095     for ac_exec_ext in '' $ac_executable_extensions; do
7096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7097     ac_cv_prog_AR="${ac_tool_prefix}ar"
7098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099     break 2
7100   fi
7101 done
7102   done
7103 IFS=$as_save_IFS
7104
7105 fi
7106 fi
7107 AR=$ac_cv_prog_AR
7108 if test -n "$AR"; then
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7110 $as_echo "$AR" >&6; }
7111 else
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7114 fi
7115
7116
7117 fi
7118 if test -z "$ac_cv_prog_AR"; then
7119   ac_ct_AR=$AR
7120   # Extract the first word of "ar", so it can be a program name with args.
7121 set dummy ar; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7125   $as_echo_n "(cached) " >&6
7126 else
7127   if test -n "$ac_ct_AR"; then
7128   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133   IFS=$as_save_IFS
7134   test -z "$as_dir" && as_dir=.
7135     for ac_exec_ext in '' $ac_executable_extensions; do
7136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137     ac_cv_prog_ac_ct_AR="ar"
7138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139     break 2
7140   fi
7141 done
7142   done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7148 if test -n "$ac_ct_AR"; then
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7150 $as_echo "$ac_ct_AR" >&6; }
7151 else
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156   if test "x$ac_ct_AR" = x; then
7157     AR="false"
7158   else
7159     case $cross_compiling:$ac_tool_warned in
7160 yes:)
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163 ac_tool_warned=yes ;;
7164 esac
7165     AR=$ac_ct_AR
7166   fi
7167 else
7168   AR="$ac_cv_prog_AR"
7169 fi
7170
7171 test -z "$AR" && AR=ar
7172 test -z "$AR_FLAGS" && AR_FLAGS=cru
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184 if test -n "$ac_tool_prefix"; then
7185   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}strip; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if test "${ac_cv_prog_STRIP+set}" = set; then :
7190   $as_echo_n "(cached) " >&6
7191 else
7192   if test -n "$STRIP"; then
7193   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198   IFS=$as_save_IFS
7199   test -z "$as_dir" && as_dir=.
7200     for ac_exec_ext in '' $ac_executable_extensions; do
7201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7202     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205   fi
7206 done
7207   done
7208 IFS=$as_save_IFS
7209
7210 fi
7211 fi
7212 STRIP=$ac_cv_prog_STRIP
7213 if test -n "$STRIP"; then
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7215 $as_echo "$STRIP" >&6; }
7216 else
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7219 fi
7220
7221
7222 fi
7223 if test -z "$ac_cv_prog_STRIP"; then
7224   ac_ct_STRIP=$STRIP
7225   # Extract the first word of "strip", so it can be a program name with args.
7226 set dummy strip; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7230   $as_echo_n "(cached) " >&6
7231 else
7232   if test -n "$ac_ct_STRIP"; then
7233   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240     for ac_exec_ext in '' $ac_executable_extensions; do
7241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242     ac_cv_prog_ac_ct_STRIP="strip"
7243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244     break 2
7245   fi
7246 done
7247   done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7253 if test -n "$ac_ct_STRIP"; then
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7255 $as_echo "$ac_ct_STRIP" >&6; }
7256 else
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261   if test "x$ac_ct_STRIP" = x; then
7262     STRIP=":"
7263   else
7264     case $cross_compiling:$ac_tool_warned in
7265 yes:)
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 ac_tool_warned=yes ;;
7269 esac
7270     STRIP=$ac_ct_STRIP
7271   fi
7272 else
7273   STRIP="$ac_cv_prog_STRIP"
7274 fi
7275
7276 test -z "$STRIP" && STRIP=:
7277
7278
7279
7280
7281
7282
7283 if test -n "$ac_tool_prefix"; then
7284   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7289   $as_echo_n "(cached) " >&6
7290 else
7291   if test -n "$RANLIB"; then
7292   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299     for ac_exec_ext in '' $ac_executable_extensions; do
7300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306   done
7307 IFS=$as_save_IFS
7308
7309 fi
7310 fi
7311 RANLIB=$ac_cv_prog_RANLIB
7312 if test -n "$RANLIB"; then
7313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7314 $as_echo "$RANLIB" >&6; }
7315 else
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7318 fi
7319
7320
7321 fi
7322 if test -z "$ac_cv_prog_RANLIB"; then
7323   ac_ct_RANLIB=$RANLIB
7324   # Extract the first word of "ranlib", so it can be a program name with args.
7325 set dummy ranlib; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   if test -n "$ac_ct_RANLIB"; then
7332   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339     for ac_exec_ext in '' $ac_executable_extensions; do
7340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341     ac_cv_prog_ac_ct_RANLIB="ranlib"
7342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346   done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7352 if test -n "$ac_ct_RANLIB"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7354 $as_echo "$ac_ct_RANLIB" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360   if test "x$ac_ct_RANLIB" = x; then
7361     RANLIB=":"
7362   else
7363     case $cross_compiling:$ac_tool_warned in
7364 yes:)
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367 ac_tool_warned=yes ;;
7368 esac
7369     RANLIB=$ac_ct_RANLIB
7370   fi
7371 else
7372   RANLIB="$ac_cv_prog_RANLIB"
7373 fi
7374
7375 test -z "$RANLIB" && RANLIB=:
7376
7377
7378
7379
7380
7381
7382 # Determine commands to create old-style static archives.
7383 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7384 old_postinstall_cmds='chmod 644 $oldlib'
7385 old_postuninstall_cmds=
7386
7387 if test -n "$RANLIB"; then
7388   case $host_os in
7389   openbsd*)
7390     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7391     ;;
7392   *)
7393     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7394     ;;
7395   esac
7396   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7397 fi
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 # If no C compiler was specified, use CC.
7433 LTCC=${LTCC-"$CC"}
7434
7435 # If no C compiler flags were specified, use CFLAGS.
7436 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7437
7438 # Allow CC to be a program name with arguments.
7439 compiler=$CC
7440
7441
7442 # Check for command to grab the raw symbol name followed by C symbol from nm.
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7444 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7445 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448
7449 # These are sane defaults that work on at least a few old systems.
7450 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7451
7452 # Character class describing NM global symbol codes.
7453 symcode='[BCDEGRST]'
7454
7455 # Regexp to match symbols that can be accessed directly from C.
7456 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7457
7458 # Define system-specific variables.
7459 case $host_os in
7460 aix*)
7461   symcode='[BCDT]'
7462   ;;
7463 cygwin* | mingw* | pw32* | cegcc*)
7464   symcode='[ABCDGISTW]'
7465   ;;
7466 hpux*)
7467   if test "$host_cpu" = ia64; then
7468     symcode='[ABCDEGRST]'
7469   fi
7470   ;;
7471 irix* | nonstopux*)
7472   symcode='[BCDEGRST]'
7473   ;;
7474 osf*)
7475   symcode='[BCDEGQRST]'
7476   ;;
7477 solaris*)
7478   symcode='[BDRT]'
7479   ;;
7480 sco3.2v5*)
7481   symcode='[DT]'
7482   ;;
7483 sysv4.2uw2*)
7484   symcode='[DT]'
7485   ;;
7486 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7487   symcode='[ABDT]'
7488   ;;
7489 sysv4)
7490   symcode='[DFNSTU]'
7491   ;;
7492 esac
7493
7494 # If we're using GNU nm, then use its standard symbol codes.
7495 case `$NM -V 2>&1` in
7496 *GNU* | *'with BFD'*)
7497   symcode='[ABCDGIRSTW]' ;;
7498 esac
7499
7500 # Transform an extracted symbol line into a proper C declaration.
7501 # Some systems (esp. on ia64) link data and code symbols differently,
7502 # so use this general approach.
7503 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7504
7505 # Transform an extracted symbol line into symbol name and symbol address
7506 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7507 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'"
7508
7509 # Handle CRLF in mingw tool chain
7510 opt_cr=
7511 case $build_os in
7512 mingw*)
7513   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7514   ;;
7515 esac
7516
7517 # Try without a prefix underscore, then with it.
7518 for ac_symprfx in "" "_"; do
7519
7520   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7521   symxfrm="\\1 $ac_symprfx\\2 \\2"
7522
7523   # Write the raw and C identifiers.
7524   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7525     # Fake it for dumpbin and say T for any non-static function
7526     # and D for any global variable.
7527     # Also find C++ and __fastcall symbols from MSVC++,
7528     # which start with @ or ?.
7529     lt_cv_sys_global_symbol_pipe="$AWK '"\
7530 "     {last_section=section; section=\$ 3};"\
7531 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7532 "     \$ 0!~/External *\|/{next};"\
7533 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7534 "     {if(hide[section]) next};"\
7535 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7536 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7537 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7538 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7539 "     ' prfx=^$ac_symprfx"
7540   else
7541     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7542   fi
7543
7544   # Check to see that the pipe works correctly.
7545   pipe_works=no
7546
7547   rm -f conftest*
7548   cat > conftest.$ac_ext <<_LT_EOF
7549 #ifdef __cplusplus
7550 extern "C" {
7551 #endif
7552 char nm_test_var;
7553 void nm_test_func(void);
7554 void nm_test_func(void){}
7555 #ifdef __cplusplus
7556 }
7557 #endif
7558 int main(){nm_test_var='a';nm_test_func();return(0);}
7559 _LT_EOF
7560
7561   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7562   (eval $ac_compile) 2>&5
7563   ac_status=$?
7564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565   test $ac_status = 0; }; then
7566     # Now try to grab the symbols.
7567     nlist=conftest.nm
7568     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7569   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7570   ac_status=$?
7571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572   test $ac_status = 0; } && test -s "$nlist"; then
7573       # Try sorting and uniquifying the output.
7574       if sort "$nlist" | uniq > "$nlist"T; then
7575         mv -f "$nlist"T "$nlist"
7576       else
7577         rm -f "$nlist"T
7578       fi
7579
7580       # Make sure that we snagged all the symbols we need.
7581       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7582         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7583           cat <<_LT_EOF > conftest.$ac_ext
7584 #ifdef __cplusplus
7585 extern "C" {
7586 #endif
7587
7588 _LT_EOF
7589           # Now generate the symbol file.
7590           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7591
7592           cat <<_LT_EOF >> conftest.$ac_ext
7593
7594 /* The mapping between symbol names and symbols.  */
7595 const struct {
7596   const char *name;
7597   void       *address;
7598 }
7599 lt__PROGRAM__LTX_preloaded_symbols[] =
7600 {
7601   { "@PROGRAM@", (void *) 0 },
7602 _LT_EOF
7603           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7604           cat <<\_LT_EOF >> conftest.$ac_ext
7605   {0, (void *) 0}
7606 };
7607
7608 /* This works around a problem in FreeBSD linker */
7609 #ifdef FREEBSD_WORKAROUND
7610 static const void *lt_preloaded_setup() {
7611   return lt__PROGRAM__LTX_preloaded_symbols;
7612 }
7613 #endif
7614
7615 #ifdef __cplusplus
7616 }
7617 #endif
7618 _LT_EOF
7619           # Now try linking the two files.
7620           mv conftest.$ac_objext conftstm.$ac_objext
7621           lt_save_LIBS="$LIBS"
7622           lt_save_CFLAGS="$CFLAGS"
7623           LIBS="conftstm.$ac_objext"
7624           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7625           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7626   (eval $ac_link) 2>&5
7627   ac_status=$?
7628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7629   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7630             pipe_works=yes
7631           fi
7632           LIBS="$lt_save_LIBS"
7633           CFLAGS="$lt_save_CFLAGS"
7634         else
7635           echo "cannot find nm_test_func in $nlist" >&5
7636         fi
7637       else
7638         echo "cannot find nm_test_var in $nlist" >&5
7639       fi
7640     else
7641       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7642     fi
7643   else
7644     echo "$progname: failed program was:" >&5
7645     cat conftest.$ac_ext >&5
7646   fi
7647   rm -rf conftest* conftst*
7648
7649   # Do not use the global_symbol_pipe unless it works.
7650   if test "$pipe_works" = yes; then
7651     break
7652   else
7653     lt_cv_sys_global_symbol_pipe=
7654   fi
7655 done
7656
7657 fi
7658
7659 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7660   lt_cv_sys_global_symbol_to_cdecl=
7661 fi
7662 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7664 $as_echo "failed" >&6; }
7665 else
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7667 $as_echo "ok" >&6; }
7668 fi
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691 # Check whether --enable-libtool-lock was given.
7692 if test "${enable_libtool_lock+set}" = set; then :
7693   enableval=$enable_libtool_lock;
7694 fi
7695
7696 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7697
7698 # Some flags need to be propagated to the compiler or linker for good
7699 # libtool support.
7700 case $host in
7701 ia64-*-hpux*)
7702   # Find out which ABI we are using.
7703   echo 'int i;' > conftest.$ac_ext
7704   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7705   (eval $ac_compile) 2>&5
7706   ac_status=$?
7707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708   test $ac_status = 0; }; then
7709     case `/usr/bin/file conftest.$ac_objext` in
7710       *ELF-32*)
7711         HPUX_IA64_MODE="32"
7712         ;;
7713       *ELF-64*)
7714         HPUX_IA64_MODE="64"
7715         ;;
7716     esac
7717   fi
7718   rm -rf conftest*
7719   ;;
7720 *-*-irix6*)
7721   # Find out which ABI we are using.
7722   echo '#line 7722 "configure"' > conftest.$ac_ext
7723   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7724   (eval $ac_compile) 2>&5
7725   ac_status=$?
7726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727   test $ac_status = 0; }; then
7728     if test "$lt_cv_prog_gnu_ld" = yes; then
7729       case `/usr/bin/file conftest.$ac_objext` in
7730         *32-bit*)
7731           LD="${LD-ld} -melf32bsmip"
7732           ;;
7733         *N32*)
7734           LD="${LD-ld} -melf32bmipn32"
7735           ;;
7736         *64-bit*)
7737           LD="${LD-ld} -melf64bmip"
7738         ;;
7739       esac
7740     else
7741       case `/usr/bin/file conftest.$ac_objext` in
7742         *32-bit*)
7743           LD="${LD-ld} -32"
7744           ;;
7745         *N32*)
7746           LD="${LD-ld} -n32"
7747           ;;
7748         *64-bit*)
7749           LD="${LD-ld} -64"
7750           ;;
7751       esac
7752     fi
7753   fi
7754   rm -rf conftest*
7755   ;;
7756
7757 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7758 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7759   # Find out which ABI we are using.
7760   echo 'int i;' > conftest.$ac_ext
7761   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7762   (eval $ac_compile) 2>&5
7763   ac_status=$?
7764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765   test $ac_status = 0; }; then
7766     case `/usr/bin/file conftest.o` in
7767       *32-bit*)
7768         case $host in
7769           x86_64-*kfreebsd*-gnu)
7770             LD="${LD-ld} -m elf_i386_fbsd"
7771             ;;
7772           x86_64-*linux*)
7773             LD="${LD-ld} -m elf_i386"
7774             ;;
7775           ppc64-*linux*|powerpc64-*linux*)
7776             LD="${LD-ld} -m elf32ppclinux"
7777             ;;
7778           s390x-*linux*)
7779             LD="${LD-ld} -m elf_s390"
7780             ;;
7781           sparc64-*linux*)
7782             LD="${LD-ld} -m elf32_sparc"
7783             ;;
7784         esac
7785         ;;
7786       *64-bit*)
7787         case $host in
7788           x86_64-*kfreebsd*-gnu)
7789             LD="${LD-ld} -m elf_x86_64_fbsd"
7790             ;;
7791           x86_64-*linux*)
7792             LD="${LD-ld} -m elf_x86_64"
7793             ;;
7794           ppc*-*linux*|powerpc*-*linux*)
7795             LD="${LD-ld} -m elf64ppc"
7796             ;;
7797           s390*-*linux*|s390*-*tpf*)
7798             LD="${LD-ld} -m elf64_s390"
7799             ;;
7800           sparc*-*linux*)
7801             LD="${LD-ld} -m elf64_sparc"
7802             ;;
7803         esac
7804         ;;
7805     esac
7806   fi
7807   rm -rf conftest*
7808   ;;
7809
7810 *-*-sco3.2v5*)
7811   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7812   SAVE_CFLAGS="$CFLAGS"
7813   CFLAGS="$CFLAGS -belf"
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7815 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7816 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   ac_ext=c
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h.  */
7827
7828 int
7829 main ()
7830 {
7831
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 if ac_fn_c_try_link "$LINENO"; then :
7837   lt_cv_cc_needs_belf=yes
7838 else
7839   lt_cv_cc_needs_belf=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext \
7842     conftest$ac_exeext conftest.$ac_ext
7843      ac_ext=c
7844 ac_cpp='$CPP $CPPFLAGS'
7845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848
7849 fi
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7851 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7852   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7853     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7854     CFLAGS="$SAVE_CFLAGS"
7855   fi
7856   ;;
7857 sparc*-*solaris*)
7858   # Find out which ABI we are using.
7859   echo 'int i;' > conftest.$ac_ext
7860   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7861   (eval $ac_compile) 2>&5
7862   ac_status=$?
7863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7864   test $ac_status = 0; }; then
7865     case `/usr/bin/file conftest.o` in
7866     *64-bit*)
7867       case $lt_cv_prog_gnu_ld in
7868       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7869       *)
7870         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7871           LD="${LD-ld} -64"
7872         fi
7873         ;;
7874       esac
7875       ;;
7876     esac
7877   fi
7878   rm -rf conftest*
7879   ;;
7880 esac
7881
7882 need_locks="$enable_libtool_lock"
7883
7884
7885   case $host_os in
7886     rhapsody* | darwin*)
7887     if test -n "$ac_tool_prefix"; then
7888   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7893   $as_echo_n "(cached) " >&6
7894 else
7895   if test -n "$DSYMUTIL"; then
7896   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901   IFS=$as_save_IFS
7902   test -z "$as_dir" && as_dir=.
7903     for ac_exec_ext in '' $ac_executable_extensions; do
7904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907     break 2
7908   fi
7909 done
7910   done
7911 IFS=$as_save_IFS
7912
7913 fi
7914 fi
7915 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7916 if test -n "$DSYMUTIL"; then
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7918 $as_echo "$DSYMUTIL" >&6; }
7919 else
7920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7922 fi
7923
7924
7925 fi
7926 if test -z "$ac_cv_prog_DSYMUTIL"; then
7927   ac_ct_DSYMUTIL=$DSYMUTIL
7928   # Extract the first word of "dsymutil", so it can be a program name with args.
7929 set dummy dsymutil; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7933   $as_echo_n "(cached) " >&6
7934 else
7935   if test -n "$ac_ct_DSYMUTIL"; then
7936   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941   IFS=$as_save_IFS
7942   test -z "$as_dir" && as_dir=.
7943     for ac_exec_ext in '' $ac_executable_extensions; do
7944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947     break 2
7948   fi
7949 done
7950   done
7951 IFS=$as_save_IFS
7952
7953 fi
7954 fi
7955 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7956 if test -n "$ac_ct_DSYMUTIL"; then
7957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7958 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7959 else
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7962 fi
7963
7964   if test "x$ac_ct_DSYMUTIL" = x; then
7965     DSYMUTIL=":"
7966   else
7967     case $cross_compiling:$ac_tool_warned in
7968 yes:)
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971 ac_tool_warned=yes ;;
7972 esac
7973     DSYMUTIL=$ac_ct_DSYMUTIL
7974   fi
7975 else
7976   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7977 fi
7978
7979     if test -n "$ac_tool_prefix"; then
7980   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7981 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7985   $as_echo_n "(cached) " >&6
7986 else
7987   if test -n "$NMEDIT"; then
7988   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993   IFS=$as_save_IFS
7994   test -z "$as_dir" && as_dir=.
7995     for ac_exec_ext in '' $ac_executable_extensions; do
7996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999     break 2
8000   fi
8001 done
8002   done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 NMEDIT=$ac_cv_prog_NMEDIT
8008 if test -n "$NMEDIT"; then
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8010 $as_echo "$NMEDIT" >&6; }
8011 else
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8015
8016
8017 fi
8018 if test -z "$ac_cv_prog_NMEDIT"; then
8019   ac_ct_NMEDIT=$NMEDIT
8020   # Extract the first word of "nmedit", so it can be a program name with args.
8021 set dummy nmedit; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8025   $as_echo_n "(cached) " >&6
8026 else
8027   if test -n "$ac_ct_NMEDIT"; then
8028   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033   IFS=$as_save_IFS
8034   test -z "$as_dir" && as_dir=.
8035     for ac_exec_ext in '' $ac_executable_extensions; do
8036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039     break 2
8040   fi
8041 done
8042   done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8048 if test -n "$ac_ct_NMEDIT"; then
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8050 $as_echo "$ac_ct_NMEDIT" >&6; }
8051 else
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056   if test "x$ac_ct_NMEDIT" = x; then
8057     NMEDIT=":"
8058   else
8059     case $cross_compiling:$ac_tool_warned in
8060 yes:)
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8064 esac
8065     NMEDIT=$ac_ct_NMEDIT
8066   fi
8067 else
8068   NMEDIT="$ac_cv_prog_NMEDIT"
8069 fi
8070
8071     if test -n "$ac_tool_prefix"; then
8072   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if test "${ac_cv_prog_LIPO+set}" = set; then :
8077   $as_echo_n "(cached) " >&6
8078 else
8079   if test -n "$LIPO"; then
8080   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085   IFS=$as_save_IFS
8086   test -z "$as_dir" && as_dir=.
8087     for ac_exec_ext in '' $ac_executable_extensions; do
8088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091     break 2
8092   fi
8093 done
8094   done
8095 IFS=$as_save_IFS
8096
8097 fi
8098 fi
8099 LIPO=$ac_cv_prog_LIPO
8100 if test -n "$LIPO"; then
8101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8102 $as_echo "$LIPO" >&6; }
8103 else
8104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8106 fi
8107
8108
8109 fi
8110 if test -z "$ac_cv_prog_LIPO"; then
8111   ac_ct_LIPO=$LIPO
8112   # Extract the first word of "lipo", so it can be a program name with args.
8113 set dummy lipo; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8117   $as_echo_n "(cached) " >&6
8118 else
8119   if test -n "$ac_ct_LIPO"; then
8120   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125   IFS=$as_save_IFS
8126   test -z "$as_dir" && as_dir=.
8127     for ac_exec_ext in '' $ac_executable_extensions; do
8128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129     ac_cv_prog_ac_ct_LIPO="lipo"
8130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131     break 2
8132   fi
8133 done
8134   done
8135 IFS=$as_save_IFS
8136
8137 fi
8138 fi
8139 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8140 if test -n "$ac_ct_LIPO"; then
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8142 $as_echo "$ac_ct_LIPO" >&6; }
8143 else
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8146 fi
8147
8148   if test "x$ac_ct_LIPO" = x; then
8149     LIPO=":"
8150   else
8151     case $cross_compiling:$ac_tool_warned in
8152 yes:)
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155 ac_tool_warned=yes ;;
8156 esac
8157     LIPO=$ac_ct_LIPO
8158   fi
8159 else
8160   LIPO="$ac_cv_prog_LIPO"
8161 fi
8162
8163     if test -n "$ac_tool_prefix"; then
8164   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}otool; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8169   $as_echo_n "(cached) " >&6
8170 else
8171   if test -n "$OTOOL"; then
8172   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177   IFS=$as_save_IFS
8178   test -z "$as_dir" && as_dir=.
8179     for ac_exec_ext in '' $ac_executable_extensions; do
8180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183     break 2
8184   fi
8185 done
8186   done
8187 IFS=$as_save_IFS
8188
8189 fi
8190 fi
8191 OTOOL=$ac_cv_prog_OTOOL
8192 if test -n "$OTOOL"; then
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8194 $as_echo "$OTOOL" >&6; }
8195 else
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199
8200
8201 fi
8202 if test -z "$ac_cv_prog_OTOOL"; then
8203   ac_ct_OTOOL=$OTOOL
8204   # Extract the first word of "otool", so it can be a program name with args.
8205 set dummy otool; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   if test -n "$ac_ct_OTOOL"; then
8212   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219     for ac_exec_ext in '' $ac_executable_extensions; do
8220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221     ac_cv_prog_ac_ct_OTOOL="otool"
8222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226   done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8232 if test -n "$ac_ct_OTOOL"; then
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8234 $as_echo "$ac_ct_OTOOL" >&6; }
8235 else
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240   if test "x$ac_ct_OTOOL" = x; then
8241     OTOOL=":"
8242   else
8243     case $cross_compiling:$ac_tool_warned in
8244 yes:)
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8248 esac
8249     OTOOL=$ac_ct_OTOOL
8250   fi
8251 else
8252   OTOOL="$ac_cv_prog_OTOOL"
8253 fi
8254
8255     if test -n "$ac_tool_prefix"; then
8256   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8257 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8261   $as_echo_n "(cached) " >&6
8262 else
8263   if test -n "$OTOOL64"; then
8264   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269   IFS=$as_save_IFS
8270   test -z "$as_dir" && as_dir=.
8271     for ac_exec_ext in '' $ac_executable_extensions; do
8272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275     break 2
8276   fi
8277 done
8278   done
8279 IFS=$as_save_IFS
8280
8281 fi
8282 fi
8283 OTOOL64=$ac_cv_prog_OTOOL64
8284 if test -n "$OTOOL64"; then
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8286 $as_echo "$OTOOL64" >&6; }
8287 else
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8290 fi
8291
8292
8293 fi
8294 if test -z "$ac_cv_prog_OTOOL64"; then
8295   ac_ct_OTOOL64=$OTOOL64
8296   # Extract the first word of "otool64", so it can be a program name with args.
8297 set dummy otool64; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8301   $as_echo_n "(cached) " >&6
8302 else
8303   if test -n "$ac_ct_OTOOL64"; then
8304   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309   IFS=$as_save_IFS
8310   test -z "$as_dir" && as_dir=.
8311     for ac_exec_ext in '' $ac_executable_extensions; do
8312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313     ac_cv_prog_ac_ct_OTOOL64="otool64"
8314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315     break 2
8316   fi
8317 done
8318   done
8319 IFS=$as_save_IFS
8320
8321 fi
8322 fi
8323 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8324 if test -n "$ac_ct_OTOOL64"; then
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8326 $as_echo "$ac_ct_OTOOL64" >&6; }
8327 else
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8331
8332   if test "x$ac_ct_OTOOL64" = x; then
8333     OTOOL64=":"
8334   else
8335     case $cross_compiling:$ac_tool_warned in
8336 yes:)
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8339 ac_tool_warned=yes ;;
8340 esac
8341     OTOOL64=$ac_ct_OTOOL64
8342   fi
8343 else
8344   OTOOL64="$ac_cv_prog_OTOOL64"
8345 fi
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8374 $as_echo_n "checking for -single_module linker flag... " >&6; }
8375 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8376   $as_echo_n "(cached) " >&6
8377 else
8378   lt_cv_apple_cc_single_mod=no
8379       if test -z "${LT_MULTI_MODULE}"; then
8380         # By default we will add the -single_module flag. You can override
8381         # by either setting the environment variable LT_MULTI_MODULE
8382         # non-empty at configure time, or by adding -multi_module to the
8383         # link flags.
8384         rm -rf libconftest.dylib*
8385         echo "int foo(void){return 1;}" > conftest.c
8386         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8387 -dynamiclib -Wl,-single_module conftest.c" >&5
8388         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8389           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8390         _lt_result=$?
8391         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8392           lt_cv_apple_cc_single_mod=yes
8393         else
8394           cat conftest.err >&5
8395         fi
8396         rm -rf libconftest.dylib*
8397         rm -f conftest.*
8398       fi
8399 fi
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8401 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8403 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8404 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   lt_cv_ld_exported_symbols_list=no
8408       save_LDFLAGS=$LDFLAGS
8409       echo "_main" > conftest.sym
8410       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8411       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h.  */
8413
8414 int
8415 main ()
8416 {
8417
8418   ;
8419   return 0;
8420 }
8421 _ACEOF
8422 if ac_fn_c_try_link "$LINENO"; then :
8423   lt_cv_ld_exported_symbols_list=yes
8424 else
8425   lt_cv_ld_exported_symbols_list=no
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext \
8428     conftest$ac_exeext conftest.$ac_ext
8429         LDFLAGS="$save_LDFLAGS"
8430
8431 fi
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8433 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8434     case $host_os in
8435     rhapsody* | darwin1.[012])
8436       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8437     darwin1.*)
8438       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8439     darwin*) # darwin 5.x on
8440       # if running on 10.5 or later, the deployment target defaults
8441       # to the OS version, if on x86, and 10.4, the deployment
8442       # target defaults to 10.4. Don't you love it?
8443       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8444         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8445           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8446         10.[012]*)
8447           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8448         10.*)
8449           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8450       esac
8451     ;;
8452   esac
8453     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8454       _lt_dar_single_mod='$single_module'
8455     fi
8456     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8457       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8458     else
8459       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8460     fi
8461     if test "$DSYMUTIL" != ":"; then
8462       _lt_dsymutil='~$DSYMUTIL $lib || :'
8463     else
8464       _lt_dsymutil=
8465     fi
8466     ;;
8467   esac
8468
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8470 $as_echo_n "checking for ANSI C header files... " >&6; }
8471 if test "${ac_cv_header_stdc+set}" = set; then :
8472   $as_echo_n "(cached) " >&6
8473 else
8474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h.  */
8476 #include <stdlib.h>
8477 #include <stdarg.h>
8478 #include <string.h>
8479 #include <float.h>
8480
8481 int
8482 main ()
8483 {
8484
8485   ;
8486   return 0;
8487 }
8488 _ACEOF
8489 if ac_fn_c_try_compile "$LINENO"; then :
8490   ac_cv_header_stdc=yes
8491 else
8492   ac_cv_header_stdc=no
8493 fi
8494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495
8496 if test $ac_cv_header_stdc = yes; then
8497   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h.  */
8500 #include <string.h>
8501
8502 _ACEOF
8503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8504   $EGREP "memchr" >/dev/null 2>&1; then :
8505
8506 else
8507   ac_cv_header_stdc=no
8508 fi
8509 rm -f conftest*
8510
8511 fi
8512
8513 if test $ac_cv_header_stdc = yes; then
8514   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h.  */
8517 #include <stdlib.h>
8518
8519 _ACEOF
8520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8521   $EGREP "free" >/dev/null 2>&1; then :
8522
8523 else
8524   ac_cv_header_stdc=no
8525 fi
8526 rm -f conftest*
8527
8528 fi
8529
8530 if test $ac_cv_header_stdc = yes; then
8531   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8532   if test "$cross_compiling" = yes; then :
8533   :
8534 else
8535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h.  */
8537 #include <ctype.h>
8538 #include <stdlib.h>
8539 #if ((' ' & 0x0FF) == 0x020)
8540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8542 #else
8543 # define ISLOWER(c) \
8544                    (('a' <= (c) && (c) <= 'i') \
8545                      || ('j' <= (c) && (c) <= 'r') \
8546                      || ('s' <= (c) && (c) <= 'z'))
8547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8548 #endif
8549
8550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8551 int
8552 main ()
8553 {
8554   int i;
8555   for (i = 0; i < 256; i++)
8556     if (XOR (islower (i), ISLOWER (i))
8557         || toupper (i) != TOUPPER (i))
8558       return 2;
8559   return 0;
8560 }
8561 _ACEOF
8562 if ac_fn_c_try_run "$LINENO"; then :
8563
8564 else
8565   ac_cv_header_stdc=no
8566 fi
8567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8568   conftest.$ac_objext conftest.beam conftest.$ac_ext
8569 fi
8570
8571 fi
8572 fi
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8574 $as_echo "$ac_cv_header_stdc" >&6; }
8575 if test $ac_cv_header_stdc = yes; then
8576
8577 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8578
8579 fi
8580
8581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8582 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8583                   inttypes.h stdint.h unistd.h
8584 do :
8585   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8586 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8587 "
8588 eval as_val=\$$as_ac_Header
8589    if test "x$as_val" = x""yes; then :
8590   cat >>confdefs.h <<_ACEOF
8591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8592 _ACEOF
8593
8594 fi
8595
8596 done
8597
8598
8599 for ac_header in dlfcn.h
8600 do :
8601   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8602 "
8603 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8604   cat >>confdefs.h <<_ACEOF
8605 #define HAVE_DLFCN_H 1
8606 _ACEOF
8607
8608 fi
8609
8610 done
8611
8612
8613
8614 ac_ext=cpp
8615 ac_cpp='$CXXCPP $CPPFLAGS'
8616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8619 if test -z "$CXX"; then
8620   if test -n "$CCC"; then
8621     CXX=$CCC
8622   else
8623     if test -n "$ac_tool_prefix"; then
8624   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8625   do
8626     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629 $as_echo_n "checking for $ac_word... " >&6; }
8630 if test "${ac_cv_prog_CXX+set}" = set; then :
8631   $as_echo_n "(cached) " >&6
8632 else
8633   if test -n "$CXX"; then
8634   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8635 else
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8638 do
8639   IFS=$as_save_IFS
8640   test -z "$as_dir" && as_dir=.
8641     for ac_exec_ext in '' $ac_executable_extensions; do
8642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8643     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645     break 2
8646   fi
8647 done
8648   done
8649 IFS=$as_save_IFS
8650
8651 fi
8652 fi
8653 CXX=$ac_cv_prog_CXX
8654 if test -n "$CXX"; then
8655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8656 $as_echo "$CXX" >&6; }
8657 else
8658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659 $as_echo "no" >&6; }
8660 fi
8661
8662
8663     test -n "$CXX" && break
8664   done
8665 fi
8666 if test -z "$CXX"; then
8667   ac_ct_CXX=$CXX
8668   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8669 do
8670   # Extract the first word of "$ac_prog", so it can be a program name with args.
8671 set dummy $ac_prog; ac_word=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8675   $as_echo_n "(cached) " >&6
8676 else
8677   if test -n "$ac_ct_CXX"; then
8678   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8679 else
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 for as_dir in $PATH
8682 do
8683   IFS=$as_save_IFS
8684   test -z "$as_dir" && as_dir=.
8685     for ac_exec_ext in '' $ac_executable_extensions; do
8686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8687     ac_cv_prog_ac_ct_CXX="$ac_prog"
8688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8689     break 2
8690   fi
8691 done
8692   done
8693 IFS=$as_save_IFS
8694
8695 fi
8696 fi
8697 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8698 if test -n "$ac_ct_CXX"; then
8699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8700 $as_echo "$ac_ct_CXX" >&6; }
8701 else
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8704 fi
8705
8706
8707   test -n "$ac_ct_CXX" && break
8708 done
8709
8710   if test "x$ac_ct_CXX" = x; then
8711     CXX="g++"
8712   else
8713     case $cross_compiling:$ac_tool_warned in
8714 yes:)
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8717 ac_tool_warned=yes ;;
8718 esac
8719     CXX=$ac_ct_CXX
8720   fi
8721 fi
8722
8723   fi
8724 fi
8725 # Provide some information about the compiler.
8726 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8727 set X $ac_compile
8728 ac_compiler=$2
8729 for ac_option in --version -v -V -qversion; do
8730   { { ac_try="$ac_compiler $ac_option >&5"
8731 case "(($ac_try" in
8732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733   *) ac_try_echo=$ac_try;;
8734 esac
8735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8736 $as_echo "$ac_try_echo"; } >&5
8737   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8738   ac_status=$?
8739   if test -s conftest.err; then
8740     sed '10a\
8741 ... rest of stderr output deleted ...
8742          10q' conftest.err >conftest.er1
8743     cat conftest.er1 >&5
8744   fi
8745   rm -f conftest.er1 conftest.err
8746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8747   test $ac_status = 0; }
8748 done
8749
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8751 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8752 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8753   $as_echo_n "(cached) " >&6
8754 else
8755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h.  */
8757
8758 int
8759 main ()
8760 {
8761 #ifndef __GNUC__
8762        choke me
8763 #endif
8764
8765   ;
8766   return 0;
8767 }
8768 _ACEOF
8769 if ac_fn_cxx_try_compile "$LINENO"; then :
8770   ac_compiler_gnu=yes
8771 else
8772   ac_compiler_gnu=no
8773 fi
8774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8775 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8776
8777 fi
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8779 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8780 if test $ac_compiler_gnu = yes; then
8781   GXX=yes
8782 else
8783   GXX=
8784 fi
8785 ac_test_CXXFLAGS=${CXXFLAGS+set}
8786 ac_save_CXXFLAGS=$CXXFLAGS
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8788 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8789 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8790   $as_echo_n "(cached) " >&6
8791 else
8792   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8793    ac_cxx_werror_flag=yes
8794    ac_cv_prog_cxx_g=no
8795    CXXFLAGS="-g"
8796    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h.  */
8798
8799 int
8800 main ()
8801 {
8802
8803   ;
8804   return 0;
8805 }
8806 _ACEOF
8807 if ac_fn_cxx_try_compile "$LINENO"; then :
8808   ac_cv_prog_cxx_g=yes
8809 else
8810   CXXFLAGS=""
8811       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h.  */
8813
8814 int
8815 main ()
8816 {
8817
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 if ac_fn_cxx_try_compile "$LINENO"; then :
8823
8824 else
8825   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8826          CXXFLAGS="-g"
8827          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h.  */
8829
8830 int
8831 main ()
8832 {
8833
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 if ac_fn_cxx_try_compile "$LINENO"; then :
8839   ac_cv_prog_cxx_g=yes
8840 fi
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 fi
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8847 fi
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8849 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8850 if test "$ac_test_CXXFLAGS" = set; then
8851   CXXFLAGS=$ac_save_CXXFLAGS
8852 elif test $ac_cv_prog_cxx_g = yes; then
8853   if test "$GXX" = yes; then
8854     CXXFLAGS="-g -O2"
8855   else
8856     CXXFLAGS="-g"
8857   fi
8858 else
8859   if test "$GXX" = yes; then
8860     CXXFLAGS="-O2"
8861   else
8862     CXXFLAGS=
8863   fi
8864 fi
8865 ac_ext=c
8866 ac_cpp='$CPP $CPPFLAGS'
8867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8870
8871 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8872     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8873     (test "X$CXX" != "Xg++"))) ; then
8874   ac_ext=cpp
8875 ac_cpp='$CXXCPP $CPPFLAGS'
8876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8880 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8881 if test -z "$CXXCPP"; then
8882   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8883   $as_echo_n "(cached) " >&6
8884 else
8885       # Double quotes because CXXCPP needs to be expanded
8886     for CXXCPP in "$CXX -E" "/lib/cpp"
8887     do
8888       ac_preproc_ok=false
8889 for ac_cxx_preproc_warn_flag in '' yes
8890 do
8891   # Use a header file that comes with gcc, so configuring glibc
8892   # with a fresh cross-compiler works.
8893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8894   # <limits.h> exists even on freestanding compilers.
8895   # On the NeXT, cc -E runs the code through the compiler's parser,
8896   # not just through cpp. "Syntax error" is here to catch this case.
8897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h.  */
8899 #ifdef __STDC__
8900 # include <limits.h>
8901 #else
8902 # include <assert.h>
8903 #endif
8904                      Syntax error
8905 _ACEOF
8906 if ac_fn_cxx_try_cpp "$LINENO"; then :
8907
8908 else
8909   # Broken: fails on valid input.
8910 continue
8911 fi
8912 rm -f conftest.err conftest.$ac_ext
8913
8914   # OK, works on sane cases.  Now check whether nonexistent headers
8915   # can be detected and how.
8916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h.  */
8918 #include <ac_nonexistent.h>
8919 _ACEOF
8920 if ac_fn_cxx_try_cpp "$LINENO"; then :
8921   # Broken: success on invalid input.
8922 continue
8923 else
8924   # Passes both tests.
8925 ac_preproc_ok=:
8926 break
8927 fi
8928 rm -f conftest.err conftest.$ac_ext
8929
8930 done
8931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8932 rm -f conftest.err conftest.$ac_ext
8933 if $ac_preproc_ok; then :
8934   break
8935 fi
8936
8937     done
8938     ac_cv_prog_CXXCPP=$CXXCPP
8939
8940 fi
8941   CXXCPP=$ac_cv_prog_CXXCPP
8942 else
8943   ac_cv_prog_CXXCPP=$CXXCPP
8944 fi
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8946 $as_echo "$CXXCPP" >&6; }
8947 ac_preproc_ok=false
8948 for ac_cxx_preproc_warn_flag in '' yes
8949 do
8950   # Use a header file that comes with gcc, so configuring glibc
8951   # with a fresh cross-compiler works.
8952   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8953   # <limits.h> exists even on freestanding compilers.
8954   # On the NeXT, cc -E runs the code through the compiler's parser,
8955   # not just through cpp. "Syntax error" is here to catch this case.
8956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h.  */
8958 #ifdef __STDC__
8959 # include <limits.h>
8960 #else
8961 # include <assert.h>
8962 #endif
8963                      Syntax error
8964 _ACEOF
8965 if ac_fn_cxx_try_cpp "$LINENO"; then :
8966
8967 else
8968   # Broken: fails on valid input.
8969 continue
8970 fi
8971 rm -f conftest.err conftest.$ac_ext
8972
8973   # OK, works on sane cases.  Now check whether nonexistent headers
8974   # can be detected and how.
8975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h.  */
8977 #include <ac_nonexistent.h>
8978 _ACEOF
8979 if ac_fn_cxx_try_cpp "$LINENO"; then :
8980   # Broken: success on invalid input.
8981 continue
8982 else
8983   # Passes both tests.
8984 ac_preproc_ok=:
8985 break
8986 fi
8987 rm -f conftest.err conftest.$ac_ext
8988
8989 done
8990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8991 rm -f conftest.err conftest.$ac_ext
8992 if $ac_preproc_ok; then :
8993
8994 else
8995   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8997 _lt_caught_CXX_error=yes; }
8998 fi
8999
9000 ac_ext=c
9001 ac_cpp='$CPP $CPPFLAGS'
9002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9005
9006 else
9007   _lt_caught_CXX_error=yes
9008 fi
9009
9010
9011
9012
9013
9014 # Set options
9015 # Check whether --enable-shared was given.
9016 if test "${enable_shared+set}" = set; then :
9017   enableval=$enable_shared; p=${PACKAGE-default}
9018     case $enableval in
9019     yes) enable_shared=yes ;;
9020     no) enable_shared=no ;;
9021     *)
9022       enable_shared=no
9023       # Look at the argument we got.  We use all the common list separators.
9024       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9025       for pkg in $enableval; do
9026         IFS="$lt_save_ifs"
9027         if test "X$pkg" = "X$p"; then
9028           enable_shared=yes
9029         fi
9030       done
9031       IFS="$lt_save_ifs"
9032       ;;
9033     esac
9034 else
9035   enable_shared=yes
9036 fi
9037
9038
9039
9040
9041
9042
9043
9044 # Check whether --enable-static was given.
9045 if test "${enable_static+set}" = set; then :
9046   enableval=$enable_static; p=${PACKAGE-default}
9047     case $enableval in
9048     yes) enable_static=yes ;;
9049     no) enable_static=no ;;
9050     *)
9051      enable_static=no
9052       # Look at the argument we got.  We use all the common list separators.
9053       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9054       for pkg in $enableval; do
9055         IFS="$lt_save_ifs"
9056         if test "X$pkg" = "X$p"; then
9057           enable_static=yes
9058         fi
9059       done
9060       IFS="$lt_save_ifs"
9061       ;;
9062     esac
9063 else
9064   enable_static=no
9065 fi
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076         enable_dlopen=no
9077
9078
9079   enable_win32_dll=no
9080
9081
9082
9083
9084
9085 # Check whether --with-pic was given.
9086 if test "${with_pic+set}" = set; then :
9087   withval=$with_pic; pic_mode="$withval"
9088 else
9089   pic_mode=default
9090 fi
9091
9092
9093 test -z "$pic_mode" && pic_mode=default
9094
9095
9096
9097
9098
9099
9100
9101   # Check whether --enable-fast-install was given.
9102 if test "${enable_fast_install+set}" = set; then :
9103   enableval=$enable_fast_install; p=${PACKAGE-default}
9104     case $enableval in
9105     yes) enable_fast_install=yes ;;
9106     no) enable_fast_install=no ;;
9107     *)
9108       enable_fast_install=no
9109       # Look at the argument we got.  We use all the common list separators.
9110       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9111       for pkg in $enableval; do
9112         IFS="$lt_save_ifs"
9113         if test "X$pkg" = "X$p"; then
9114           enable_fast_install=yes
9115         fi
9116       done
9117       IFS="$lt_save_ifs"
9118       ;;
9119     esac
9120 else
9121   enable_fast_install=yes
9122 fi
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134 # This can be used to rebuild libtool when needed
9135 LIBTOOL_DEPS="$ltmain"
9136
9137 # Always use our own libtool.
9138 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164 test -z "$LN_S" && LN_S="ln -s"
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179 if test -n "${ZSH_VERSION+set}" ; then
9180    setopt NO_GLOB_SUBST
9181 fi
9182
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9184 $as_echo_n "checking for objdir... " >&6; }
9185 if test "${lt_cv_objdir+set}" = set; then :
9186   $as_echo_n "(cached) " >&6
9187 else
9188   rm -f .libs 2>/dev/null
9189 mkdir .libs 2>/dev/null
9190 if test -d .libs; then
9191   lt_cv_objdir=.libs
9192 else
9193   # MS-DOS does not allow filenames that begin with a dot.
9194   lt_cv_objdir=_libs
9195 fi
9196 rmdir .libs 2>/dev/null
9197 fi
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9199 $as_echo "$lt_cv_objdir" >&6; }
9200 objdir=$lt_cv_objdir
9201
9202
9203
9204
9205
9206 cat >>confdefs.h <<_ACEOF
9207 #define LT_OBJDIR "$lt_cv_objdir/"
9208 _ACEOF
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226 case $host_os in
9227 aix3*)
9228   # AIX sometimes has problems with the GCC collect2 program.  For some
9229   # reason, if we set the COLLECT_NAMES environment variable, the problems
9230   # vanish in a puff of smoke.
9231   if test "X${COLLECT_NAMES+set}" != Xset; then
9232     COLLECT_NAMES=
9233     export COLLECT_NAMES
9234   fi
9235   ;;
9236 esac
9237
9238 # Sed substitution that helps us do robust quoting.  It backslashifies
9239 # metacharacters that are still active within double-quoted strings.
9240 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9241
9242 # Same as above, but do not quote variable references.
9243 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9244
9245 # Sed substitution to delay expansion of an escaped shell variable in a
9246 # double_quote_subst'ed string.
9247 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9248
9249 # Sed substitution to delay expansion of an escaped single quote.
9250 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9251
9252 # Sed substitution to avoid accidental globbing in evaled expressions
9253 no_glob_subst='s/\*/\\\*/g'
9254
9255 # Global variables:
9256 ofile=libtool
9257 can_build_shared=yes
9258
9259 # All known linkers require a `.a' archive for static linking (except MSVC,
9260 # which needs '.lib').
9261 libext=a
9262
9263 with_gnu_ld="$lt_cv_prog_gnu_ld"
9264
9265 old_CC="$CC"
9266 old_CFLAGS="$CFLAGS"
9267
9268 # Set sane defaults for various variables
9269 test -z "$CC" && CC=cc
9270 test -z "$LTCC" && LTCC=$CC
9271 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9272 test -z "$LD" && LD=ld
9273 test -z "$ac_objext" && ac_objext=o
9274
9275 for cc_temp in $compiler""; do
9276   case $cc_temp in
9277     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9278     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9279     \-*) ;;
9280     *) break;;
9281   esac
9282 done
9283 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9284
9285
9286 # Only perform the check for file, if the check method requires it
9287 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9288 case $deplibs_check_method in
9289 file_magic*)
9290   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9292 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9294   $as_echo_n "(cached) " >&6
9295 else
9296   case $MAGIC_CMD in
9297 [\\/*] |  ?:[\\/]*)
9298   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9299   ;;
9300 *)
9301   lt_save_MAGIC_CMD="$MAGIC_CMD"
9302   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9303   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9304   for ac_dir in $ac_dummy; do
9305     IFS="$lt_save_ifs"
9306     test -z "$ac_dir" && ac_dir=.
9307     if test -f $ac_dir/${ac_tool_prefix}file; then
9308       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9309       if test -n "$file_magic_test_file"; then
9310         case $deplibs_check_method in
9311         "file_magic "*)
9312           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9313           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9314           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9315             $EGREP "$file_magic_regex" > /dev/null; then
9316             :
9317           else
9318             cat <<_LT_EOF 1>&2
9319
9320 *** Warning: the command libtool uses to detect shared libraries,
9321 *** $file_magic_cmd, produces output that libtool cannot recognize.
9322 *** The result is that libtool may fail to recognize shared libraries
9323 *** as such.  This will affect the creation of libtool libraries that
9324 *** depend on shared libraries, but programs linked with such libtool
9325 *** libraries will work regardless of this problem.  Nevertheless, you
9326 *** may want to report the problem to your system manager and/or to
9327 *** bug-libtool@gnu.org
9328
9329 _LT_EOF
9330           fi ;;
9331         esac
9332       fi
9333       break
9334     fi
9335   done
9336   IFS="$lt_save_ifs"
9337   MAGIC_CMD="$lt_save_MAGIC_CMD"
9338   ;;
9339 esac
9340 fi
9341
9342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9343 if test -n "$MAGIC_CMD"; then
9344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9345 $as_echo "$MAGIC_CMD" >&6; }
9346 else
9347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9349 fi
9350
9351
9352
9353
9354
9355 if test -z "$lt_cv_path_MAGIC_CMD"; then
9356   if test -n "$ac_tool_prefix"; then
9357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9358 $as_echo_n "checking for file... " >&6; }
9359 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9360   $as_echo_n "(cached) " >&6
9361 else
9362   case $MAGIC_CMD in
9363 [\\/*] |  ?:[\\/]*)
9364   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9365   ;;
9366 *)
9367   lt_save_MAGIC_CMD="$MAGIC_CMD"
9368   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9369   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9370   for ac_dir in $ac_dummy; do
9371     IFS="$lt_save_ifs"
9372     test -z "$ac_dir" && ac_dir=.
9373     if test -f $ac_dir/file; then
9374       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9375       if test -n "$file_magic_test_file"; then
9376         case $deplibs_check_method in
9377         "file_magic "*)
9378           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9379           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9380           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9381             $EGREP "$file_magic_regex" > /dev/null; then
9382             :
9383           else
9384             cat <<_LT_EOF 1>&2
9385
9386 *** Warning: the command libtool uses to detect shared libraries,
9387 *** $file_magic_cmd, produces output that libtool cannot recognize.
9388 *** The result is that libtool may fail to recognize shared libraries
9389 *** as such.  This will affect the creation of libtool libraries that
9390 *** depend on shared libraries, but programs linked with such libtool
9391 *** libraries will work regardless of this problem.  Nevertheless, you
9392 *** may want to report the problem to your system manager and/or to
9393 *** bug-libtool@gnu.org
9394
9395 _LT_EOF
9396           fi ;;
9397         esac
9398       fi
9399       break
9400     fi
9401   done
9402   IFS="$lt_save_ifs"
9403   MAGIC_CMD="$lt_save_MAGIC_CMD"
9404   ;;
9405 esac
9406 fi
9407
9408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9409 if test -n "$MAGIC_CMD"; then
9410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9411 $as_echo "$MAGIC_CMD" >&6; }
9412 else
9413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9415 fi
9416
9417
9418   else
9419     MAGIC_CMD=:
9420   fi
9421 fi
9422
9423   fi
9424   ;;
9425 esac
9426
9427 # Use C for the default configuration in the libtool script
9428
9429 lt_save_CC="$CC"
9430 ac_ext=c
9431 ac_cpp='$CPP $CPPFLAGS'
9432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9435
9436
9437 # Source file extension for C test sources.
9438 ac_ext=c
9439
9440 # Object file extension for compiled C test sources.
9441 objext=o
9442 objext=$objext
9443
9444 # Code to be used in simple compile tests
9445 lt_simple_compile_test_code="int some_variable = 0;"
9446
9447 # Code to be used in simple link tests
9448 lt_simple_link_test_code='int main(){return(0);}'
9449
9450
9451
9452
9453
9454
9455
9456 # If no C compiler was specified, use CC.
9457 LTCC=${LTCC-"$CC"}
9458
9459 # If no C compiler flags were specified, use CFLAGS.
9460 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9461
9462 # Allow CC to be a program name with arguments.
9463 compiler=$CC
9464
9465 # Save the default compiler, since it gets overwritten when the other
9466 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9467 compiler_DEFAULT=$CC
9468
9469 # save warnings/boilerplate of simple test code
9470 ac_outfile=conftest.$ac_objext
9471 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9472 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9473 _lt_compiler_boilerplate=`cat conftest.err`
9474 $RM conftest*
9475
9476 ac_outfile=conftest.$ac_objext
9477 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9478 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9479 _lt_linker_boilerplate=`cat conftest.err`
9480 $RM -r conftest*
9481
9482
9483 ## CAVEAT EMPTOR:
9484 ## There is no encapsulation within the following macros, do not change
9485 ## the running order or otherwise move them around unless you know exactly
9486 ## what you are doing...
9487 if test -n "$compiler"; then
9488
9489 lt_prog_compiler_no_builtin_flag=
9490
9491 if test "$GCC" = yes; then
9492   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9493
9494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9495 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9496 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9497   $as_echo_n "(cached) " >&6
9498 else
9499   lt_cv_prog_compiler_rtti_exceptions=no
9500    ac_outfile=conftest.$ac_objext
9501    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9502    lt_compiler_flag="-fno-rtti -fno-exceptions"
9503    # Insert the option either (1) after the last *FLAGS variable, or
9504    # (2) before a word containing "conftest.", or (3) at the end.
9505    # Note that $ac_compile itself does not contain backslashes and begins
9506    # with a dollar sign (not a hyphen), so the echo should work correctly.
9507    # The option is referenced via a variable to avoid confusing sed.
9508    lt_compile=`echo "$ac_compile" | $SED \
9509    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9510    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9511    -e 's:$: $lt_compiler_flag:'`
9512    (eval echo "\"\$as_me:9512: $lt_compile\"" >&5)
9513    (eval "$lt_compile" 2>conftest.err)
9514    ac_status=$?
9515    cat conftest.err >&5
9516    echo "$as_me:9516: \$? = $ac_status" >&5
9517    if (exit $ac_status) && test -s "$ac_outfile"; then
9518      # The compiler can only warn and ignore the option if not recognized
9519      # So say no if there are warnings other than the usual output.
9520      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9521      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9522      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9523        lt_cv_prog_compiler_rtti_exceptions=yes
9524      fi
9525    fi
9526    $RM conftest*
9527
9528 fi
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9530 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9531
9532 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9533     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9534 else
9535     :
9536 fi
9537
9538 fi
9539
9540
9541
9542
9543
9544
9545   lt_prog_compiler_wl=
9546 lt_prog_compiler_pic=
9547 lt_prog_compiler_static=
9548
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9550 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9551
9552   if test "$GCC" = yes; then
9553     lt_prog_compiler_wl='-Wl,'
9554     lt_prog_compiler_static='-static'
9555
9556     case $host_os in
9557       aix*)
9558       # All AIX code is PIC.
9559       if test "$host_cpu" = ia64; then
9560         # AIX 5 now supports IA64 processor
9561         lt_prog_compiler_static='-Bstatic'
9562       fi
9563       ;;
9564
9565     amigaos*)
9566       case $host_cpu in
9567       powerpc)
9568             # see comment about AmigaOS4 .so support
9569             lt_prog_compiler_pic='-fPIC'
9570         ;;
9571       m68k)
9572             # FIXME: we need at least 68020 code to build shared libraries, but
9573             # adding the `-m68020' flag to GCC prevents building anything better,
9574             # like `-m68040'.
9575             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9576         ;;
9577       esac
9578       ;;
9579
9580     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9581       # PIC is the default for these OSes.
9582       ;;
9583
9584     mingw* | cygwin* | pw32* | os2* | cegcc*)
9585       # This hack is so that the source file can tell whether it is being
9586       # built for inclusion in a dll (and should export symbols for example).
9587       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9588       # (--disable-auto-import) libraries
9589       lt_prog_compiler_pic='-DDLL_EXPORT'
9590       ;;
9591
9592     darwin* | rhapsody*)
9593       # PIC is the default on this platform
9594       # Common symbols not allowed in MH_DYLIB files
9595       lt_prog_compiler_pic='-fno-common'
9596       ;;
9597
9598     hpux*)
9599       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9600       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9601       # sets the default TLS model and affects inlining.
9602       case $host_cpu in
9603       hppa*64*)
9604         # +Z the default
9605         ;;
9606       *)
9607         lt_prog_compiler_pic='-fPIC'
9608         ;;
9609       esac
9610       ;;
9611
9612     interix[3-9]*)
9613       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9614       # Instead, we relocate shared libraries at runtime.
9615       ;;
9616
9617     msdosdjgpp*)
9618       # Just because we use GCC doesn't mean we suddenly get shared libraries
9619       # on systems that don't support them.
9620       lt_prog_compiler_can_build_shared=no
9621       enable_shared=no
9622       ;;
9623
9624     *nto* | *qnx*)
9625       # QNX uses GNU C++, but need to define -shared option too, otherwise
9626       # it will coredump.
9627       lt_prog_compiler_pic='-fPIC -shared'
9628       ;;
9629
9630     sysv4*MP*)
9631       if test -d /usr/nec; then
9632         lt_prog_compiler_pic=-Kconform_pic
9633       fi
9634       ;;
9635
9636     *)
9637       lt_prog_compiler_pic='-fPIC'
9638       ;;
9639     esac
9640   else
9641     # PORTME Check for flag to pass linker flags through the system compiler.
9642     case $host_os in
9643     aix*)
9644       lt_prog_compiler_wl='-Wl,'
9645       if test "$host_cpu" = ia64; then
9646         # AIX 5 now supports IA64 processor
9647         lt_prog_compiler_static='-Bstatic'
9648       else
9649         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9650       fi
9651       ;;
9652
9653     mingw* | cygwin* | pw32* | os2* | cegcc*)
9654       # This hack is so that the source file can tell whether it is being
9655       # built for inclusion in a dll (and should export symbols for example).
9656       lt_prog_compiler_pic='-DDLL_EXPORT'
9657       ;;
9658
9659     hpux9* | hpux10* | hpux11*)
9660       lt_prog_compiler_wl='-Wl,'
9661       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9662       # not for PA HP-UX.
9663       case $host_cpu in
9664       hppa*64*|ia64*)
9665         # +Z the default
9666         ;;
9667       *)
9668         lt_prog_compiler_pic='+Z'
9669         ;;
9670       esac
9671       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9672       lt_prog_compiler_static='${wl}-a ${wl}archive'
9673       ;;
9674
9675     irix5* | irix6* | nonstopux*)
9676       lt_prog_compiler_wl='-Wl,'
9677       # PIC (with -KPIC) is the default.
9678       lt_prog_compiler_static='-non_shared'
9679       ;;
9680
9681     linux* | k*bsd*-gnu)
9682       case $cc_basename in
9683       # old Intel for x86_64 which still supported -KPIC.
9684       ecc*)
9685         lt_prog_compiler_wl='-Wl,'
9686         lt_prog_compiler_pic='-KPIC'
9687         lt_prog_compiler_static='-static'
9688         ;;
9689       # icc used to be incompatible with GCC.
9690       # ICC 10 doesn't accept -KPIC any more.
9691       icc* | ifort*)
9692         lt_prog_compiler_wl='-Wl,'
9693         lt_prog_compiler_pic='-fPIC'
9694         lt_prog_compiler_static='-static'
9695         ;;
9696       # Lahey Fortran 8.1.
9697       lf95*)
9698         lt_prog_compiler_wl='-Wl,'
9699         lt_prog_compiler_pic='--shared'
9700         lt_prog_compiler_static='--static'
9701         ;;
9702       pgcc* | pgf77* | pgf90* | pgf95*)
9703         # Portland Group compilers (*not* the Pentium gcc compiler,
9704         # which looks to be a dead project)
9705         lt_prog_compiler_wl='-Wl,'
9706         lt_prog_compiler_pic='-fpic'
9707         lt_prog_compiler_static='-Bstatic'
9708         ;;
9709       ccc*)
9710         lt_prog_compiler_wl='-Wl,'
9711         # All Alpha code is PIC.
9712         lt_prog_compiler_static='-non_shared'
9713         ;;
9714       xl*)
9715         # IBM XL C 8.0/Fortran 10.1 on PPC
9716         lt_prog_compiler_wl='-Wl,'
9717         lt_prog_compiler_pic='-qpic'
9718         lt_prog_compiler_static='-qstaticlink'
9719         ;;
9720       *)
9721         case `$CC -V 2>&1 | sed 5q` in
9722         *Sun\ C*)
9723           # Sun C 5.9
9724           lt_prog_compiler_pic='-KPIC'
9725           lt_prog_compiler_static='-Bstatic'
9726           lt_prog_compiler_wl='-Wl,'
9727           ;;
9728         *Sun\ F*)
9729           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9730           lt_prog_compiler_pic='-KPIC'
9731           lt_prog_compiler_static='-Bstatic'
9732           lt_prog_compiler_wl=''
9733           ;;
9734         esac
9735         ;;
9736       esac
9737       ;;
9738
9739     newsos6)
9740       lt_prog_compiler_pic='-KPIC'
9741       lt_prog_compiler_static='-Bstatic'
9742       ;;
9743
9744     *nto* | *qnx*)
9745       # QNX uses GNU C++, but need to define -shared option too, otherwise
9746       # it will coredump.
9747       lt_prog_compiler_pic='-fPIC -shared'
9748       ;;
9749
9750     osf3* | osf4* | osf5*)
9751       lt_prog_compiler_wl='-Wl,'
9752       # All OSF/1 code is PIC.
9753       lt_prog_compiler_static='-non_shared'
9754       ;;
9755
9756     rdos*)
9757       lt_prog_compiler_static='-non_shared'
9758       ;;
9759
9760     solaris*)
9761       lt_prog_compiler_pic='-KPIC'
9762       lt_prog_compiler_static='-Bstatic'
9763       case $cc_basename in
9764       f77* | f90* | f95*)
9765         lt_prog_compiler_wl='-Qoption ld ';;
9766       *)
9767         lt_prog_compiler_wl='-Wl,';;
9768       esac
9769       ;;
9770
9771     sunos4*)
9772       lt_prog_compiler_wl='-Qoption ld '
9773       lt_prog_compiler_pic='-PIC'
9774       lt_prog_compiler_static='-Bstatic'
9775       ;;
9776
9777     sysv4 | sysv4.2uw2* | sysv4.3*)
9778       lt_prog_compiler_wl='-Wl,'
9779       lt_prog_compiler_pic='-KPIC'
9780       lt_prog_compiler_static='-Bstatic'
9781       ;;
9782
9783     sysv4*MP*)
9784       if test -d /usr/nec ;then
9785         lt_prog_compiler_pic='-Kconform_pic'
9786         lt_prog_compiler_static='-Bstatic'
9787       fi
9788       ;;
9789
9790     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9791       lt_prog_compiler_wl='-Wl,'
9792       lt_prog_compiler_pic='-KPIC'
9793       lt_prog_compiler_static='-Bstatic'
9794       ;;
9795
9796     unicos*)
9797       lt_prog_compiler_wl='-Wl,'
9798       lt_prog_compiler_can_build_shared=no
9799       ;;
9800
9801     uts4*)
9802       lt_prog_compiler_pic='-pic'
9803       lt_prog_compiler_static='-Bstatic'
9804       ;;
9805
9806     *)
9807       lt_prog_compiler_can_build_shared=no
9808       ;;
9809     esac
9810   fi
9811
9812 case $host_os in
9813   # For platforms which do not support PIC, -DPIC is meaningless:
9814   *djgpp*)
9815     lt_prog_compiler_pic=
9816     ;;
9817   *)
9818     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9819     ;;
9820 esac
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9822 $as_echo "$lt_prog_compiler_pic" >&6; }
9823
9824
9825
9826
9827
9828
9829 #
9830 # Check to make sure the PIC flag actually works.
9831 #
9832 if test -n "$lt_prog_compiler_pic"; then
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9834 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9835 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9836   $as_echo_n "(cached) " >&6
9837 else
9838   lt_cv_prog_compiler_pic_works=no
9839    ac_outfile=conftest.$ac_objext
9840    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9841    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9842    # Insert the option either (1) after the last *FLAGS variable, or
9843    # (2) before a word containing "conftest.", or (3) at the end.
9844    # Note that $ac_compile itself does not contain backslashes and begins
9845    # with a dollar sign (not a hyphen), so the echo should work correctly.
9846    # The option is referenced via a variable to avoid confusing sed.
9847    lt_compile=`echo "$ac_compile" | $SED \
9848    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9850    -e 's:$: $lt_compiler_flag:'`
9851    (eval echo "\"\$as_me:9851: $lt_compile\"" >&5)
9852    (eval "$lt_compile" 2>conftest.err)
9853    ac_status=$?
9854    cat conftest.err >&5
9855    echo "$as_me:9855: \$? = $ac_status" >&5
9856    if (exit $ac_status) && test -s "$ac_outfile"; then
9857      # The compiler can only warn and ignore the option if not recognized
9858      # So say no if there are warnings other than the usual output.
9859      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9860      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9861      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9862        lt_cv_prog_compiler_pic_works=yes
9863      fi
9864    fi
9865    $RM conftest*
9866
9867 fi
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9869 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9870
9871 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9872     case $lt_prog_compiler_pic in
9873      "" | " "*) ;;
9874      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9875      esac
9876 else
9877     lt_prog_compiler_pic=
9878      lt_prog_compiler_can_build_shared=no
9879 fi
9880
9881 fi
9882
9883
9884
9885
9886
9887
9888 #
9889 # Check to make sure the static flag actually works.
9890 #
9891 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9893 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9894 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9895   $as_echo_n "(cached) " >&6
9896 else
9897   lt_cv_prog_compiler_static_works=no
9898    save_LDFLAGS="$LDFLAGS"
9899    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9900    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9901    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9902      # The linker can only warn and ignore the option if not recognized
9903      # So say no if there are warnings
9904      if test -s conftest.err; then
9905        # Append any errors to the config.log.
9906        cat conftest.err 1>&5
9907        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9908        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9909        if diff conftest.exp conftest.er2 >/dev/null; then
9910          lt_cv_prog_compiler_static_works=yes
9911        fi
9912      else
9913        lt_cv_prog_compiler_static_works=yes
9914      fi
9915    fi
9916    $RM -r conftest*
9917    LDFLAGS="$save_LDFLAGS"
9918
9919 fi
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9921 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9922
9923 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9924     :
9925 else
9926     lt_prog_compiler_static=
9927 fi
9928
9929
9930
9931
9932
9933
9934
9935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9936 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9937 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9938   $as_echo_n "(cached) " >&6
9939 else
9940   lt_cv_prog_compiler_c_o=no
9941    $RM -r conftest 2>/dev/null
9942    mkdir conftest
9943    cd conftest
9944    mkdir out
9945    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9946
9947    lt_compiler_flag="-o out/conftest2.$ac_objext"
9948    # Insert the option either (1) after the last *FLAGS variable, or
9949    # (2) before a word containing "conftest.", or (3) at the end.
9950    # Note that $ac_compile itself does not contain backslashes and begins
9951    # with a dollar sign (not a hyphen), so the echo should work correctly.
9952    lt_compile=`echo "$ac_compile" | $SED \
9953    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9954    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9955    -e 's:$: $lt_compiler_flag:'`
9956    (eval echo "\"\$as_me:9956: $lt_compile\"" >&5)
9957    (eval "$lt_compile" 2>out/conftest.err)
9958    ac_status=$?
9959    cat out/conftest.err >&5
9960    echo "$as_me:9960: \$? = $ac_status" >&5
9961    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9962    then
9963      # The compiler can only warn and ignore the option if not recognized
9964      # So say no if there are warnings
9965      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9966      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9967      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9968        lt_cv_prog_compiler_c_o=yes
9969      fi
9970    fi
9971    chmod u+w . 2>&5
9972    $RM conftest*
9973    # SGI C++ compiler will create directory out/ii_files/ for
9974    # template instantiation
9975    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9976    $RM out/* && rmdir out
9977    cd ..
9978    $RM -r conftest
9979    $RM conftest*
9980
9981 fi
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9983 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9984
9985
9986
9987
9988
9989
9990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9991 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9992 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9993   $as_echo_n "(cached) " >&6
9994 else
9995   lt_cv_prog_compiler_c_o=no
9996    $RM -r conftest 2>/dev/null
9997    mkdir conftest
9998    cd conftest
9999    mkdir out
10000    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10001
10002    lt_compiler_flag="-o out/conftest2.$ac_objext"
10003    # Insert the option either (1) after the last *FLAGS variable, or
10004    # (2) before a word containing "conftest.", or (3) at the end.
10005    # Note that $ac_compile itself does not contain backslashes and begins
10006    # with a dollar sign (not a hyphen), so the echo should work correctly.
10007    lt_compile=`echo "$ac_compile" | $SED \
10008    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10009    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10010    -e 's:$: $lt_compiler_flag:'`
10011    (eval echo "\"\$as_me:10011: $lt_compile\"" >&5)
10012    (eval "$lt_compile" 2>out/conftest.err)
10013    ac_status=$?
10014    cat out/conftest.err >&5
10015    echo "$as_me:10015: \$? = $ac_status" >&5
10016    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10017    then
10018      # The compiler can only warn and ignore the option if not recognized
10019      # So say no if there are warnings
10020      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10021      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10022      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10023        lt_cv_prog_compiler_c_o=yes
10024      fi
10025    fi
10026    chmod u+w . 2>&5
10027    $RM conftest*
10028    # SGI C++ compiler will create directory out/ii_files/ for
10029    # template instantiation
10030    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10031    $RM out/* && rmdir out
10032    cd ..
10033    $RM -r conftest
10034    $RM conftest*
10035
10036 fi
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10038 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10039
10040
10041
10042
10043 hard_links="nottested"
10044 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10045   # do not overwrite the value of need_locks provided by the user
10046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10047 $as_echo_n "checking if we can lock with hard links... " >&6; }
10048   hard_links=yes
10049   $RM conftest*
10050   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10051   touch conftest.a
10052   ln conftest.a conftest.b 2>&5 || hard_links=no
10053   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10055 $as_echo "$hard_links" >&6; }
10056   if test "$hard_links" = no; then
10057     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10058 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10059     need_locks=warn
10060   fi
10061 else
10062   need_locks=no
10063 fi
10064
10065
10066
10067
10068
10069
10070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10071 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10072
10073   runpath_var=
10074   allow_undefined_flag=
10075   always_export_symbols=no
10076   archive_cmds=
10077   archive_expsym_cmds=
10078   compiler_needs_object=no
10079   enable_shared_with_static_runtimes=no
10080   export_dynamic_flag_spec=
10081   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10082   hardcode_automatic=no
10083   hardcode_direct=no
10084   hardcode_direct_absolute=no
10085   hardcode_libdir_flag_spec=
10086   hardcode_libdir_flag_spec_ld=
10087   hardcode_libdir_separator=
10088   hardcode_minus_L=no
10089   hardcode_shlibpath_var=unsupported
10090   inherit_rpath=no
10091   link_all_deplibs=unknown
10092   module_cmds=
10093   module_expsym_cmds=
10094   old_archive_from_new_cmds=
10095   old_archive_from_expsyms_cmds=
10096   thread_safe_flag_spec=
10097   whole_archive_flag_spec=
10098   # include_expsyms should be a list of space-separated symbols to be *always*
10099   # included in the symbol list
10100   include_expsyms=
10101   # exclude_expsyms can be an extended regexp of symbols to exclude
10102   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10103   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10104   # as well as any symbol that contains `d'.
10105   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10106   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10107   # platforms (ab)use it in PIC code, but their linkers get confused if
10108   # the symbol is explicitly referenced.  Since portable code cannot
10109   # rely on this symbol name, it's probably fine to never include it in
10110   # preloaded symbol tables.
10111   # Exclude shared library initialization/finalization symbols.
10112   extract_expsyms_cmds=
10113
10114   case $host_os in
10115   cygwin* | mingw* | pw32* | cegcc*)
10116     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10117     # When not using gcc, we currently assume that we are using
10118     # Microsoft Visual C++.
10119     if test "$GCC" != yes; then
10120       with_gnu_ld=no
10121     fi
10122     ;;
10123   interix*)
10124     # we just hope/assume this is gcc and not c89 (= MSVC++)
10125     with_gnu_ld=yes
10126     ;;
10127   openbsd*)
10128     with_gnu_ld=no
10129     ;;
10130   esac
10131
10132   ld_shlibs=yes
10133   if test "$with_gnu_ld" = yes; then
10134     # If archive_cmds runs LD, not CC, wlarc should be empty
10135     wlarc='${wl}'
10136
10137     # Set some defaults for GNU ld with shared library support. These
10138     # are reset later if shared libraries are not supported. Putting them
10139     # here allows them to be overridden if necessary.
10140     runpath_var=LD_RUN_PATH
10141     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10142     export_dynamic_flag_spec='${wl}--export-dynamic'
10143     # ancient GNU ld didn't support --whole-archive et. al.
10144     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10145       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10146     else
10147       whole_archive_flag_spec=
10148     fi
10149     supports_anon_versioning=no
10150     case `$LD -v 2>&1` in
10151       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10152       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10153       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10154       *\ 2.11.*) ;; # other 2.11 versions
10155       *) supports_anon_versioning=yes ;;
10156     esac
10157
10158     # See if GNU ld supports shared libraries.
10159     case $host_os in
10160     aix[3-9]*)
10161       # On AIX/PPC, the GNU linker is very broken
10162       if test "$host_cpu" != ia64; then
10163         ld_shlibs=no
10164         cat <<_LT_EOF 1>&2
10165
10166 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10167 *** to be unable to reliably create shared libraries on AIX.
10168 *** Therefore, libtool is disabling shared libraries support.  If you
10169 *** really care for shared libraries, you may want to modify your PATH
10170 *** so that a non-GNU linker is found, and then restart.
10171
10172 _LT_EOF
10173       fi
10174       ;;
10175
10176     amigaos*)
10177       case $host_cpu in
10178       powerpc)
10179             # see comment about AmigaOS4 .so support
10180             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10181             archive_expsym_cmds=''
10182         ;;
10183       m68k)
10184             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)'
10185             hardcode_libdir_flag_spec='-L$libdir'
10186             hardcode_minus_L=yes
10187         ;;
10188       esac
10189       ;;
10190
10191     beos*)
10192       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10193         allow_undefined_flag=unsupported
10194         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10195         # support --undefined.  This deserves some investigation.  FIXME
10196         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10197       else
10198         ld_shlibs=no
10199       fi
10200       ;;
10201
10202     cygwin* | mingw* | pw32* | cegcc*)
10203       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10204       # as there is no search path for DLLs.
10205       hardcode_libdir_flag_spec='-L$libdir'
10206       allow_undefined_flag=unsupported
10207       always_export_symbols=no
10208       enable_shared_with_static_runtimes=yes
10209       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10210
10211       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10212         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10213         # If the export-symbols file already is a .def file (1st line
10214         # is EXPORTS), use it as is; otherwise, prepend...
10215         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10216           cp $export_symbols $output_objdir/$soname.def;
10217         else
10218           echo EXPORTS > $output_objdir/$soname.def;
10219           cat $export_symbols >> $output_objdir/$soname.def;
10220         fi~
10221         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10222       else
10223         ld_shlibs=no
10224       fi
10225       ;;
10226
10227     interix[3-9]*)
10228       hardcode_direct=no
10229       hardcode_shlibpath_var=no
10230       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10231       export_dynamic_flag_spec='${wl}-E'
10232       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10233       # Instead, shared libraries are loaded at an image base (0x10000000 by
10234       # default) and relocated if they conflict, which is a slow very memory
10235       # consuming and fragmenting process.  To avoid this, we pick a random,
10236       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10237       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10238       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10239       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'
10240       ;;
10241
10242     gnu* | linux* | tpf* | k*bsd*-gnu)
10243       tmp_diet=no
10244       if test "$host_os" = linux-dietlibc; then
10245         case $cc_basename in
10246           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10247         esac
10248       fi
10249       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10250          && test "$tmp_diet" = no
10251       then
10252         tmp_addflag=
10253         tmp_sharedflag='-shared'
10254         case $cc_basename,$host_cpu in
10255         pgcc*)                          # Portland Group C compiler
10256           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'
10257           tmp_addflag=' $pic_flag'
10258           ;;
10259         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10260           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'
10261           tmp_addflag=' $pic_flag -Mnomain' ;;
10262         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10263           tmp_addflag=' -i_dynamic' ;;
10264         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10265           tmp_addflag=' -i_dynamic -nofor_main' ;;
10266         ifc* | ifort*)                  # Intel Fortran compiler
10267           tmp_addflag=' -nofor_main' ;;
10268         lf95*)                          # Lahey Fortran 8.1
10269           whole_archive_flag_spec=
10270           tmp_sharedflag='--shared' ;;
10271         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10272           tmp_sharedflag='-qmkshrobj'
10273           tmp_addflag= ;;
10274         esac
10275         case `$CC -V 2>&1 | sed 5q` in
10276         *Sun\ C*)                       # Sun C 5.9
10277           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'
10278           compiler_needs_object=yes
10279           tmp_sharedflag='-G' ;;
10280         *Sun\ F*)                       # Sun Fortran 8.3
10281           tmp_sharedflag='-G' ;;
10282         esac
10283         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10284
10285         if test "x$supports_anon_versioning" = xyes; then
10286           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10287             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10288             echo "local: *; };" >> $output_objdir/$libname.ver~
10289             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10290         fi
10291
10292         case $cc_basename in
10293         xlf*)
10294           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10295           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10296           hardcode_libdir_flag_spec=
10297           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10298           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10299           if test "x$supports_anon_versioning" = xyes; then
10300             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10301               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10302               echo "local: *; };" >> $output_objdir/$libname.ver~
10303               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10304           fi
10305           ;;
10306         esac
10307       else
10308         ld_shlibs=no
10309       fi
10310       ;;
10311
10312     netbsd*)
10313       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10314         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10315         wlarc=
10316       else
10317         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10318         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10319       fi
10320       ;;
10321
10322     solaris*)
10323       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10324         ld_shlibs=no
10325         cat <<_LT_EOF 1>&2
10326
10327 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10328 *** create shared libraries on Solaris systems.  Therefore, libtool
10329 *** is disabling shared libraries support.  We urge you to upgrade GNU
10330 *** binutils to release 2.9.1 or newer.  Another option is to modify
10331 *** your PATH or compiler configuration so that the native linker is
10332 *** used, and then restart.
10333
10334 _LT_EOF
10335       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10336         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10337         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10338       else
10339         ld_shlibs=no
10340       fi
10341       ;;
10342
10343     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10344       case `$LD -v 2>&1` in
10345         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10346         ld_shlibs=no
10347         cat <<_LT_EOF 1>&2
10348
10349 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10350 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10351 *** is disabling shared libraries support.  We urge you to upgrade GNU
10352 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10353 *** your PATH or compiler configuration so that the native linker is
10354 *** used, and then restart.
10355
10356 _LT_EOF
10357         ;;
10358         *)
10359           # For security reasons, it is highly recommended that you always
10360           # use absolute paths for naming shared libraries, and exclude the
10361           # DT_RUNPATH tag from executables and libraries.  But doing so
10362           # requires that you compile everything twice, which is a pain.
10363           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10364             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10366             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10367           else
10368             ld_shlibs=no
10369           fi
10370         ;;
10371       esac
10372       ;;
10373
10374     sunos4*)
10375       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10376       wlarc=
10377       hardcode_direct=yes
10378       hardcode_shlibpath_var=no
10379       ;;
10380
10381     *)
10382       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10383         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10385       else
10386         ld_shlibs=no
10387       fi
10388       ;;
10389     esac
10390
10391     if test "$ld_shlibs" = no; then
10392       runpath_var=
10393       hardcode_libdir_flag_spec=
10394       export_dynamic_flag_spec=
10395       whole_archive_flag_spec=
10396     fi
10397   else
10398     # PORTME fill in a description of your system's linker (not GNU ld)
10399     case $host_os in
10400     aix3*)
10401       allow_undefined_flag=unsupported
10402       always_export_symbols=yes
10403       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'
10404       # Note: this linker hardcodes the directories in LIBPATH if there
10405       # are no directories specified by -L.
10406       hardcode_minus_L=yes
10407       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10408         # Neither direct hardcoding nor static linking is supported with a
10409         # broken collect2.
10410         hardcode_direct=unsupported
10411       fi
10412       ;;
10413
10414     aix[4-9]*)
10415       if test "$host_cpu" = ia64; then
10416         # On IA64, the linker does run time linking by default, so we don't
10417         # have to do anything special.
10418         aix_use_runtimelinking=no
10419         exp_sym_flag='-Bexport'
10420         no_entry_flag=""
10421       else
10422         # If we're using GNU nm, then we don't want the "-C" option.
10423         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10424         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10425           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'
10426         else
10427           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'
10428         fi
10429         aix_use_runtimelinking=no
10430
10431         # Test if we are trying to use run time linking or normal
10432         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10433         # need to do runtime linking.
10434         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10435           for ld_flag in $LDFLAGS; do
10436           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10437             aix_use_runtimelinking=yes
10438             break
10439           fi
10440           done
10441           ;;
10442         esac
10443
10444         exp_sym_flag='-bexport'
10445         no_entry_flag='-bnoentry'
10446       fi
10447
10448       # When large executables or shared objects are built, AIX ld can
10449       # have problems creating the table of contents.  If linking a library
10450       # or program results in "error TOC overflow" add -mminimal-toc to
10451       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10452       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10453
10454       archive_cmds=''
10455       hardcode_direct=yes
10456       hardcode_direct_absolute=yes
10457       hardcode_libdir_separator=':'
10458       link_all_deplibs=yes
10459       file_list_spec='${wl}-f,'
10460
10461       if test "$GCC" = yes; then
10462         case $host_os in aix4.[012]|aix4.[012].*)
10463         # We only want to do this on AIX 4.2 and lower, the check
10464         # below for broken collect2 doesn't work under 4.3+
10465           collect2name=`${CC} -print-prog-name=collect2`
10466           if test -f "$collect2name" &&
10467            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10468           then
10469           # We have reworked collect2
10470           :
10471           else
10472           # We have old collect2
10473           hardcode_direct=unsupported
10474           # It fails to find uninstalled libraries when the uninstalled
10475           # path is not listed in the libpath.  Setting hardcode_minus_L
10476           # to unsupported forces relinking
10477           hardcode_minus_L=yes
10478           hardcode_libdir_flag_spec='-L$libdir'
10479           hardcode_libdir_separator=
10480           fi
10481           ;;
10482         esac
10483         shared_flag='-shared'
10484         if test "$aix_use_runtimelinking" = yes; then
10485           shared_flag="$shared_flag "'${wl}-G'
10486         fi
10487       else
10488         # not using gcc
10489         if test "$host_cpu" = ia64; then
10490         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10491         # chokes on -Wl,-G. The following line is correct:
10492           shared_flag='-G'
10493         else
10494           if test "$aix_use_runtimelinking" = yes; then
10495             shared_flag='${wl}-G'
10496           else
10497             shared_flag='${wl}-bM:SRE'
10498           fi
10499         fi
10500       fi
10501
10502       export_dynamic_flag_spec='${wl}-bexpall'
10503       # It seems that -bexpall does not export symbols beginning with
10504       # underscore (_), so it is better to generate a list of symbols to export.
10505       always_export_symbols=yes
10506       if test "$aix_use_runtimelinking" = yes; then
10507         # Warning - without using the other runtime loading flags (-brtl),
10508         # -berok will link without error, but may produce a broken library.
10509         allow_undefined_flag='-berok'
10510         # Determine the default libpath from the value encoded in an
10511         # empty executable.
10512         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h.  */
10514
10515 int
10516 main ()
10517 {
10518
10519   ;
10520   return 0;
10521 }
10522 _ACEOF
10523 if ac_fn_c_try_link "$LINENO"; then :
10524
10525 lt_aix_libpath_sed='
10526     /Import File Strings/,/^$/ {
10527         /^0/ {
10528             s/^0  *\(.*\)$/\1/
10529             p
10530         }
10531     }'
10532 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10533 # Check for a 64-bit object if we didn't find anything.
10534 if test -z "$aix_libpath"; then
10535   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10536 fi
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext \
10539     conftest$ac_exeext conftest.$ac_ext
10540 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10541
10542         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10543         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"
10544       else
10545         if test "$host_cpu" = ia64; then
10546           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10547           allow_undefined_flag="-z nodefs"
10548           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"
10549         else
10550          # Determine the default libpath from the value encoded in an
10551          # empty executable.
10552          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h.  */
10554
10555 int
10556 main ()
10557 {
10558
10559   ;
10560   return 0;
10561 }
10562 _ACEOF
10563 if ac_fn_c_try_link "$LINENO"; then :
10564
10565 lt_aix_libpath_sed='
10566     /Import File Strings/,/^$/ {
10567         /^0/ {
10568             s/^0  *\(.*\)$/\1/
10569             p
10570         }
10571     }'
10572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10573 # Check for a 64-bit object if we didn't find anything.
10574 if test -z "$aix_libpath"; then
10575   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10576 fi
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext \
10579     conftest$ac_exeext conftest.$ac_ext
10580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10581
10582          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10583           # Warning - without using the other run time loading flags,
10584           # -berok will link without error, but may produce a broken library.
10585           no_undefined_flag=' ${wl}-bernotok'
10586           allow_undefined_flag=' ${wl}-berok'
10587           # Exported symbols can be pulled into shared objects from archives
10588           whole_archive_flag_spec='$convenience'
10589           archive_cmds_need_lc=yes
10590           # This is similar to how AIX traditionally builds its shared libraries.
10591           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'
10592         fi
10593       fi
10594       ;;
10595
10596     amigaos*)
10597       case $host_cpu in
10598       powerpc)
10599             # see comment about AmigaOS4 .so support
10600             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10601             archive_expsym_cmds=''
10602         ;;
10603       m68k)
10604             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)'
10605             hardcode_libdir_flag_spec='-L$libdir'
10606             hardcode_minus_L=yes
10607         ;;
10608       esac
10609       ;;
10610
10611     bsdi[45]*)
10612       export_dynamic_flag_spec=-rdynamic
10613       ;;
10614
10615     cygwin* | mingw* | pw32* | cegcc*)
10616       # When not using gcc, we currently assume that we are using
10617       # Microsoft Visual C++.
10618       # hardcode_libdir_flag_spec is actually meaningless, as there is
10619       # no search path for DLLs.
10620       hardcode_libdir_flag_spec=' '
10621       allow_undefined_flag=unsupported
10622       # Tell ltmain to make .lib files, not .a files.
10623       libext=lib
10624       # Tell ltmain to make .dll files, not .so files.
10625       shrext_cmds=".dll"
10626       # FIXME: Setting linknames here is a bad hack.
10627       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10628       # The linker will automatically build a .lib file if we build a DLL.
10629       old_archive_from_new_cmds='true'
10630       # FIXME: Should let the user specify the lib program.
10631       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10632       fix_srcfile_path='`cygpath -w "$srcfile"`'
10633       enable_shared_with_static_runtimes=yes
10634       ;;
10635
10636     darwin* | rhapsody*)
10637
10638
10639   archive_cmds_need_lc=no
10640   hardcode_direct=no
10641   hardcode_automatic=yes
10642   hardcode_shlibpath_var=unsupported
10643   whole_archive_flag_spec=''
10644   link_all_deplibs=yes
10645   allow_undefined_flag="$_lt_dar_allow_undefined"
10646   case $cc_basename in
10647      ifort*) _lt_dar_can_shared=yes ;;
10648      *) _lt_dar_can_shared=$GCC ;;
10649   esac
10650   if test "$_lt_dar_can_shared" = "yes"; then
10651     output_verbose_link_cmd=echo
10652     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10653     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10654     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}"
10655     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}"
10656
10657   else
10658   ld_shlibs=no
10659   fi
10660
10661       ;;
10662
10663     dgux*)
10664       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10665       hardcode_libdir_flag_spec='-L$libdir'
10666       hardcode_shlibpath_var=no
10667       ;;
10668
10669     freebsd1*)
10670       ld_shlibs=no
10671       ;;
10672
10673     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10674     # support.  Future versions do this automatically, but an explicit c++rt0.o
10675     # does not break anything, and helps significantly (at the cost of a little
10676     # extra space).
10677     freebsd2.2*)
10678       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10679       hardcode_libdir_flag_spec='-R$libdir'
10680       hardcode_direct=yes
10681       hardcode_shlibpath_var=no
10682       ;;
10683
10684     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10685     freebsd2*)
10686       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10687       hardcode_direct=yes
10688       hardcode_minus_L=yes
10689       hardcode_shlibpath_var=no
10690       ;;
10691
10692     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10693     freebsd* | dragonfly*)
10694       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10695       hardcode_libdir_flag_spec='-R$libdir'
10696       hardcode_direct=yes
10697       hardcode_shlibpath_var=no
10698       ;;
10699
10700     hpux9*)
10701       if test "$GCC" = yes; then
10702         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'
10703       else
10704         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'
10705       fi
10706       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10707       hardcode_libdir_separator=:
10708       hardcode_direct=yes
10709
10710       # hardcode_minus_L: Not really in the search PATH,
10711       # but as the default location of the library.
10712       hardcode_minus_L=yes
10713       export_dynamic_flag_spec='${wl}-E'
10714       ;;
10715
10716     hpux10*)
10717       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10718         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10719       else
10720         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10721       fi
10722       if test "$with_gnu_ld" = no; then
10723         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10724         hardcode_libdir_flag_spec_ld='+b $libdir'
10725         hardcode_libdir_separator=:
10726         hardcode_direct=yes
10727         hardcode_direct_absolute=yes
10728         export_dynamic_flag_spec='${wl}-E'
10729         # hardcode_minus_L: Not really in the search PATH,
10730         # but as the default location of the library.
10731         hardcode_minus_L=yes
10732       fi
10733       ;;
10734
10735     hpux11*)
10736       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10737         case $host_cpu in
10738         hppa*64*)
10739           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10740           ;;
10741         ia64*)
10742           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10743           ;;
10744         *)
10745           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10746           ;;
10747         esac
10748       else
10749         case $host_cpu in
10750         hppa*64*)
10751           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10752           ;;
10753         ia64*)
10754           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10755           ;;
10756         *)
10757           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10758           ;;
10759         esac
10760       fi
10761       if test "$with_gnu_ld" = no; then
10762         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10763         hardcode_libdir_separator=:
10764
10765         case $host_cpu in
10766         hppa*64*|ia64*)
10767           hardcode_direct=no
10768           hardcode_shlibpath_var=no
10769           ;;
10770         *)
10771           hardcode_direct=yes
10772           hardcode_direct_absolute=yes
10773           export_dynamic_flag_spec='${wl}-E'
10774
10775           # hardcode_minus_L: Not really in the search PATH,
10776           # but as the default location of the library.
10777           hardcode_minus_L=yes
10778           ;;
10779         esac
10780       fi
10781       ;;
10782
10783     irix5* | irix6* | nonstopux*)
10784       if test "$GCC" = yes; then
10785         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'
10786         # Try to use the -exported_symbol ld option, if it does not
10787         # work, assume that -exports_file does not work either and
10788         # implicitly export all symbols.
10789         save_LDFLAGS="$LDFLAGS"
10790         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10791         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h.  */
10793 int foo(void) {}
10794 _ACEOF
10795 if ac_fn_c_try_link "$LINENO"; then :
10796   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'
10797
10798 fi
10799 rm -f core conftest.err conftest.$ac_objext \
10800     conftest$ac_exeext conftest.$ac_ext
10801         LDFLAGS="$save_LDFLAGS"
10802       else
10803         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'
10804         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'
10805       fi
10806       archive_cmds_need_lc='no'
10807       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10808       hardcode_libdir_separator=:
10809       inherit_rpath=yes
10810       link_all_deplibs=yes
10811       ;;
10812
10813     netbsd*)
10814       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10815         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10816       else
10817         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10818       fi
10819       hardcode_libdir_flag_spec='-R$libdir'
10820       hardcode_direct=yes
10821       hardcode_shlibpath_var=no
10822       ;;
10823
10824     newsos6)
10825       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826       hardcode_direct=yes
10827       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10828       hardcode_libdir_separator=:
10829       hardcode_shlibpath_var=no
10830       ;;
10831
10832     *nto* | *qnx*)
10833       ;;
10834
10835     openbsd*)
10836       if test -f /usr/libexec/ld.so; then
10837         hardcode_direct=yes
10838         hardcode_shlibpath_var=no
10839         hardcode_direct_absolute=yes
10840         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10841           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10842           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10843           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10844           export_dynamic_flag_spec='${wl}-E'
10845         else
10846           case $host_os in
10847            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10848              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10849              hardcode_libdir_flag_spec='-R$libdir'
10850              ;;
10851            *)
10852              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10853              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10854              ;;
10855           esac
10856         fi
10857       else
10858         ld_shlibs=no
10859       fi
10860       ;;
10861
10862     os2*)
10863       hardcode_libdir_flag_spec='-L$libdir'
10864       hardcode_minus_L=yes
10865       allow_undefined_flag=unsupported
10866       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'
10867       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10868       ;;
10869
10870     osf3*)
10871       if test "$GCC" = yes; then
10872         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10873         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'
10874       else
10875         allow_undefined_flag=' -expect_unresolved \*'
10876         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'
10877       fi
10878       archive_cmds_need_lc='no'
10879       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10880       hardcode_libdir_separator=:
10881       ;;
10882
10883     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10884       if test "$GCC" = yes; then
10885         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10886         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'
10887         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10888       else
10889         allow_undefined_flag=' -expect_unresolved \*'
10890         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'
10891         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~
10892         $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'
10893
10894         # Both c and cxx compiler support -rpath directly
10895         hardcode_libdir_flag_spec='-rpath $libdir'
10896       fi
10897       archive_cmds_need_lc='no'
10898       hardcode_libdir_separator=:
10899       ;;
10900
10901     solaris*)
10902       no_undefined_flag=' -z defs'
10903       if test "$GCC" = yes; then
10904         wlarc='${wl}'
10905         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10906         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10907           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10908       else
10909         case `$CC -V 2>&1` in
10910         *"Compilers 5.0"*)
10911           wlarc=''
10912           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10913           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10914           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10915           ;;
10916         *)
10917           wlarc='${wl}'
10918           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10919           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10920           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10921           ;;
10922         esac
10923       fi
10924       hardcode_libdir_flag_spec='-R$libdir'
10925       hardcode_shlibpath_var=no
10926       case $host_os in
10927       solaris2.[0-5] | solaris2.[0-5].*) ;;
10928       *)
10929         # The compiler driver will combine and reorder linker options,
10930         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10931         # but is careful enough not to reorder.
10932         # Supported since Solaris 2.6 (maybe 2.5.1?)
10933         if test "$GCC" = yes; then
10934           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10935         else
10936           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10937         fi
10938         ;;
10939       esac
10940       link_all_deplibs=yes
10941       ;;
10942
10943     sunos4*)
10944       if test "x$host_vendor" = xsequent; then
10945         # Use $CC to link under sequent, because it throws in some extra .o
10946         # files that make .init and .fini sections work.
10947         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10948       else
10949         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10950       fi
10951       hardcode_libdir_flag_spec='-L$libdir'
10952       hardcode_direct=yes
10953       hardcode_minus_L=yes
10954       hardcode_shlibpath_var=no
10955       ;;
10956
10957     sysv4)
10958       case $host_vendor in
10959         sni)
10960           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961           hardcode_direct=yes # is this really true???
10962         ;;
10963         siemens)
10964           ## LD is ld it makes a PLAMLIB
10965           ## CC just makes a GrossModule.
10966           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10967           reload_cmds='$CC -r -o $output$reload_objs'
10968           hardcode_direct=no
10969         ;;
10970         motorola)
10971           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10973         ;;
10974       esac
10975       runpath_var='LD_RUN_PATH'
10976       hardcode_shlibpath_var=no
10977       ;;
10978
10979     sysv4.3*)
10980       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981       hardcode_shlibpath_var=no
10982       export_dynamic_flag_spec='-Bexport'
10983       ;;
10984
10985     sysv4*MP*)
10986       if test -d /usr/nec; then
10987         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988         hardcode_shlibpath_var=no
10989         runpath_var=LD_RUN_PATH
10990         hardcode_runpath_var=yes
10991         ld_shlibs=yes
10992       fi
10993       ;;
10994
10995     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10996       no_undefined_flag='${wl}-z,text'
10997       archive_cmds_need_lc=no
10998       hardcode_shlibpath_var=no
10999       runpath_var='LD_RUN_PATH'
11000
11001       if test "$GCC" = yes; then
11002         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004       else
11005         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007       fi
11008       ;;
11009
11010     sysv5* | sco3.2v5* | sco5v6*)
11011       # Note: We can NOT use -z defs as we might desire, because we do not
11012       # link with -lc, and that would cause any symbols used from libc to
11013       # always be unresolved, which means just about no library would
11014       # ever link correctly.  If we're not using GNU ld we use -z text
11015       # though, which does catch some bad symbols but isn't as heavy-handed
11016       # as -z defs.
11017       no_undefined_flag='${wl}-z,text'
11018       allow_undefined_flag='${wl}-z,nodefs'
11019       archive_cmds_need_lc=no
11020       hardcode_shlibpath_var=no
11021       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11022       hardcode_libdir_separator=':'
11023       link_all_deplibs=yes
11024       export_dynamic_flag_spec='${wl}-Bexport'
11025       runpath_var='LD_RUN_PATH'
11026
11027       if test "$GCC" = yes; then
11028         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030       else
11031         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033       fi
11034       ;;
11035
11036     uts4*)
11037       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11038       hardcode_libdir_flag_spec='-L$libdir'
11039       hardcode_shlibpath_var=no
11040       ;;
11041
11042     *)
11043       ld_shlibs=no
11044       ;;
11045     esac
11046
11047     if test x$host_vendor = xsni; then
11048       case $host in
11049       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11050         export_dynamic_flag_spec='${wl}-Blargedynsym'
11051         ;;
11052       esac
11053     fi
11054   fi
11055
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11057 $as_echo "$ld_shlibs" >&6; }
11058 test "$ld_shlibs" = no && can_build_shared=no
11059
11060 with_gnu_ld=$with_gnu_ld
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076 #
11077 # Do we need to explicitly link libc?
11078 #
11079 case "x$archive_cmds_need_lc" in
11080 x|xyes)
11081   # Assume -lc should be added
11082   archive_cmds_need_lc=yes
11083
11084   if test "$enable_shared" = yes && test "$GCC" = yes; then
11085     case $archive_cmds in
11086     *'~'*)
11087       # FIXME: we may have to deal with multi-command sequences.
11088       ;;
11089     '$CC '*)
11090       # Test whether the compiler implicitly links with -lc since on some
11091       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11092       # to ld, don't add -lc before -lgcc.
11093       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11094 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11095       $RM conftest*
11096       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11097
11098       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11099   (eval $ac_compile) 2>&5
11100   ac_status=$?
11101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11102   test $ac_status = 0; } 2>conftest.err; then
11103         soname=conftest
11104         lib=conftest
11105         libobjs=conftest.$ac_objext
11106         deplibs=
11107         wl=$lt_prog_compiler_wl
11108         pic_flag=$lt_prog_compiler_pic
11109         compiler_flags=-v
11110         linker_flags=-v
11111         verstring=
11112         output_objdir=.
11113         libname=conftest
11114         lt_save_allow_undefined_flag=$allow_undefined_flag
11115         allow_undefined_flag=
11116         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11117   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11118   ac_status=$?
11119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11120   test $ac_status = 0; }
11121         then
11122           archive_cmds_need_lc=no
11123         else
11124           archive_cmds_need_lc=yes
11125         fi
11126         allow_undefined_flag=$lt_save_allow_undefined_flag
11127       else
11128         cat conftest.err 1>&5
11129       fi
11130       $RM conftest*
11131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11132 $as_echo "$archive_cmds_need_lc" >&6; }
11133       ;;
11134     esac
11135   fi
11136   ;;
11137 esac
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11296 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11297
11298 if test "$GCC" = yes; then
11299   case $host_os in
11300     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11301     *) lt_awk_arg="/^libraries:/" ;;
11302   esac
11303   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11304   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11305     # if the path contains ";" then we assume it to be the separator
11306     # otherwise default to the standard path separator (i.e. ":") - it is
11307     # assumed that no part of a normal pathname contains ";" but that should
11308     # okay in the real world where ";" in dirpaths is itself problematic.
11309     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11310   else
11311     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11312   fi
11313   # Ok, now we have the path, separated by spaces, we can step through it
11314   # and add multilib dir if necessary.
11315   lt_tmp_lt_search_path_spec=
11316   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11317   for lt_sys_path in $lt_search_path_spec; do
11318     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11319       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11320     else
11321       test -d "$lt_sys_path" && \
11322         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11323     fi
11324   done
11325   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11326 BEGIN {RS=" "; FS="/|\n";} {
11327   lt_foo="";
11328   lt_count=0;
11329   for (lt_i = NF; lt_i > 0; lt_i--) {
11330     if ($lt_i != "" && $lt_i != ".") {
11331       if ($lt_i == "..") {
11332         lt_count++;
11333       } else {
11334         if (lt_count == 0) {
11335           lt_foo="/" $lt_i lt_foo;
11336         } else {
11337           lt_count--;
11338         }
11339       }
11340     }
11341   }
11342   if (lt_foo != "") { lt_freq[lt_foo]++; }
11343   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11344 }'`
11345   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11346 else
11347   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11348 fi
11349 library_names_spec=
11350 libname_spec='lib$name'
11351 soname_spec=
11352 shrext_cmds=".so"
11353 postinstall_cmds=
11354 postuninstall_cmds=
11355 finish_cmds=
11356 finish_eval=
11357 shlibpath_var=
11358 shlibpath_overrides_runpath=unknown
11359 version_type=none
11360 dynamic_linker="$host_os ld.so"
11361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11362 need_lib_prefix=unknown
11363 hardcode_into_libs=no
11364
11365 # when you set need_version to no, make sure it does not cause -set_version
11366 # flags to be left without arguments
11367 need_version=unknown
11368
11369 case $host_os in
11370 aix3*)
11371   version_type=linux
11372   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11373   shlibpath_var=LIBPATH
11374
11375   # AIX 3 has no versioning support, so we append a major version to the name.
11376   soname_spec='${libname}${release}${shared_ext}$major'
11377   ;;
11378
11379 aix[4-9]*)
11380   version_type=linux
11381   need_lib_prefix=no
11382   need_version=no
11383   hardcode_into_libs=yes
11384   if test "$host_cpu" = ia64; then
11385     # AIX 5 supports IA64
11386     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11387     shlibpath_var=LD_LIBRARY_PATH
11388   else
11389     # With GCC up to 2.95.x, collect2 would create an import file
11390     # for dependence libraries.  The import file would start with
11391     # the line `#! .'.  This would cause the generated library to
11392     # depend on `.', always an invalid library.  This was fixed in
11393     # development snapshots of GCC prior to 3.0.
11394     case $host_os in
11395       aix4 | aix4.[01] | aix4.[01].*)
11396       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11397            echo ' yes '
11398            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11399         :
11400       else
11401         can_build_shared=no
11402       fi
11403       ;;
11404     esac
11405     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11406     # soname into executable. Probably we can add versioning support to
11407     # collect2, so additional links can be useful in future.
11408     if test "$aix_use_runtimelinking" = yes; then
11409       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11410       # instead of lib<name>.a to let people know that these are not
11411       # typical AIX shared libraries.
11412       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413     else
11414       # We preserve .a as extension for shared libraries through AIX4.2
11415       # and later when we are not doing run time linking.
11416       library_names_spec='${libname}${release}.a $libname.a'
11417       soname_spec='${libname}${release}${shared_ext}$major'
11418     fi
11419     shlibpath_var=LIBPATH
11420   fi
11421   ;;
11422
11423 amigaos*)
11424   case $host_cpu in
11425   powerpc)
11426     # Since July 2007 AmigaOS4 officially supports .so libraries.
11427     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429     ;;
11430   m68k)
11431     library_names_spec='$libname.ixlibrary $libname.a'
11432     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11433     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'
11434     ;;
11435   esac
11436   ;;
11437
11438 beos*)
11439   library_names_spec='${libname}${shared_ext}'
11440   dynamic_linker="$host_os ld.so"
11441   shlibpath_var=LIBRARY_PATH
11442   ;;
11443
11444 bsdi[45]*)
11445   version_type=linux
11446   need_version=no
11447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448   soname_spec='${libname}${release}${shared_ext}$major'
11449   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11450   shlibpath_var=LD_LIBRARY_PATH
11451   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11452   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11453   # the default ld.so.conf also contains /usr/contrib/lib and
11454   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11455   # libtool to hard-code these into programs
11456   ;;
11457
11458 cygwin* | mingw* | pw32* | cegcc*)
11459   version_type=windows
11460   shrext_cmds=".dll"
11461   need_version=no
11462   need_lib_prefix=no
11463
11464   case $GCC,$host_os in
11465   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11466     library_names_spec='$libname.dll.a'
11467     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11468     postinstall_cmds='base_file=`basename \${file}`~
11469       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11470       dldir=$destdir/`dirname \$dlpath`~
11471       test -d \$dldir || mkdir -p \$dldir~
11472       $install_prog $dir/$dlname \$dldir/$dlname~
11473       chmod a+x \$dldir/$dlname~
11474       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11475         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11476       fi'
11477     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11478       dlpath=$dir/\$dldll~
11479        $RM \$dlpath'
11480     shlibpath_overrides_runpath=yes
11481
11482     case $host_os in
11483     cygwin*)
11484       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11485       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11486       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11487       ;;
11488     mingw* | cegcc*)
11489       # MinGW DLLs use traditional 'lib' prefix
11490       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11491       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11492       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11493         # It is most probably a Windows format PATH printed by
11494         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11495         # path with ; separators, and with drive letters. We can handle the
11496         # drive letters (cygwin fileutils understands them), so leave them,
11497         # especially as we might pass files found there to a mingw objdump,
11498         # which wouldn't understand a cygwinified path. Ahh.
11499         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11500       else
11501         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11502       fi
11503       ;;
11504     pw32*)
11505       # pw32 DLLs use 'pw' prefix rather than 'lib'
11506       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11507       ;;
11508     esac
11509     ;;
11510
11511   *)
11512     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11513     ;;
11514   esac
11515   dynamic_linker='Win32 ld.exe'
11516   # FIXME: first we should search . and the directory the executable is in
11517   shlibpath_var=PATH
11518   ;;
11519
11520 darwin* | rhapsody*)
11521   dynamic_linker="$host_os dyld"
11522   version_type=darwin
11523   need_lib_prefix=no
11524   need_version=no
11525   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11526   soname_spec='${libname}${release}${major}$shared_ext'
11527   shlibpath_overrides_runpath=yes
11528   shlibpath_var=DYLD_LIBRARY_PATH
11529   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11530
11531   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11532   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11533   ;;
11534
11535 dgux*)
11536   version_type=linux
11537   need_lib_prefix=no
11538   need_version=no
11539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11540   soname_spec='${libname}${release}${shared_ext}$major'
11541   shlibpath_var=LD_LIBRARY_PATH
11542   ;;
11543
11544 freebsd1*)
11545   dynamic_linker=no
11546   ;;
11547
11548 freebsd* | dragonfly*)
11549   # DragonFly does not have aout.  When/if they implement a new
11550   # versioning mechanism, adjust this.
11551   if test -x /usr/bin/objformat; then
11552     objformat=`/usr/bin/objformat`
11553   else
11554     case $host_os in
11555     freebsd[123]*) objformat=aout ;;
11556     *) objformat=elf ;;
11557     esac
11558   fi
11559   version_type=freebsd-$objformat
11560   case $version_type in
11561     freebsd-elf*)
11562       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11563       need_version=no
11564       need_lib_prefix=no
11565       ;;
11566     freebsd-*)
11567       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11568       need_version=yes
11569       ;;
11570   esac
11571   shlibpath_var=LD_LIBRARY_PATH
11572   case $host_os in
11573   freebsd2*)
11574     shlibpath_overrides_runpath=yes
11575     ;;
11576   freebsd3.[01]* | freebsdelf3.[01]*)
11577     shlibpath_overrides_runpath=yes
11578     hardcode_into_libs=yes
11579     ;;
11580   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11581   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11582     shlibpath_overrides_runpath=no
11583     hardcode_into_libs=yes
11584     ;;
11585   *) # from 4.6 on, and DragonFly
11586     shlibpath_overrides_runpath=yes
11587     hardcode_into_libs=yes
11588     ;;
11589   esac
11590   ;;
11591
11592 gnu*)
11593   version_type=linux
11594   need_lib_prefix=no
11595   need_version=no
11596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   shlibpath_var=LD_LIBRARY_PATH
11599   hardcode_into_libs=yes
11600   ;;
11601
11602 hpux9* | hpux10* | hpux11*)
11603   # Give a soname corresponding to the major version so that dld.sl refuses to
11604   # link against other versions.
11605   version_type=sunos
11606   need_lib_prefix=no
11607   need_version=no
11608   case $host_cpu in
11609   ia64*)
11610     shrext_cmds='.so'
11611     hardcode_into_libs=yes
11612     dynamic_linker="$host_os dld.so"
11613     shlibpath_var=LD_LIBRARY_PATH
11614     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616     soname_spec='${libname}${release}${shared_ext}$major'
11617     if test "X$HPUX_IA64_MODE" = X32; then
11618       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11619     else
11620       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11621     fi
11622     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11623     ;;
11624   hppa*64*)
11625     shrext_cmds='.sl'
11626     hardcode_into_libs=yes
11627     dynamic_linker="$host_os dld.sl"
11628     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11629     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631     soname_spec='${libname}${release}${shared_ext}$major'
11632     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11633     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11634     ;;
11635   *)
11636     shrext_cmds='.sl'
11637     dynamic_linker="$host_os dld.sl"
11638     shlibpath_var=SHLIB_PATH
11639     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641     soname_spec='${libname}${release}${shared_ext}$major'
11642     ;;
11643   esac
11644   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11645   postinstall_cmds='chmod 555 $lib'
11646   ;;
11647
11648 interix[3-9]*)
11649   version_type=linux
11650   need_lib_prefix=no
11651   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11655   shlibpath_var=LD_LIBRARY_PATH
11656   shlibpath_overrides_runpath=no
11657   hardcode_into_libs=yes
11658   ;;
11659
11660 irix5* | irix6* | nonstopux*)
11661   case $host_os in
11662     nonstopux*) version_type=nonstopux ;;
11663     *)
11664         if test "$lt_cv_prog_gnu_ld" = yes; then
11665                 version_type=linux
11666         else
11667                 version_type=irix
11668         fi ;;
11669   esac
11670   need_lib_prefix=no
11671   need_version=no
11672   soname_spec='${libname}${release}${shared_ext}$major'
11673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11674   case $host_os in
11675   irix5* | nonstopux*)
11676     libsuff= shlibsuff=
11677     ;;
11678   *)
11679     case $LD in # libtool.m4 will add one of these switches to LD
11680     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11681       libsuff= shlibsuff= libmagic=32-bit;;
11682     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11683       libsuff=32 shlibsuff=N32 libmagic=N32;;
11684     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11685       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11686     *) libsuff= shlibsuff= libmagic=never-match;;
11687     esac
11688     ;;
11689   esac
11690   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11691   shlibpath_overrides_runpath=no
11692   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11693   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11694   hardcode_into_libs=yes
11695   ;;
11696
11697 # No shared lib support for Linux oldld, aout, or coff.
11698 linux*oldld* | linux*aout* | linux*coff*)
11699   dynamic_linker=no
11700   ;;
11701
11702 # This must be Linux ELF.
11703 linux* | k*bsd*-gnu)
11704   version_type=linux
11705   need_lib_prefix=no
11706   need_version=no
11707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708   soname_spec='${libname}${release}${shared_ext}$major'
11709   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11710   shlibpath_var=LD_LIBRARY_PATH
11711   shlibpath_overrides_runpath=no
11712   # Some binutils ld are patched to set DT_RUNPATH
11713   save_LDFLAGS=$LDFLAGS
11714   save_libdir=$libdir
11715   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11716        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h.  */
11719
11720 int
11721 main ()
11722 {
11723
11724   ;
11725   return 0;
11726 }
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11730   shlibpath_overrides_runpath=yes
11731 fi
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext \
11734     conftest$ac_exeext conftest.$ac_ext
11735   LDFLAGS=$save_LDFLAGS
11736   libdir=$save_libdir
11737
11738   # This implies no fast_install, which is unacceptable.
11739   # Some rework will be needed to allow for fast_install
11740   # before this can be enabled.
11741   hardcode_into_libs=yes
11742
11743   # Append ld.so.conf contents to the search path
11744   if test -f /etc/ld.so.conf; then
11745     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' ' '`
11746     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11747   fi
11748
11749   # We used to test for /lib/ld.so.1 and disable shared libraries on
11750   # powerpc, because MkLinux only supported shared libraries with the
11751   # GNU dynamic linker.  Since this was broken with cross compilers,
11752   # most powerpc-linux boxes support dynamic linking these days and
11753   # people can always --disable-shared, the test was removed, and we
11754   # assume the GNU/Linux dynamic linker is in use.
11755   dynamic_linker='GNU/Linux ld.so'
11756   ;;
11757
11758 netbsd*)
11759   version_type=sunos
11760   need_lib_prefix=no
11761   need_version=no
11762   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11764     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11765     dynamic_linker='NetBSD (a.out) ld.so'
11766   else
11767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11768     soname_spec='${libname}${release}${shared_ext}$major'
11769     dynamic_linker='NetBSD ld.elf_so'
11770   fi
11771   shlibpath_var=LD_LIBRARY_PATH
11772   shlibpath_overrides_runpath=yes
11773   hardcode_into_libs=yes
11774   ;;
11775
11776 newsos6)
11777   version_type=linux
11778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779   shlibpath_var=LD_LIBRARY_PATH
11780   shlibpath_overrides_runpath=yes
11781   ;;
11782
11783 *nto* | *qnx*)
11784   version_type=qnx
11785   need_lib_prefix=no
11786   need_version=no
11787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788   soname_spec='${libname}${release}${shared_ext}$major'
11789   shlibpath_var=LD_LIBRARY_PATH
11790   shlibpath_overrides_runpath=no
11791   hardcode_into_libs=yes
11792   dynamic_linker='ldqnx.so'
11793   ;;
11794
11795 openbsd*)
11796   version_type=sunos
11797   sys_lib_dlsearch_path_spec="/usr/lib"
11798   need_lib_prefix=no
11799   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11800   case $host_os in
11801     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11802     *)                          need_version=no  ;;
11803   esac
11804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11805   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11806   shlibpath_var=LD_LIBRARY_PATH
11807   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11808     case $host_os in
11809       openbsd2.[89] | openbsd2.[89].*)
11810         shlibpath_overrides_runpath=no
11811         ;;
11812       *)
11813         shlibpath_overrides_runpath=yes
11814         ;;
11815       esac
11816   else
11817     shlibpath_overrides_runpath=yes
11818   fi
11819   ;;
11820
11821 os2*)
11822   libname_spec='$name'
11823   shrext_cmds=".dll"
11824   need_lib_prefix=no
11825   library_names_spec='$libname${shared_ext} $libname.a'
11826   dynamic_linker='OS/2 ld.exe'
11827   shlibpath_var=LIBPATH
11828   ;;
11829
11830 osf3* | osf4* | osf5*)
11831   version_type=osf
11832   need_lib_prefix=no
11833   need_version=no
11834   soname_spec='${libname}${release}${shared_ext}$major'
11835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836   shlibpath_var=LD_LIBRARY_PATH
11837   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11838   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11839   ;;
11840
11841 rdos*)
11842   dynamic_linker=no
11843   ;;
11844
11845 solaris*)
11846   version_type=linux
11847   need_lib_prefix=no
11848   need_version=no
11849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850   soname_spec='${libname}${release}${shared_ext}$major'
11851   shlibpath_var=LD_LIBRARY_PATH
11852   shlibpath_overrides_runpath=yes
11853   hardcode_into_libs=yes
11854   # ldd complains unless libraries are executable
11855   postinstall_cmds='chmod +x $lib'
11856   ;;
11857
11858 sunos4*)
11859   version_type=sunos
11860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11861   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11862   shlibpath_var=LD_LIBRARY_PATH
11863   shlibpath_overrides_runpath=yes
11864   if test "$with_gnu_ld" = yes; then
11865     need_lib_prefix=no
11866   fi
11867   need_version=yes
11868   ;;
11869
11870 sysv4 | sysv4.3*)
11871   version_type=linux
11872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11873   soname_spec='${libname}${release}${shared_ext}$major'
11874   shlibpath_var=LD_LIBRARY_PATH
11875   case $host_vendor in
11876     sni)
11877       shlibpath_overrides_runpath=no
11878       need_lib_prefix=no
11879       runpath_var=LD_RUN_PATH
11880       ;;
11881     siemens)
11882       need_lib_prefix=no
11883       ;;
11884     motorola)
11885       need_lib_prefix=no
11886       need_version=no
11887       shlibpath_overrides_runpath=no
11888       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11889       ;;
11890   esac
11891   ;;
11892
11893 sysv4*MP*)
11894   if test -d /usr/nec ;then
11895     version_type=linux
11896     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11897     soname_spec='$libname${shared_ext}.$major'
11898     shlibpath_var=LD_LIBRARY_PATH
11899   fi
11900   ;;
11901
11902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11903   version_type=freebsd-elf
11904   need_lib_prefix=no
11905   need_version=no
11906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11907   soname_spec='${libname}${release}${shared_ext}$major'
11908   shlibpath_var=LD_LIBRARY_PATH
11909   shlibpath_overrides_runpath=yes
11910   hardcode_into_libs=yes
11911   if test "$with_gnu_ld" = yes; then
11912     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11913   else
11914     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11915     case $host_os in
11916       sco3.2v5*)
11917         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11918         ;;
11919     esac
11920   fi
11921   sys_lib_dlsearch_path_spec='/usr/lib'
11922   ;;
11923
11924 tpf*)
11925   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11926   version_type=linux
11927   need_lib_prefix=no
11928   need_version=no
11929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930   shlibpath_var=LD_LIBRARY_PATH
11931   shlibpath_overrides_runpath=no
11932   hardcode_into_libs=yes
11933   ;;
11934
11935 uts4*)
11936   version_type=linux
11937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938   soname_spec='${libname}${release}${shared_ext}$major'
11939   shlibpath_var=LD_LIBRARY_PATH
11940   ;;
11941
11942 *)
11943   dynamic_linker=no
11944   ;;
11945 esac
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11947 $as_echo "$dynamic_linker" >&6; }
11948 test "$dynamic_linker" = no && can_build_shared=no
11949
11950 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11951 if test "$GCC" = yes; then
11952   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11953 fi
11954
11955 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11956   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11957 fi
11958 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11959   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11960 fi
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12049 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12050 hardcode_action=
12051 if test -n "$hardcode_libdir_flag_spec" ||
12052    test -n "$runpath_var" ||
12053    test "X$hardcode_automatic" = "Xyes" ; then
12054
12055   # We can hardcode non-existent directories.
12056   if test "$hardcode_direct" != no &&
12057      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12058      # have to relink, otherwise we might link with an installed library
12059      # when we should be linking with a yet-to-be-installed one
12060      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12061      test "$hardcode_minus_L" != no; then
12062     # Linking always hardcodes the temporary library directory.
12063     hardcode_action=relink
12064   else
12065     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12066     hardcode_action=immediate
12067   fi
12068 else
12069   # We cannot hardcode anything, or else we can only hardcode existing
12070   # directories.
12071   hardcode_action=unsupported
12072 fi
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12074 $as_echo "$hardcode_action" >&6; }
12075
12076 if test "$hardcode_action" = relink ||
12077    test "$inherit_rpath" = yes; then
12078   # Fast installation is not supported
12079   enable_fast_install=no
12080 elif test "$shlibpath_overrides_runpath" = yes ||
12081      test "$enable_shared" = no; then
12082   # Fast installation is not necessary
12083   enable_fast_install=needless
12084 fi
12085
12086
12087
12088
12089
12090
12091   if test "x$enable_dlopen" != xyes; then
12092   enable_dlopen=unknown
12093   enable_dlopen_self=unknown
12094   enable_dlopen_self_static=unknown
12095 else
12096   lt_cv_dlopen=no
12097   lt_cv_dlopen_libs=
12098
12099   case $host_os in
12100   beos*)
12101     lt_cv_dlopen="load_add_on"
12102     lt_cv_dlopen_libs=
12103     lt_cv_dlopen_self=yes
12104     ;;
12105
12106   mingw* | pw32* | cegcc*)
12107     lt_cv_dlopen="LoadLibrary"
12108     lt_cv_dlopen_libs=
12109     ;;
12110
12111   cygwin*)
12112     lt_cv_dlopen="dlopen"
12113     lt_cv_dlopen_libs=
12114     ;;
12115
12116   darwin*)
12117   # if libdl is installed we need to link against it
12118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12119 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12121   $as_echo_n "(cached) " >&6
12122 else
12123   ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-ldl  $LIBS"
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h.  */
12127
12128 /* Override any GCC internal prototype to avoid an error.
12129    Use char because int might match the return type of a GCC
12130    builtin and then its argument prototype would still apply.  */
12131 #ifdef __cplusplus
12132 extern "C"
12133 #endif
12134 char dlopen ();
12135 int
12136 main ()
12137 {
12138 return dlopen ();
12139   ;
12140   return 0;
12141 }
12142 _ACEOF
12143 if ac_fn_c_try_link "$LINENO"; then :
12144   ac_cv_lib_dl_dlopen=yes
12145 else
12146   ac_cv_lib_dl_dlopen=no
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext \
12149     conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12153 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12154 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12155   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12156 else
12157
12158     lt_cv_dlopen="dyld"
12159     lt_cv_dlopen_libs=
12160     lt_cv_dlopen_self=yes
12161
12162 fi
12163
12164     ;;
12165
12166   *)
12167     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12168 if test "x$ac_cv_func_shl_load" = x""yes; then :
12169   lt_cv_dlopen="shl_load"
12170 else
12171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12172 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12173 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12174   $as_echo_n "(cached) " >&6
12175 else
12176   ac_check_lib_save_LIBS=$LIBS
12177 LIBS="-ldld  $LIBS"
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h.  */
12180
12181 /* Override any GCC internal prototype to avoid an error.
12182    Use char because int might match the return type of a GCC
12183    builtin and then its argument prototype would still apply.  */
12184 #ifdef __cplusplus
12185 extern "C"
12186 #endif
12187 char shl_load ();
12188 int
12189 main ()
12190 {
12191 return shl_load ();
12192   ;
12193   return 0;
12194 }
12195 _ACEOF
12196 if ac_fn_c_try_link "$LINENO"; then :
12197   ac_cv_lib_dld_shl_load=yes
12198 else
12199   ac_cv_lib_dld_shl_load=no
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext \
12202     conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12204 fi
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12206 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12207 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12208   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12209 else
12210   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12211 if test "x$ac_cv_func_dlopen" = x""yes; then :
12212   lt_cv_dlopen="dlopen"
12213 else
12214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12215 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12216 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12217   $as_echo_n "(cached) " >&6
12218 else
12219   ac_check_lib_save_LIBS=$LIBS
12220 LIBS="-ldl  $LIBS"
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h.  */
12223
12224 /* Override any GCC internal prototype to avoid an error.
12225    Use char because int might match the return type of a GCC
12226    builtin and then its argument prototype would still apply.  */
12227 #ifdef __cplusplus
12228 extern "C"
12229 #endif
12230 char dlopen ();
12231 int
12232 main ()
12233 {
12234 return dlopen ();
12235   ;
12236   return 0;
12237 }
12238 _ACEOF
12239 if ac_fn_c_try_link "$LINENO"; then :
12240   ac_cv_lib_dl_dlopen=yes
12241 else
12242   ac_cv_lib_dl_dlopen=no
12243 fi
12244 rm -f core conftest.err conftest.$ac_objext \
12245     conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_check_lib_save_LIBS
12247 fi
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12249 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12250 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12251   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12252 else
12253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12254 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12255 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12256   $as_echo_n "(cached) " >&6
12257 else
12258   ac_check_lib_save_LIBS=$LIBS
12259 LIBS="-lsvld  $LIBS"
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h.  */
12262
12263 /* Override any GCC internal prototype to avoid an error.
12264    Use char because int might match the return type of a GCC
12265    builtin and then its argument prototype would still apply.  */
12266 #ifdef __cplusplus
12267 extern "C"
12268 #endif
12269 char dlopen ();
12270 int
12271 main ()
12272 {
12273 return dlopen ();
12274   ;
12275   return 0;
12276 }
12277 _ACEOF
12278 if ac_fn_c_try_link "$LINENO"; then :
12279   ac_cv_lib_svld_dlopen=yes
12280 else
12281   ac_cv_lib_svld_dlopen=no
12282 fi
12283 rm -f core conftest.err conftest.$ac_objext \
12284     conftest$ac_exeext conftest.$ac_ext
12285 LIBS=$ac_check_lib_save_LIBS
12286 fi
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12288 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12289 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12290   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12291 else
12292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12293 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12294 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12295   $as_echo_n "(cached) " >&6
12296 else
12297   ac_check_lib_save_LIBS=$LIBS
12298 LIBS="-ldld  $LIBS"
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h.  */
12301
12302 /* Override any GCC internal prototype to avoid an error.
12303    Use char because int might match the return type of a GCC
12304    builtin and then its argument prototype would still apply.  */
12305 #ifdef __cplusplus
12306 extern "C"
12307 #endif
12308 char dld_link ();
12309 int
12310 main ()
12311 {
12312 return dld_link ();
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 if ac_fn_c_try_link "$LINENO"; then :
12318   ac_cv_lib_dld_dld_link=yes
12319 else
12320   ac_cv_lib_dld_dld_link=no
12321 fi
12322 rm -f core conftest.err conftest.$ac_objext \
12323     conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12325 fi
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12327 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12328 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12329   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12330 fi
12331
12332
12333 fi
12334
12335
12336 fi
12337
12338
12339 fi
12340
12341
12342 fi
12343
12344
12345 fi
12346
12347     ;;
12348   esac
12349
12350   if test "x$lt_cv_dlopen" != xno; then
12351     enable_dlopen=yes
12352   else
12353     enable_dlopen=no
12354   fi
12355
12356   case $lt_cv_dlopen in
12357   dlopen)
12358     save_CPPFLAGS="$CPPFLAGS"
12359     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12360
12361     save_LDFLAGS="$LDFLAGS"
12362     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12363
12364     save_LIBS="$LIBS"
12365     LIBS="$lt_cv_dlopen_libs $LIBS"
12366
12367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12368 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12369 if test "${lt_cv_dlopen_self+set}" = set; then :
12370   $as_echo_n "(cached) " >&6
12371 else
12372           if test "$cross_compiling" = yes; then :
12373   lt_cv_dlopen_self=cross
12374 else
12375   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12376   lt_status=$lt_dlunknown
12377   cat > conftest.$ac_ext <<_LT_EOF
12378 #line 12378 "configure"
12379 #include "confdefs.h"
12380
12381 #if HAVE_DLFCN_H
12382 #include <dlfcn.h>
12383 #endif
12384
12385 #include <stdio.h>
12386
12387 #ifdef RTLD_GLOBAL
12388 #  define LT_DLGLOBAL           RTLD_GLOBAL
12389 #else
12390 #  ifdef DL_GLOBAL
12391 #    define LT_DLGLOBAL         DL_GLOBAL
12392 #  else
12393 #    define LT_DLGLOBAL         0
12394 #  endif
12395 #endif
12396
12397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12398    find out it does not work in some platform. */
12399 #ifndef LT_DLLAZY_OR_NOW
12400 #  ifdef RTLD_LAZY
12401 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12402 #  else
12403 #    ifdef DL_LAZY
12404 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12405 #    else
12406 #      ifdef RTLD_NOW
12407 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12408 #      else
12409 #        ifdef DL_NOW
12410 #          define LT_DLLAZY_OR_NOW      DL_NOW
12411 #        else
12412 #          define LT_DLLAZY_OR_NOW      0
12413 #        endif
12414 #      endif
12415 #    endif
12416 #  endif
12417 #endif
12418
12419 void fnord() { int i=42;}
12420 int main ()
12421 {
12422   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12423   int status = $lt_dlunknown;
12424
12425   if (self)
12426     {
12427       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12428       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12429       /* dlclose (self); */
12430     }
12431   else
12432     puts (dlerror ());
12433
12434   return status;
12435 }
12436 _LT_EOF
12437   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12438   (eval $ac_link) 2>&5
12439   ac_status=$?
12440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12441   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12442     (./conftest; exit; ) >&5 2>/dev/null
12443     lt_status=$?
12444     case x$lt_status in
12445       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12446       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12447       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12448     esac
12449   else :
12450     # compilation failed
12451     lt_cv_dlopen_self=no
12452   fi
12453 fi
12454 rm -fr conftest*
12455
12456
12457 fi
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12459 $as_echo "$lt_cv_dlopen_self" >&6; }
12460
12461     if test "x$lt_cv_dlopen_self" = xyes; then
12462       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12463       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12464 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12465 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12466   $as_echo_n "(cached) " >&6
12467 else
12468           if test "$cross_compiling" = yes; then :
12469   lt_cv_dlopen_self_static=cross
12470 else
12471   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12472   lt_status=$lt_dlunknown
12473   cat > conftest.$ac_ext <<_LT_EOF
12474 #line 12474 "configure"
12475 #include "confdefs.h"
12476
12477 #if HAVE_DLFCN_H
12478 #include <dlfcn.h>
12479 #endif
12480
12481 #include <stdio.h>
12482
12483 #ifdef RTLD_GLOBAL
12484 #  define LT_DLGLOBAL           RTLD_GLOBAL
12485 #else
12486 #  ifdef DL_GLOBAL
12487 #    define LT_DLGLOBAL         DL_GLOBAL
12488 #  else
12489 #    define LT_DLGLOBAL         0
12490 #  endif
12491 #endif
12492
12493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12494    find out it does not work in some platform. */
12495 #ifndef LT_DLLAZY_OR_NOW
12496 #  ifdef RTLD_LAZY
12497 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12498 #  else
12499 #    ifdef DL_LAZY
12500 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12501 #    else
12502 #      ifdef RTLD_NOW
12503 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12504 #      else
12505 #        ifdef DL_NOW
12506 #          define LT_DLLAZY_OR_NOW      DL_NOW
12507 #        else
12508 #          define LT_DLLAZY_OR_NOW      0
12509 #        endif
12510 #      endif
12511 #    endif
12512 #  endif
12513 #endif
12514
12515 void fnord() { int i=42;}
12516 int main ()
12517 {
12518   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12519   int status = $lt_dlunknown;
12520
12521   if (self)
12522     {
12523       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12524       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12525       /* dlclose (self); */
12526     }
12527   else
12528     puts (dlerror ());
12529
12530   return status;
12531 }
12532 _LT_EOF
12533   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12534   (eval $ac_link) 2>&5
12535   ac_status=$?
12536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12537   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12538     (./conftest; exit; ) >&5 2>/dev/null
12539     lt_status=$?
12540     case x$lt_status in
12541       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12542       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12543       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12544     esac
12545   else :
12546     # compilation failed
12547     lt_cv_dlopen_self_static=no
12548   fi
12549 fi
12550 rm -fr conftest*
12551
12552
12553 fi
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12555 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12556     fi
12557
12558     CPPFLAGS="$save_CPPFLAGS"
12559     LDFLAGS="$save_LDFLAGS"
12560     LIBS="$save_LIBS"
12561     ;;
12562   esac
12563
12564   case $lt_cv_dlopen_self in
12565   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12566   *) enable_dlopen_self=unknown ;;
12567   esac
12568
12569   case $lt_cv_dlopen_self_static in
12570   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12571   *) enable_dlopen_self_static=unknown ;;
12572   esac
12573 fi
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591 striplib=
12592 old_striplib=
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12594 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12595 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12596   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12597   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12599 $as_echo "yes" >&6; }
12600 else
12601 # FIXME - insert some real tests, host_os isn't really good enough
12602   case $host_os in
12603   darwin*)
12604     if test -n "$STRIP" ; then
12605       striplib="$STRIP -x"
12606       old_striplib="$STRIP -S"
12607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12608 $as_echo "yes" >&6; }
12609     else
12610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12612     fi
12613     ;;
12614   *)
12615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12617     ;;
12618   esac
12619 fi
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632   # Report which library types will actually be built
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12634 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12636 $as_echo "$can_build_shared" >&6; }
12637
12638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12639 $as_echo_n "checking whether to build shared libraries... " >&6; }
12640   test "$can_build_shared" = "no" && enable_shared=no
12641
12642   # On AIX, shared libraries and static libraries use the same namespace, and
12643   # are all built from PIC.
12644   case $host_os in
12645   aix3*)
12646     test "$enable_shared" = yes && enable_static=no
12647     if test -n "$RANLIB"; then
12648       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12649       postinstall_cmds='$RANLIB $lib'
12650     fi
12651     ;;
12652
12653   aix[4-9]*)
12654     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12655       test "$enable_shared" = yes && enable_static=no
12656     fi
12657     ;;
12658   esac
12659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12660 $as_echo "$enable_shared" >&6; }
12661
12662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12663 $as_echo_n "checking whether to build static libraries... " >&6; }
12664   # Make sure either enable_shared or enable_static is yes.
12665   test "$enable_shared" = yes || enable_static=yes
12666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12667 $as_echo "$enable_static" >&6; }
12668
12669
12670
12671
12672 fi
12673 ac_ext=c
12674 ac_cpp='$CPP $CPPFLAGS'
12675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12678
12679 CC="$lt_save_CC"
12680
12681
12682 ac_ext=cpp
12683 ac_cpp='$CXXCPP $CPPFLAGS'
12684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12687
12688 archive_cmds_need_lc_CXX=no
12689 allow_undefined_flag_CXX=
12690 always_export_symbols_CXX=no
12691 archive_expsym_cmds_CXX=
12692 compiler_needs_object_CXX=no
12693 export_dynamic_flag_spec_CXX=
12694 hardcode_direct_CXX=no
12695 hardcode_direct_absolute_CXX=no
12696 hardcode_libdir_flag_spec_CXX=
12697 hardcode_libdir_flag_spec_ld_CXX=
12698 hardcode_libdir_separator_CXX=
12699 hardcode_minus_L_CXX=no
12700 hardcode_shlibpath_var_CXX=unsupported
12701 hardcode_automatic_CXX=no
12702 inherit_rpath_CXX=no
12703 module_cmds_CXX=
12704 module_expsym_cmds_CXX=
12705 link_all_deplibs_CXX=unknown
12706 old_archive_cmds_CXX=$old_archive_cmds
12707 no_undefined_flag_CXX=
12708 whole_archive_flag_spec_CXX=
12709 enable_shared_with_static_runtimes_CXX=no
12710
12711 # Source file extension for C++ test sources.
12712 ac_ext=cpp
12713
12714 # Object file extension for compiled C++ test sources.
12715 objext=o
12716 objext_CXX=$objext
12717
12718 # No sense in running all these tests if we already determined that
12719 # the CXX compiler isn't working.  Some variables (like enable_shared)
12720 # are currently assumed to apply to all compilers on this platform,
12721 # and will be corrupted by setting them based on a non-working compiler.
12722 if test "$_lt_caught_CXX_error" != yes; then
12723   # Code to be used in simple compile tests
12724   lt_simple_compile_test_code="int some_variable = 0;"
12725
12726   # Code to be used in simple link tests
12727   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12728
12729   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12730
12731
12732
12733
12734
12735
12736 # If no C compiler was specified, use CC.
12737 LTCC=${LTCC-"$CC"}
12738
12739 # If no C compiler flags were specified, use CFLAGS.
12740 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12741
12742 # Allow CC to be a program name with arguments.
12743 compiler=$CC
12744
12745
12746   # save warnings/boilerplate of simple test code
12747   ac_outfile=conftest.$ac_objext
12748 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12749 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12750 _lt_compiler_boilerplate=`cat conftest.err`
12751 $RM conftest*
12752
12753   ac_outfile=conftest.$ac_objext
12754 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12755 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12756 _lt_linker_boilerplate=`cat conftest.err`
12757 $RM -r conftest*
12758
12759
12760   # Allow CC to be a program name with arguments.
12761   lt_save_CC=$CC
12762   lt_save_LD=$LD
12763   lt_save_GCC=$GCC
12764   GCC=$GXX
12765   lt_save_with_gnu_ld=$with_gnu_ld
12766   lt_save_path_LD=$lt_cv_path_LD
12767   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12768     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12769   else
12770     $as_unset lt_cv_prog_gnu_ld
12771   fi
12772   if test -n "${lt_cv_path_LDCXX+set}"; then
12773     lt_cv_path_LD=$lt_cv_path_LDCXX
12774   else
12775     $as_unset lt_cv_path_LD
12776   fi
12777   test -z "${LDCXX+set}" || LD=$LDCXX
12778   CC=${CXX-"c++"}
12779   compiler=$CC
12780   compiler_CXX=$CC
12781   for cc_temp in $compiler""; do
12782   case $cc_temp in
12783     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12784     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12785     \-*) ;;
12786     *) break;;
12787   esac
12788 done
12789 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12790
12791
12792   if test -n "$compiler"; then
12793     # We don't want -fno-exception when compiling C++ code, so set the
12794     # no_builtin_flag separately
12795     if test "$GXX" = yes; then
12796       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12797     else
12798       lt_prog_compiler_no_builtin_flag_CXX=
12799     fi
12800
12801     if test "$GXX" = yes; then
12802       # Set up default GNU C++ configuration
12803
12804
12805
12806 # Check whether --with-gnu-ld was given.
12807 if test "${with_gnu_ld+set}" = set; then :
12808   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12809 else
12810   with_gnu_ld=no
12811 fi
12812
12813 ac_prog=ld
12814 if test "$GCC" = yes; then
12815   # Check if gcc -print-prog-name=ld gives a path.
12816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12817 $as_echo_n "checking for ld used by $CC... " >&6; }
12818   case $host in
12819   *-*-mingw*)
12820     # gcc leaves a trailing carriage return which upsets mingw
12821     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12822   *)
12823     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12824   esac
12825   case $ac_prog in
12826     # Accept absolute paths.
12827     [\\/]* | ?:[\\/]*)
12828       re_direlt='/[^/][^/]*/\.\./'
12829       # Canonicalize the pathname of ld
12830       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12831       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12832         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12833       done
12834       test -z "$LD" && LD="$ac_prog"
12835       ;;
12836   "")
12837     # If it fails, then pretend we aren't using GCC.
12838     ac_prog=ld
12839     ;;
12840   *)
12841     # If it is relative, then search for the first ld in PATH.
12842     with_gnu_ld=unknown
12843     ;;
12844   esac
12845 elif test "$with_gnu_ld" = yes; then
12846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12847 $as_echo_n "checking for GNU ld... " >&6; }
12848 else
12849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12850 $as_echo_n "checking for non-GNU ld... " >&6; }
12851 fi
12852 if test "${lt_cv_path_LD+set}" = set; then :
12853   $as_echo_n "(cached) " >&6
12854 else
12855   if test -z "$LD"; then
12856   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12857   for ac_dir in $PATH; do
12858     IFS="$lt_save_ifs"
12859     test -z "$ac_dir" && ac_dir=.
12860     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12861       lt_cv_path_LD="$ac_dir/$ac_prog"
12862       # Check to see if the program is GNU ld.  I'd rather use --version,
12863       # but apparently some variants of GNU ld only accept -v.
12864       # Break only if it was the GNU/non-GNU ld that we prefer.
12865       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12866       *GNU* | *'with BFD'*)
12867         test "$with_gnu_ld" != no && break
12868         ;;
12869       *)
12870         test "$with_gnu_ld" != yes && break
12871         ;;
12872       esac
12873     fi
12874   done
12875   IFS="$lt_save_ifs"
12876 else
12877   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12878 fi
12879 fi
12880
12881 LD="$lt_cv_path_LD"
12882 if test -n "$LD"; then
12883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12884 $as_echo "$LD" >&6; }
12885 else
12886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 $as_echo "no" >&6; }
12888 fi
12889 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12891 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12892 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12893   $as_echo_n "(cached) " >&6
12894 else
12895   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12896 case `$LD -v 2>&1 </dev/null` in
12897 *GNU* | *'with BFD'*)
12898   lt_cv_prog_gnu_ld=yes
12899   ;;
12900 *)
12901   lt_cv_prog_gnu_ld=no
12902   ;;
12903 esac
12904 fi
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12906 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12907 with_gnu_ld=$lt_cv_prog_gnu_ld
12908
12909
12910
12911
12912
12913
12914
12915       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12916       # archiving commands below assume that GNU ld is being used.
12917       if test "$with_gnu_ld" = yes; then
12918         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919         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'
12920
12921         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12922         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12923
12924         # If archive_cmds runs LD, not CC, wlarc should be empty
12925         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12926         #     investigate it a little bit more. (MM)
12927         wlarc='${wl}'
12928
12929         # ancient GNU ld didn't support --whole-archive et. al.
12930         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12931           $GREP 'no-whole-archive' > /dev/null; then
12932           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12933         else
12934           whole_archive_flag_spec_CXX=
12935         fi
12936       else
12937         with_gnu_ld=no
12938         wlarc=
12939
12940         # A generic and very simple default shared library creation
12941         # command for GNU C++ for the case where it uses the native
12942         # linker, instead of GNU ld.  If possible, this setting should
12943         # overridden to take advantage of the native linker features on
12944         # the platform it is being used on.
12945         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12946       fi
12947
12948       # Commands to make compiler produce verbose output that lists
12949       # what "hidden" libraries, object files and flags are used when
12950       # linking a shared library.
12951       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12952
12953     else
12954       GXX=no
12955       with_gnu_ld=no
12956       wlarc=
12957     fi
12958
12959     # PORTME: fill in a description of your system's C++ link characteristics
12960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12961 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12962     ld_shlibs_CXX=yes
12963     case $host_os in
12964       aix3*)
12965         # FIXME: insert proper C++ library support
12966         ld_shlibs_CXX=no
12967         ;;
12968       aix[4-9]*)
12969         if test "$host_cpu" = ia64; then
12970           # On IA64, the linker does run time linking by default, so we don't
12971           # have to do anything special.
12972           aix_use_runtimelinking=no
12973           exp_sym_flag='-Bexport'
12974           no_entry_flag=""
12975         else
12976           aix_use_runtimelinking=no
12977
12978           # Test if we are trying to use run time linking or normal
12979           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12980           # need to do runtime linking.
12981           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12982             for ld_flag in $LDFLAGS; do
12983               case $ld_flag in
12984               *-brtl*)
12985                 aix_use_runtimelinking=yes
12986                 break
12987                 ;;
12988               esac
12989             done
12990             ;;
12991           esac
12992
12993           exp_sym_flag='-bexport'
12994           no_entry_flag='-bnoentry'
12995         fi
12996
12997         # When large executables or shared objects are built, AIX ld can
12998         # have problems creating the table of contents.  If linking a library
12999         # or program results in "error TOC overflow" add -mminimal-toc to
13000         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13001         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13002
13003         archive_cmds_CXX=''
13004         hardcode_direct_CXX=yes
13005         hardcode_direct_absolute_CXX=yes
13006         hardcode_libdir_separator_CXX=':'
13007         link_all_deplibs_CXX=yes
13008         file_list_spec_CXX='${wl}-f,'
13009
13010         if test "$GXX" = yes; then
13011           case $host_os in aix4.[012]|aix4.[012].*)
13012           # We only want to do this on AIX 4.2 and lower, the check
13013           # below for broken collect2 doesn't work under 4.3+
13014           collect2name=`${CC} -print-prog-name=collect2`
13015           if test -f "$collect2name" &&
13016              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13017           then
13018             # We have reworked collect2
13019             :
13020           else
13021             # We have old collect2
13022             hardcode_direct_CXX=unsupported
13023             # It fails to find uninstalled libraries when the uninstalled
13024             # path is not listed in the libpath.  Setting hardcode_minus_L
13025             # to unsupported forces relinking
13026             hardcode_minus_L_CXX=yes
13027             hardcode_libdir_flag_spec_CXX='-L$libdir'
13028             hardcode_libdir_separator_CXX=
13029           fi
13030           esac
13031           shared_flag='-shared'
13032           if test "$aix_use_runtimelinking" = yes; then
13033             shared_flag="$shared_flag "'${wl}-G'
13034           fi
13035         else
13036           # not using gcc
13037           if test "$host_cpu" = ia64; then
13038           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13039           # chokes on -Wl,-G. The following line is correct:
13040           shared_flag='-G'
13041           else
13042             if test "$aix_use_runtimelinking" = yes; then
13043               shared_flag='${wl}-G'
13044             else
13045               shared_flag='${wl}-bM:SRE'
13046             fi
13047           fi
13048         fi
13049
13050         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13051         # It seems that -bexpall does not export symbols beginning with
13052         # underscore (_), so it is better to generate a list of symbols to
13053         # export.
13054         always_export_symbols_CXX=yes
13055         if test "$aix_use_runtimelinking" = yes; then
13056           # Warning - without using the other runtime loading flags (-brtl),
13057           # -berok will link without error, but may produce a broken library.
13058           allow_undefined_flag_CXX='-berok'
13059           # Determine the default libpath from the value encoded in an empty
13060           # executable.
13061           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h.  */
13063
13064 int
13065 main ()
13066 {
13067
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 if ac_fn_cxx_try_link "$LINENO"; then :
13073
13074 lt_aix_libpath_sed='
13075     /Import File Strings/,/^$/ {
13076         /^0/ {
13077             s/^0  *\(.*\)$/\1/
13078             p
13079         }
13080     }'
13081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082 # Check for a 64-bit object if we didn't find anything.
13083 if test -z "$aix_libpath"; then
13084   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13085 fi
13086 fi
13087 rm -f core conftest.err conftest.$ac_objext \
13088     conftest$ac_exeext conftest.$ac_ext
13089 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13090
13091           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13092
13093           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"
13094         else
13095           if test "$host_cpu" = ia64; then
13096             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13097             allow_undefined_flag_CXX="-z nodefs"
13098             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"
13099           else
13100             # Determine the default libpath from the value encoded in an
13101             # empty executable.
13102             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h.  */
13104
13105 int
13106 main ()
13107 {
13108
13109   ;
13110   return 0;
13111 }
13112 _ACEOF
13113 if ac_fn_cxx_try_link "$LINENO"; then :
13114
13115 lt_aix_libpath_sed='
13116     /Import File Strings/,/^$/ {
13117         /^0/ {
13118             s/^0  *\(.*\)$/\1/
13119             p
13120         }
13121     }'
13122 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13123 # Check for a 64-bit object if we didn't find anything.
13124 if test -z "$aix_libpath"; then
13125   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13126 fi
13127 fi
13128 rm -f core conftest.err conftest.$ac_objext \
13129     conftest$ac_exeext conftest.$ac_ext
13130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13131
13132             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13133             # Warning - without using the other run time loading flags,
13134             # -berok will link without error, but may produce a broken library.
13135             no_undefined_flag_CXX=' ${wl}-bernotok'
13136             allow_undefined_flag_CXX=' ${wl}-berok'
13137             # Exported symbols can be pulled into shared objects from archives
13138             whole_archive_flag_spec_CXX='$convenience'
13139             archive_cmds_need_lc_CXX=yes
13140             # This is similar to how AIX traditionally builds its shared
13141             # libraries.
13142             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'
13143           fi
13144         fi
13145         ;;
13146
13147       beos*)
13148         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13149           allow_undefined_flag_CXX=unsupported
13150           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13151           # support --undefined.  This deserves some investigation.  FIXME
13152           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13153         else
13154           ld_shlibs_CXX=no
13155         fi
13156         ;;
13157
13158       chorus*)
13159         case $cc_basename in
13160           *)
13161           # FIXME: insert proper C++ library support
13162           ld_shlibs_CXX=no
13163           ;;
13164         esac
13165         ;;
13166
13167       cygwin* | mingw* | pw32* | cegcc*)
13168         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13169         # as there is no search path for DLLs.
13170         hardcode_libdir_flag_spec_CXX='-L$libdir'
13171         allow_undefined_flag_CXX=unsupported
13172         always_export_symbols_CXX=no
13173         enable_shared_with_static_runtimes_CXX=yes
13174
13175         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13176           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'
13177           # If the export-symbols file already is a .def file (1st line
13178           # is EXPORTS), use it as is; otherwise, prepend...
13179           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13180             cp $export_symbols $output_objdir/$soname.def;
13181           else
13182             echo EXPORTS > $output_objdir/$soname.def;
13183             cat $export_symbols >> $output_objdir/$soname.def;
13184           fi~
13185           $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'
13186         else
13187           ld_shlibs_CXX=no
13188         fi
13189         ;;
13190       darwin* | rhapsody*)
13191
13192
13193   archive_cmds_need_lc_CXX=no
13194   hardcode_direct_CXX=no
13195   hardcode_automatic_CXX=yes
13196   hardcode_shlibpath_var_CXX=unsupported
13197   whole_archive_flag_spec_CXX=''
13198   link_all_deplibs_CXX=yes
13199   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13200   case $cc_basename in
13201      ifort*) _lt_dar_can_shared=yes ;;
13202      *) _lt_dar_can_shared=$GCC ;;
13203   esac
13204   if test "$_lt_dar_can_shared" = "yes"; then
13205     output_verbose_link_cmd=echo
13206     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}"
13207     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13208     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}"
13209     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}"
13210        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13211       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}"
13212       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}"
13213     fi
13214
13215   else
13216   ld_shlibs_CXX=no
13217   fi
13218
13219         ;;
13220
13221       dgux*)
13222         case $cc_basename in
13223           ec++*)
13224             # FIXME: insert proper C++ library support
13225             ld_shlibs_CXX=no
13226             ;;
13227           ghcx*)
13228             # Green Hills C++ Compiler
13229             # FIXME: insert proper C++ library support
13230             ld_shlibs_CXX=no
13231             ;;
13232           *)
13233             # FIXME: insert proper C++ library support
13234             ld_shlibs_CXX=no
13235             ;;
13236         esac
13237         ;;
13238
13239       freebsd[12]*)
13240         # C++ shared libraries reported to be fairly broken before
13241         # switch to ELF
13242         ld_shlibs_CXX=no
13243         ;;
13244
13245       freebsd-elf*)
13246         archive_cmds_need_lc_CXX=no
13247         ;;
13248
13249       freebsd* | dragonfly*)
13250         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13251         # conventions
13252         ld_shlibs_CXX=yes
13253         ;;
13254
13255       gnu*)
13256         ;;
13257
13258       hpux9*)
13259         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13260         hardcode_libdir_separator_CXX=:
13261         export_dynamic_flag_spec_CXX='${wl}-E'
13262         hardcode_direct_CXX=yes
13263         hardcode_minus_L_CXX=yes # Not in the search PATH,
13264                                              # but as the default
13265                                              # location of the library.
13266
13267         case $cc_basename in
13268           CC*)
13269             # FIXME: insert proper C++ library support
13270             ld_shlibs_CXX=no
13271             ;;
13272           aCC*)
13273             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'
13274             # Commands to make compiler produce verbose output that lists
13275             # what "hidden" libraries, object files and flags are used when
13276             # linking a shared library.
13277             #
13278             # There doesn't appear to be a way to prevent this compiler from
13279             # explicitly linking system object files so we need to strip them
13280             # from the output so that they don't get included in the library
13281             # dependencies.
13282             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'
13283             ;;
13284           *)
13285             if test "$GXX" = yes; then
13286               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'
13287             else
13288               # FIXME: insert proper C++ library support
13289               ld_shlibs_CXX=no
13290             fi
13291             ;;
13292         esac
13293         ;;
13294
13295       hpux10*|hpux11*)
13296         if test $with_gnu_ld = no; then
13297           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13298           hardcode_libdir_separator_CXX=:
13299
13300           case $host_cpu in
13301             hppa*64*|ia64*)
13302               ;;
13303             *)
13304               export_dynamic_flag_spec_CXX='${wl}-E'
13305               ;;
13306           esac
13307         fi
13308         case $host_cpu in
13309           hppa*64*|ia64*)
13310             hardcode_direct_CXX=no
13311             hardcode_shlibpath_var_CXX=no
13312             ;;
13313           *)
13314             hardcode_direct_CXX=yes
13315             hardcode_direct_absolute_CXX=yes
13316             hardcode_minus_L_CXX=yes # Not in the search PATH,
13317                                                  # but as the default
13318                                                  # location of the library.
13319             ;;
13320         esac
13321
13322         case $cc_basename in
13323           CC*)
13324             # FIXME: insert proper C++ library support
13325             ld_shlibs_CXX=no
13326             ;;
13327           aCC*)
13328             case $host_cpu in
13329               hppa*64*)
13330                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13331                 ;;
13332               ia64*)
13333                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13334                 ;;
13335               *)
13336                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13337                 ;;
13338             esac
13339             # Commands to make compiler produce verbose output that lists
13340             # what "hidden" libraries, object files and flags are used when
13341             # linking a shared library.
13342             #
13343             # There doesn't appear to be a way to prevent this compiler from
13344             # explicitly linking system object files so we need to strip them
13345             # from the output so that they don't get included in the library
13346             # dependencies.
13347             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'
13348             ;;
13349           *)
13350             if test "$GXX" = yes; then
13351               if test $with_gnu_ld = no; then
13352                 case $host_cpu in
13353                   hppa*64*)
13354                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13355                     ;;
13356                   ia64*)
13357                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13358                     ;;
13359                   *)
13360                     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'
13361                     ;;
13362                 esac
13363               fi
13364             else
13365               # FIXME: insert proper C++ library support
13366               ld_shlibs_CXX=no
13367             fi
13368             ;;
13369         esac
13370         ;;
13371
13372       interix[3-9]*)
13373         hardcode_direct_CXX=no
13374         hardcode_shlibpath_var_CXX=no
13375         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13376         export_dynamic_flag_spec_CXX='${wl}-E'
13377         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13378         # Instead, shared libraries are loaded at an image base (0x10000000 by
13379         # default) and relocated if they conflict, which is a slow very memory
13380         # consuming and fragmenting process.  To avoid this, we pick a random,
13381         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13382         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13383         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'
13384         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'
13385         ;;
13386       irix5* | irix6*)
13387         case $cc_basename in
13388           CC*)
13389             # SGI C++
13390             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'
13391
13392             # Archives containing C++ object files must be created using
13393             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13394             # necessary to make sure instantiated templates are included
13395             # in the archive.
13396             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13397             ;;
13398           *)
13399             if test "$GXX" = yes; then
13400               if test "$with_gnu_ld" = no; then
13401                 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'
13402               else
13403                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13404               fi
13405             fi
13406             link_all_deplibs_CXX=yes
13407             ;;
13408         esac
13409         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13410         hardcode_libdir_separator_CXX=:
13411         inherit_rpath_CXX=yes
13412         ;;
13413
13414       linux* | k*bsd*-gnu)
13415         case $cc_basename in
13416           KCC*)
13417             # Kuck and Associates, Inc. (KAI) C++ Compiler
13418
13419             # KCC will only create a shared library if the output file
13420             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13421             # to its proper name (with version) after linking.
13422             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'
13423             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'
13424             # Commands to make compiler produce verbose output that lists
13425             # what "hidden" libraries, object files and flags are used when
13426             # linking a shared library.
13427             #
13428             # There doesn't appear to be a way to prevent this compiler from
13429             # explicitly linking system object files so we need to strip them
13430             # from the output so that they don't get included in the library
13431             # dependencies.
13432             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'
13433
13434             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13435             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13436
13437             # Archives containing C++ object files must be created using
13438             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13439             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13440             ;;
13441           icpc* | ecpc* )
13442             # Intel C++
13443             with_gnu_ld=yes
13444             # version 8.0 and above of icpc choke on multiply defined symbols
13445             # if we add $predep_objects and $postdep_objects, however 7.1 and
13446             # earlier do not add the objects themselves.
13447             case `$CC -V 2>&1` in
13448               *"Version 7."*)
13449                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13450                 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'
13451                 ;;
13452               *)  # Version 8.0 or newer
13453                 tmp_idyn=
13454                 case $host_cpu in
13455                   ia64*) tmp_idyn=' -i_dynamic';;
13456                 esac
13457                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13458                 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'
13459                 ;;
13460             esac
13461             archive_cmds_need_lc_CXX=no
13462             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13463             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13464             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13465             ;;
13466           pgCC* | pgcpp*)
13467             # Portland Group C++ compiler
13468             case `$CC -V` in
13469             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13470               prelink_cmds_CXX='tpldir=Template.dir~
13471                 rm -rf $tpldir~
13472                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13473                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13474               old_archive_cmds_CXX='tpldir=Template.dir~
13475                 rm -rf $tpldir~
13476                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13477                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13478                 $RANLIB $oldlib'
13479               archive_cmds_CXX='tpldir=Template.dir~
13480                 rm -rf $tpldir~
13481                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13482                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13483               archive_expsym_cmds_CXX='tpldir=Template.dir~
13484                 rm -rf $tpldir~
13485                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13486                 $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'
13487               ;;
13488             *) # Version 6 will use weak symbols
13489               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13490               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'
13491               ;;
13492             esac
13493
13494             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13495             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13496             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'
13497             ;;
13498           cxx*)
13499             # Compaq C++
13500             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13501             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'
13502
13503             runpath_var=LD_RUN_PATH
13504             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13505             hardcode_libdir_separator_CXX=:
13506
13507             # Commands to make compiler produce verbose output that lists
13508             # what "hidden" libraries, object files and flags are used when
13509             # linking a shared library.
13510             #
13511             # There doesn't appear to be a way to prevent this compiler from
13512             # explicitly linking system object files so we need to strip them
13513             # from the output so that they don't get included in the library
13514             # dependencies.
13515             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'
13516             ;;
13517           xl*)
13518             # IBM XL 8.0 on PPC, with GNU ld
13519             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13520             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13521             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13522             if test "x$supports_anon_versioning" = xyes; then
13523               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13524                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13525                 echo "local: *; };" >> $output_objdir/$libname.ver~
13526                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13527             fi
13528             ;;
13529           *)
13530             case `$CC -V 2>&1 | sed 5q` in
13531             *Sun\ C*)
13532               # Sun C++ 5.9
13533               no_undefined_flag_CXX=' -zdefs'
13534               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13535               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'
13536               hardcode_libdir_flag_spec_CXX='-R$libdir'
13537               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'
13538               compiler_needs_object_CXX=yes
13539
13540               # Not sure whether something based on
13541               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13542               # would be better.
13543               output_verbose_link_cmd='echo'
13544
13545               # Archives containing C++ object files must be created using
13546               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13547               # necessary to make sure instantiated templates are included
13548               # in the archive.
13549               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13550               ;;
13551             esac
13552             ;;
13553         esac
13554         ;;
13555
13556       lynxos*)
13557         # FIXME: insert proper C++ library support
13558         ld_shlibs_CXX=no
13559         ;;
13560
13561       m88k*)
13562         # FIXME: insert proper C++ library support
13563         ld_shlibs_CXX=no
13564         ;;
13565
13566       mvs*)
13567         case $cc_basename in
13568           cxx*)
13569             # FIXME: insert proper C++ library support
13570             ld_shlibs_CXX=no
13571             ;;
13572           *)
13573             # FIXME: insert proper C++ library support
13574             ld_shlibs_CXX=no
13575             ;;
13576         esac
13577         ;;
13578
13579       netbsd*)
13580         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13581           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13582           wlarc=
13583           hardcode_libdir_flag_spec_CXX='-R$libdir'
13584           hardcode_direct_CXX=yes
13585           hardcode_shlibpath_var_CXX=no
13586         fi
13587         # Workaround some broken pre-1.5 toolchains
13588         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13589         ;;
13590
13591       *nto* | *qnx*)
13592         ld_shlibs_CXX=yes
13593         ;;
13594
13595       openbsd2*)
13596         # C++ shared libraries are fairly broken
13597         ld_shlibs_CXX=no
13598         ;;
13599
13600       openbsd*)
13601         if test -f /usr/libexec/ld.so; then
13602           hardcode_direct_CXX=yes
13603           hardcode_shlibpath_var_CXX=no
13604           hardcode_direct_absolute_CXX=yes
13605           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13606           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13607           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13608             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13609             export_dynamic_flag_spec_CXX='${wl}-E'
13610             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13611           fi
13612           output_verbose_link_cmd=echo
13613         else
13614           ld_shlibs_CXX=no
13615         fi
13616         ;;
13617
13618       osf3* | osf4* | osf5*)
13619         case $cc_basename in
13620           KCC*)
13621             # Kuck and Associates, Inc. (KAI) C++ Compiler
13622
13623             # KCC will only create a shared library if the output file
13624             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13625             # to its proper name (with version) after linking.
13626             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'
13627
13628             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13629             hardcode_libdir_separator_CXX=:
13630
13631             # Archives containing C++ object files must be created using
13632             # the KAI C++ compiler.
13633             case $host in
13634               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13635               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13636             esac
13637             ;;
13638           RCC*)
13639             # Rational C++ 2.4.1
13640             # FIXME: insert proper C++ library support
13641             ld_shlibs_CXX=no
13642             ;;
13643           cxx*)
13644             case $host in
13645               osf3*)
13646                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13647                 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'
13648                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13649                 ;;
13650               *)
13651                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13652                 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'
13653                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13654                   echo "-hidden">> $lib.exp~
13655                   $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~
13656                   $RM $lib.exp'
13657                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13658                 ;;
13659             esac
13660
13661             hardcode_libdir_separator_CXX=:
13662
13663             # Commands to make compiler produce verbose output that lists
13664             # what "hidden" libraries, object files and flags are used when
13665             # linking a shared library.
13666             #
13667             # There doesn't appear to be a way to prevent this compiler from
13668             # explicitly linking system object files so we need to strip them
13669             # from the output so that they don't get included in the library
13670             # dependencies.
13671             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'
13672             ;;
13673           *)
13674             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13675               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13676               case $host in
13677                 osf3*)
13678                   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'
13679                   ;;
13680                 *)
13681                   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'
13682                   ;;
13683               esac
13684
13685               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13686               hardcode_libdir_separator_CXX=:
13687
13688               # Commands to make compiler produce verbose output that lists
13689               # what "hidden" libraries, object files and flags are used when
13690               # linking a shared library.
13691               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13692
13693             else
13694               # FIXME: insert proper C++ library support
13695               ld_shlibs_CXX=no
13696             fi
13697             ;;
13698         esac
13699         ;;
13700
13701       psos*)
13702         # FIXME: insert proper C++ library support
13703         ld_shlibs_CXX=no
13704         ;;
13705
13706       sunos4*)
13707         case $cc_basename in
13708           CC*)
13709             # Sun C++ 4.x
13710             # FIXME: insert proper C++ library support
13711             ld_shlibs_CXX=no
13712             ;;
13713           lcc*)
13714             # Lucid
13715             # FIXME: insert proper C++ library support
13716             ld_shlibs_CXX=no
13717             ;;
13718           *)
13719             # FIXME: insert proper C++ library support
13720             ld_shlibs_CXX=no
13721             ;;
13722         esac
13723         ;;
13724
13725       solaris*)
13726         case $cc_basename in
13727           CC*)
13728             # Sun C++ 4.2, 5.x and Centerline C++
13729             archive_cmds_need_lc_CXX=yes
13730             no_undefined_flag_CXX=' -zdefs'
13731             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13732             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13733               $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'
13734
13735             hardcode_libdir_flag_spec_CXX='-R$libdir'
13736             hardcode_shlibpath_var_CXX=no
13737             case $host_os in
13738               solaris2.[0-5] | solaris2.[0-5].*) ;;
13739               *)
13740                 # The compiler driver will combine and reorder linker options,
13741                 # but understands `-z linker_flag'.
13742                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13743                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13744                 ;;
13745             esac
13746             link_all_deplibs_CXX=yes
13747
13748             output_verbose_link_cmd='echo'
13749
13750             # Archives containing C++ object files must be created using
13751             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13752             # necessary to make sure instantiated templates are included
13753             # in the archive.
13754             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13755             ;;
13756           gcx*)
13757             # Green Hills C++ Compiler
13758             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13759
13760             # The C++ compiler must be used to create the archive.
13761             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13762             ;;
13763           *)
13764             # GNU C++ compiler with Solaris linker
13765             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13766               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13767               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13768                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13769                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13770                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13771
13772                 # Commands to make compiler produce verbose output that lists
13773                 # what "hidden" libraries, object files and flags are used when
13774                 # linking a shared library.
13775                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13776               else
13777                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13778                 # platform.
13779                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13780                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13781                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13782
13783                 # Commands to make compiler produce verbose output that lists
13784                 # what "hidden" libraries, object files and flags are used when
13785                 # linking a shared library.
13786                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13787               fi
13788
13789               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13790               case $host_os in
13791                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13792                 *)
13793                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13794                   ;;
13795               esac
13796             fi
13797             ;;
13798         esac
13799         ;;
13800
13801     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13802       no_undefined_flag_CXX='${wl}-z,text'
13803       archive_cmds_need_lc_CXX=no
13804       hardcode_shlibpath_var_CXX=no
13805       runpath_var='LD_RUN_PATH'
13806
13807       case $cc_basename in
13808         CC*)
13809           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13810           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13811           ;;
13812         *)
13813           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13814           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13815           ;;
13816       esac
13817       ;;
13818
13819       sysv5* | sco3.2v5* | sco5v6*)
13820         # Note: We can NOT use -z defs as we might desire, because we do not
13821         # link with -lc, and that would cause any symbols used from libc to
13822         # always be unresolved, which means just about no library would
13823         # ever link correctly.  If we're not using GNU ld we use -z text
13824         # though, which does catch some bad symbols but isn't as heavy-handed
13825         # as -z defs.
13826         no_undefined_flag_CXX='${wl}-z,text'
13827         allow_undefined_flag_CXX='${wl}-z,nodefs'
13828         archive_cmds_need_lc_CXX=no
13829         hardcode_shlibpath_var_CXX=no
13830         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13831         hardcode_libdir_separator_CXX=':'
13832         link_all_deplibs_CXX=yes
13833         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13834         runpath_var='LD_RUN_PATH'
13835
13836         case $cc_basename in
13837           CC*)
13838             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13839             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840             ;;
13841           *)
13842             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13844             ;;
13845         esac
13846       ;;
13847
13848       tandem*)
13849         case $cc_basename in
13850           NCC*)
13851             # NonStop-UX NCC 3.20
13852             # FIXME: insert proper C++ library support
13853             ld_shlibs_CXX=no
13854             ;;
13855           *)
13856             # FIXME: insert proper C++ library support
13857             ld_shlibs_CXX=no
13858             ;;
13859         esac
13860         ;;
13861
13862       vxworks*)
13863         # FIXME: insert proper C++ library support
13864         ld_shlibs_CXX=no
13865         ;;
13866
13867       *)
13868         # FIXME: insert proper C++ library support
13869         ld_shlibs_CXX=no
13870         ;;
13871     esac
13872
13873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13874 $as_echo "$ld_shlibs_CXX" >&6; }
13875     test "$ld_shlibs_CXX" = no && can_build_shared=no
13876
13877     GCC_CXX="$GXX"
13878     LD_CXX="$LD"
13879
13880     ## CAVEAT EMPTOR:
13881     ## There is no encapsulation within the following macros, do not change
13882     ## the running order or otherwise move them around unless you know exactly
13883     ## what you are doing...
13884     # Dependencies to place before and after the object being linked:
13885 predep_objects_CXX=
13886 postdep_objects_CXX=
13887 predeps_CXX=
13888 postdeps_CXX=
13889 compiler_lib_search_path_CXX=
13890
13891 cat > conftest.$ac_ext <<_LT_EOF
13892 class Foo
13893 {
13894 public:
13895   Foo (void) { a = 0; }
13896 private:
13897   int a;
13898 };
13899 _LT_EOF
13900
13901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13902   (eval $ac_compile) 2>&5
13903   ac_status=$?
13904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13905   test $ac_status = 0; }; then
13906   # Parse the compiler output and extract the necessary
13907   # objects, libraries and library flags.
13908
13909   # Sentinel used to keep track of whether or not we are before
13910   # the conftest object file.
13911   pre_test_object_deps_done=no
13912
13913   for p in `eval "$output_verbose_link_cmd"`; do
13914     case $p in
13915
13916     -L* | -R* | -l*)
13917        # Some compilers place space between "-{L,R}" and the path.
13918        # Remove the space.
13919        if test $p = "-L" ||
13920           test $p = "-R"; then
13921          prev=$p
13922          continue
13923        else
13924          prev=
13925        fi
13926
13927        if test "$pre_test_object_deps_done" = no; then
13928          case $p in
13929          -L* | -R*)
13930            # Internal compiler library paths should come after those
13931            # provided the user.  The postdeps already come after the
13932            # user supplied libs so there is no need to process them.
13933            if test -z "$compiler_lib_search_path_CXX"; then
13934              compiler_lib_search_path_CXX="${prev}${p}"
13935            else
13936              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13937            fi
13938            ;;
13939          # The "-l" case would never come before the object being
13940          # linked, so don't bother handling this case.
13941          esac
13942        else
13943          if test -z "$postdeps_CXX"; then
13944            postdeps_CXX="${prev}${p}"
13945          else
13946            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13947          fi
13948        fi
13949        ;;
13950
13951     *.$objext)
13952        # This assumes that the test object file only shows up
13953        # once in the compiler output.
13954        if test "$p" = "conftest.$objext"; then
13955          pre_test_object_deps_done=yes
13956          continue
13957        fi
13958
13959        if test "$pre_test_object_deps_done" = no; then
13960          if test -z "$predep_objects_CXX"; then
13961            predep_objects_CXX="$p"
13962          else
13963            predep_objects_CXX="$predep_objects_CXX $p"
13964          fi
13965        else
13966          if test -z "$postdep_objects_CXX"; then
13967            postdep_objects_CXX="$p"
13968          else
13969            postdep_objects_CXX="$postdep_objects_CXX $p"
13970          fi
13971        fi
13972        ;;
13973
13974     *) ;; # Ignore the rest.
13975
13976     esac
13977   done
13978
13979   # Clean up.
13980   rm -f a.out a.exe
13981 else
13982   echo "libtool.m4: error: problem compiling CXX test program"
13983 fi
13984
13985 $RM -f confest.$objext
13986
13987 # PORTME: override above test on systems where it is broken
13988 case $host_os in
13989 interix[3-9]*)
13990   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13991   # hack all around it, let's just trust "g++" to DTRT.
13992   predep_objects_CXX=
13993   postdep_objects_CXX=
13994   postdeps_CXX=
13995   ;;
13996
13997 linux*)
13998   case `$CC -V 2>&1 | sed 5q` in
13999   *Sun\ C*)
14000     # Sun C++ 5.9
14001
14002     # The more standards-conforming stlport4 library is
14003     # incompatible with the Cstd library. Avoid specifying
14004     # it if it's in CXXFLAGS. Ignore libCrun as
14005     # -library=stlport4 depends on it.
14006     case " $CXX $CXXFLAGS " in
14007     *" -library=stlport4 "*)
14008       solaris_use_stlport4=yes
14009       ;;
14010     esac
14011
14012     if test "$solaris_use_stlport4" != yes; then
14013       postdeps_CXX='-library=Cstd -library=Crun'
14014     fi
14015     ;;
14016   esac
14017   ;;
14018
14019 solaris*)
14020   case $cc_basename in
14021   CC*)
14022     # The more standards-conforming stlport4 library is
14023     # incompatible with the Cstd library. Avoid specifying
14024     # it if it's in CXXFLAGS. Ignore libCrun as
14025     # -library=stlport4 depends on it.
14026     case " $CXX $CXXFLAGS " in
14027     *" -library=stlport4 "*)
14028       solaris_use_stlport4=yes
14029       ;;
14030     esac
14031
14032     # Adding this requires a known-good setup of shared libraries for
14033     # Sun compiler versions before 5.6, else PIC objects from an old
14034     # archive will be linked into the output, leading to subtle bugs.
14035     if test "$solaris_use_stlport4" != yes; then
14036       postdeps_CXX='-library=Cstd -library=Crun'
14037     fi
14038     ;;
14039   esac
14040   ;;
14041 esac
14042
14043
14044 case " $postdeps_CXX " in
14045 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14046 esac
14047  compiler_lib_search_dirs_CXX=
14048 if test -n "${compiler_lib_search_path_CXX}"; then
14049  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14050 fi
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082     lt_prog_compiler_wl_CXX=
14083 lt_prog_compiler_pic_CXX=
14084 lt_prog_compiler_static_CXX=
14085
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14087 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14088
14089   # C++ specific cases for pic, static, wl, etc.
14090   if test "$GXX" = yes; then
14091     lt_prog_compiler_wl_CXX='-Wl,'
14092     lt_prog_compiler_static_CXX='-static'
14093
14094     case $host_os in
14095     aix*)
14096       # All AIX code is PIC.
14097       if test "$host_cpu" = ia64; then
14098         # AIX 5 now supports IA64 processor
14099         lt_prog_compiler_static_CXX='-Bstatic'
14100       fi
14101       ;;
14102
14103     amigaos*)
14104       case $host_cpu in
14105       powerpc)
14106             # see comment about AmigaOS4 .so support
14107             lt_prog_compiler_pic_CXX='-fPIC'
14108         ;;
14109       m68k)
14110             # FIXME: we need at least 68020 code to build shared libraries, but
14111             # adding the `-m68020' flag to GCC prevents building anything better,
14112             # like `-m68040'.
14113             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14114         ;;
14115       esac
14116       ;;
14117
14118     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14119       # PIC is the default for these OSes.
14120       ;;
14121     mingw* | cygwin* | os2* | pw32* | cegcc*)
14122       # This hack is so that the source file can tell whether it is being
14123       # built for inclusion in a dll (and should export symbols for example).
14124       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14125       # (--disable-auto-import) libraries
14126       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14127       ;;
14128     darwin* | rhapsody*)
14129       # PIC is the default on this platform
14130       # Common symbols not allowed in MH_DYLIB files
14131       lt_prog_compiler_pic_CXX='-fno-common'
14132       ;;
14133     *djgpp*)
14134       # DJGPP does not support shared libraries at all
14135       lt_prog_compiler_pic_CXX=
14136       ;;
14137     interix[3-9]*)
14138       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14139       # Instead, we relocate shared libraries at runtime.
14140       ;;
14141     sysv4*MP*)
14142       if test -d /usr/nec; then
14143         lt_prog_compiler_pic_CXX=-Kconform_pic
14144       fi
14145       ;;
14146     hpux*)
14147       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14148       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14149       # sets the default TLS model and affects inlining.
14150       case $host_cpu in
14151       hppa*64*)
14152         ;;
14153       *)
14154         lt_prog_compiler_pic_CXX='-fPIC'
14155         ;;
14156       esac
14157       ;;
14158     *qnx* | *nto*)
14159       # QNX uses GNU C++, but need to define -shared option too, otherwise
14160       # it will coredump.
14161       lt_prog_compiler_pic_CXX='-fPIC -shared'
14162       ;;
14163     *)
14164       lt_prog_compiler_pic_CXX='-fPIC'
14165       ;;
14166     esac
14167   else
14168     case $host_os in
14169       aix[4-9]*)
14170         # All AIX code is PIC.
14171         if test "$host_cpu" = ia64; then
14172           # AIX 5 now supports IA64 processor
14173           lt_prog_compiler_static_CXX='-Bstatic'
14174         else
14175           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14176         fi
14177         ;;
14178       chorus*)
14179         case $cc_basename in
14180         cxch68*)
14181           # Green Hills C++ Compiler
14182           # _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"
14183           ;;
14184         esac
14185         ;;
14186       dgux*)
14187         case $cc_basename in
14188           ec++*)
14189             lt_prog_compiler_pic_CXX='-KPIC'
14190             ;;
14191           ghcx*)
14192             # Green Hills C++ Compiler
14193             lt_prog_compiler_pic_CXX='-pic'
14194             ;;
14195           *)
14196             ;;
14197         esac
14198         ;;
14199       freebsd* | dragonfly*)
14200         # FreeBSD uses GNU C++
14201         ;;
14202       hpux9* | hpux10* | hpux11*)
14203         case $cc_basename in
14204           CC*)
14205             lt_prog_compiler_wl_CXX='-Wl,'
14206             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14207             if test "$host_cpu" != ia64; then
14208               lt_prog_compiler_pic_CXX='+Z'
14209             fi
14210             ;;
14211           aCC*)
14212             lt_prog_compiler_wl_CXX='-Wl,'
14213             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14214             case $host_cpu in
14215             hppa*64*|ia64*)
14216               # +Z the default
14217               ;;
14218             *)
14219               lt_prog_compiler_pic_CXX='+Z'
14220               ;;
14221             esac
14222             ;;
14223           *)
14224             ;;
14225         esac
14226         ;;
14227       interix*)
14228         # This is c89, which is MS Visual C++ (no shared libs)
14229         # Anyone wants to do a port?
14230         ;;
14231       irix5* | irix6* | nonstopux*)
14232         case $cc_basename in
14233           CC*)
14234             lt_prog_compiler_wl_CXX='-Wl,'
14235             lt_prog_compiler_static_CXX='-non_shared'
14236             # CC pic flag -KPIC is the default.
14237             ;;
14238           *)
14239             ;;
14240         esac
14241         ;;
14242       linux* | k*bsd*-gnu)
14243         case $cc_basename in
14244           KCC*)
14245             # KAI C++ Compiler
14246             lt_prog_compiler_wl_CXX='--backend -Wl,'
14247             lt_prog_compiler_pic_CXX='-fPIC'
14248             ;;
14249           ecpc* )
14250             # old Intel C++ for x86_64 which still supported -KPIC.
14251             lt_prog_compiler_wl_CXX='-Wl,'
14252             lt_prog_compiler_pic_CXX='-KPIC'
14253             lt_prog_compiler_static_CXX='-static'
14254             ;;
14255           icpc* )
14256             # Intel C++, used to be incompatible with GCC.
14257             # ICC 10 doesn't accept -KPIC any more.
14258             lt_prog_compiler_wl_CXX='-Wl,'
14259             lt_prog_compiler_pic_CXX='-fPIC'
14260             lt_prog_compiler_static_CXX='-static'
14261             ;;
14262           pgCC* | pgcpp*)
14263             # Portland Group C++ compiler
14264             lt_prog_compiler_wl_CXX='-Wl,'
14265             lt_prog_compiler_pic_CXX='-fpic'
14266             lt_prog_compiler_static_CXX='-Bstatic'
14267             ;;
14268           cxx*)
14269             # Compaq C++
14270             # Make sure the PIC flag is empty.  It appears that all Alpha
14271             # Linux and Compaq Tru64 Unix objects are PIC.
14272             lt_prog_compiler_pic_CXX=
14273             lt_prog_compiler_static_CXX='-non_shared'
14274             ;;
14275           xlc* | xlC*)
14276             # IBM XL 8.0 on PPC
14277             lt_prog_compiler_wl_CXX='-Wl,'
14278             lt_prog_compiler_pic_CXX='-qpic'
14279             lt_prog_compiler_static_CXX='-qstaticlink'
14280             ;;
14281           *)
14282             case `$CC -V 2>&1 | sed 5q` in
14283             *Sun\ C*)
14284               # Sun C++ 5.9
14285               lt_prog_compiler_pic_CXX='-KPIC'
14286               lt_prog_compiler_static_CXX='-Bstatic'
14287               lt_prog_compiler_wl_CXX='-Qoption ld '
14288               ;;
14289             esac
14290             ;;
14291         esac
14292         ;;
14293       lynxos*)
14294         ;;
14295       m88k*)
14296         ;;
14297       mvs*)
14298         case $cc_basename in
14299           cxx*)
14300             lt_prog_compiler_pic_CXX='-W c,exportall'
14301             ;;
14302           *)
14303             ;;
14304         esac
14305         ;;
14306       netbsd*)
14307         ;;
14308       *qnx* | *nto*)
14309         # QNX uses GNU C++, but need to define -shared option too, otherwise
14310         # it will coredump.
14311         lt_prog_compiler_pic_CXX='-fPIC -shared'
14312         ;;
14313       osf3* | osf4* | osf5*)
14314         case $cc_basename in
14315           KCC*)
14316             lt_prog_compiler_wl_CXX='--backend -Wl,'
14317             ;;
14318           RCC*)
14319             # Rational C++ 2.4.1
14320             lt_prog_compiler_pic_CXX='-pic'
14321             ;;
14322           cxx*)
14323             # Digital/Compaq C++
14324             lt_prog_compiler_wl_CXX='-Wl,'
14325             # Make sure the PIC flag is empty.  It appears that all Alpha
14326             # Linux and Compaq Tru64 Unix objects are PIC.
14327             lt_prog_compiler_pic_CXX=
14328             lt_prog_compiler_static_CXX='-non_shared'
14329             ;;
14330           *)
14331             ;;
14332         esac
14333         ;;
14334       psos*)
14335         ;;
14336       solaris*)
14337         case $cc_basename in
14338           CC*)
14339             # Sun C++ 4.2, 5.x and Centerline C++
14340             lt_prog_compiler_pic_CXX='-KPIC'
14341             lt_prog_compiler_static_CXX='-Bstatic'
14342             lt_prog_compiler_wl_CXX='-Qoption ld '
14343             ;;
14344           gcx*)
14345             # Green Hills C++ Compiler
14346             lt_prog_compiler_pic_CXX='-PIC'
14347             ;;
14348           *)
14349             ;;
14350         esac
14351         ;;
14352       sunos4*)
14353         case $cc_basename in
14354           CC*)
14355             # Sun C++ 4.x
14356             lt_prog_compiler_pic_CXX='-pic'
14357             lt_prog_compiler_static_CXX='-Bstatic'
14358             ;;
14359           lcc*)
14360             # Lucid
14361             lt_prog_compiler_pic_CXX='-pic'
14362             ;;
14363           *)
14364             ;;
14365         esac
14366         ;;
14367       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14368         case $cc_basename in
14369           CC*)
14370             lt_prog_compiler_wl_CXX='-Wl,'
14371             lt_prog_compiler_pic_CXX='-KPIC'
14372             lt_prog_compiler_static_CXX='-Bstatic'
14373             ;;
14374         esac
14375         ;;
14376       tandem*)
14377         case $cc_basename in
14378           NCC*)
14379             # NonStop-UX NCC 3.20
14380             lt_prog_compiler_pic_CXX='-KPIC'
14381             ;;
14382           *)
14383             ;;
14384         esac
14385         ;;
14386       vxworks*)
14387         ;;
14388       *)
14389         lt_prog_compiler_can_build_shared_CXX=no
14390         ;;
14391     esac
14392   fi
14393
14394 case $host_os in
14395   # For platforms which do not support PIC, -DPIC is meaningless:
14396   *djgpp*)
14397     lt_prog_compiler_pic_CXX=
14398     ;;
14399   *)
14400     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14401     ;;
14402 esac
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14404 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14405
14406
14407
14408 #
14409 # Check to make sure the PIC flag actually works.
14410 #
14411 if test -n "$lt_prog_compiler_pic_CXX"; then
14412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14413 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14414 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14415   $as_echo_n "(cached) " >&6
14416 else
14417   lt_cv_prog_compiler_pic_works_CXX=no
14418    ac_outfile=conftest.$ac_objext
14419    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14420    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14421    # Insert the option either (1) after the last *FLAGS variable, or
14422    # (2) before a word containing "conftest.", or (3) at the end.
14423    # Note that $ac_compile itself does not contain backslashes and begins
14424    # with a dollar sign (not a hyphen), so the echo should work correctly.
14425    # The option is referenced via a variable to avoid confusing sed.
14426    lt_compile=`echo "$ac_compile" | $SED \
14427    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14429    -e 's:$: $lt_compiler_flag:'`
14430    (eval echo "\"\$as_me:14430: $lt_compile\"" >&5)
14431    (eval "$lt_compile" 2>conftest.err)
14432    ac_status=$?
14433    cat conftest.err >&5
14434    echo "$as_me:14434: \$? = $ac_status" >&5
14435    if (exit $ac_status) && test -s "$ac_outfile"; then
14436      # The compiler can only warn and ignore the option if not recognized
14437      # So say no if there are warnings other than the usual output.
14438      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14439      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14440      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14441        lt_cv_prog_compiler_pic_works_CXX=yes
14442      fi
14443    fi
14444    $RM conftest*
14445
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14448 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14449
14450 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14451     case $lt_prog_compiler_pic_CXX in
14452      "" | " "*) ;;
14453      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14454      esac
14455 else
14456     lt_prog_compiler_pic_CXX=
14457      lt_prog_compiler_can_build_shared_CXX=no
14458 fi
14459
14460 fi
14461
14462
14463
14464 #
14465 # Check to make sure the static flag actually works.
14466 #
14467 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14469 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14470 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14471   $as_echo_n "(cached) " >&6
14472 else
14473   lt_cv_prog_compiler_static_works_CXX=no
14474    save_LDFLAGS="$LDFLAGS"
14475    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14476    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14477    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14478      # The linker can only warn and ignore the option if not recognized
14479      # So say no if there are warnings
14480      if test -s conftest.err; then
14481        # Append any errors to the config.log.
14482        cat conftest.err 1>&5
14483        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14484        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14485        if diff conftest.exp conftest.er2 >/dev/null; then
14486          lt_cv_prog_compiler_static_works_CXX=yes
14487        fi
14488      else
14489        lt_cv_prog_compiler_static_works_CXX=yes
14490      fi
14491    fi
14492    $RM -r conftest*
14493    LDFLAGS="$save_LDFLAGS"
14494
14495 fi
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14497 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14498
14499 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14500     :
14501 else
14502     lt_prog_compiler_static_CXX=
14503 fi
14504
14505
14506
14507
14508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14510 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14511   $as_echo_n "(cached) " >&6
14512 else
14513   lt_cv_prog_compiler_c_o_CXX=no
14514    $RM -r conftest 2>/dev/null
14515    mkdir conftest
14516    cd conftest
14517    mkdir out
14518    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14519
14520    lt_compiler_flag="-o out/conftest2.$ac_objext"
14521    # Insert the option either (1) after the last *FLAGS variable, or
14522    # (2) before a word containing "conftest.", or (3) at the end.
14523    # Note that $ac_compile itself does not contain backslashes and begins
14524    # with a dollar sign (not a hyphen), so the echo should work correctly.
14525    lt_compile=`echo "$ac_compile" | $SED \
14526    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14527    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14528    -e 's:$: $lt_compiler_flag:'`
14529    (eval echo "\"\$as_me:14529: $lt_compile\"" >&5)
14530    (eval "$lt_compile" 2>out/conftest.err)
14531    ac_status=$?
14532    cat out/conftest.err >&5
14533    echo "$as_me:14533: \$? = $ac_status" >&5
14534    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14535    then
14536      # The compiler can only warn and ignore the option if not recognized
14537      # So say no if there are warnings
14538      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14539      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14540      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14541        lt_cv_prog_compiler_c_o_CXX=yes
14542      fi
14543    fi
14544    chmod u+w . 2>&5
14545    $RM conftest*
14546    # SGI C++ compiler will create directory out/ii_files/ for
14547    # template instantiation
14548    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14549    $RM out/* && rmdir out
14550    cd ..
14551    $RM -r conftest
14552    $RM conftest*
14553
14554 fi
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14556 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14557
14558
14559
14560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14562 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14563   $as_echo_n "(cached) " >&6
14564 else
14565   lt_cv_prog_compiler_c_o_CXX=no
14566    $RM -r conftest 2>/dev/null
14567    mkdir conftest
14568    cd conftest
14569    mkdir out
14570    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14571
14572    lt_compiler_flag="-o out/conftest2.$ac_objext"
14573    # Insert the option either (1) after the last *FLAGS variable, or
14574    # (2) before a word containing "conftest.", or (3) at the end.
14575    # Note that $ac_compile itself does not contain backslashes and begins
14576    # with a dollar sign (not a hyphen), so the echo should work correctly.
14577    lt_compile=`echo "$ac_compile" | $SED \
14578    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14579    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14580    -e 's:$: $lt_compiler_flag:'`
14581    (eval echo "\"\$as_me:14581: $lt_compile\"" >&5)
14582    (eval "$lt_compile" 2>out/conftest.err)
14583    ac_status=$?
14584    cat out/conftest.err >&5
14585    echo "$as_me:14585: \$? = $ac_status" >&5
14586    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14587    then
14588      # The compiler can only warn and ignore the option if not recognized
14589      # So say no if there are warnings
14590      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14591      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14592      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14593        lt_cv_prog_compiler_c_o_CXX=yes
14594      fi
14595    fi
14596    chmod u+w . 2>&5
14597    $RM conftest*
14598    # SGI C++ compiler will create directory out/ii_files/ for
14599    # template instantiation
14600    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14601    $RM out/* && rmdir out
14602    cd ..
14603    $RM -r conftest
14604    $RM conftest*
14605
14606 fi
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14608 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14609
14610
14611
14612
14613 hard_links="nottested"
14614 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14615   # do not overwrite the value of need_locks provided by the user
14616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14617 $as_echo_n "checking if we can lock with hard links... " >&6; }
14618   hard_links=yes
14619   $RM conftest*
14620   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14621   touch conftest.a
14622   ln conftest.a conftest.b 2>&5 || hard_links=no
14623   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14625 $as_echo "$hard_links" >&6; }
14626   if test "$hard_links" = no; then
14627     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14628 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14629     need_locks=warn
14630   fi
14631 else
14632   need_locks=no
14633 fi
14634
14635
14636
14637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14638 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14639
14640   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14641   case $host_os in
14642   aix[4-9]*)
14643     # If we're using GNU nm, then we don't want the "-C" option.
14644     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14645     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14646       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'
14647     else
14648       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'
14649     fi
14650     ;;
14651   pw32*)
14652     export_symbols_cmds_CXX="$ltdll_cmds"
14653   ;;
14654   cygwin* | mingw* | cegcc*)
14655     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'
14656   ;;
14657   *)
14658     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14659   ;;
14660   esac
14661   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14662
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14664 $as_echo "$ld_shlibs_CXX" >&6; }
14665 test "$ld_shlibs_CXX" = no && can_build_shared=no
14666
14667 with_gnu_ld_CXX=$with_gnu_ld
14668
14669
14670
14671
14672
14673
14674 #
14675 # Do we need to explicitly link libc?
14676 #
14677 case "x$archive_cmds_need_lc_CXX" in
14678 x|xyes)
14679   # Assume -lc should be added
14680   archive_cmds_need_lc_CXX=yes
14681
14682   if test "$enable_shared" = yes && test "$GCC" = yes; then
14683     case $archive_cmds_CXX in
14684     *'~'*)
14685       # FIXME: we may have to deal with multi-command sequences.
14686       ;;
14687     '$CC '*)
14688       # Test whether the compiler implicitly links with -lc since on some
14689       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14690       # to ld, don't add -lc before -lgcc.
14691       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14692 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14693       $RM conftest*
14694       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14695
14696       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14697   (eval $ac_compile) 2>&5
14698   ac_status=$?
14699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14700   test $ac_status = 0; } 2>conftest.err; then
14701         soname=conftest
14702         lib=conftest
14703         libobjs=conftest.$ac_objext
14704         deplibs=
14705         wl=$lt_prog_compiler_wl_CXX
14706         pic_flag=$lt_prog_compiler_pic_CXX
14707         compiler_flags=-v
14708         linker_flags=-v
14709         verstring=
14710         output_objdir=.
14711         libname=conftest
14712         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14713         allow_undefined_flag_CXX=
14714         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14715   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14716   ac_status=$?
14717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14718   test $ac_status = 0; }
14719         then
14720           archive_cmds_need_lc_CXX=no
14721         else
14722           archive_cmds_need_lc_CXX=yes
14723         fi
14724         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14725       else
14726         cat conftest.err 1>&5
14727       fi
14728       $RM conftest*
14729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14730 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14731       ;;
14732     esac
14733   fi
14734   ;;
14735 esac
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14801 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14802
14803 library_names_spec=
14804 libname_spec='lib$name'
14805 soname_spec=
14806 shrext_cmds=".so"
14807 postinstall_cmds=
14808 postuninstall_cmds=
14809 finish_cmds=
14810 finish_eval=
14811 shlibpath_var=
14812 shlibpath_overrides_runpath=unknown
14813 version_type=none
14814 dynamic_linker="$host_os ld.so"
14815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14816 need_lib_prefix=unknown
14817 hardcode_into_libs=no
14818
14819 # when you set need_version to no, make sure it does not cause -set_version
14820 # flags to be left without arguments
14821 need_version=unknown
14822
14823 case $host_os in
14824 aix3*)
14825   version_type=linux
14826   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14827   shlibpath_var=LIBPATH
14828
14829   # AIX 3 has no versioning support, so we append a major version to the name.
14830   soname_spec='${libname}${release}${shared_ext}$major'
14831   ;;
14832
14833 aix[4-9]*)
14834   version_type=linux
14835   need_lib_prefix=no
14836   need_version=no
14837   hardcode_into_libs=yes
14838   if test "$host_cpu" = ia64; then
14839     # AIX 5 supports IA64
14840     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14841     shlibpath_var=LD_LIBRARY_PATH
14842   else
14843     # With GCC up to 2.95.x, collect2 would create an import file
14844     # for dependence libraries.  The import file would start with
14845     # the line `#! .'.  This would cause the generated library to
14846     # depend on `.', always an invalid library.  This was fixed in
14847     # development snapshots of GCC prior to 3.0.
14848     case $host_os in
14849       aix4 | aix4.[01] | aix4.[01].*)
14850       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14851            echo ' yes '
14852            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14853         :
14854       else
14855         can_build_shared=no
14856       fi
14857       ;;
14858     esac
14859     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14860     # soname into executable. Probably we can add versioning support to
14861     # collect2, so additional links can be useful in future.
14862     if test "$aix_use_runtimelinking" = yes; then
14863       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14864       # instead of lib<name>.a to let people know that these are not
14865       # typical AIX shared libraries.
14866       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867     else
14868       # We preserve .a as extension for shared libraries through AIX4.2
14869       # and later when we are not doing run time linking.
14870       library_names_spec='${libname}${release}.a $libname.a'
14871       soname_spec='${libname}${release}${shared_ext}$major'
14872     fi
14873     shlibpath_var=LIBPATH
14874   fi
14875   ;;
14876
14877 amigaos*)
14878   case $host_cpu in
14879   powerpc)
14880     # Since July 2007 AmigaOS4 officially supports .so libraries.
14881     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14882     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883     ;;
14884   m68k)
14885     library_names_spec='$libname.ixlibrary $libname.a'
14886     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14887     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'
14888     ;;
14889   esac
14890   ;;
14891
14892 beos*)
14893   library_names_spec='${libname}${shared_ext}'
14894   dynamic_linker="$host_os ld.so"
14895   shlibpath_var=LIBRARY_PATH
14896   ;;
14897
14898 bsdi[45]*)
14899   version_type=linux
14900   need_version=no
14901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14902   soname_spec='${libname}${release}${shared_ext}$major'
14903   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14904   shlibpath_var=LD_LIBRARY_PATH
14905   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14906   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14907   # the default ld.so.conf also contains /usr/contrib/lib and
14908   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14909   # libtool to hard-code these into programs
14910   ;;
14911
14912 cygwin* | mingw* | pw32* | cegcc*)
14913   version_type=windows
14914   shrext_cmds=".dll"
14915   need_version=no
14916   need_lib_prefix=no
14917
14918   case $GCC,$host_os in
14919   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14920     library_names_spec='$libname.dll.a'
14921     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14922     postinstall_cmds='base_file=`basename \${file}`~
14923       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14924       dldir=$destdir/`dirname \$dlpath`~
14925       test -d \$dldir || mkdir -p \$dldir~
14926       $install_prog $dir/$dlname \$dldir/$dlname~
14927       chmod a+x \$dldir/$dlname~
14928       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14929         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14930       fi'
14931     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14932       dlpath=$dir/\$dldll~
14933        $RM \$dlpath'
14934     shlibpath_overrides_runpath=yes
14935
14936     case $host_os in
14937     cygwin*)
14938       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14939       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14940       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14941       ;;
14942     mingw* | cegcc*)
14943       # MinGW DLLs use traditional 'lib' prefix
14944       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14945       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14946       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14947         # It is most probably a Windows format PATH printed by
14948         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14949         # path with ; separators, and with drive letters. We can handle the
14950         # drive letters (cygwin fileutils understands them), so leave them,
14951         # especially as we might pass files found there to a mingw objdump,
14952         # which wouldn't understand a cygwinified path. Ahh.
14953         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14954       else
14955         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14956       fi
14957       ;;
14958     pw32*)
14959       # pw32 DLLs use 'pw' prefix rather than 'lib'
14960       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14961       ;;
14962     esac
14963     ;;
14964
14965   *)
14966     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14967     ;;
14968   esac
14969   dynamic_linker='Win32 ld.exe'
14970   # FIXME: first we should search . and the directory the executable is in
14971   shlibpath_var=PATH
14972   ;;
14973
14974 darwin* | rhapsody*)
14975   dynamic_linker="$host_os dyld"
14976   version_type=darwin
14977   need_lib_prefix=no
14978   need_version=no
14979   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14980   soname_spec='${libname}${release}${major}$shared_ext'
14981   shlibpath_overrides_runpath=yes
14982   shlibpath_var=DYLD_LIBRARY_PATH
14983   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14984
14985   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14986   ;;
14987
14988 dgux*)
14989   version_type=linux
14990   need_lib_prefix=no
14991   need_version=no
14992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14993   soname_spec='${libname}${release}${shared_ext}$major'
14994   shlibpath_var=LD_LIBRARY_PATH
14995   ;;
14996
14997 freebsd1*)
14998   dynamic_linker=no
14999   ;;
15000
15001 freebsd* | dragonfly*)
15002   # DragonFly does not have aout.  When/if they implement a new
15003   # versioning mechanism, adjust this.
15004   if test -x /usr/bin/objformat; then
15005     objformat=`/usr/bin/objformat`
15006   else
15007     case $host_os in
15008     freebsd[123]*) objformat=aout ;;
15009     *) objformat=elf ;;
15010     esac
15011   fi
15012   version_type=freebsd-$objformat
15013   case $version_type in
15014     freebsd-elf*)
15015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15016       need_version=no
15017       need_lib_prefix=no
15018       ;;
15019     freebsd-*)
15020       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15021       need_version=yes
15022       ;;
15023   esac
15024   shlibpath_var=LD_LIBRARY_PATH
15025   case $host_os in
15026   freebsd2*)
15027     shlibpath_overrides_runpath=yes
15028     ;;
15029   freebsd3.[01]* | freebsdelf3.[01]*)
15030     shlibpath_overrides_runpath=yes
15031     hardcode_into_libs=yes
15032     ;;
15033   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15034   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15035     shlibpath_overrides_runpath=no
15036     hardcode_into_libs=yes
15037     ;;
15038   *) # from 4.6 on, and DragonFly
15039     shlibpath_overrides_runpath=yes
15040     hardcode_into_libs=yes
15041     ;;
15042   esac
15043   ;;
15044
15045 gnu*)
15046   version_type=linux
15047   need_lib_prefix=no
15048   need_version=no
15049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15050   soname_spec='${libname}${release}${shared_ext}$major'
15051   shlibpath_var=LD_LIBRARY_PATH
15052   hardcode_into_libs=yes
15053   ;;
15054
15055 hpux9* | hpux10* | hpux11*)
15056   # Give a soname corresponding to the major version so that dld.sl refuses to
15057   # link against other versions.
15058   version_type=sunos
15059   need_lib_prefix=no
15060   need_version=no
15061   case $host_cpu in
15062   ia64*)
15063     shrext_cmds='.so'
15064     hardcode_into_libs=yes
15065     dynamic_linker="$host_os dld.so"
15066     shlibpath_var=LD_LIBRARY_PATH
15067     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069     soname_spec='${libname}${release}${shared_ext}$major'
15070     if test "X$HPUX_IA64_MODE" = X32; then
15071       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15072     else
15073       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15074     fi
15075     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15076     ;;
15077   hppa*64*)
15078     shrext_cmds='.sl'
15079     hardcode_into_libs=yes
15080     dynamic_linker="$host_os dld.sl"
15081     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15082     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15084     soname_spec='${libname}${release}${shared_ext}$major'
15085     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15086     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15087     ;;
15088   *)
15089     shrext_cmds='.sl'
15090     dynamic_linker="$host_os dld.sl"
15091     shlibpath_var=SHLIB_PATH
15092     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094     soname_spec='${libname}${release}${shared_ext}$major'
15095     ;;
15096   esac
15097   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15098   postinstall_cmds='chmod 555 $lib'
15099   ;;
15100
15101 interix[3-9]*)
15102   version_type=linux
15103   need_lib_prefix=no
15104   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15108   shlibpath_var=LD_LIBRARY_PATH
15109   shlibpath_overrides_runpath=no
15110   hardcode_into_libs=yes
15111   ;;
15112
15113 irix5* | irix6* | nonstopux*)
15114   case $host_os in
15115     nonstopux*) version_type=nonstopux ;;
15116     *)
15117         if test "$lt_cv_prog_gnu_ld" = yes; then
15118                 version_type=linux
15119         else
15120                 version_type=irix
15121         fi ;;
15122   esac
15123   need_lib_prefix=no
15124   need_version=no
15125   soname_spec='${libname}${release}${shared_ext}$major'
15126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15127   case $host_os in
15128   irix5* | nonstopux*)
15129     libsuff= shlibsuff=
15130     ;;
15131   *)
15132     case $LD in # libtool.m4 will add one of these switches to LD
15133     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15134       libsuff= shlibsuff= libmagic=32-bit;;
15135     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15136       libsuff=32 shlibsuff=N32 libmagic=N32;;
15137     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15138       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15139     *) libsuff= shlibsuff= libmagic=never-match;;
15140     esac
15141     ;;
15142   esac
15143   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15144   shlibpath_overrides_runpath=no
15145   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15146   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15147   hardcode_into_libs=yes
15148   ;;
15149
15150 # No shared lib support for Linux oldld, aout, or coff.
15151 linux*oldld* | linux*aout* | linux*coff*)
15152   dynamic_linker=no
15153   ;;
15154
15155 # This must be Linux ELF.
15156 linux* | k*bsd*-gnu)
15157   version_type=linux
15158   need_lib_prefix=no
15159   need_version=no
15160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161   soname_spec='${libname}${release}${shared_ext}$major'
15162   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15163   shlibpath_var=LD_LIBRARY_PATH
15164   shlibpath_overrides_runpath=no
15165   # Some binutils ld are patched to set DT_RUNPATH
15166   save_LDFLAGS=$LDFLAGS
15167   save_libdir=$libdir
15168   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15169        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h.  */
15172
15173 int
15174 main ()
15175 {
15176
15177   ;
15178   return 0;
15179 }
15180 _ACEOF
15181 if ac_fn_cxx_try_link "$LINENO"; then :
15182   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15183   shlibpath_overrides_runpath=yes
15184 fi
15185 fi
15186 rm -f core conftest.err conftest.$ac_objext \
15187     conftest$ac_exeext conftest.$ac_ext
15188   LDFLAGS=$save_LDFLAGS
15189   libdir=$save_libdir
15190
15191   # This implies no fast_install, which is unacceptable.
15192   # Some rework will be needed to allow for fast_install
15193   # before this can be enabled.
15194   hardcode_into_libs=yes
15195
15196   # Append ld.so.conf contents to the search path
15197   if test -f /etc/ld.so.conf; then
15198     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' ' '`
15199     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15200   fi
15201
15202   # We used to test for /lib/ld.so.1 and disable shared libraries on
15203   # powerpc, because MkLinux only supported shared libraries with the
15204   # GNU dynamic linker.  Since this was broken with cross compilers,
15205   # most powerpc-linux boxes support dynamic linking these days and
15206   # people can always --disable-shared, the test was removed, and we
15207   # assume the GNU/Linux dynamic linker is in use.
15208   dynamic_linker='GNU/Linux ld.so'
15209   ;;
15210
15211 netbsd*)
15212   version_type=sunos
15213   need_lib_prefix=no
15214   need_version=no
15215   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15217     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15218     dynamic_linker='NetBSD (a.out) ld.so'
15219   else
15220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15221     soname_spec='${libname}${release}${shared_ext}$major'
15222     dynamic_linker='NetBSD ld.elf_so'
15223   fi
15224   shlibpath_var=LD_LIBRARY_PATH
15225   shlibpath_overrides_runpath=yes
15226   hardcode_into_libs=yes
15227   ;;
15228
15229 newsos6)
15230   version_type=linux
15231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232   shlibpath_var=LD_LIBRARY_PATH
15233   shlibpath_overrides_runpath=yes
15234   ;;
15235
15236 *nto* | *qnx*)
15237   version_type=qnx
15238   need_lib_prefix=no
15239   need_version=no
15240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241   soname_spec='${libname}${release}${shared_ext}$major'
15242   shlibpath_var=LD_LIBRARY_PATH
15243   shlibpath_overrides_runpath=no
15244   hardcode_into_libs=yes
15245   dynamic_linker='ldqnx.so'
15246   ;;
15247
15248 openbsd*)
15249   version_type=sunos
15250   sys_lib_dlsearch_path_spec="/usr/lib"
15251   need_lib_prefix=no
15252   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15253   case $host_os in
15254     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15255     *)                          need_version=no  ;;
15256   esac
15257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15258   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15259   shlibpath_var=LD_LIBRARY_PATH
15260   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15261     case $host_os in
15262       openbsd2.[89] | openbsd2.[89].*)
15263         shlibpath_overrides_runpath=no
15264         ;;
15265       *)
15266         shlibpath_overrides_runpath=yes
15267         ;;
15268       esac
15269   else
15270     shlibpath_overrides_runpath=yes
15271   fi
15272   ;;
15273
15274 os2*)
15275   libname_spec='$name'
15276   shrext_cmds=".dll"
15277   need_lib_prefix=no
15278   library_names_spec='$libname${shared_ext} $libname.a'
15279   dynamic_linker='OS/2 ld.exe'
15280   shlibpath_var=LIBPATH
15281   ;;
15282
15283 osf3* | osf4* | osf5*)
15284   version_type=osf
15285   need_lib_prefix=no
15286   need_version=no
15287   soname_spec='${libname}${release}${shared_ext}$major'
15288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15289   shlibpath_var=LD_LIBRARY_PATH
15290   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15291   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15292   ;;
15293
15294 rdos*)
15295   dynamic_linker=no
15296   ;;
15297
15298 solaris*)
15299   version_type=linux
15300   need_lib_prefix=no
15301   need_version=no
15302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303   soname_spec='${libname}${release}${shared_ext}$major'
15304   shlibpath_var=LD_LIBRARY_PATH
15305   shlibpath_overrides_runpath=yes
15306   hardcode_into_libs=yes
15307   # ldd complains unless libraries are executable
15308   postinstall_cmds='chmod +x $lib'
15309   ;;
15310
15311 sunos4*)
15312   version_type=sunos
15313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15314   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15315   shlibpath_var=LD_LIBRARY_PATH
15316   shlibpath_overrides_runpath=yes
15317   if test "$with_gnu_ld" = yes; then
15318     need_lib_prefix=no
15319   fi
15320   need_version=yes
15321   ;;
15322
15323 sysv4 | sysv4.3*)
15324   version_type=linux
15325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326   soname_spec='${libname}${release}${shared_ext}$major'
15327   shlibpath_var=LD_LIBRARY_PATH
15328   case $host_vendor in
15329     sni)
15330       shlibpath_overrides_runpath=no
15331       need_lib_prefix=no
15332       runpath_var=LD_RUN_PATH
15333       ;;
15334     siemens)
15335       need_lib_prefix=no
15336       ;;
15337     motorola)
15338       need_lib_prefix=no
15339       need_version=no
15340       shlibpath_overrides_runpath=no
15341       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15342       ;;
15343   esac
15344   ;;
15345
15346 sysv4*MP*)
15347   if test -d /usr/nec ;then
15348     version_type=linux
15349     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15350     soname_spec='$libname${shared_ext}.$major'
15351     shlibpath_var=LD_LIBRARY_PATH
15352   fi
15353   ;;
15354
15355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15356   version_type=freebsd-elf
15357   need_lib_prefix=no
15358   need_version=no
15359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15360   soname_spec='${libname}${release}${shared_ext}$major'
15361   shlibpath_var=LD_LIBRARY_PATH
15362   shlibpath_overrides_runpath=yes
15363   hardcode_into_libs=yes
15364   if test "$with_gnu_ld" = yes; then
15365     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15366   else
15367     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15368     case $host_os in
15369       sco3.2v5*)
15370         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15371         ;;
15372     esac
15373   fi
15374   sys_lib_dlsearch_path_spec='/usr/lib'
15375   ;;
15376
15377 tpf*)
15378   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15379   version_type=linux
15380   need_lib_prefix=no
15381   need_version=no
15382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383   shlibpath_var=LD_LIBRARY_PATH
15384   shlibpath_overrides_runpath=no
15385   hardcode_into_libs=yes
15386   ;;
15387
15388 uts4*)
15389   version_type=linux
15390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391   soname_spec='${libname}${release}${shared_ext}$major'
15392   shlibpath_var=LD_LIBRARY_PATH
15393   ;;
15394
15395 *)
15396   dynamic_linker=no
15397   ;;
15398 esac
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15400 $as_echo "$dynamic_linker" >&6; }
15401 test "$dynamic_linker" = no && can_build_shared=no
15402
15403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15404 if test "$GCC" = yes; then
15405   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15406 fi
15407
15408 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15409   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15410 fi
15411 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15412   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15413 fi
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15451 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15452 hardcode_action_CXX=
15453 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15454    test -n "$runpath_var_CXX" ||
15455    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15456
15457   # We can hardcode non-existent directories.
15458   if test "$hardcode_direct_CXX" != no &&
15459      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15460      # have to relink, otherwise we might link with an installed library
15461      # when we should be linking with a yet-to-be-installed one
15462      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15463      test "$hardcode_minus_L_CXX" != no; then
15464     # Linking always hardcodes the temporary library directory.
15465     hardcode_action_CXX=relink
15466   else
15467     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15468     hardcode_action_CXX=immediate
15469   fi
15470 else
15471   # We cannot hardcode anything, or else we can only hardcode existing
15472   # directories.
15473   hardcode_action_CXX=unsupported
15474 fi
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15476 $as_echo "$hardcode_action_CXX" >&6; }
15477
15478 if test "$hardcode_action_CXX" = relink ||
15479    test "$inherit_rpath_CXX" = yes; then
15480   # Fast installation is not supported
15481   enable_fast_install=no
15482 elif test "$shlibpath_overrides_runpath" = yes ||
15483      test "$enable_shared" = no; then
15484   # Fast installation is not necessary
15485   enable_fast_install=needless
15486 fi
15487
15488
15489
15490
15491
15492
15493
15494   fi # test -n "$compiler"
15495
15496   CC=$lt_save_CC
15497   LDCXX=$LD
15498   LD=$lt_save_LD
15499   GCC=$lt_save_GCC
15500   with_gnu_ld=$lt_save_with_gnu_ld
15501   lt_cv_path_LDCXX=$lt_cv_path_LD
15502   lt_cv_path_LD=$lt_save_path_LD
15503   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15504   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15505 fi # test "$_lt_caught_CXX_error" != yes
15506
15507 ac_ext=c
15508 ac_cpp='$CPP $CPPFLAGS'
15509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525         ac_config_commands="$ac_config_commands libtool"
15526
15527
15528
15529
15530 # Only expand once:
15531
15532
15533
15534
15535 if test x$use_libtool != xno; then
15536    DEFAULT_OBJECT_TYPE=".lo"
15537    DEFAULT_ARCHIVE_TYPE=".la"
15538    DEFAULT_SHARED_OBJECT_TYPE=".la"
15539    LIBTOOL="\$(LIBTOOL)"
15540    LIBTOOL_INSTALL_TARGET="libtool-install"
15541    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15542    LIBTOOL_CLEAN_TARGET="libtool-clean"
15543    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15544    FD_PLUGIN_DIR="src/plugins/fd"
15545    have_plugins=yes
15546 else
15547    DEFAULT_OBJECT_TYPE=".o"
15548    DEFAULT_ARCHIVE_TYPE=".a"
15549    DEFAULT_SHARED_OBJECT_TYPE=".so"
15550    LIBTOOL="# \$(LIBTOOL)"
15551    LIBTOOL_INSTALL_TARGET=""
15552    LIBTOOL_UNINSTALL_TARGET=""
15553    LIBTOOL_CLEAN_TARGET=""
15554    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15555    FD_PLUGIN_DIR=""
15556    have_plugins=no
15557 fi
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569 # Check whether --enable-includes was given.
15570 if test "${enable_includes+set}" = set; then :
15571   enableval=$enable_includes;
15572        if test x$enableval = xyes; then
15573           install_includes=yes
15574        fi
15575
15576
15577 fi
15578
15579
15580
15581 if test x$use_libtool != xno -a x$install_includes = xyes; then
15582    INCLUDE_INSTALL_TARGET="install-includes"
15583    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15584 else
15585    INCLUDE_INSTALL_TARGET=""
15586    INCLUDE_UNINSTALL_TARGET=""
15587 fi
15588
15589
15590
15591
15592
15593 case $host_os in
15594   *cygwin* ) CYGWIN=yes;;
15595          * ) CYGWIN=no;;
15596 esac
15597
15598 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15599 then
15600
15601
15602 if $TRUEPRG; then
15603   HAVE_SUN_OS_TRUE=
15604   HAVE_SUN_OS_FALSE='#'
15605 else
15606   HAVE_SUN_OS_TRUE='#'
15607   HAVE_SUN_OS_FALSE=
15608 fi
15609         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15610
15611 else
15612
15613
15614 if $FALSEPRG; 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 fi
15622
15623 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15624 then
15625
15626
15627 if $TRUEPRG; then
15628   HAVE_OSF1_OS_TRUE=
15629   HAVE_OSF1_OS_FALSE='#'
15630 else
15631   HAVE_OSF1_OS_TRUE='#'
15632   HAVE_OSF1_OS_FALSE=
15633 fi
15634         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15635
15636 else
15637
15638
15639 if $FALSEPRG; 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 fi
15647
15648 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15649 then
15650
15651
15652 if $TRUEPRG; then
15653   HAVE_AIX_OS_TRUE=
15654   HAVE_AIX_OS_FALSE='#'
15655 else
15656   HAVE_AIX_OS_TRUE='#'
15657   HAVE_AIX_OS_FALSE=
15658 fi
15659         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15660
15661 else
15662
15663
15664 if $FALSEPRG; 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 fi
15672
15673 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15674 then
15675
15676
15677 if $TRUEPRG; then
15678   HAVE_HPUX_OS_TRUE=
15679   HAVE_HPUX_OS_FALSE='#'
15680 else
15681   HAVE_HPUX_OS_TRUE='#'
15682   HAVE_HPUX_OS_FALSE=
15683 fi
15684         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15685
15686 else
15687
15688
15689 if $FALSEPRG; 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 fi
15697
15698 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15699 then
15700
15701
15702 if $TRUEPRG; then
15703   HAVE_LINUX_OS_TRUE=
15704   HAVE_LINUX_OS_FALSE='#'
15705 else
15706   HAVE_LINUX_OS_TRUE='#'
15707   HAVE_LINUX_OS_FALSE=
15708 fi
15709         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15710
15711 else
15712
15713
15714 if $FALSEPRG; 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 fi
15722
15723 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15724 then
15725
15726
15727 if $TRUEPRG; then
15728   HAVE_FREEBSD_OS_TRUE=
15729   HAVE_FREEBSD_OS_FALSE='#'
15730 else
15731   HAVE_FREEBSD_OS_TRUE='#'
15732   HAVE_FREEBSD_OS_FALSE=
15733 fi
15734         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15735
15736 else
15737
15738
15739 if $FALSEPRG; 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 fi
15747
15748 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15749 then
15750
15751
15752 if $TRUEPRG; then
15753   HAVE_NETBSD_OS_TRUE=
15754   HAVE_NETBSD_OS_FALSE='#'
15755 else
15756   HAVE_NETBSD_OS_TRUE='#'
15757   HAVE_NETBSD_OS_FALSE=
15758 fi
15759         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15760
15761 else
15762
15763
15764 if $FALSEPRG; 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 fi
15772
15773 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15774 then
15775
15776
15777 if $TRUEPRG; then
15778   HAVE_OPENBSD_OS_TRUE=
15779   HAVE_OPENBSD_OS_FALSE='#'
15780 else
15781   HAVE_OPENBSD_OS_TRUE='#'
15782   HAVE_OPENBSD_OS_FALSE=
15783 fi
15784         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15785
15786 else
15787
15788
15789 if $FALSEPRG; 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 fi
15797
15798 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15799 then
15800
15801
15802 if $TRUEPRG; then
15803   HAVE_BSDI_OS_TRUE=
15804   HAVE_BSDI_OS_FALSE='#'
15805 else
15806   HAVE_BSDI_OS_TRUE='#'
15807   HAVE_BSDI_OS_FALSE=
15808 fi
15809         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15810
15811 else
15812
15813
15814 if $FALSEPRG; 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 fi
15822
15823 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15824 then
15825
15826
15827 if $TRUEPRG; then
15828   HAVE_SGI_OS_TRUE=
15829   HAVE_SGI_OS_FALSE='#'
15830 else
15831   HAVE_SGI_OS_TRUE='#'
15832   HAVE_SGI_OS_FALSE=
15833 fi
15834         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15835
15836 else
15837
15838
15839 if $FALSEPRG; 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 fi
15847
15848 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15849 then
15850
15851
15852 if $TRUEPRG; then
15853   HAVE_IRIX_OS_TRUE=
15854   HAVE_IRIX_OS_FALSE='#'
15855 else
15856   HAVE_IRIX_OS_TRUE='#'
15857   HAVE_IRIX_OS_FALSE=
15858 fi
15859         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15860
15861 else
15862
15863
15864 if $FALSEPRG; 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 fi
15872
15873 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15874 then
15875
15876
15877 if $TRUEPRG; then
15878   HAVE_DARWIN_OS_TRUE=
15879   HAVE_DARWIN_OS_FALSE='#'
15880 else
15881   HAVE_DARWIN_OS_TRUE='#'
15882   HAVE_DARWIN_OS_FALSE=
15883 fi
15884     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15885
15886 else
15887
15888
15889 if $FALSEPRG; 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 fi
15897
15898
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15900 $as_echo_n "checking for Operating System Distribution... " >&6; }
15901 if test "x$DISTNAME" != "x"
15902 then
15903         echo "distname set to $DISTNAME"
15904 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15905 then
15906         DISTNAME=alpha
15907 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15908 then
15909         DISTNAME=aix
15910 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15911 then
15912         DISTNAME=hpux
15913 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15914 then
15915         DISTNAME=solaris
15916 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15917 then
15918         DISTNAME=freebsd
15919 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15920 then
15921         DISTNAME=netbsd
15922 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15923 then
15924         DISTNAME=openbsd
15925 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15926 then
15927         DISTNAME=irix
15928 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15929 then
15930         DISTNAME=bsdi
15931 elif test -f /etc/SuSE-release
15932 then
15933         DISTNAME=suse
15934 elif test -d /etc/SuSEconfig
15935 then
15936         DISTNAME=suse5
15937 elif test -f /etc/mandrake-release
15938 then
15939         DISTNAME=mandrake
15940 elif test -f /etc/whitebox-release
15941 then
15942        DISTNAME=redhat
15943 elif test -f /etc/redhat-release
15944 then
15945         DISTNAME=redhat
15946 elif test -f /etc/gentoo-release
15947 then
15948         DISTNAME=gentoo
15949 elif test -f /etc/debian_version
15950 then
15951         DISTNAME=debian
15952 elif test -f /etc/slackware-version
15953 then
15954         DISTNAME=slackware
15955 elif test x$host_vendor = xapple
15956 then
15957     DISTNAME=osx
15958 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15959 then
15960     DISTNAME=darwin
15961 elif test -f /etc/engarde-version
15962 then
15963         DISTNAME=engarde
15964 elif test "$CYGWIN" = yes
15965 then
15966         DISTNAME=cygwin
15967         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15968
15969 else
15970         DISTNAME=unknown
15971 fi
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15973 $as_echo "done" >&6; }
15974
15975
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15977 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15978 set x ${MAKE-make}
15979 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15980 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15981   $as_echo_n "(cached) " >&6
15982 else
15983   cat >conftest.make <<\_ACEOF
15984 SHELL = /bin/sh
15985 all:
15986         @echo '@@@%%%=$(MAKE)=@@@%%%'
15987 _ACEOF
15988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15989 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15990   *@@@%%%=?*=@@@%%%*)
15991     eval ac_cv_prog_make_${ac_make}_set=yes;;
15992   *)
15993     eval ac_cv_prog_make_${ac_make}_set=no;;
15994 esac
15995 rm -f conftest.make
15996 fi
15997 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15999 $as_echo "yes" >&6; }
16000   SET_MAKE=
16001 else
16002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16003 $as_echo "no" >&6; }
16004   SET_MAKE="MAKE=${MAKE-make}"
16005 fi
16006
16007
16008
16009         MKINSTALLDIRS=
16010   if test -n "$ac_aux_dir"; then
16011     case "$ac_aux_dir" in
16012       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16013       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16014     esac
16015   fi
16016   if test -z "$MKINSTALLDIRS"; then
16017     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16018   fi
16019
16020
16021
16022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16023 $as_echo_n "checking whether NLS is requested... " >&6; }
16024     # Check whether --enable-nls was given.
16025 if test "${enable_nls+set}" = set; then :
16026   enableval=$enable_nls; USE_NLS=$enableval
16027 else
16028   USE_NLS=yes
16029 fi
16030
16031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16032 $as_echo "$USE_NLS" >&6; }
16033
16034
16035
16036
16037
16038
16039 # Prepare PATH_SEPARATOR.
16040 # The user is always right.
16041 if test "${PATH_SEPARATOR+set}" != set; then
16042   echo "#! /bin/sh" >conf$$.sh
16043   echo  "exit 0"   >>conf$$.sh
16044   chmod +x conf$$.sh
16045   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16046     PATH_SEPARATOR=';'
16047   else
16048     PATH_SEPARATOR=:
16049   fi
16050   rm -f conf$$.sh
16051 fi
16052
16053 # Find out how to test for executable files. Don't use a zero-byte file,
16054 # as systems may use methods other than mode bits to determine executability.
16055 cat >conf$$.file <<_ASEOF
16056 #! /bin/sh
16057 exit 0
16058 _ASEOF
16059 chmod +x conf$$.file
16060 if test -x conf$$.file >/dev/null 2>&1; then
16061   ac_executable_p="test -x"
16062 else
16063   ac_executable_p="test -f"
16064 fi
16065 rm -f conf$$.file
16066
16067 # Extract the first word of "msgfmt", so it can be a program name with args.
16068 set dummy msgfmt; ac_word=$2
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16070 $as_echo_n "checking for $ac_word... " >&6; }
16071 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16072   $as_echo_n "(cached) " >&6
16073 else
16074   case "$MSGFMT" in
16075   [\\/]* | ?:[\\/]*)
16076     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16077     ;;
16078   *)
16079     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16080     for ac_dir in $PATH; do
16081       IFS="$ac_save_IFS"
16082       test -z "$ac_dir" && ac_dir=.
16083       for ac_exec_ext in '' $ac_executable_extensions; do
16084         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16085           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16086           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16087      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16088             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16089             break 2
16090           fi
16091         fi
16092       done
16093     done
16094     IFS="$ac_save_IFS"
16095   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16096     ;;
16097 esac
16098 fi
16099 MSGFMT="$ac_cv_path_MSGFMT"
16100 if test "$MSGFMT" != ":"; then
16101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16102 $as_echo "$MSGFMT" >&6; }
16103 else
16104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16105 $as_echo "no" >&6; }
16106 fi
16107
16108   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16109 set dummy gmsgfmt; ac_word=$2
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16111 $as_echo_n "checking for $ac_word... " >&6; }
16112 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16113   $as_echo_n "(cached) " >&6
16114 else
16115   case $GMSGFMT in
16116   [\\/]* | ?:[\\/]*)
16117   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16118   ;;
16119   *)
16120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16121 for as_dir in $PATH
16122 do
16123   IFS=$as_save_IFS
16124   test -z "$as_dir" && as_dir=.
16125     for ac_exec_ext in '' $ac_executable_extensions; do
16126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16127     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16129     break 2
16130   fi
16131 done
16132   done
16133 IFS=$as_save_IFS
16134
16135   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16136   ;;
16137 esac
16138 fi
16139 GMSGFMT=$ac_cv_path_GMSGFMT
16140 if test -n "$GMSGFMT"; then
16141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16142 $as_echo "$GMSGFMT" >&6; }
16143 else
16144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145 $as_echo "no" >&6; }
16146 fi
16147
16148
16149
16150
16151 # Prepare PATH_SEPARATOR.
16152 # The user is always right.
16153 if test "${PATH_SEPARATOR+set}" != set; then
16154   echo "#! /bin/sh" >conf$$.sh
16155   echo  "exit 0"   >>conf$$.sh
16156   chmod +x conf$$.sh
16157   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16158     PATH_SEPARATOR=';'
16159   else
16160     PATH_SEPARATOR=:
16161   fi
16162   rm -f conf$$.sh
16163 fi
16164
16165 # Find out how to test for executable files. Don't use a zero-byte file,
16166 # as systems may use methods other than mode bits to determine executability.
16167 cat >conf$$.file <<_ASEOF
16168 #! /bin/sh
16169 exit 0
16170 _ASEOF
16171 chmod +x conf$$.file
16172 if test -x conf$$.file >/dev/null 2>&1; then
16173   ac_executable_p="test -x"
16174 else
16175   ac_executable_p="test -f"
16176 fi
16177 rm -f conf$$.file
16178
16179 # Extract the first word of "xgettext", so it can be a program name with args.
16180 set dummy xgettext; ac_word=$2
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16182 $as_echo_n "checking for $ac_word... " >&6; }
16183 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16184   $as_echo_n "(cached) " >&6
16185 else
16186   case "$XGETTEXT" in
16187   [\\/]* | ?:[\\/]*)
16188     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16189     ;;
16190   *)
16191     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16192     for ac_dir in $PATH; do
16193       IFS="$ac_save_IFS"
16194       test -z "$ac_dir" && ac_dir=.
16195       for ac_exec_ext in '' $ac_executable_extensions; do
16196         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16197           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16198           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16199      (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
16200             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16201             break 2
16202           fi
16203         fi
16204       done
16205     done
16206     IFS="$ac_save_IFS"
16207   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16208     ;;
16209 esac
16210 fi
16211 XGETTEXT="$ac_cv_path_XGETTEXT"
16212 if test "$XGETTEXT" != ":"; then
16213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16214 $as_echo "$XGETTEXT" >&6; }
16215 else
16216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16217 $as_echo "no" >&6; }
16218 fi
16219
16220     rm -f messages.po
16221
16222
16223 # Prepare PATH_SEPARATOR.
16224 # The user is always right.
16225 if test "${PATH_SEPARATOR+set}" != set; then
16226   echo "#! /bin/sh" >conf$$.sh
16227   echo  "exit 0"   >>conf$$.sh
16228   chmod +x conf$$.sh
16229   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16230     PATH_SEPARATOR=';'
16231   else
16232     PATH_SEPARATOR=:
16233   fi
16234   rm -f conf$$.sh
16235 fi
16236
16237 # Find out how to test for executable files. Don't use a zero-byte file,
16238 # as systems may use methods other than mode bits to determine executability.
16239 cat >conf$$.file <<_ASEOF
16240 #! /bin/sh
16241 exit 0
16242 _ASEOF
16243 chmod +x conf$$.file
16244 if test -x conf$$.file >/dev/null 2>&1; then
16245   ac_executable_p="test -x"
16246 else
16247   ac_executable_p="test -f"
16248 fi
16249 rm -f conf$$.file
16250
16251 # Extract the first word of "msgmerge", so it can be a program name with args.
16252 set dummy msgmerge; ac_word=$2
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16254 $as_echo_n "checking for $ac_word... " >&6; }
16255 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16256   $as_echo_n "(cached) " >&6
16257 else
16258   case "$MSGMERGE" in
16259   [\\/]* | ?:[\\/]*)
16260     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16261     ;;
16262   *)
16263     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16264     for ac_dir in $PATH; do
16265       IFS="$ac_save_IFS"
16266       test -z "$ac_dir" && ac_dir=.
16267       for ac_exec_ext in '' $ac_executable_extensions; do
16268         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16269           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16270           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16271             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16272             break 2
16273           fi
16274         fi
16275       done
16276     done
16277     IFS="$ac_save_IFS"
16278   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16279     ;;
16280 esac
16281 fi
16282 MSGMERGE="$ac_cv_path_MSGMERGE"
16283 if test "$MSGMERGE" != ":"; then
16284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16285 $as_echo "$MSGMERGE" >&6; }
16286 else
16287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16288 $as_echo "no" >&6; }
16289 fi
16290
16291
16292       if test "$GMSGFMT" != ":"; then
16293             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16294        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16295       : ;
16296     else
16297       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16298       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16299 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16300       GMSGFMT=":"
16301     fi
16302   fi
16303
16304       if test "$XGETTEXT" != ":"; then
16305             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16306        (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
16307       : ;
16308     else
16309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16310 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16311       XGETTEXT=":"
16312     fi
16313         rm -f messages.po
16314   fi
16315
16316   ac_config_commands="$ac_config_commands default-1"
16317
16318
16319
16320       if test "X$prefix" = "XNONE"; then
16321     acl_final_prefix="$ac_default_prefix"
16322   else
16323     acl_final_prefix="$prefix"
16324   fi
16325   if test "X$exec_prefix" = "XNONE"; then
16326     acl_final_exec_prefix='${prefix}'
16327   else
16328     acl_final_exec_prefix="$exec_prefix"
16329   fi
16330   acl_save_prefix="$prefix"
16331   prefix="$acl_final_prefix"
16332   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16333   prefix="$acl_save_prefix"
16334
16335
16336 # Check whether --with-gnu-ld was given.
16337 if test "${with_gnu_ld+set}" = set; then :
16338   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16339 else
16340   with_gnu_ld=no
16341 fi
16342
16343 # Prepare PATH_SEPARATOR.
16344 # The user is always right.
16345 if test "${PATH_SEPARATOR+set}" != set; then
16346   echo "#! /bin/sh" >conf$$.sh
16347   echo  "exit 0"   >>conf$$.sh
16348   chmod +x conf$$.sh
16349   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16350     PATH_SEPARATOR=';'
16351   else
16352     PATH_SEPARATOR=:
16353   fi
16354   rm -f conf$$.sh
16355 fi
16356 ac_prog=ld
16357 if test "$GCC" = yes; then
16358   # Check if gcc -print-prog-name=ld gives a path.
16359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16360 $as_echo_n "checking for ld used by GCC... " >&6; }
16361   case $host in
16362   *-*-mingw*)
16363     # gcc leaves a trailing carriage return which upsets mingw
16364     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16365   *)
16366     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16367   esac
16368   case $ac_prog in
16369     # Accept absolute paths.
16370     [\\/]* | [A-Za-z]:[\\/]*)
16371       re_direlt='/[^/][^/]*/\.\./'
16372       # Canonicalize the path of ld
16373       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16374       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16375         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16376       done
16377       test -z "$LD" && LD="$ac_prog"
16378       ;;
16379   "")
16380     # If it fails, then pretend we aren't using GCC.
16381     ac_prog=ld
16382     ;;
16383   *)
16384     # If it is relative, then search for the first ld in PATH.
16385     with_gnu_ld=unknown
16386     ;;
16387   esac
16388 elif test "$with_gnu_ld" = yes; then
16389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16390 $as_echo_n "checking for GNU ld... " >&6; }
16391 else
16392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16393 $as_echo_n "checking for non-GNU ld... " >&6; }
16394 fi
16395 if test "${acl_cv_path_LD+set}" = set; then :
16396   $as_echo_n "(cached) " >&6
16397 else
16398   if test -z "$LD"; then
16399   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16400   for ac_dir in $PATH; do
16401     test -z "$ac_dir" && ac_dir=.
16402     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16403       acl_cv_path_LD="$ac_dir/$ac_prog"
16404       # Check to see if the program is GNU ld.  I'd rather use --version,
16405       # but apparently some GNU ld's only accept -v.
16406       # Break only if it was the GNU/non-GNU ld that we prefer.
16407       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16408       *GNU* | *'with BFD'*)
16409         test "$with_gnu_ld" != no && break ;;
16410       *)
16411         test "$with_gnu_ld" != yes && break ;;
16412       esac
16413     fi
16414   done
16415   IFS="$ac_save_ifs"
16416 else
16417   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16418 fi
16419 fi
16420
16421 LD="$acl_cv_path_LD"
16422 if test -n "$LD"; then
16423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16424 $as_echo "$LD" >&6; }
16425 else
16426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427 $as_echo "no" >&6; }
16428 fi
16429 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16431 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16432 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16433   $as_echo_n "(cached) " >&6
16434 else
16435   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16436 case `$LD -v 2>&1 </dev/null` in
16437 *GNU* | *'with BFD'*)
16438   acl_cv_prog_gnu_ld=yes ;;
16439 *)
16440   acl_cv_prog_gnu_ld=no ;;
16441 esac
16442 fi
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16444 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16445 with_gnu_ld=$acl_cv_prog_gnu_ld
16446
16447
16448
16449
16450                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16451 $as_echo_n "checking for shared library run path origin... " >&6; }
16452 if test "${acl_cv_rpath+set}" = set; then :
16453   $as_echo_n "(cached) " >&6
16454 else
16455
16456     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16457     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16458     . ./conftest.sh
16459     rm -f ./conftest.sh
16460     acl_cv_rpath=done
16461
16462 fi
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16464 $as_echo "$acl_cv_rpath" >&6; }
16465   wl="$acl_cv_wl"
16466   libext="$acl_cv_libext"
16467   shlibext="$acl_cv_shlibext"
16468   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16469   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16470   hardcode_direct="$acl_cv_hardcode_direct"
16471   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16472     # Check whether --enable-rpath was given.
16473 if test "${enable_rpath+set}" = set; then :
16474   enableval=$enable_rpath; :
16475 else
16476   enable_rpath=yes
16477 fi
16478
16479
16480
16481
16482
16483
16484
16485
16486     use_additional=yes
16487
16488   acl_save_prefix="$prefix"
16489   prefix="$acl_final_prefix"
16490   acl_save_exec_prefix="$exec_prefix"
16491   exec_prefix="$acl_final_exec_prefix"
16492
16493     eval additional_includedir=\"$includedir\"
16494     eval additional_libdir=\"$libdir\"
16495
16496   exec_prefix="$acl_save_exec_prefix"
16497   prefix="$acl_save_prefix"
16498
16499
16500 # Check whether --with-libiconv-prefix was given.
16501 if test "${with_libiconv_prefix+set}" = set; then :
16502   withval=$with_libiconv_prefix;
16503     if test "X$withval" = "Xno"; then
16504       use_additional=no
16505     else
16506       if test "X$withval" = "X"; then
16507
16508   acl_save_prefix="$prefix"
16509   prefix="$acl_final_prefix"
16510   acl_save_exec_prefix="$exec_prefix"
16511   exec_prefix="$acl_final_exec_prefix"
16512
16513           eval additional_includedir=\"$includedir\"
16514           eval additional_libdir=\"$libdir\"
16515
16516   exec_prefix="$acl_save_exec_prefix"
16517   prefix="$acl_save_prefix"
16518
16519       else
16520         additional_includedir="$withval/include"
16521         additional_libdir="$withval/lib"
16522       fi
16523     fi
16524
16525 fi
16526
16527       LIBICONV=
16528   LTLIBICONV=
16529   INCICONV=
16530   rpathdirs=
16531   ltrpathdirs=
16532   names_already_handled=
16533   names_next_round='iconv '
16534   while test -n "$names_next_round"; do
16535     names_this_round="$names_next_round"
16536     names_next_round=
16537     for name in $names_this_round; do
16538       already_handled=
16539       for n in $names_already_handled; do
16540         if test "$n" = "$name"; then
16541           already_handled=yes
16542           break
16543         fi
16544       done
16545       if test -z "$already_handled"; then
16546         names_already_handled="$names_already_handled $name"
16547                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16548         eval value=\"\$HAVE_LIB$uppername\"
16549         if test -n "$value"; then
16550           if test "$value" = yes; then
16551             eval value=\"\$LIB$uppername\"
16552             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16553             eval value=\"\$LTLIB$uppername\"
16554             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16555           else
16556                                     :
16557           fi
16558         else
16559                               found_dir=
16560           found_la=
16561           found_so=
16562           found_a=
16563           if test $use_additional = yes; then
16564             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16565               found_dir="$additional_libdir"
16566               found_so="$additional_libdir/lib$name.$shlibext"
16567               if test -f "$additional_libdir/lib$name.la"; then
16568                 found_la="$additional_libdir/lib$name.la"
16569               fi
16570             else
16571               if test -f "$additional_libdir/lib$name.$libext"; then
16572                 found_dir="$additional_libdir"
16573                 found_a="$additional_libdir/lib$name.$libext"
16574                 if test -f "$additional_libdir/lib$name.la"; then
16575                   found_la="$additional_libdir/lib$name.la"
16576                 fi
16577               fi
16578             fi
16579           fi
16580           if test "X$found_dir" = "X"; then
16581             for x in $LDFLAGS $LTLIBICONV; do
16582
16583   acl_save_prefix="$prefix"
16584   prefix="$acl_final_prefix"
16585   acl_save_exec_prefix="$exec_prefix"
16586   exec_prefix="$acl_final_exec_prefix"
16587   eval x=\"$x\"
16588   exec_prefix="$acl_save_exec_prefix"
16589   prefix="$acl_save_prefix"
16590
16591               case "$x" in
16592                 -L*)
16593                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16594                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16595                     found_dir="$dir"
16596                     found_so="$dir/lib$name.$shlibext"
16597                     if test -f "$dir/lib$name.la"; then
16598                       found_la="$dir/lib$name.la"
16599                     fi
16600                   else
16601                     if test -f "$dir/lib$name.$libext"; then
16602                       found_dir="$dir"
16603                       found_a="$dir/lib$name.$libext"
16604                       if test -f "$dir/lib$name.la"; then
16605                         found_la="$dir/lib$name.la"
16606                       fi
16607                     fi
16608                   fi
16609                   ;;
16610               esac
16611               if test "X$found_dir" != "X"; then
16612                 break
16613               fi
16614             done
16615           fi
16616           if test "X$found_dir" != "X"; then
16617                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16618             if test "X$found_so" != "X"; then
16619                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16620                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16621               else
16622                                                                                 haveit=
16623                 for x in $ltrpathdirs; do
16624                   if test "X$x" = "X$found_dir"; then
16625                     haveit=yes
16626                     break
16627                   fi
16628                 done
16629                 if test -z "$haveit"; then
16630                   ltrpathdirs="$ltrpathdirs $found_dir"
16631                 fi
16632                                 if test "$hardcode_direct" = yes; then
16633                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16634                 else
16635                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16636                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16637                                                             haveit=
16638                     for x in $rpathdirs; do
16639                       if test "X$x" = "X$found_dir"; then
16640                         haveit=yes
16641                         break
16642                       fi
16643                     done
16644                     if test -z "$haveit"; then
16645                       rpathdirs="$rpathdirs $found_dir"
16646                     fi
16647                   else
16648                                                                                 haveit=
16649                     for x in $LDFLAGS $LIBICONV; do
16650
16651   acl_save_prefix="$prefix"
16652   prefix="$acl_final_prefix"
16653   acl_save_exec_prefix="$exec_prefix"
16654   exec_prefix="$acl_final_exec_prefix"
16655   eval x=\"$x\"
16656   exec_prefix="$acl_save_exec_prefix"
16657   prefix="$acl_save_prefix"
16658
16659                       if test "X$x" = "X-L$found_dir"; then
16660                         haveit=yes
16661                         break
16662                       fi
16663                     done
16664                     if test -z "$haveit"; then
16665                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16666                     fi
16667                     if test "$hardcode_minus_L" != no; then
16668                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16669                     else
16670                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16671                     fi
16672                   fi
16673                 fi
16674               fi
16675             else
16676               if test "X$found_a" != "X"; then
16677                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16678               else
16679                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16680               fi
16681             fi
16682                         additional_includedir=
16683             case "$found_dir" in
16684               */lib | */lib/)
16685                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16686                 additional_includedir="$basedir/include"
16687                 ;;
16688             esac
16689             if test "X$additional_includedir" != "X"; then
16690                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16691                 haveit=
16692                 if test "X$additional_includedir" = "X/usr/local/include"; then
16693                   if test -n "$GCC"; then
16694                     case $host_os in
16695                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16696                     esac
16697                   fi
16698                 fi
16699                 if test -z "$haveit"; then
16700                   for x in $CPPFLAGS $INCICONV; do
16701
16702   acl_save_prefix="$prefix"
16703   prefix="$acl_final_prefix"
16704   acl_save_exec_prefix="$exec_prefix"
16705   exec_prefix="$acl_final_exec_prefix"
16706   eval x=\"$x\"
16707   exec_prefix="$acl_save_exec_prefix"
16708   prefix="$acl_save_prefix"
16709
16710                     if test "X$x" = "X-I$additional_includedir"; then
16711                       haveit=yes
16712                       break
16713                     fi
16714                   done
16715                   if test -z "$haveit"; then
16716                     if test -d "$additional_includedir"; then
16717                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16718                     fi
16719                   fi
16720                 fi
16721               fi
16722             fi
16723                         if test -n "$found_la"; then
16724                                                         save_libdir="$libdir"
16725               case "$found_la" in
16726                 */* | *\\*) . "$found_la" ;;
16727                 *) . "./$found_la" ;;
16728               esac
16729               libdir="$save_libdir"
16730                             for dep in $dependency_libs; do
16731                 case "$dep" in
16732                   -L*)
16733                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16734                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16735                       haveit=
16736                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16737                         if test -n "$GCC"; then
16738                           case $host_os in
16739                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16740                           esac
16741                         fi
16742                       fi
16743                       if test -z "$haveit"; then
16744                         haveit=
16745                         for x in $LDFLAGS $LIBICONV; do
16746
16747   acl_save_prefix="$prefix"
16748   prefix="$acl_final_prefix"
16749   acl_save_exec_prefix="$exec_prefix"
16750   exec_prefix="$acl_final_exec_prefix"
16751   eval x=\"$x\"
16752   exec_prefix="$acl_save_exec_prefix"
16753   prefix="$acl_save_prefix"
16754
16755                           if test "X$x" = "X-L$additional_libdir"; then
16756                             haveit=yes
16757                             break
16758                           fi
16759                         done
16760                         if test -z "$haveit"; then
16761                           if test -d "$additional_libdir"; then
16762                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16763                           fi
16764                         fi
16765                         haveit=
16766                         for x in $LDFLAGS $LTLIBICONV; do
16767
16768   acl_save_prefix="$prefix"
16769   prefix="$acl_final_prefix"
16770   acl_save_exec_prefix="$exec_prefix"
16771   exec_prefix="$acl_final_exec_prefix"
16772   eval x=\"$x\"
16773   exec_prefix="$acl_save_exec_prefix"
16774   prefix="$acl_save_prefix"
16775
16776                           if test "X$x" = "X-L$additional_libdir"; then
16777                             haveit=yes
16778                             break
16779                           fi
16780                         done
16781                         if test -z "$haveit"; then
16782                           if test -d "$additional_libdir"; then
16783                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16784                           fi
16785                         fi
16786                       fi
16787                     fi
16788                     ;;
16789                   -R*)
16790                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16791                     if test "$enable_rpath" != no; then
16792                                                                   haveit=
16793                       for x in $rpathdirs; do
16794                         if test "X$x" = "X$dir"; then
16795                           haveit=yes
16796                           break
16797                         fi
16798                       done
16799                       if test -z "$haveit"; then
16800                         rpathdirs="$rpathdirs $dir"
16801                       fi
16802                                                                   haveit=
16803                       for x in $ltrpathdirs; do
16804                         if test "X$x" = "X$dir"; then
16805                           haveit=yes
16806                           break
16807                         fi
16808                       done
16809                       if test -z "$haveit"; then
16810                         ltrpathdirs="$ltrpathdirs $dir"
16811                       fi
16812                     fi
16813                     ;;
16814                   -l*)
16815                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16816                     ;;
16817                   *.la)
16818                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16819                     ;;
16820                   *)
16821                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16822                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16823                     ;;
16824                 esac
16825               done
16826             fi
16827           else
16828                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16829             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16830           fi
16831         fi
16832       fi
16833     done
16834   done
16835   if test "X$rpathdirs" != "X"; then
16836     if test -n "$hardcode_libdir_separator"; then
16837                         alldirs=
16838       for found_dir in $rpathdirs; do
16839         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16840       done
16841             acl_save_libdir="$libdir"
16842       libdir="$alldirs"
16843       eval flag=\"$hardcode_libdir_flag_spec\"
16844       libdir="$acl_save_libdir"
16845       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16846     else
16847             for found_dir in $rpathdirs; do
16848         acl_save_libdir="$libdir"
16849         libdir="$found_dir"
16850         eval flag=\"$hardcode_libdir_flag_spec\"
16851         libdir="$acl_save_libdir"
16852         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16853       done
16854     fi
16855   fi
16856   if test "X$ltrpathdirs" != "X"; then
16857             for found_dir in $ltrpathdirs; do
16858       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16859     done
16860   fi
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16880 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16881 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16882   $as_echo_n "(cached) " >&6
16883 else
16884   gt_save_CPPFLAGS="$CPPFLAGS"
16885      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16886      gt_save_LIBS="$LIBS"
16887      LIBS="$LIBS -framework CoreFoundation"
16888      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h.  */
16890 #include <CFPreferences.h>
16891 int
16892 main ()
16893 {
16894 CFPreferencesCopyAppValue(NULL, NULL)
16895   ;
16896   return 0;
16897 }
16898 _ACEOF
16899 if ac_fn_c_try_link "$LINENO"; then :
16900   gt_cv_func_CFPreferencesCopyAppValue=yes
16901 else
16902   gt_cv_func_CFPreferencesCopyAppValue=no
16903 fi
16904 rm -f core conftest.err conftest.$ac_objext \
16905     conftest$ac_exeext conftest.$ac_ext
16906      CPPFLAGS="$gt_save_CPPFLAGS"
16907      LIBS="$gt_save_LIBS"
16908 fi
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16910 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16911   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16912
16913 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16914
16915   fi
16916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16917 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16918 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16919   $as_echo_n "(cached) " >&6
16920 else
16921   gt_save_CPPFLAGS="$CPPFLAGS"
16922      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16923      gt_save_LIBS="$LIBS"
16924      LIBS="$LIBS -framework CoreFoundation"
16925      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926 /* end confdefs.h.  */
16927 #include <CFLocale.h>
16928 int
16929 main ()
16930 {
16931 CFLocaleCopyCurrent();
16932   ;
16933   return 0;
16934 }
16935 _ACEOF
16936 if ac_fn_c_try_link "$LINENO"; then :
16937   gt_cv_func_CFLocaleCopyCurrent=yes
16938 else
16939   gt_cv_func_CFLocaleCopyCurrent=no
16940 fi
16941 rm -f core conftest.err conftest.$ac_objext \
16942     conftest$ac_exeext conftest.$ac_ext
16943      CPPFLAGS="$gt_save_CPPFLAGS"
16944      LIBS="$gt_save_LIBS"
16945 fi
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16947 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16948   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16949
16950 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16951
16952   fi
16953   INTL_MACOSX_LIBS=
16954   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16955     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16956   fi
16957
16958
16959
16960
16961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16962 $as_echo_n "checking whether NLS is requested... " >&6; }
16963     # Check whether --enable-nls was given.
16964 if test "${enable_nls+set}" = set; then :
16965   enableval=$enable_nls; USE_NLS=$enableval
16966 else
16967   USE_NLS=yes
16968 fi
16969
16970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16971 $as_echo "$USE_NLS" >&6; }
16972
16973
16974
16975
16976   LIBINTL=
16977   LTLIBINTL=
16978   POSUB=
16979
16980     if test "$USE_NLS" = "yes"; then
16981     gt_use_preinstalled_gnugettext=no
16982
16983
16984
16985
16986
16987
16988         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16989 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16990 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
16991   $as_echo_n "(cached) " >&6
16992 else
16993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h.  */
16995 #include <libintl.h>
16996 extern int _nl_msg_cat_cntr;
16997 extern int *_nl_domain_bindings;
16998 int
16999 main ()
17000 {
17001 bindtextdomain ("", "");
17002 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17003   ;
17004   return 0;
17005 }
17006 _ACEOF
17007 if ac_fn_c_try_link "$LINENO"; then :
17008   gt_cv_func_gnugettext1_libc=yes
17009 else
17010   gt_cv_func_gnugettext1_libc=no
17011 fi
17012 rm -f core conftest.err conftest.$ac_objext \
17013     conftest$ac_exeext conftest.$ac_ext
17014 fi
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17016 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17017
17018         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17019
17020
17021
17022
17023
17024           am_save_CPPFLAGS="$CPPFLAGS"
17025
17026   for element in $INCICONV; do
17027     haveit=
17028     for x in $CPPFLAGS; do
17029
17030   acl_save_prefix="$prefix"
17031   prefix="$acl_final_prefix"
17032   acl_save_exec_prefix="$exec_prefix"
17033   exec_prefix="$acl_final_exec_prefix"
17034   eval x=\"$x\"
17035   exec_prefix="$acl_save_exec_prefix"
17036   prefix="$acl_save_prefix"
17037
17038       if test "X$x" = "X$element"; then
17039         haveit=yes
17040         break
17041       fi
17042     done
17043     if test -z "$haveit"; then
17044       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17045     fi
17046   done
17047
17048
17049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17050 $as_echo_n "checking for iconv... " >&6; }
17051 if test "${am_cv_func_iconv+set}" = set; then :
17052   $as_echo_n "(cached) " >&6
17053 else
17054
17055     am_cv_func_iconv="no, consider installing GNU libiconv"
17056     am_cv_lib_iconv=no
17057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h.  */
17059 #include <stdlib.h>
17060 #include <iconv.h>
17061 int
17062 main ()
17063 {
17064 iconv_t cd = iconv_open("","");
17065        iconv(cd,NULL,NULL,NULL,NULL);
17066        iconv_close(cd);
17067   ;
17068   return 0;
17069 }
17070 _ACEOF
17071 if ac_fn_c_try_link "$LINENO"; then :
17072   am_cv_func_iconv=yes
17073 fi
17074 rm -f core conftest.err conftest.$ac_objext \
17075     conftest$ac_exeext conftest.$ac_ext
17076     if test "$am_cv_func_iconv" != yes; then
17077       am_save_LIBS="$LIBS"
17078       LIBS="$LIBS $LIBICONV"
17079       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17080 /* end confdefs.h.  */
17081 #include <stdlib.h>
17082 #include <iconv.h>
17083 int
17084 main ()
17085 {
17086 iconv_t cd = iconv_open("","");
17087          iconv(cd,NULL,NULL,NULL,NULL);
17088          iconv_close(cd);
17089   ;
17090   return 0;
17091 }
17092 _ACEOF
17093 if ac_fn_c_try_link "$LINENO"; then :
17094   am_cv_lib_iconv=yes
17095         am_cv_func_iconv=yes
17096 fi
17097 rm -f core conftest.err conftest.$ac_objext \
17098     conftest$ac_exeext conftest.$ac_ext
17099       LIBS="$am_save_LIBS"
17100     fi
17101
17102 fi
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17104 $as_echo "$am_cv_func_iconv" >&6; }
17105   if test "$am_cv_func_iconv" = yes; then
17106
17107 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17108
17109   fi
17110   if test "$am_cv_lib_iconv" = yes; then
17111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17112 $as_echo_n "checking how to link with libiconv... " >&6; }
17113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17114 $as_echo "$LIBICONV" >&6; }
17115   else
17116             CPPFLAGS="$am_save_CPPFLAGS"
17117     LIBICONV=
17118     LTLIBICONV=
17119   fi
17120
17121
17122
17123
17124
17125
17126     use_additional=yes
17127
17128   acl_save_prefix="$prefix"
17129   prefix="$acl_final_prefix"
17130   acl_save_exec_prefix="$exec_prefix"
17131   exec_prefix="$acl_final_exec_prefix"
17132
17133     eval additional_includedir=\"$includedir\"
17134     eval additional_libdir=\"$libdir\"
17135
17136   exec_prefix="$acl_save_exec_prefix"
17137   prefix="$acl_save_prefix"
17138
17139
17140 # Check whether --with-libintl-prefix was given.
17141 if test "${with_libintl_prefix+set}" = set; then :
17142   withval=$with_libintl_prefix;
17143     if test "X$withval" = "Xno"; then
17144       use_additional=no
17145     else
17146       if test "X$withval" = "X"; then
17147
17148   acl_save_prefix="$prefix"
17149   prefix="$acl_final_prefix"
17150   acl_save_exec_prefix="$exec_prefix"
17151   exec_prefix="$acl_final_exec_prefix"
17152
17153           eval additional_includedir=\"$includedir\"
17154           eval additional_libdir=\"$libdir\"
17155
17156   exec_prefix="$acl_save_exec_prefix"
17157   prefix="$acl_save_prefix"
17158
17159       else
17160         additional_includedir="$withval/include"
17161         additional_libdir="$withval/lib"
17162       fi
17163     fi
17164
17165 fi
17166
17167       LIBINTL=
17168   LTLIBINTL=
17169   INCINTL=
17170   rpathdirs=
17171   ltrpathdirs=
17172   names_already_handled=
17173   names_next_round='intl '
17174   while test -n "$names_next_round"; do
17175     names_this_round="$names_next_round"
17176     names_next_round=
17177     for name in $names_this_round; do
17178       already_handled=
17179       for n in $names_already_handled; do
17180         if test "$n" = "$name"; then
17181           already_handled=yes
17182           break
17183         fi
17184       done
17185       if test -z "$already_handled"; then
17186         names_already_handled="$names_already_handled $name"
17187                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17188         eval value=\"\$HAVE_LIB$uppername\"
17189         if test -n "$value"; then
17190           if test "$value" = yes; then
17191             eval value=\"\$LIB$uppername\"
17192             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17193             eval value=\"\$LTLIB$uppername\"
17194             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17195           else
17196                                     :
17197           fi
17198         else
17199                               found_dir=
17200           found_la=
17201           found_so=
17202           found_a=
17203           if test $use_additional = yes; then
17204             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17205               found_dir="$additional_libdir"
17206               found_so="$additional_libdir/lib$name.$shlibext"
17207               if test -f "$additional_libdir/lib$name.la"; then
17208                 found_la="$additional_libdir/lib$name.la"
17209               fi
17210             else
17211               if test -f "$additional_libdir/lib$name.$libext"; then
17212                 found_dir="$additional_libdir"
17213                 found_a="$additional_libdir/lib$name.$libext"
17214                 if test -f "$additional_libdir/lib$name.la"; then
17215                   found_la="$additional_libdir/lib$name.la"
17216                 fi
17217               fi
17218             fi
17219           fi
17220           if test "X$found_dir" = "X"; then
17221             for x in $LDFLAGS $LTLIBINTL; do
17222
17223   acl_save_prefix="$prefix"
17224   prefix="$acl_final_prefix"
17225   acl_save_exec_prefix="$exec_prefix"
17226   exec_prefix="$acl_final_exec_prefix"
17227   eval x=\"$x\"
17228   exec_prefix="$acl_save_exec_prefix"
17229   prefix="$acl_save_prefix"
17230
17231               case "$x" in
17232                 -L*)
17233                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17234                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17235                     found_dir="$dir"
17236                     found_so="$dir/lib$name.$shlibext"
17237                     if test -f "$dir/lib$name.la"; then
17238                       found_la="$dir/lib$name.la"
17239                     fi
17240                   else
17241                     if test -f "$dir/lib$name.$libext"; then
17242                       found_dir="$dir"
17243                       found_a="$dir/lib$name.$libext"
17244                       if test -f "$dir/lib$name.la"; then
17245                         found_la="$dir/lib$name.la"
17246                       fi
17247                     fi
17248                   fi
17249                   ;;
17250               esac
17251               if test "X$found_dir" != "X"; then
17252                 break
17253               fi
17254             done
17255           fi
17256           if test "X$found_dir" != "X"; then
17257                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17258             if test "X$found_so" != "X"; then
17259                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17260                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17261               else
17262                                                                                 haveit=
17263                 for x in $ltrpathdirs; do
17264                   if test "X$x" = "X$found_dir"; then
17265                     haveit=yes
17266                     break
17267                   fi
17268                 done
17269                 if test -z "$haveit"; then
17270                   ltrpathdirs="$ltrpathdirs $found_dir"
17271                 fi
17272                                 if test "$hardcode_direct" = yes; then
17273                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17274                 else
17275                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17276                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17277                                                             haveit=
17278                     for x in $rpathdirs; do
17279                       if test "X$x" = "X$found_dir"; then
17280                         haveit=yes
17281                         break
17282                       fi
17283                     done
17284                     if test -z "$haveit"; then
17285                       rpathdirs="$rpathdirs $found_dir"
17286                     fi
17287                   else
17288                                                                                 haveit=
17289                     for x in $LDFLAGS $LIBINTL; do
17290
17291   acl_save_prefix="$prefix"
17292   prefix="$acl_final_prefix"
17293   acl_save_exec_prefix="$exec_prefix"
17294   exec_prefix="$acl_final_exec_prefix"
17295   eval x=\"$x\"
17296   exec_prefix="$acl_save_exec_prefix"
17297   prefix="$acl_save_prefix"
17298
17299                       if test "X$x" = "X-L$found_dir"; then
17300                         haveit=yes
17301                         break
17302                       fi
17303                     done
17304                     if test -z "$haveit"; then
17305                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17306                     fi
17307                     if test "$hardcode_minus_L" != no; then
17308                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17309                     else
17310                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17311                     fi
17312                   fi
17313                 fi
17314               fi
17315             else
17316               if test "X$found_a" != "X"; then
17317                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17318               else
17319                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17320               fi
17321             fi
17322                         additional_includedir=
17323             case "$found_dir" in
17324               */lib | */lib/)
17325                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17326                 additional_includedir="$basedir/include"
17327                 ;;
17328             esac
17329             if test "X$additional_includedir" != "X"; then
17330                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17331                 haveit=
17332                 if test "X$additional_includedir" = "X/usr/local/include"; then
17333                   if test -n "$GCC"; then
17334                     case $host_os in
17335                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17336                     esac
17337                   fi
17338                 fi
17339                 if test -z "$haveit"; then
17340                   for x in $CPPFLAGS $INCINTL; do
17341
17342   acl_save_prefix="$prefix"
17343   prefix="$acl_final_prefix"
17344   acl_save_exec_prefix="$exec_prefix"
17345   exec_prefix="$acl_final_exec_prefix"
17346   eval x=\"$x\"
17347   exec_prefix="$acl_save_exec_prefix"
17348   prefix="$acl_save_prefix"
17349
17350                     if test "X$x" = "X-I$additional_includedir"; then
17351                       haveit=yes
17352                       break
17353                     fi
17354                   done
17355                   if test -z "$haveit"; then
17356                     if test -d "$additional_includedir"; then
17357                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17358                     fi
17359                   fi
17360                 fi
17361               fi
17362             fi
17363                         if test -n "$found_la"; then
17364                                                         save_libdir="$libdir"
17365               case "$found_la" in
17366                 */* | *\\*) . "$found_la" ;;
17367                 *) . "./$found_la" ;;
17368               esac
17369               libdir="$save_libdir"
17370                             for dep in $dependency_libs; do
17371                 case "$dep" in
17372                   -L*)
17373                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17374                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17375                       haveit=
17376                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17377                         if test -n "$GCC"; then
17378                           case $host_os in
17379                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17380                           esac
17381                         fi
17382                       fi
17383                       if test -z "$haveit"; then
17384                         haveit=
17385                         for x in $LDFLAGS $LIBINTL; do
17386
17387   acl_save_prefix="$prefix"
17388   prefix="$acl_final_prefix"
17389   acl_save_exec_prefix="$exec_prefix"
17390   exec_prefix="$acl_final_exec_prefix"
17391   eval x=\"$x\"
17392   exec_prefix="$acl_save_exec_prefix"
17393   prefix="$acl_save_prefix"
17394
17395                           if test "X$x" = "X-L$additional_libdir"; then
17396                             haveit=yes
17397                             break
17398                           fi
17399                         done
17400                         if test -z "$haveit"; then
17401                           if test -d "$additional_libdir"; then
17402                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17403                           fi
17404                         fi
17405                         haveit=
17406                         for x in $LDFLAGS $LTLIBINTL; do
17407
17408   acl_save_prefix="$prefix"
17409   prefix="$acl_final_prefix"
17410   acl_save_exec_prefix="$exec_prefix"
17411   exec_prefix="$acl_final_exec_prefix"
17412   eval x=\"$x\"
17413   exec_prefix="$acl_save_exec_prefix"
17414   prefix="$acl_save_prefix"
17415
17416                           if test "X$x" = "X-L$additional_libdir"; then
17417                             haveit=yes
17418                             break
17419                           fi
17420                         done
17421                         if test -z "$haveit"; then
17422                           if test -d "$additional_libdir"; then
17423                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17424                           fi
17425                         fi
17426                       fi
17427                     fi
17428                     ;;
17429                   -R*)
17430                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17431                     if test "$enable_rpath" != no; then
17432                                                                   haveit=
17433                       for x in $rpathdirs; do
17434                         if test "X$x" = "X$dir"; then
17435                           haveit=yes
17436                           break
17437                         fi
17438                       done
17439                       if test -z "$haveit"; then
17440                         rpathdirs="$rpathdirs $dir"
17441                       fi
17442                                                                   haveit=
17443                       for x in $ltrpathdirs; do
17444                         if test "X$x" = "X$dir"; then
17445                           haveit=yes
17446                           break
17447                         fi
17448                       done
17449                       if test -z "$haveit"; then
17450                         ltrpathdirs="$ltrpathdirs $dir"
17451                       fi
17452                     fi
17453                     ;;
17454                   -l*)
17455                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17456                     ;;
17457                   *.la)
17458                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17459                     ;;
17460                   *)
17461                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17462                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17463                     ;;
17464                 esac
17465               done
17466             fi
17467           else
17468                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17469             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17470           fi
17471         fi
17472       fi
17473     done
17474   done
17475   if test "X$rpathdirs" != "X"; then
17476     if test -n "$hardcode_libdir_separator"; then
17477                         alldirs=
17478       for found_dir in $rpathdirs; do
17479         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17480       done
17481             acl_save_libdir="$libdir"
17482       libdir="$alldirs"
17483       eval flag=\"$hardcode_libdir_flag_spec\"
17484       libdir="$acl_save_libdir"
17485       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17486     else
17487             for found_dir in $rpathdirs; do
17488         acl_save_libdir="$libdir"
17489         libdir="$found_dir"
17490         eval flag=\"$hardcode_libdir_flag_spec\"
17491         libdir="$acl_save_libdir"
17492         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17493       done
17494     fi
17495   fi
17496   if test "X$ltrpathdirs" != "X"; then
17497             for found_dir in $ltrpathdirs; do
17498       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17499     done
17500   fi
17501
17502           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17503 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17504 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17505   $as_echo_n "(cached) " >&6
17506 else
17507   gt_save_CPPFLAGS="$CPPFLAGS"
17508             CPPFLAGS="$CPPFLAGS $INCINTL"
17509             gt_save_LIBS="$LIBS"
17510             LIBS="$LIBS $LIBINTL"
17511                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17512 /* end confdefs.h.  */
17513 #include <libintl.h>
17514 extern int _nl_msg_cat_cntr;
17515 extern
17516 #ifdef __cplusplus
17517 "C"
17518 #endif
17519 const char *_nl_expand_alias (const char *);
17520 int
17521 main ()
17522 {
17523 bindtextdomain ("", "");
17524 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17525   ;
17526   return 0;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_link "$LINENO"; then :
17530   gt_cv_func_gnugettext1_libintl=yes
17531 else
17532   gt_cv_func_gnugettext1_libintl=no
17533 fi
17534 rm -f core conftest.err conftest.$ac_objext \
17535     conftest$ac_exeext conftest.$ac_ext
17536                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17537               LIBS="$LIBS $LIBICONV"
17538               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h.  */
17540 #include <libintl.h>
17541 extern int _nl_msg_cat_cntr;
17542 extern
17543 #ifdef __cplusplus
17544 "C"
17545 #endif
17546 const char *_nl_expand_alias (const char *);
17547 int
17548 main ()
17549 {
17550 bindtextdomain ("", "");
17551 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17552   ;
17553   return 0;
17554 }
17555 _ACEOF
17556 if ac_fn_c_try_link "$LINENO"; then :
17557   LIBINTL="$LIBINTL $LIBICONV"
17558                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17559                 gt_cv_func_gnugettext1_libintl=yes
17560
17561 fi
17562 rm -f core conftest.err conftest.$ac_objext \
17563     conftest$ac_exeext conftest.$ac_ext
17564             fi
17565             CPPFLAGS="$gt_save_CPPFLAGS"
17566             LIBS="$gt_save_LIBS"
17567 fi
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17569 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17570         fi
17571
17572                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17573            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17574                 && test "$PACKAGE" != gettext-runtime \
17575                 && test "$PACKAGE" != gettext-tools; }; then
17576           gt_use_preinstalled_gnugettext=yes
17577         else
17578                     LIBINTL=
17579           LTLIBINTL=
17580           INCINTL=
17581         fi
17582
17583
17584
17585     if test -n "$INTL_MACOSX_LIBS"; then
17586       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17587          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17588                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17589         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17590       fi
17591     fi
17592
17593     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17594        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17595
17596 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17597
17598     else
17599       USE_NLS=no
17600     fi
17601   fi
17602
17603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17604 $as_echo_n "checking whether to use NLS... " >&6; }
17605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17606 $as_echo "$USE_NLS" >&6; }
17607   if test "$USE_NLS" = "yes"; then
17608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17609 $as_echo_n "checking where the gettext function comes from... " >&6; }
17610     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17611       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17612         gt_source="external libintl"
17613       else
17614         gt_source="libc"
17615       fi
17616     else
17617       gt_source="included intl directory"
17618     fi
17619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17620 $as_echo "$gt_source" >&6; }
17621   fi
17622
17623   if test "$USE_NLS" = "yes"; then
17624
17625     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17626       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17627         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17628 $as_echo_n "checking how to link with libintl... " >&6; }
17629         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17630 $as_echo "$LIBINTL" >&6; }
17631
17632   for element in $INCINTL; do
17633     haveit=
17634     for x in $CPPFLAGS; do
17635
17636   acl_save_prefix="$prefix"
17637   prefix="$acl_final_prefix"
17638   acl_save_exec_prefix="$exec_prefix"
17639   exec_prefix="$acl_final_exec_prefix"
17640   eval x=\"$x\"
17641   exec_prefix="$acl_save_exec_prefix"
17642   prefix="$acl_save_prefix"
17643
17644       if test "X$x" = "X$element"; then
17645         haveit=yes
17646         break
17647       fi
17648     done
17649     if test -z "$haveit"; then
17650       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17651     fi
17652   done
17653
17654       fi
17655
17656
17657 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17658
17659
17660 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17661
17662     fi
17663
17664         POSUB=po
17665   fi
17666
17667
17668
17669     INTLLIBS="$LIBINTL"
17670
17671
17672
17673
17674
17675
17676
17677 os_name=`uname -s 2>/dev/null`
17678 if test x${prefix} = xNONE ; then
17679    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17680       sysconfdir=/etc/bacula
17681    fi
17682
17683    if test `eval echo ${libdir}` = NONE/lib ; then
17684       case ${os_name} in
17685       Linux)
17686          os_processor=`uname -p 2>/dev/null`
17687          case ${os_processor} in
17688          x86_64)
17689             libdir=/usr/lib64
17690             ;;
17691          *)
17692             libdir=/usr/lib
17693             ;;
17694          esac
17695          ;;
17696       *)
17697          libdir=/usr/lib
17698          ;;
17699       esac
17700    fi
17701
17702    if test `eval echo ${includedir}` = NONE/include ; then
17703       includedir=/usr/include
17704    fi
17705
17706    if test `eval echo ${datarootdir}` = NONE/share ; then
17707       datarootdir=/usr/share
17708    fi
17709    prefix=
17710 fi
17711
17712 if test x${exec_prefix} = xNONE ; then
17713    exec_prefix=${prefix}
17714 fi
17715
17716 sysconfdir=`eval echo ${sysconfdir}`
17717 datarootdir=`eval echo ${datarootdir}`
17718 docdir=`eval echo ${docdir}`
17719 htmldir=`eval echo ${htmldir}`
17720 libdir=`eval echo ${libdir}`
17721 includedir=`eval echo ${includedir}`
17722 localedir=`eval echo ${datarootdir}/locale`
17723 cat >>confdefs.h <<_ACEOF
17724 #define SYSCONFDIR "$sysconfdir"
17725 _ACEOF
17726
17727 cat >>confdefs.h <<_ACEOF
17728 #define LOCALEDIR "$localedir"
17729 _ACEOF
17730
17731
17732 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17733    sbindir=${exec_prefix}/sbin
17734 fi
17735 sbindir=`eval echo ${sbindir}`
17736
17737 if test x$mandir = x'${prefix}/man' ; then
17738    mandir=/usr/share/man
17739 fi
17740
17741 if test x$htmldir = x${docdir} ; then
17742    htmldir=`eval echo ${docdir}bacula/html`
17743 fi
17744
17745 if test x$docdir = x'/usr/share/doc/' ; then
17746    docdir=`eval echo ${docdir}bacula`
17747 fi
17748
17749
17750 for ac_prog in msgfmt
17751 do
17752   # Extract the first word of "$ac_prog", so it can be a program name with args.
17753 set dummy $ac_prog; ac_word=$2
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17755 $as_echo_n "checking for $ac_word... " >&6; }
17756 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17757   $as_echo_n "(cached) " >&6
17758 else
17759   case $MSGFMT in
17760   [\\/]* | ?:[\\/]*)
17761   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17762   ;;
17763   *)
17764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17765 for as_dir in $PATH
17766 do
17767   IFS=$as_save_IFS
17768   test -z "$as_dir" && as_dir=.
17769     for ac_exec_ext in '' $ac_executable_extensions; do
17770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17771     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17773     break 2
17774   fi
17775 done
17776   done
17777 IFS=$as_save_IFS
17778
17779   ;;
17780 esac
17781 fi
17782 MSGFMT=$ac_cv_path_MSGFMT
17783 if test -n "$MSGFMT"; then
17784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17785 $as_echo "$MSGFMT" >&6; }
17786 else
17787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17788 $as_echo "no" >&6; }
17789 fi
17790
17791
17792   test -n "$MSGFMT" && break
17793 done
17794 test -n "$MSGFMT" || MSGFMT="no"
17795
17796 if test "$MSGFMT" = "no"
17797 then
17798    echo 'msgfmt program not found, disabling NLS !'
17799    USE_NLS=no
17800    USE_INCLUDED_LIBINTL=no
17801 #else
17802
17803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17804 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17805 if test "${ac_cv_gnu_library_2+set}" = set; then :
17806   $as_echo_n "(cached) " >&6
17807 else
17808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h.  */
17810
17811 #include <features.h>
17812 #ifdef __GNU_LIBRARY__
17813  #if (__GLIBC__ >= 2)
17814   Lucky GNU user
17815  #endif
17816 #endif
17817
17818 _ACEOF
17819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17820   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17821   ac_cv_gnu_library_2=yes
17822 else
17823   ac_cv_gnu_library_2=no
17824 fi
17825 rm -f conftest*
17826
17827
17828
17829 fi
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17831 $as_echo "$ac_cv_gnu_library_2" >&6; }
17832
17833     GLIBC2="$ac_cv_gnu_library_2"
17834
17835
17836 if test -n "$ac_tool_prefix"; then
17837   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17840 $as_echo_n "checking for $ac_word... " >&6; }
17841 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17842   $as_echo_n "(cached) " >&6
17843 else
17844   if test -n "$RANLIB"; then
17845   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17846 else
17847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17848 for as_dir in $PATH
17849 do
17850   IFS=$as_save_IFS
17851   test -z "$as_dir" && as_dir=.
17852     for ac_exec_ext in '' $ac_executable_extensions; do
17853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17854     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17856     break 2
17857   fi
17858 done
17859   done
17860 IFS=$as_save_IFS
17861
17862 fi
17863 fi
17864 RANLIB=$ac_cv_prog_RANLIB
17865 if test -n "$RANLIB"; then
17866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17867 $as_echo "$RANLIB" >&6; }
17868 else
17869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17870 $as_echo "no" >&6; }
17871 fi
17872
17873
17874 fi
17875 if test -z "$ac_cv_prog_RANLIB"; then
17876   ac_ct_RANLIB=$RANLIB
17877   # Extract the first word of "ranlib", so it can be a program name with args.
17878 set dummy ranlib; ac_word=$2
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17880 $as_echo_n "checking for $ac_word... " >&6; }
17881 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17882   $as_echo_n "(cached) " >&6
17883 else
17884   if test -n "$ac_ct_RANLIB"; then
17885   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17886 else
17887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17888 for as_dir in $PATH
17889 do
17890   IFS=$as_save_IFS
17891   test -z "$as_dir" && as_dir=.
17892     for ac_exec_ext in '' $ac_executable_extensions; do
17893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17894     ac_cv_prog_ac_ct_RANLIB="ranlib"
17895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17896     break 2
17897   fi
17898 done
17899   done
17900 IFS=$as_save_IFS
17901
17902 fi
17903 fi
17904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17905 if test -n "$ac_ct_RANLIB"; then
17906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17907 $as_echo "$ac_ct_RANLIB" >&6; }
17908 else
17909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17910 $as_echo "no" >&6; }
17911 fi
17912
17913   if test "x$ac_ct_RANLIB" = x; then
17914     RANLIB=":"
17915   else
17916     case $cross_compiling:$ac_tool_warned in
17917 yes:)
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17920 ac_tool_warned=yes ;;
17921 esac
17922     RANLIB=$ac_ct_RANLIB
17923   fi
17924 else
17925   RANLIB="$ac_cv_prog_RANLIB"
17926 fi
17927
17928
17929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17930 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17931 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17932   $as_echo_n "(cached) " >&6
17933 else
17934   ac_check_lib_save_LIBS=$LIBS
17935 LIBS="-lcposix  $LIBS"
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h.  */
17938
17939 /* Override any GCC internal prototype to avoid an error.
17940    Use char because int might match the return type of a GCC
17941    builtin and then its argument prototype would still apply.  */
17942 #ifdef __cplusplus
17943 extern "C"
17944 #endif
17945 char strerror ();
17946 int
17947 main ()
17948 {
17949 return strerror ();
17950   ;
17951   return 0;
17952 }
17953 _ACEOF
17954 if ac_fn_c_try_link "$LINENO"; then :
17955   ac_cv_lib_cposix_strerror=yes
17956 else
17957   ac_cv_lib_cposix_strerror=no
17958 fi
17959 rm -f core conftest.err conftest.$ac_objext \
17960     conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17962 fi
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17964 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17965 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17966   LIBS="$LIBS -lcposix"
17967 fi
17968
17969
17970
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17972 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17973 if test "${ac_cv_c_const+set}" = set; then :
17974   $as_echo_n "(cached) " >&6
17975 else
17976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h.  */
17978
17979 int
17980 main ()
17981 {
17982 /* FIXME: Include the comments suggested by Paul. */
17983 #ifndef __cplusplus
17984   /* Ultrix mips cc rejects this.  */
17985   typedef int charset[2];
17986   const charset cs;
17987   /* SunOS 4.1.1 cc rejects this.  */
17988   char const *const *pcpcc;
17989   char **ppc;
17990   /* NEC SVR4.0.2 mips cc rejects this.  */
17991   struct point {int x, y;};
17992   static struct point const zero = {0,0};
17993   /* AIX XL C 1.02.0.0 rejects this.
17994      It does not let you subtract one const X* pointer from another in
17995      an arm of an if-expression whose if-part is not a constant
17996      expression */
17997   const char *g = "string";
17998   pcpcc = &g + (g ? g-g : 0);
17999   /* HPUX 7.0 cc rejects these. */
18000   ++pcpcc;
18001   ppc = (char**) pcpcc;
18002   pcpcc = (char const *const *) ppc;
18003   { /* SCO 3.2v4 cc rejects this.  */
18004     char *t;
18005     char const *s = 0 ? (char *) 0 : (char const *) 0;
18006
18007     *t++ = 0;
18008     if (s) return 0;
18009   }
18010   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18011     int x[] = {25, 17};
18012     const int *foo = &x[0];
18013     ++foo;
18014   }
18015   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18016     typedef const int *iptr;
18017     iptr p = 0;
18018     ++p;
18019   }
18020   { /* AIX XL C 1.02.0.0 rejects this saying
18021        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18022     struct s { int j; const int *ap[3]; };
18023     struct s *b; b->j = 5;
18024   }
18025   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18026     const int foo = 10;
18027     if (!foo) return 0;
18028   }
18029   return !cs[0] && !zero.x;
18030 #endif
18031
18032   ;
18033   return 0;
18034 }
18035 _ACEOF
18036 if ac_fn_c_try_compile "$LINENO"; then :
18037   ac_cv_c_const=yes
18038 else
18039   ac_cv_c_const=no
18040 fi
18041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 fi
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18044 $as_echo "$ac_cv_c_const" >&6; }
18045 if test $ac_cv_c_const = no; then
18046
18047 $as_echo "#define const /**/" >>confdefs.h
18048
18049 fi
18050
18051
18052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18053 $as_echo_n "checking for signed... " >&6; }
18054 if test "${bh_cv_c_signed+set}" = set; then :
18055   $as_echo_n "(cached) " >&6
18056 else
18057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h.  */
18059
18060 int
18061 main ()
18062 {
18063 signed char x;
18064   ;
18065   return 0;
18066 }
18067 _ACEOF
18068 if ac_fn_c_try_compile "$LINENO"; then :
18069   bh_cv_c_signed=yes
18070 else
18071   bh_cv_c_signed=no
18072 fi
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074 fi
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18076 $as_echo "$bh_cv_c_signed" >&6; }
18077   if test $bh_cv_c_signed = no; then
18078
18079 $as_echo "#define signed /**/" >>confdefs.h
18080
18081   fi
18082
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18084 $as_echo_n "checking for inline... " >&6; }
18085 if test "${ac_cv_c_inline+set}" = set; then :
18086   $as_echo_n "(cached) " >&6
18087 else
18088   ac_cv_c_inline=no
18089 for ac_kw in inline __inline__ __inline; do
18090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h.  */
18092 #ifndef __cplusplus
18093 typedef int foo_t;
18094 static $ac_kw foo_t static_foo () {return 0; }
18095 $ac_kw foo_t foo () {return 0; }
18096 #endif
18097
18098 _ACEOF
18099 if ac_fn_c_try_compile "$LINENO"; then :
18100   ac_cv_c_inline=$ac_kw
18101 fi
18102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18103   test "$ac_cv_c_inline" != no && break
18104 done
18105
18106 fi
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18108 $as_echo "$ac_cv_c_inline" >&6; }
18109
18110 case $ac_cv_c_inline in
18111   inline | yes) ;;
18112   *)
18113     case $ac_cv_c_inline in
18114       no) ac_val=;;
18115       *) ac_val=$ac_cv_c_inline;;
18116     esac
18117     cat >>confdefs.h <<_ACEOF
18118 #ifndef __cplusplus
18119 #define inline $ac_val
18120 #endif
18121 _ACEOF
18122     ;;
18123 esac
18124
18125 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18126 if test "x$ac_cv_type_off_t" = x""yes; then :
18127
18128 else
18129
18130 cat >>confdefs.h <<_ACEOF
18131 #define off_t long int
18132 _ACEOF
18133
18134 fi
18135
18136 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18137 if test "x$ac_cv_type_size_t" = x""yes; then :
18138
18139 else
18140
18141 cat >>confdefs.h <<_ACEOF
18142 #define size_t unsigned int
18143 _ACEOF
18144
18145 fi
18146
18147
18148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18149 $as_echo_n "checking for long long... " >&6; }
18150 if test "${ac_cv_type_long_long+set}" = set; then :
18151   $as_echo_n "(cached) " >&6
18152 else
18153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154 /* end confdefs.h.  */
18155 long long ll = 1LL; int i = 63;
18156 int
18157 main ()
18158 {
18159 long long llmax = (long long) -1;
18160      return ll << i | ll >> i | llmax / ll | llmax % ll;
18161   ;
18162   return 0;
18163 }
18164 _ACEOF
18165 if ac_fn_c_try_link "$LINENO"; then :
18166   ac_cv_type_long_long=yes
18167 else
18168   ac_cv_type_long_long=no
18169 fi
18170 rm -f core conftest.err conftest.$ac_objext \
18171     conftest$ac_exeext conftest.$ac_ext
18172 fi
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18174 $as_echo "$ac_cv_type_long_long" >&6; }
18175   if test $ac_cv_type_long_long = yes; then
18176
18177 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18178
18179   fi
18180
18181
18182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18183 $as_echo_n "checking for long double... " >&6; }
18184 if test "${gt_cv_c_long_double+set}" = set; then :
18185   $as_echo_n "(cached) " >&6
18186 else
18187   if test "$GCC" = yes; then
18188        gt_cv_c_long_double=yes
18189      else
18190        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h.  */
18192
18193          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18194          long double foo = 0.0;
18195          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18196          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18197
18198 int
18199 main ()
18200 {
18201
18202   ;
18203   return 0;
18204 }
18205 _ACEOF
18206 if ac_fn_c_try_compile "$LINENO"; then :
18207   gt_cv_c_long_double=yes
18208 else
18209   gt_cv_c_long_double=no
18210 fi
18211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18212      fi
18213 fi
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18215 $as_echo "$gt_cv_c_long_double" >&6; }
18216   if test $gt_cv_c_long_double = yes; then
18217
18218 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18219
18220   fi
18221
18222
18223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18224 $as_echo_n "checking for wchar_t... " >&6; }
18225 if test "${gt_cv_c_wchar_t+set}" = set; then :
18226   $as_echo_n "(cached) " >&6
18227 else
18228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h.  */
18230 #include <stddef.h>
18231        wchar_t foo = (wchar_t)'\0';
18232 int
18233 main ()
18234 {
18235
18236   ;
18237   return 0;
18238 }
18239 _ACEOF
18240 if ac_fn_c_try_compile "$LINENO"; then :
18241   gt_cv_c_wchar_t=yes
18242 else
18243   gt_cv_c_wchar_t=no
18244 fi
18245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18246 fi
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18248 $as_echo "$gt_cv_c_wchar_t" >&6; }
18249   if test $gt_cv_c_wchar_t = yes; then
18250
18251 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18252
18253   fi
18254
18255
18256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18257 $as_echo_n "checking for wint_t... " >&6; }
18258 if test "${gt_cv_c_wint_t+set}" = set; then :
18259   $as_echo_n "(cached) " >&6
18260 else
18261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h.  */
18263 #include <wchar.h>
18264        wint_t foo = (wchar_t)'\0';
18265 int
18266 main ()
18267 {
18268
18269   ;
18270   return 0;
18271 }
18272 _ACEOF
18273 if ac_fn_c_try_compile "$LINENO"; then :
18274   gt_cv_c_wint_t=yes
18275 else
18276   gt_cv_c_wint_t=no
18277 fi
18278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279 fi
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18281 $as_echo "$gt_cv_c_wint_t" >&6; }
18282   if test $gt_cv_c_wint_t = yes; then
18283
18284 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18285
18286   fi
18287
18288
18289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18290 $as_echo_n "checking for inttypes.h... " >&6; }
18291 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18292   $as_echo_n "(cached) " >&6
18293 else
18294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h.  */
18296 #include <sys/types.h>
18297 #include <inttypes.h>
18298 int
18299 main ()
18300 {
18301 uintmax_t i = (uintmax_t) -1;
18302   ;
18303   return 0;
18304 }
18305 _ACEOF
18306 if ac_fn_c_try_compile "$LINENO"; then :
18307   gl_cv_header_inttypes_h=yes
18308 else
18309   gl_cv_header_inttypes_h=no
18310 fi
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 fi
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18314 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18315   if test $gl_cv_header_inttypes_h = yes; then
18316
18317 cat >>confdefs.h <<_ACEOF
18318 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18319 _ACEOF
18320
18321   fi
18322
18323
18324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18325 $as_echo_n "checking for stdint.h... " >&6; }
18326 if test "${gl_cv_header_stdint_h+set}" = set; then :
18327   $as_echo_n "(cached) " >&6
18328 else
18329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h.  */
18331 #include <sys/types.h>
18332 #include <stdint.h>
18333 int
18334 main ()
18335 {
18336 uintmax_t i = (uintmax_t) -1;
18337   ;
18338   return 0;
18339 }
18340 _ACEOF
18341 if ac_fn_c_try_compile "$LINENO"; then :
18342   gl_cv_header_stdint_h=yes
18343 else
18344   gl_cv_header_stdint_h=no
18345 fi
18346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18347 fi
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18349 $as_echo "$gl_cv_header_stdint_h" >&6; }
18350   if test $gl_cv_header_stdint_h = yes; then
18351
18352 cat >>confdefs.h <<_ACEOF
18353 #define HAVE_STDINT_H_WITH_UINTMAX 1
18354 _ACEOF
18355
18356   fi
18357
18358
18359
18360
18361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18362 $as_echo_n "checking for intmax_t... " >&6; }
18363 if test "${gt_cv_c_intmax_t+set}" = set; then :
18364   $as_echo_n "(cached) " >&6
18365 else
18366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h.  */
18368
18369 #include <stddef.h>
18370 #include <stdlib.h>
18371 #if HAVE_STDINT_H_WITH_UINTMAX
18372 #include <stdint.h>
18373 #endif
18374 #if HAVE_INTTYPES_H_WITH_UINTMAX
18375 #include <inttypes.h>
18376 #endif
18377
18378 int
18379 main ()
18380 {
18381 intmax_t x = -1;
18382   ;
18383   return 0;
18384 }
18385 _ACEOF
18386 if ac_fn_c_try_compile "$LINENO"; then :
18387   gt_cv_c_intmax_t=yes
18388 else
18389   gt_cv_c_intmax_t=no
18390 fi
18391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18392 fi
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18394 $as_echo "$gt_cv_c_intmax_t" >&6; }
18395   if test $gt_cv_c_intmax_t = yes; then
18396
18397 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18398
18399   fi
18400
18401
18402
18403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18404 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18405 if test "${gt_cv_func_printf_posix+set}" = set; then :
18406   $as_echo_n "(cached) " >&6
18407 else
18408
18409       if test "$cross_compiling" = yes; then :
18410
18411         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412 /* end confdefs.h.  */
18413
18414 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18415   notposix
18416 #endif
18417
18418 _ACEOF
18419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18420   $EGREP "notposix" >/dev/null 2>&1; then :
18421   gt_cv_func_printf_posix="guessing no"
18422 else
18423   gt_cv_func_printf_posix="guessing yes"
18424 fi
18425 rm -f conftest*
18426
18427
18428 else
18429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18430 /* end confdefs.h.  */
18431
18432 #include <stdio.h>
18433 #include <string.h>
18434 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18435    dollar expansion (possibly an autoconf bug).  */
18436 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18437 static char buf[100];
18438 int main ()
18439 {
18440   sprintf (buf, format, 33, 55);
18441   return (strcmp (buf, "55 33") != 0);
18442 }
18443 _ACEOF
18444 if ac_fn_c_try_run "$LINENO"; then :
18445   gt_cv_func_printf_posix=yes
18446 else
18447   gt_cv_func_printf_posix=no
18448 fi
18449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18450   conftest.$ac_objext conftest.beam conftest.$ac_ext
18451 fi
18452
18453
18454 fi
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18456 $as_echo "$gt_cv_func_printf_posix" >&6; }
18457   case $gt_cv_func_printf_posix in
18458     *yes)
18459
18460 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18461
18462       ;;
18463   esac
18464
18465 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18466 # for constant arguments.  Useless!
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18468 $as_echo_n "checking for working alloca.h... " >&6; }
18469 if test "${ac_cv_working_alloca_h+set}" = set; then :
18470   $as_echo_n "(cached) " >&6
18471 else
18472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h.  */
18474 #include <alloca.h>
18475 int
18476 main ()
18477 {
18478 char *p = (char *) alloca (2 * sizeof (int));
18479                           if (p) return 0;
18480   ;
18481   return 0;
18482 }
18483 _ACEOF
18484 if ac_fn_c_try_link "$LINENO"; then :
18485   ac_cv_working_alloca_h=yes
18486 else
18487   ac_cv_working_alloca_h=no
18488 fi
18489 rm -f core conftest.err conftest.$ac_objext \
18490     conftest$ac_exeext conftest.$ac_ext
18491 fi
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18493 $as_echo "$ac_cv_working_alloca_h" >&6; }
18494 if test $ac_cv_working_alloca_h = yes; then
18495
18496 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18497
18498 fi
18499
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18501 $as_echo_n "checking for alloca... " >&6; }
18502 if test "${ac_cv_func_alloca_works+set}" = set; then :
18503   $as_echo_n "(cached) " >&6
18504 else
18505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18506 /* end confdefs.h.  */
18507 #ifdef __GNUC__
18508 # define alloca __builtin_alloca
18509 #else
18510 # ifdef _MSC_VER
18511 #  include <malloc.h>
18512 #  define alloca _alloca
18513 # else
18514 #  ifdef HAVE_ALLOCA_H
18515 #   include <alloca.h>
18516 #  else
18517 #   ifdef _AIX
18518  #pragma alloca
18519 #   else
18520 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18521 char *alloca ();
18522 #    endif
18523 #   endif
18524 #  endif
18525 # endif
18526 #endif
18527
18528 int
18529 main ()
18530 {
18531 char *p = (char *) alloca (1);
18532                                     if (p) return 0;
18533   ;
18534   return 0;
18535 }
18536 _ACEOF
18537 if ac_fn_c_try_link "$LINENO"; then :
18538   ac_cv_func_alloca_works=yes
18539 else
18540   ac_cv_func_alloca_works=no
18541 fi
18542 rm -f core conftest.err conftest.$ac_objext \
18543     conftest$ac_exeext conftest.$ac_ext
18544 fi
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18546 $as_echo "$ac_cv_func_alloca_works" >&6; }
18547
18548 if test $ac_cv_func_alloca_works = yes; then
18549
18550 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18551
18552 else
18553   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18554 # that cause trouble.  Some versions do not even contain alloca or
18555 # contain a buggy version.  If you still want to use their alloca,
18556 # use ar to extract alloca.o from them instead of compiling alloca.c.
18557
18558 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18559
18560 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18561
18562
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18564 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18565 if test "${ac_cv_os_cray+set}" = set; then :
18566   $as_echo_n "(cached) " >&6
18567 else
18568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18569 /* end confdefs.h.  */
18570 #if defined CRAY && ! defined CRAY2
18571 webecray
18572 #else
18573 wenotbecray
18574 #endif
18575
18576 _ACEOF
18577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18578   $EGREP "webecray" >/dev/null 2>&1; then :
18579   ac_cv_os_cray=yes
18580 else
18581   ac_cv_os_cray=no
18582 fi
18583 rm -f conftest*
18584
18585 fi
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18587 $as_echo "$ac_cv_os_cray" >&6; }
18588 if test $ac_cv_os_cray = yes; then
18589   for ac_func in _getb67 GETB67 getb67; do
18590     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18591 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18592 eval as_val=\$$as_ac_var
18593    if test "x$as_val" = x""yes; then :
18594
18595 cat >>confdefs.h <<_ACEOF
18596 #define CRAY_STACKSEG_END $ac_func
18597 _ACEOF
18598
18599     break
18600 fi
18601
18602   done
18603 fi
18604
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18606 $as_echo_n "checking stack direction for C alloca... " >&6; }
18607 if test "${ac_cv_c_stack_direction+set}" = set; then :
18608   $as_echo_n "(cached) " >&6
18609 else
18610   if test "$cross_compiling" = yes; then :
18611   ac_cv_c_stack_direction=0
18612 else
18613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18614 /* end confdefs.h.  */
18615 $ac_includes_default
18616 int
18617 find_stack_direction ()
18618 {
18619   static char *addr = 0;
18620   auto char dummy;
18621   if (addr == 0)
18622     {
18623       addr = &dummy;
18624       return find_stack_direction ();
18625     }
18626   else
18627     return (&dummy > addr) ? 1 : -1;
18628 }
18629
18630 int
18631 main ()
18632 {
18633   return find_stack_direction () < 0;
18634 }
18635 _ACEOF
18636 if ac_fn_c_try_run "$LINENO"; then :
18637   ac_cv_c_stack_direction=1
18638 else
18639   ac_cv_c_stack_direction=-1
18640 fi
18641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18642   conftest.$ac_objext conftest.beam conftest.$ac_ext
18643 fi
18644
18645 fi
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18647 $as_echo "$ac_cv_c_stack_direction" >&6; }
18648 cat >>confdefs.h <<_ACEOF
18649 #define STACK_DIRECTION $ac_cv_c_stack_direction
18650 _ACEOF
18651
18652
18653 fi
18654
18655
18656
18657
18658   for ac_header in $ac_header_list
18659 do :
18660   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18661 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18662 "
18663 eval as_val=\$$as_ac_Header
18664    if test "x$as_val" = x""yes; then :
18665   cat >>confdefs.h <<_ACEOF
18666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18667 _ACEOF
18668
18669 fi
18670
18671 done
18672
18673
18674
18675
18676
18677
18678
18679
18680 for ac_func in getpagesize
18681 do :
18682   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18683 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18684   cat >>confdefs.h <<_ACEOF
18685 #define HAVE_GETPAGESIZE 1
18686 _ACEOF
18687
18688 fi
18689 done
18690
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18692 $as_echo_n "checking for working mmap... " >&6; }
18693 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18694   $as_echo_n "(cached) " >&6
18695 else
18696   if test "$cross_compiling" = yes; then :
18697   ac_cv_func_mmap_fixed_mapped=no
18698 else
18699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h.  */
18701 $ac_includes_default
18702 /* malloc might have been renamed as rpl_malloc. */
18703 #undef malloc
18704
18705 /* Thanks to Mike Haertel and Jim Avera for this test.
18706    Here is a matrix of mmap possibilities:
18707         mmap private not fixed
18708         mmap private fixed at somewhere currently unmapped
18709         mmap private fixed at somewhere already mapped
18710         mmap shared not fixed
18711         mmap shared fixed at somewhere currently unmapped
18712         mmap shared fixed at somewhere already mapped
18713    For private mappings, we should verify that changes cannot be read()
18714    back from the file, nor mmap's back from the file at a different
18715    address.  (There have been systems where private was not correctly
18716    implemented like the infamous i386 svr4.0, and systems where the
18717    VM page cache was not coherent with the file system buffer cache
18718    like early versions of FreeBSD and possibly contemporary NetBSD.)
18719    For shared mappings, we should conversely verify that changes get
18720    propagated back to all the places they're supposed to be.
18721
18722    Grep wants private fixed already mapped.
18723    The main things grep needs to know about mmap are:
18724    * does it exist and is it safe to write into the mmap'd area
18725    * how to use it (BSD variants)  */
18726
18727 #include <fcntl.h>
18728 #include <sys/mman.h>
18729
18730 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18731 char *malloc ();
18732 #endif
18733
18734 /* This mess was copied from the GNU getpagesize.h.  */
18735 #ifndef HAVE_GETPAGESIZE
18736 # ifdef _SC_PAGESIZE
18737 #  define getpagesize() sysconf(_SC_PAGESIZE)
18738 # else /* no _SC_PAGESIZE */
18739 #  ifdef HAVE_SYS_PARAM_H
18740 #   include <sys/param.h>
18741 #   ifdef EXEC_PAGESIZE
18742 #    define getpagesize() EXEC_PAGESIZE
18743 #   else /* no EXEC_PAGESIZE */
18744 #    ifdef NBPG
18745 #     define getpagesize() NBPG * CLSIZE
18746 #     ifndef CLSIZE
18747 #      define CLSIZE 1
18748 #     endif /* no CLSIZE */
18749 #    else /* no NBPG */
18750 #     ifdef NBPC
18751 #      define getpagesize() NBPC
18752 #     else /* no NBPC */
18753 #      ifdef PAGESIZE
18754 #       define getpagesize() PAGESIZE
18755 #      endif /* PAGESIZE */
18756 #     endif /* no NBPC */
18757 #    endif /* no NBPG */
18758 #   endif /* no EXEC_PAGESIZE */
18759 #  else /* no HAVE_SYS_PARAM_H */
18760 #   define getpagesize() 8192   /* punt totally */
18761 #  endif /* no HAVE_SYS_PARAM_H */
18762 # endif /* no _SC_PAGESIZE */
18763
18764 #endif /* no HAVE_GETPAGESIZE */
18765
18766 int
18767 main ()
18768 {
18769   char *data, *data2, *data3;
18770   int i, pagesize;
18771   int fd, fd2;
18772
18773   pagesize = getpagesize ();
18774
18775   /* First, make a file with some known garbage in it. */
18776   data = (char *) malloc (pagesize);
18777   if (!data)
18778     return 1;
18779   for (i = 0; i < pagesize; ++i)
18780     *(data + i) = rand ();
18781   umask (0);
18782   fd = creat ("conftest.mmap", 0600);
18783   if (fd < 0)
18784     return 2;
18785   if (write (fd, data, pagesize) != pagesize)
18786     return 3;
18787   close (fd);
18788
18789   /* Next, check that the tail of a page is zero-filled.  File must have
18790      non-zero length, otherwise we risk SIGBUS for entire page.  */
18791   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18792   if (fd2 < 0)
18793     return 4;
18794   data2 = "";
18795   if (write (fd2, data2, 1) != 1)
18796     return 5;
18797   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18798   if (data2 == MAP_FAILED)
18799     return 6;
18800   for (i = 0; i < pagesize; ++i)
18801     if (*(data2 + i))
18802       return 7;
18803   close (fd2);
18804   if (munmap (data2, pagesize))
18805     return 8;
18806
18807   /* Next, try to mmap the file at a fixed address which already has
18808      something else allocated at it.  If we can, also make sure that
18809      we see the same garbage.  */
18810   fd = open ("conftest.mmap", O_RDWR);
18811   if (fd < 0)
18812     return 9;
18813   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18814                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18815     return 10;
18816   for (i = 0; i < pagesize; ++i)
18817     if (*(data + i) != *(data2 + i))
18818       return 11;
18819
18820   /* Finally, make sure that changes to the mapped area do not
18821      percolate back to the file as seen by read().  (This is a bug on
18822      some variants of i386 svr4.0.)  */
18823   for (i = 0; i < pagesize; ++i)
18824     *(data2 + i) = *(data2 + i) + 1;
18825   data3 = (char *) malloc (pagesize);
18826   if (!data3)
18827     return 12;
18828   if (read (fd, data3, pagesize) != pagesize)
18829     return 13;
18830   for (i = 0; i < pagesize; ++i)
18831     if (*(data + i) != *(data3 + i))
18832       return 14;
18833   close (fd);
18834   return 0;
18835 }
18836 _ACEOF
18837 if ac_fn_c_try_run "$LINENO"; then :
18838   ac_cv_func_mmap_fixed_mapped=yes
18839 else
18840   ac_cv_func_mmap_fixed_mapped=no
18841 fi
18842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18843   conftest.$ac_objext conftest.beam conftest.$ac_ext
18844 fi
18845
18846 fi
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18848 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18849 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18850
18851 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18852
18853 fi
18854 rm -f conftest.mmap conftest.txt
18855
18856
18857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18858 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18859 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18860   $as_echo_n "(cached) " >&6
18861 else
18862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863 /* end confdefs.h.  */
18864
18865 #include <features.h>
18866 #ifdef __GNU_LIBRARY__
18867  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18868   Lucky GNU user
18869  #endif
18870 #endif
18871
18872 _ACEOF
18873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18874   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18875   ac_cv_gnu_library_2_1=yes
18876 else
18877   ac_cv_gnu_library_2_1=no
18878 fi
18879 rm -f conftest*
18880
18881
18882
18883 fi
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18885 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18886
18887     GLIBC21="$ac_cv_gnu_library_2_1"
18888
18889
18890
18891
18892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18893 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18894 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18895   $as_echo_n "(cached) " >&6
18896 else
18897
18898       if test "$cross_compiling" = yes; then :
18899
18900           # Guess based on the CPU.
18901           case "$host_cpu" in
18902             alpha* | i3456786 | m68k | s390*)
18903               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18904             *)
18905               gt_cv_int_divbyzero_sigfpe="guessing no";;
18906           esac
18907
18908 else
18909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h.  */
18911
18912 #include <stdlib.h>
18913 #include <signal.h>
18914
18915 static void
18916 #ifdef __cplusplus
18917 sigfpe_handler (int sig)
18918 #else
18919 sigfpe_handler (sig) int sig;
18920 #endif
18921 {
18922   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18923   exit (sig != SIGFPE);
18924 }
18925
18926 int x = 1;
18927 int y = 0;
18928 int z;
18929 int nan;
18930
18931 int main ()
18932 {
18933   signal (SIGFPE, sigfpe_handler);
18934 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18935 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18936   signal (SIGTRAP, sigfpe_handler);
18937 #endif
18938 /* Linux/SPARC yields signal SIGILL.  */
18939 #if defined (__sparc__) && defined (__linux__)
18940   signal (SIGILL, sigfpe_handler);
18941 #endif
18942
18943   z = x / y;
18944   nan = y / y;
18945   exit (1);
18946 }
18947
18948 _ACEOF
18949 if ac_fn_c_try_run "$LINENO"; then :
18950   gt_cv_int_divbyzero_sigfpe=yes
18951 else
18952   gt_cv_int_divbyzero_sigfpe=no
18953 fi
18954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18955   conftest.$ac_objext conftest.beam conftest.$ac_ext
18956 fi
18957
18958
18959 fi
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18961 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18962   case "$gt_cv_int_divbyzero_sigfpe" in
18963     *yes) value=1;;
18964     *) value=0;;
18965   esac
18966
18967 cat >>confdefs.h <<_ACEOF
18968 #define INTDIV0_RAISES_SIGFPE $value
18969 _ACEOF
18970
18971
18972
18973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18974 $as_echo_n "checking for unsigned long long... " >&6; }
18975 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18976   $as_echo_n "(cached) " >&6
18977 else
18978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18979 /* end confdefs.h.  */
18980 unsigned long long ull = 1ULL; int i = 63;
18981 int
18982 main ()
18983 {
18984 unsigned long long ullmax = (unsigned long long) -1;
18985      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18986   ;
18987   return 0;
18988 }
18989 _ACEOF
18990 if ac_fn_c_try_link "$LINENO"; then :
18991   ac_cv_type_unsigned_long_long=yes
18992 else
18993   ac_cv_type_unsigned_long_long=no
18994 fi
18995 rm -f core conftest.err conftest.$ac_objext \
18996     conftest$ac_exeext conftest.$ac_ext
18997 fi
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
18999 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19000   if test $ac_cv_type_unsigned_long_long = yes; then
19001
19002 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19003
19004   fi
19005
19006
19007
19008
19009   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19010
19011     test $ac_cv_type_unsigned_long_long = yes \
19012       && ac_type='unsigned long long' \
19013       || ac_type='unsigned long'
19014
19015 cat >>confdefs.h <<_ACEOF
19016 #define uintmax_t $ac_type
19017 _ACEOF
19018
19019   else
19020
19021 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19022
19023   fi
19024
19025
19026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19027 $as_echo_n "checking for inttypes.h... " >&6; }
19028 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19029   $as_echo_n "(cached) " >&6
19030 else
19031
19032     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033 /* end confdefs.h.  */
19034 #include <sys/types.h>
19035 #include <inttypes.h>
19036 int
19037 main ()
19038 {
19039
19040   ;
19041   return 0;
19042 }
19043 _ACEOF
19044 if ac_fn_c_try_compile "$LINENO"; then :
19045   gt_cv_header_inttypes_h=yes
19046 else
19047   gt_cv_header_inttypes_h=no
19048 fi
19049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19050
19051 fi
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19053 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19054   if test $gt_cv_header_inttypes_h = yes; then
19055
19056 cat >>confdefs.h <<_ACEOF
19057 #define HAVE_INTTYPES_H 1
19058 _ACEOF
19059
19060   fi
19061
19062
19063
19064   if test $gt_cv_header_inttypes_h = yes; then
19065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19066 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19067 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19068   $as_echo_n "(cached) " >&6
19069 else
19070
19071         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19072 /* end confdefs.h.  */
19073 #include <inttypes.h>
19074 #ifdef PRId32
19075 char *p = PRId32;
19076 #endif
19077
19078 int
19079 main ()
19080 {
19081
19082   ;
19083   return 0;
19084 }
19085 _ACEOF
19086 if ac_fn_c_try_compile "$LINENO"; then :
19087   gt_cv_inttypes_pri_broken=no
19088 else
19089   gt_cv_inttypes_pri_broken=yes
19090 fi
19091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19092
19093 fi
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19095 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19096   fi
19097   if test "$gt_cv_inttypes_pri_broken" = yes; then
19098
19099 cat >>confdefs.h <<_ACEOF
19100 #define PRI_MACROS_BROKEN 1
19101 _ACEOF
19102
19103   fi
19104
19105
19106   for ac_header in stdint.h
19107 do :
19108   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19109 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19110   cat >>confdefs.h <<_ACEOF
19111 #define HAVE_STDINT_H 1
19112 _ACEOF
19113
19114 fi
19115
19116 done
19117
19118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19119 $as_echo_n "checking for SIZE_MAX... " >&6; }
19120   result=
19121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h.  */
19123
19124 #include <limits.h>
19125 #if HAVE_STDINT_H
19126 #include <stdint.h>
19127 #endif
19128 #ifdef SIZE_MAX
19129 Found it
19130 #endif
19131
19132 _ACEOF
19133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19134   $EGREP "Found it" >/dev/null 2>&1; then :
19135   result=yes
19136 fi
19137 rm -f conftest*
19138
19139   if test -z "$result"; then
19140                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19141
19142 else
19143   result=?
19144 fi
19145
19146
19147     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19148
19149 else
19150   result=?
19151 fi
19152
19153
19154     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19155
19156 else
19157   result=?
19158 fi
19159
19160
19161     if test "$fits_in_uint" = 1; then
19162                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h.  */
19164 #include <stddef.h>
19165         extern size_t foo;
19166         extern unsigned long foo;
19167
19168 int
19169 main ()
19170 {
19171
19172   ;
19173   return 0;
19174 }
19175 _ACEOF
19176 if ac_fn_c_try_compile "$LINENO"; then :
19177   fits_in_uint=0
19178 fi
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19180     fi
19181     if test -z "$result"; then
19182       if test "$fits_in_uint" = 1; then
19183         result="$res_hi$res_lo"U
19184       else
19185         result="$res_hi$res_lo"UL
19186       fi
19187     else
19188             result='~(size_t)0'
19189     fi
19190   fi
19191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19192 $as_echo "$result" >&6; }
19193   if test "$result" != yes; then
19194
19195 cat >>confdefs.h <<_ACEOF
19196 #define SIZE_MAX $result
19197 _ACEOF
19198
19199   fi
19200
19201
19202
19203
19204   for ac_header in stdint.h
19205 do :
19206   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19207 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19208   cat >>confdefs.h <<_ACEOF
19209 #define HAVE_STDINT_H 1
19210 _ACEOF
19211
19212 fi
19213
19214 done
19215
19216
19217
19218
19219
19220
19221
19222
19223   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19224 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19225
19226 else
19227
19228 $as_echo "#define ptrdiff_t long" >>confdefs.h
19229
19230
19231 fi
19232
19233   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19234 stdlib.h string.h unistd.h sys/param.h
19235 do :
19236   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19237 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19238 eval as_val=\$$as_ac_Header
19239    if test "x$as_val" = x""yes; then :
19240   cat >>confdefs.h <<_ACEOF
19241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19242 _ACEOF
19243
19244 fi
19245
19246 done
19247
19248   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19249 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19250 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19251 __fsetlocking
19252 do :
19253   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19255 eval as_val=\$$as_ac_var
19256    if test "x$as_val" = x""yes; then :
19257   cat >>confdefs.h <<_ACEOF
19258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19259 _ACEOF
19260
19261 fi
19262 done
19263
19264
19265
19266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19267 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19268 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19269   $as_echo_n "(cached) " >&6
19270 else
19271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h.  */
19273 #include <stdio.h>
19274 int
19275 main ()
19276 {
19277
19278 #ifndef _snprintf
19279   char *p = (char *) _snprintf;
19280 #endif
19281
19282   ;
19283   return 0;
19284 }
19285 _ACEOF
19286 if ac_fn_c_try_compile "$LINENO"; then :
19287   ac_cv_have_decl__snprintf=yes
19288 else
19289   ac_cv_have_decl__snprintf=no
19290 fi
19291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292 fi
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19294 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19295   if test $ac_cv_have_decl__snprintf = yes; then
19296     gt_value=1
19297   else
19298     gt_value=0
19299   fi
19300
19301 cat >>confdefs.h <<_ACEOF
19302 #define HAVE_DECL__SNPRINTF $gt_value
19303 _ACEOF
19304
19305
19306
19307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19308 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19309 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19310   $as_echo_n "(cached) " >&6
19311 else
19312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313 /* end confdefs.h.  */
19314 #include <stdio.h>
19315 int
19316 main ()
19317 {
19318
19319 #ifndef _snwprintf
19320   char *p = (char *) _snwprintf;
19321 #endif
19322
19323   ;
19324   return 0;
19325 }
19326 _ACEOF
19327 if ac_fn_c_try_compile "$LINENO"; then :
19328   ac_cv_have_decl__snwprintf=yes
19329 else
19330   ac_cv_have_decl__snwprintf=no
19331 fi
19332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19333 fi
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19335 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19336   if test $ac_cv_have_decl__snwprintf = yes; then
19337     gt_value=1
19338   else
19339     gt_value=0
19340   fi
19341
19342 cat >>confdefs.h <<_ACEOF
19343 #define HAVE_DECL__SNWPRINTF $gt_value
19344 _ACEOF
19345
19346
19347
19348
19349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19350 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19351 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19352   $as_echo_n "(cached) " >&6
19353 else
19354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19355 /* end confdefs.h.  */
19356 #include <stdio.h>
19357 int
19358 main ()
19359 {
19360
19361 #ifndef feof_unlocked
19362   char *p = (char *) feof_unlocked;
19363 #endif
19364
19365   ;
19366   return 0;
19367 }
19368 _ACEOF
19369 if ac_fn_c_try_compile "$LINENO"; then :
19370   ac_cv_have_decl_feof_unlocked=yes
19371 else
19372   ac_cv_have_decl_feof_unlocked=no
19373 fi
19374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19375 fi
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19377 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19378   if test $ac_cv_have_decl_feof_unlocked = yes; then
19379     gt_value=1
19380   else
19381     gt_value=0
19382   fi
19383
19384 cat >>confdefs.h <<_ACEOF
19385 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19386 _ACEOF
19387
19388
19389
19390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19391 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19392 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19393   $as_echo_n "(cached) " >&6
19394 else
19395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19396 /* end confdefs.h.  */
19397 #include <stdio.h>
19398 int
19399 main ()
19400 {
19401
19402 #ifndef fgets_unlocked
19403   char *p = (char *) fgets_unlocked;
19404 #endif
19405
19406   ;
19407   return 0;
19408 }
19409 _ACEOF
19410 if ac_fn_c_try_compile "$LINENO"; then :
19411   ac_cv_have_decl_fgets_unlocked=yes
19412 else
19413   ac_cv_have_decl_fgets_unlocked=no
19414 fi
19415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19416 fi
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19418 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19419   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19420     gt_value=1
19421   else
19422     gt_value=0
19423   fi
19424
19425 cat >>confdefs.h <<_ACEOF
19426 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19427 _ACEOF
19428
19429
19430
19431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19432 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19433 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19434   $as_echo_n "(cached) " >&6
19435 else
19436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h.  */
19438 #include <stdio.h>
19439 int
19440 main ()
19441 {
19442
19443 #ifndef getc_unlocked
19444   char *p = (char *) getc_unlocked;
19445 #endif
19446
19447   ;
19448   return 0;
19449 }
19450 _ACEOF
19451 if ac_fn_c_try_compile "$LINENO"; then :
19452   ac_cv_have_decl_getc_unlocked=yes
19453 else
19454   ac_cv_have_decl_getc_unlocked=no
19455 fi
19456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19457 fi
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19459 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19460   if test $ac_cv_have_decl_getc_unlocked = yes; then
19461     gt_value=1
19462   else
19463     gt_value=0
19464   fi
19465
19466 cat >>confdefs.h <<_ACEOF
19467 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19468 _ACEOF
19469
19470
19471
19472   case $gt_cv_func_printf_posix in
19473     *yes) HAVE_POSIX_PRINTF=1 ;;
19474     *) HAVE_POSIX_PRINTF=0 ;;
19475   esac
19476
19477   if test "$ac_cv_func_asprintf" = yes; then
19478     HAVE_ASPRINTF=1
19479   else
19480     HAVE_ASPRINTF=0
19481   fi
19482
19483   if test "$ac_cv_func_snprintf" = yes; then
19484     HAVE_SNPRINTF=1
19485   else
19486     HAVE_SNPRINTF=0
19487   fi
19488
19489   if test "$ac_cv_func_wprintf" = yes; then
19490     HAVE_WPRINTF=1
19491   else
19492     HAVE_WPRINTF=0
19493   fi
19494
19495
19496
19497
19498
19499
19500
19501           am_save_CPPFLAGS="$CPPFLAGS"
19502
19503   for element in $INCICONV; do
19504     haveit=
19505     for x in $CPPFLAGS; do
19506
19507   acl_save_prefix="$prefix"
19508   prefix="$acl_final_prefix"
19509   acl_save_exec_prefix="$exec_prefix"
19510   exec_prefix="$acl_final_exec_prefix"
19511   eval x=\"$x\"
19512   exec_prefix="$acl_save_exec_prefix"
19513   prefix="$acl_save_prefix"
19514
19515       if test "X$x" = "X$element"; then
19516         haveit=yes
19517         break
19518       fi
19519     done
19520     if test -z "$haveit"; then
19521       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19522     fi
19523   done
19524
19525
19526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19527 $as_echo_n "checking for iconv... " >&6; }
19528 if test "${am_cv_func_iconv+set}" = set; then :
19529   $as_echo_n "(cached) " >&6
19530 else
19531
19532     am_cv_func_iconv="no, consider installing GNU libiconv"
19533     am_cv_lib_iconv=no
19534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h.  */
19536 #include <stdlib.h>
19537 #include <iconv.h>
19538 int
19539 main ()
19540 {
19541 iconv_t cd = iconv_open("","");
19542        iconv(cd,NULL,NULL,NULL,NULL);
19543        iconv_close(cd);
19544   ;
19545   return 0;
19546 }
19547 _ACEOF
19548 if ac_fn_c_try_link "$LINENO"; then :
19549   am_cv_func_iconv=yes
19550 fi
19551 rm -f core conftest.err conftest.$ac_objext \
19552     conftest$ac_exeext conftest.$ac_ext
19553     if test "$am_cv_func_iconv" != yes; then
19554       am_save_LIBS="$LIBS"
19555       LIBS="$LIBS $LIBICONV"
19556       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h.  */
19558 #include <stdlib.h>
19559 #include <iconv.h>
19560 int
19561 main ()
19562 {
19563 iconv_t cd = iconv_open("","");
19564          iconv(cd,NULL,NULL,NULL,NULL);
19565          iconv_close(cd);
19566   ;
19567   return 0;
19568 }
19569 _ACEOF
19570 if ac_fn_c_try_link "$LINENO"; then :
19571   am_cv_lib_iconv=yes
19572         am_cv_func_iconv=yes
19573 fi
19574 rm -f core conftest.err conftest.$ac_objext \
19575     conftest$ac_exeext conftest.$ac_ext
19576       LIBS="$am_save_LIBS"
19577     fi
19578
19579 fi
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19581 $as_echo "$am_cv_func_iconv" >&6; }
19582   if test "$am_cv_func_iconv" = yes; then
19583
19584 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19585
19586   fi
19587   if test "$am_cv_lib_iconv" = yes; then
19588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19589 $as_echo_n "checking how to link with libiconv... " >&6; }
19590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19591 $as_echo "$LIBICONV" >&6; }
19592   else
19593             CPPFLAGS="$am_save_CPPFLAGS"
19594     LIBICONV=
19595     LTLIBICONV=
19596   fi
19597
19598
19599
19600   if test "$am_cv_func_iconv" = yes; then
19601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19602 $as_echo_n "checking for iconv declaration... " >&6; }
19603     if test "${am_cv_proto_iconv+set}" = set; then :
19604   $as_echo_n "(cached) " >&6
19605 else
19606
19607       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608 /* end confdefs.h.  */
19609
19610 #include <stdlib.h>
19611 #include <iconv.h>
19612 extern
19613 #ifdef __cplusplus
19614 "C"
19615 #endif
19616 #if defined(__STDC__) || defined(__cplusplus)
19617 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19618 #else
19619 size_t iconv();
19620 #endif
19621
19622 int
19623 main ()
19624 {
19625
19626   ;
19627   return 0;
19628 }
19629 _ACEOF
19630 if ac_fn_c_try_compile "$LINENO"; then :
19631   am_cv_proto_iconv_arg1=""
19632 else
19633   am_cv_proto_iconv_arg1="const"
19634 fi
19635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19636       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);"
19637 fi
19638
19639     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19641          }$am_cv_proto_iconv" >&5
19642 $as_echo "${ac_t:-
19643          }$am_cv_proto_iconv" >&6; }
19644
19645 cat >>confdefs.h <<_ACEOF
19646 #define ICONV_CONST $am_cv_proto_iconv_arg1
19647 _ACEOF
19648
19649   fi
19650
19651
19652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19653 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19654 if test "${am_cv_langinfo_codeset+set}" = set; then :
19655   $as_echo_n "(cached) " >&6
19656 else
19657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h.  */
19659 #include <langinfo.h>
19660 int
19661 main ()
19662 {
19663 char* cs = nl_langinfo(CODESET);
19664   ;
19665   return 0;
19666 }
19667 _ACEOF
19668 if ac_fn_c_try_link "$LINENO"; then :
19669   am_cv_langinfo_codeset=yes
19670 else
19671   am_cv_langinfo_codeset=no
19672 fi
19673 rm -f core conftest.err conftest.$ac_objext \
19674     conftest$ac_exeext conftest.$ac_ext
19675
19676 fi
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19678 $as_echo "$am_cv_langinfo_codeset" >&6; }
19679   if test $am_cv_langinfo_codeset = yes; then
19680
19681 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19682
19683   fi
19684
19685   if test $ac_cv_header_locale_h = yes; then
19686
19687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19688 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19689 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19690   $as_echo_n "(cached) " >&6
19691 else
19692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h.  */
19694 #include <locale.h>
19695 int
19696 main ()
19697 {
19698 return LC_MESSAGES
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 if ac_fn_c_try_link "$LINENO"; then :
19704   gt_cv_val_LC_MESSAGES=yes
19705 else
19706   gt_cv_val_LC_MESSAGES=no
19707 fi
19708 rm -f core conftest.err conftest.$ac_objext \
19709     conftest$ac_exeext conftest.$ac_ext
19710 fi
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19712 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19713   if test $gt_cv_val_LC_MESSAGES = yes; then
19714
19715 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19716
19717   fi
19718
19719   fi
19720
19721   if test -n "$INTL_MACOSX_LIBS"; then
19722     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19723   fi
19724
19725                       for ac_prog in bison
19726 do
19727   # Extract the first word of "$ac_prog", so it can be a program name with args.
19728 set dummy $ac_prog; ac_word=$2
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19730 $as_echo_n "checking for $ac_word... " >&6; }
19731 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19732   $as_echo_n "(cached) " >&6
19733 else
19734   if test -n "$INTLBISON"; then
19735   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19736 else
19737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19738 for as_dir in $PATH
19739 do
19740   IFS=$as_save_IFS
19741   test -z "$as_dir" && as_dir=.
19742     for ac_exec_ext in '' $ac_executable_extensions; do
19743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19744     ac_cv_prog_INTLBISON="$ac_prog"
19745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19746     break 2
19747   fi
19748 done
19749   done
19750 IFS=$as_save_IFS
19751
19752 fi
19753 fi
19754 INTLBISON=$ac_cv_prog_INTLBISON
19755 if test -n "$INTLBISON"; then
19756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19757 $as_echo "$INTLBISON" >&6; }
19758 else
19759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19760 $as_echo "no" >&6; }
19761 fi
19762
19763
19764   test -n "$INTLBISON" && break
19765 done
19766
19767   if test -z "$INTLBISON"; then
19768     ac_verc_fail=yes
19769   else
19770         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19771 $as_echo_n "checking version of bison... " >&6; }
19772     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19773     case $ac_prog_version in
19774       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19775       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19776          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19777       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19778     esac
19779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19780 $as_echo "$ac_prog_version" >&6; }
19781   fi
19782   if test $ac_verc_fail = yes; then
19783     INTLBISON=:
19784   fi
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19802 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19803 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19804   $as_echo_n "(cached) " >&6
19805 else
19806   gt_save_CPPFLAGS="$CPPFLAGS"
19807      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19808      gt_save_LIBS="$LIBS"
19809      LIBS="$LIBS -framework CoreFoundation"
19810      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h.  */
19812 #include <CFPreferences.h>
19813 int
19814 main ()
19815 {
19816 CFPreferencesCopyAppValue(NULL, NULL)
19817   ;
19818   return 0;
19819 }
19820 _ACEOF
19821 if ac_fn_c_try_link "$LINENO"; then :
19822   gt_cv_func_CFPreferencesCopyAppValue=yes
19823 else
19824   gt_cv_func_CFPreferencesCopyAppValue=no
19825 fi
19826 rm -f core conftest.err conftest.$ac_objext \
19827     conftest$ac_exeext conftest.$ac_ext
19828      CPPFLAGS="$gt_save_CPPFLAGS"
19829      LIBS="$gt_save_LIBS"
19830 fi
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19832 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19833   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19834
19835 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19836
19837   fi
19838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19839 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19840 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19841   $as_echo_n "(cached) " >&6
19842 else
19843   gt_save_CPPFLAGS="$CPPFLAGS"
19844      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19845      gt_save_LIBS="$LIBS"
19846      LIBS="$LIBS -framework CoreFoundation"
19847      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19848 /* end confdefs.h.  */
19849 #include <CFLocale.h>
19850 int
19851 main ()
19852 {
19853 CFLocaleCopyCurrent();
19854   ;
19855   return 0;
19856 }
19857 _ACEOF
19858 if ac_fn_c_try_link "$LINENO"; then :
19859   gt_cv_func_CFLocaleCopyCurrent=yes
19860 else
19861   gt_cv_func_CFLocaleCopyCurrent=no
19862 fi
19863 rm -f core conftest.err conftest.$ac_objext \
19864     conftest$ac_exeext conftest.$ac_ext
19865      CPPFLAGS="$gt_save_CPPFLAGS"
19866      LIBS="$gt_save_LIBS"
19867 fi
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19869 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19870   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19871
19872 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19873
19874   fi
19875   INTL_MACOSX_LIBS=
19876   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19877     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19878   fi
19879
19880
19881
19882
19883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19884 $as_echo_n "checking whether NLS is requested... " >&6; }
19885     # Check whether --enable-nls was given.
19886 if test "${enable_nls+set}" = set; then :
19887   enableval=$enable_nls; USE_NLS=$enableval
19888 else
19889   USE_NLS=yes
19890 fi
19891
19892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19893 $as_echo "$USE_NLS" >&6; }
19894
19895
19896
19897
19898     BUILD_INCLUDED_LIBINTL=no
19899     USE_INCLUDED_LIBINTL=no
19900
19901   LIBINTL=
19902   LTLIBINTL=
19903   POSUB=
19904
19905     if test "$USE_NLS" = "yes"; then
19906     gt_use_preinstalled_gnugettext=no
19907
19908       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19909 $as_echo_n "checking whether included gettext is requested... " >&6; }
19910
19911 # Check whether --with-included-gettext was given.
19912 if test "${with_included_gettext+set}" = set; then :
19913   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19914 else
19915   nls_cv_force_use_gnu_gettext=no
19916 fi
19917
19918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19919 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19920
19921       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19922       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19923
19924
19925
19926
19927
19928
19929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19930 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19931 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19932   $as_echo_n "(cached) " >&6
19933 else
19934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h.  */
19936 #include <libintl.h>
19937 extern int _nl_msg_cat_cntr;
19938 extern int *_nl_domain_bindings;
19939 int
19940 main ()
19941 {
19942 bindtextdomain ("", "");
19943 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19944   ;
19945   return 0;
19946 }
19947 _ACEOF
19948 if ac_fn_c_try_link "$LINENO"; then :
19949   gt_cv_func_gnugettext1_libc=yes
19950 else
19951   gt_cv_func_gnugettext1_libc=no
19952 fi
19953 rm -f core conftest.err conftest.$ac_objext \
19954     conftest$ac_exeext conftest.$ac_ext
19955 fi
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19957 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19958
19959         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19960
19961
19962
19963     use_additional=yes
19964
19965   acl_save_prefix="$prefix"
19966   prefix="$acl_final_prefix"
19967   acl_save_exec_prefix="$exec_prefix"
19968   exec_prefix="$acl_final_exec_prefix"
19969
19970     eval additional_includedir=\"$includedir\"
19971     eval additional_libdir=\"$libdir\"
19972
19973   exec_prefix="$acl_save_exec_prefix"
19974   prefix="$acl_save_prefix"
19975
19976
19977 # Check whether --with-libintl-prefix was given.
19978 if test "${with_libintl_prefix+set}" = set; then :
19979   withval=$with_libintl_prefix;
19980     if test "X$withval" = "Xno"; then
19981       use_additional=no
19982     else
19983       if test "X$withval" = "X"; then
19984
19985   acl_save_prefix="$prefix"
19986   prefix="$acl_final_prefix"
19987   acl_save_exec_prefix="$exec_prefix"
19988   exec_prefix="$acl_final_exec_prefix"
19989
19990           eval additional_includedir=\"$includedir\"
19991           eval additional_libdir=\"$libdir\"
19992
19993   exec_prefix="$acl_save_exec_prefix"
19994   prefix="$acl_save_prefix"
19995
19996       else
19997         additional_includedir="$withval/include"
19998         additional_libdir="$withval/lib"
19999       fi
20000     fi
20001
20002 fi
20003
20004       LIBINTL=
20005   LTLIBINTL=
20006   INCINTL=
20007   rpathdirs=
20008   ltrpathdirs=
20009   names_already_handled=
20010   names_next_round='intl '
20011   while test -n "$names_next_round"; do
20012     names_this_round="$names_next_round"
20013     names_next_round=
20014     for name in $names_this_round; do
20015       already_handled=
20016       for n in $names_already_handled; do
20017         if test "$n" = "$name"; then
20018           already_handled=yes
20019           break
20020         fi
20021       done
20022       if test -z "$already_handled"; then
20023         names_already_handled="$names_already_handled $name"
20024                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20025         eval value=\"\$HAVE_LIB$uppername\"
20026         if test -n "$value"; then
20027           if test "$value" = yes; then
20028             eval value=\"\$LIB$uppername\"
20029             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20030             eval value=\"\$LTLIB$uppername\"
20031             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20032           else
20033                                     :
20034           fi
20035         else
20036                               found_dir=
20037           found_la=
20038           found_so=
20039           found_a=
20040           if test $use_additional = yes; then
20041             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20042               found_dir="$additional_libdir"
20043               found_so="$additional_libdir/lib$name.$shlibext"
20044               if test -f "$additional_libdir/lib$name.la"; then
20045                 found_la="$additional_libdir/lib$name.la"
20046               fi
20047             else
20048               if test -f "$additional_libdir/lib$name.$libext"; then
20049                 found_dir="$additional_libdir"
20050                 found_a="$additional_libdir/lib$name.$libext"
20051                 if test -f "$additional_libdir/lib$name.la"; then
20052                   found_la="$additional_libdir/lib$name.la"
20053                 fi
20054               fi
20055             fi
20056           fi
20057           if test "X$found_dir" = "X"; then
20058             for x in $LDFLAGS $LTLIBINTL; do
20059
20060   acl_save_prefix="$prefix"
20061   prefix="$acl_final_prefix"
20062   acl_save_exec_prefix="$exec_prefix"
20063   exec_prefix="$acl_final_exec_prefix"
20064   eval x=\"$x\"
20065   exec_prefix="$acl_save_exec_prefix"
20066   prefix="$acl_save_prefix"
20067
20068               case "$x" in
20069                 -L*)
20070                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20071                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20072                     found_dir="$dir"
20073                     found_so="$dir/lib$name.$shlibext"
20074                     if test -f "$dir/lib$name.la"; then
20075                       found_la="$dir/lib$name.la"
20076                     fi
20077                   else
20078                     if test -f "$dir/lib$name.$libext"; then
20079                       found_dir="$dir"
20080                       found_a="$dir/lib$name.$libext"
20081                       if test -f "$dir/lib$name.la"; then
20082                         found_la="$dir/lib$name.la"
20083                       fi
20084                     fi
20085                   fi
20086                   ;;
20087               esac
20088               if test "X$found_dir" != "X"; then
20089                 break
20090               fi
20091             done
20092           fi
20093           if test "X$found_dir" != "X"; then
20094                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20095             if test "X$found_so" != "X"; then
20096                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20097                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20098               else
20099                                                                                 haveit=
20100                 for x in $ltrpathdirs; do
20101                   if test "X$x" = "X$found_dir"; then
20102                     haveit=yes
20103                     break
20104                   fi
20105                 done
20106                 if test -z "$haveit"; then
20107                   ltrpathdirs="$ltrpathdirs $found_dir"
20108                 fi
20109                                 if test "$hardcode_direct" = yes; then
20110                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20111                 else
20112                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20113                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20114                                                             haveit=
20115                     for x in $rpathdirs; do
20116                       if test "X$x" = "X$found_dir"; then
20117                         haveit=yes
20118                         break
20119                       fi
20120                     done
20121                     if test -z "$haveit"; then
20122                       rpathdirs="$rpathdirs $found_dir"
20123                     fi
20124                   else
20125                                                                                 haveit=
20126                     for x in $LDFLAGS $LIBINTL; do
20127
20128   acl_save_prefix="$prefix"
20129   prefix="$acl_final_prefix"
20130   acl_save_exec_prefix="$exec_prefix"
20131   exec_prefix="$acl_final_exec_prefix"
20132   eval x=\"$x\"
20133   exec_prefix="$acl_save_exec_prefix"
20134   prefix="$acl_save_prefix"
20135
20136                       if test "X$x" = "X-L$found_dir"; then
20137                         haveit=yes
20138                         break
20139                       fi
20140                     done
20141                     if test -z "$haveit"; then
20142                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20143                     fi
20144                     if test "$hardcode_minus_L" != no; then
20145                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20146                     else
20147                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20148                     fi
20149                   fi
20150                 fi
20151               fi
20152             else
20153               if test "X$found_a" != "X"; then
20154                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20155               else
20156                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20157               fi
20158             fi
20159                         additional_includedir=
20160             case "$found_dir" in
20161               */lib | */lib/)
20162                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20163                 additional_includedir="$basedir/include"
20164                 ;;
20165             esac
20166             if test "X$additional_includedir" != "X"; then
20167                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20168                 haveit=
20169                 if test "X$additional_includedir" = "X/usr/local/include"; then
20170                   if test -n "$GCC"; then
20171                     case $host_os in
20172                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20173                     esac
20174                   fi
20175                 fi
20176                 if test -z "$haveit"; then
20177                   for x in $CPPFLAGS $INCINTL; do
20178
20179   acl_save_prefix="$prefix"
20180   prefix="$acl_final_prefix"
20181   acl_save_exec_prefix="$exec_prefix"
20182   exec_prefix="$acl_final_exec_prefix"
20183   eval x=\"$x\"
20184   exec_prefix="$acl_save_exec_prefix"
20185   prefix="$acl_save_prefix"
20186
20187                     if test "X$x" = "X-I$additional_includedir"; then
20188                       haveit=yes
20189                       break
20190                     fi
20191                   done
20192                   if test -z "$haveit"; then
20193                     if test -d "$additional_includedir"; then
20194                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20195                     fi
20196                   fi
20197                 fi
20198               fi
20199             fi
20200                         if test -n "$found_la"; then
20201                                                         save_libdir="$libdir"
20202               case "$found_la" in
20203                 */* | *\\*) . "$found_la" ;;
20204                 *) . "./$found_la" ;;
20205               esac
20206               libdir="$save_libdir"
20207                             for dep in $dependency_libs; do
20208                 case "$dep" in
20209                   -L*)
20210                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20211                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20212                       haveit=
20213                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20214                         if test -n "$GCC"; then
20215                           case $host_os in
20216                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20217                           esac
20218                         fi
20219                       fi
20220                       if test -z "$haveit"; then
20221                         haveit=
20222                         for x in $LDFLAGS $LIBINTL; do
20223
20224   acl_save_prefix="$prefix"
20225   prefix="$acl_final_prefix"
20226   acl_save_exec_prefix="$exec_prefix"
20227   exec_prefix="$acl_final_exec_prefix"
20228   eval x=\"$x\"
20229   exec_prefix="$acl_save_exec_prefix"
20230   prefix="$acl_save_prefix"
20231
20232                           if test "X$x" = "X-L$additional_libdir"; then
20233                             haveit=yes
20234                             break
20235                           fi
20236                         done
20237                         if test -z "$haveit"; then
20238                           if test -d "$additional_libdir"; then
20239                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20240                           fi
20241                         fi
20242                         haveit=
20243                         for x in $LDFLAGS $LTLIBINTL; do
20244
20245   acl_save_prefix="$prefix"
20246   prefix="$acl_final_prefix"
20247   acl_save_exec_prefix="$exec_prefix"
20248   exec_prefix="$acl_final_exec_prefix"
20249   eval x=\"$x\"
20250   exec_prefix="$acl_save_exec_prefix"
20251   prefix="$acl_save_prefix"
20252
20253                           if test "X$x" = "X-L$additional_libdir"; then
20254                             haveit=yes
20255                             break
20256                           fi
20257                         done
20258                         if test -z "$haveit"; then
20259                           if test -d "$additional_libdir"; then
20260                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20261                           fi
20262                         fi
20263                       fi
20264                     fi
20265                     ;;
20266                   -R*)
20267                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20268                     if test "$enable_rpath" != no; then
20269                                                                   haveit=
20270                       for x in $rpathdirs; do
20271                         if test "X$x" = "X$dir"; then
20272                           haveit=yes
20273                           break
20274                         fi
20275                       done
20276                       if test -z "$haveit"; then
20277                         rpathdirs="$rpathdirs $dir"
20278                       fi
20279                                                                   haveit=
20280                       for x in $ltrpathdirs; do
20281                         if test "X$x" = "X$dir"; then
20282                           haveit=yes
20283                           break
20284                         fi
20285                       done
20286                       if test -z "$haveit"; then
20287                         ltrpathdirs="$ltrpathdirs $dir"
20288                       fi
20289                     fi
20290                     ;;
20291                   -l*)
20292                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20293                     ;;
20294                   *.la)
20295                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20296                     ;;
20297                   *)
20298                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20299                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20300                     ;;
20301                 esac
20302               done
20303             fi
20304           else
20305                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20306             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20307           fi
20308         fi
20309       fi
20310     done
20311   done
20312   if test "X$rpathdirs" != "X"; then
20313     if test -n "$hardcode_libdir_separator"; then
20314                         alldirs=
20315       for found_dir in $rpathdirs; do
20316         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20317       done
20318             acl_save_libdir="$libdir"
20319       libdir="$alldirs"
20320       eval flag=\"$hardcode_libdir_flag_spec\"
20321       libdir="$acl_save_libdir"
20322       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20323     else
20324             for found_dir in $rpathdirs; do
20325         acl_save_libdir="$libdir"
20326         libdir="$found_dir"
20327         eval flag=\"$hardcode_libdir_flag_spec\"
20328         libdir="$acl_save_libdir"
20329         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20330       done
20331     fi
20332   fi
20333   if test "X$ltrpathdirs" != "X"; then
20334             for found_dir in $ltrpathdirs; do
20335       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20336     done
20337   fi
20338
20339           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20340 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20341 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20342   $as_echo_n "(cached) " >&6
20343 else
20344   gt_save_CPPFLAGS="$CPPFLAGS"
20345             CPPFLAGS="$CPPFLAGS $INCINTL"
20346             gt_save_LIBS="$LIBS"
20347             LIBS="$LIBS $LIBINTL"
20348                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h.  */
20350 #include <libintl.h>
20351 extern int _nl_msg_cat_cntr;
20352 extern
20353 #ifdef __cplusplus
20354 "C"
20355 #endif
20356 const char *_nl_expand_alias (const char *);
20357 int
20358 main ()
20359 {
20360 bindtextdomain ("", "");
20361 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20362   ;
20363   return 0;
20364 }
20365 _ACEOF
20366 if ac_fn_c_try_link "$LINENO"; then :
20367   gt_cv_func_gnugettext1_libintl=yes
20368 else
20369   gt_cv_func_gnugettext1_libintl=no
20370 fi
20371 rm -f core conftest.err conftest.$ac_objext \
20372     conftest$ac_exeext conftest.$ac_ext
20373                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20374               LIBS="$LIBS $LIBICONV"
20375               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20376 /* end confdefs.h.  */
20377 #include <libintl.h>
20378 extern int _nl_msg_cat_cntr;
20379 extern
20380 #ifdef __cplusplus
20381 "C"
20382 #endif
20383 const char *_nl_expand_alias (const char *);
20384 int
20385 main ()
20386 {
20387 bindtextdomain ("", "");
20388 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20389   ;
20390   return 0;
20391 }
20392 _ACEOF
20393 if ac_fn_c_try_link "$LINENO"; then :
20394   LIBINTL="$LIBINTL $LIBICONV"
20395                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20396                 gt_cv_func_gnugettext1_libintl=yes
20397
20398 fi
20399 rm -f core conftest.err conftest.$ac_objext \
20400     conftest$ac_exeext conftest.$ac_ext
20401             fi
20402             CPPFLAGS="$gt_save_CPPFLAGS"
20403             LIBS="$gt_save_LIBS"
20404 fi
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20406 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20407         fi
20408
20409                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20410            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20411                 && test "$PACKAGE" != gettext-runtime \
20412                 && test "$PACKAGE" != gettext-tools; }; then
20413           gt_use_preinstalled_gnugettext=yes
20414         else
20415                     LIBINTL=
20416           LTLIBINTL=
20417           INCINTL=
20418         fi
20419
20420
20421         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20422                               nls_cv_use_gnu_gettext=yes
20423         fi
20424       fi
20425
20426       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20427                 BUILD_INCLUDED_LIBINTL=yes
20428         USE_INCLUDED_LIBINTL=yes
20429         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20430         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20431         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20432       fi
20433
20434       CATOBJEXT=
20435       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20436          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20437                 CATOBJEXT=.gmo
20438       fi
20439
20440
20441     if test -n "$INTL_MACOSX_LIBS"; then
20442       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20443          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20444                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20445         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20446       fi
20447     fi
20448
20449     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20450        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20451
20452 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20453
20454     else
20455       USE_NLS=no
20456     fi
20457   fi
20458
20459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20460 $as_echo_n "checking whether to use NLS... " >&6; }
20461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20462 $as_echo "$USE_NLS" >&6; }
20463   if test "$USE_NLS" = "yes"; then
20464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20465 $as_echo_n "checking where the gettext function comes from... " >&6; }
20466     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20467       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20468         gt_source="external libintl"
20469       else
20470         gt_source="libc"
20471       fi
20472     else
20473       gt_source="included intl directory"
20474     fi
20475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20476 $as_echo "$gt_source" >&6; }
20477   fi
20478
20479   if test "$USE_NLS" = "yes"; then
20480
20481     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20482       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20484 $as_echo_n "checking how to link with libintl... " >&6; }
20485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20486 $as_echo "$LIBINTL" >&6; }
20487
20488   for element in $INCINTL; do
20489     haveit=
20490     for x in $CPPFLAGS; do
20491
20492   acl_save_prefix="$prefix"
20493   prefix="$acl_final_prefix"
20494   acl_save_exec_prefix="$exec_prefix"
20495   exec_prefix="$acl_final_exec_prefix"
20496   eval x=\"$x\"
20497   exec_prefix="$acl_save_exec_prefix"
20498   prefix="$acl_save_prefix"
20499
20500       if test "X$x" = "X$element"; then
20501         haveit=yes
20502         break
20503       fi
20504     done
20505     if test -z "$haveit"; then
20506       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20507     fi
20508   done
20509
20510       fi
20511
20512
20513 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20514
20515
20516 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20517
20518     fi
20519
20520         POSUB=po
20521   fi
20522
20523
20524             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20525       BUILD_INCLUDED_LIBINTL=yes
20526     fi
20527
20528
20529
20530
20531
20532         nls_cv_header_intl=
20533     nls_cv_header_libgt=
20534
20535         DATADIRNAME=share
20536
20537
20538         INSTOBJEXT=.mo
20539
20540
20541         GENCAT=gencat
20542
20543
20544         INTLOBJS=
20545     if test "$USE_INCLUDED_LIBINTL" = yes; then
20546       INTLOBJS="\$(GETTOBJS)"
20547     fi
20548
20549
20550         INTL_LIBTOOL_SUFFIX_PREFIX=
20551
20552
20553
20554     INTLLIBS="$LIBINTL"
20555
20556
20557
20558
20559
20560
20561 fi
20562
20563 support_mysql=no
20564 support_sqlite=no
20565 support_sqlite3=no
20566 support_postgresql=no
20567 support_ingres=no
20568 support_dbi=no
20569 support_smartalloc=yes
20570 support_readline=yes
20571 support_conio=yes
20572 support_gnome=no
20573 support_bat=no
20574 support_wx_console=no
20575 support_tray_monitor=no
20576 support_tls=no
20577 support_crypto=no
20578 gnome_version=
20579 wx_version=
20580 support_static_tools=no
20581 support_static_fd=no
20582 support_static_sd=no
20583 support_static_dir=no
20584 support_static_cons=no
20585 support_python=no
20586 build_client_only=no
20587 build_dird=yes
20588 build_stored=yes
20589 cats=
20590 db_type=Internal
20591 support_lockmgr=no
20592 DB_TYPE=bdb
20593
20594
20595 # Check whether --enable-gnome was given.
20596 if test "${enable_gnome+set}" = set; then :
20597   enableval=$enable_gnome;
20598        if test x$enableval = xyes; then
20599           support_gnome=yes
20600        fi
20601
20602
20603 fi
20604
20605
20606 GNOME_DIR=
20607 if test x$support_gnome = xyes; then
20608    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20609    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20610 fi
20611 # AC_SUBST(GNOME_DIR)
20612
20613 # Check whether --enable-bat was given.
20614 if test "${enable_bat+set}" = set; then :
20615   enableval=$enable_bat;
20616        if test x$enableval = xyes; then
20617
20618 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20619
20620           support_bat=yes
20621        fi
20622
20623
20624 fi
20625
20626
20627 BAT_DIR=
20628 if test x$support_bat = xyes; then
20629    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20630    pkg=$?
20631    if test $pkg = 0; then
20632       BAT_DIR=src/qt-console
20633    else
20634       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20635    fi
20636 fi
20637
20638 got_qwt=no
20639 QWT_INC=
20640 QWT_LDFLAGS=
20641 QWT_LIB=
20642 QWT=
20643 no_qwt=no
20644
20645
20646
20647
20648
20649
20650
20651
20652 # Check whether --enable-bwx-console was given.
20653 if test "${enable_bwx_console+set}" = set; then :
20654   enableval=$enable_bwx_console;
20655        if test x$enableval = xyes; then
20656           support_wx_console=yes
20657        fi
20658
20659
20660 fi
20661
20662
20663 WX_DIR=
20664 if test x$support_wx_console = xyes; then
20665    abc=`$WXCONFIG $WXFLAGS --cppflags`
20666    pkg=$?
20667    if test $pkg = 0; then
20668       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20669       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20670       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20671
20672
20673
20674       WX_DIR="src/wx-console"
20675    else
20676       echo " "
20677       echo "wx-config program not found. bwx-console disabled."
20678       echo " "
20679       support_wx_console=no
20680    fi
20681 fi
20682
20683
20684 # Check whether --enable-tray-monitor was given.
20685 if test "${enable_tray_monitor+set}" = set; then :
20686   enableval=$enable_tray_monitor;
20687        if test x$enableval = xyes; then
20688           support_tray_monitor=yes
20689        fi
20690
20691
20692 fi
20693
20694
20695 TRAY_MONITOR_DIR=
20696 if test x$support_tray_monitor = xyes; then
20697    abc=`$PKGCONFIG --exists gtk+-2.0`
20698    pkg=$?
20699    if test $pkg = 0; then
20700       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20701       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20702
20703
20704       TRAY_MONITOR_DIR=src/tray-monitor
20705       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20706       pkg=$?
20707       if test $pkg = 0; then
20708
20709 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20710
20711       fi
20712    fi
20713 fi
20714
20715
20716 # Check whether --enable-smartalloc was given.
20717 if test "${enable_smartalloc+set}" = set; then :
20718   enableval=$enable_smartalloc;
20719        if test x$enableval = xno; then
20720           support_smartalloc=no
20721        fi
20722
20723
20724 fi
20725
20726
20727 if test x$support_smartalloc = xyes; then
20728
20729 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20730
20731 fi
20732
20733 # Check whether --enable-lockmgr was given.
20734 if test "${enable_lockmgr+set}" = set; then :
20735   enableval=$enable_lockmgr;
20736        if test x$enableval = xyes; then
20737           support_lockmgr=yes
20738        fi
20739
20740
20741 fi
20742
20743
20744 if test x$support_lockmgr = xyes; then
20745
20746 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20747
20748 fi
20749
20750
20751 # Check whether --enable-static-tools was given.
20752 if test "${enable_static_tools+set}" = set; then :
20753   enableval=$enable_static_tools;
20754        if test x$enableval = xyes; then
20755           if test x$use_libtool = xyes; then
20756              as_fn_error "Libtool is enabled, not compatible with static tools,
20757   please rerun configure with --disable-libtool" "$LINENO" 5
20758           fi
20759           support_static_tools=yes
20760        fi
20761
20762
20763 fi
20764
20765
20766 TTOOL_LDFLAGS=
20767 if test x$support_static_tools = xyes; then
20768    TTOOL_LDFLAGS="-static"
20769 fi
20770
20771
20772 # Check whether --enable-static-fd was given.
20773 if test "${enable_static_fd+set}" = set; then :
20774   enableval=$enable_static_fd;
20775        if test x$enableval = xyes; then
20776           if test x$use_libtool = xyes; then
20777              as_fn_error "Libtool is enabled, not compatible with static tools,
20778   please rerun configure with --disable-libtool" "$LINENO" 5
20779           fi
20780           support_static_fd=yes
20781        fi
20782
20783
20784 fi
20785
20786
20787 STATIC_FD=
20788 if test x$support_static_fd = xyes; then
20789    STATIC_FD="static-bacula-fd"
20790 fi
20791
20792
20793 # Check whether --enable-static-sd was given.
20794 if test "${enable_static_sd+set}" = set; then :
20795   enableval=$enable_static_sd;
20796        if test x$enableval = xyes; then
20797           if test x$use_libtool = xyes; then
20798              as_fn_error "Libtool is enabled, not compatible with static tools,
20799   please rerun configure with --disable-libtool" "$LINENO" 5
20800           fi
20801           support_static_sd=yes
20802        fi
20803
20804
20805 fi
20806
20807
20808 STATIC_SD=
20809 if test x$support_static_sd = xyes; then
20810    STATIC_SD="static-bacula-sd"
20811 fi
20812
20813
20814 # Check whether --enable-static-dir was given.
20815 if test "${enable_static_dir+set}" = set; then :
20816   enableval=$enable_static_dir;
20817        if test x$enableval = xyes; then
20818           if test x$use_libtool = xyes; then
20819              as_fn_error "Libtool is enabled, not compatible with static tools,
20820   please rerun configure with --disable-libtool" "$LINENO" 5
20821           fi
20822           support_static_dir=yes
20823        fi
20824
20825
20826 fi
20827
20828
20829 STATIC_DIR=
20830 if test x$support_static_dir = xyes; then
20831    STATIC_DIR="static-bacula-dir"
20832 fi
20833
20834
20835 # Check whether --enable-static-cons was given.
20836 if test "${enable_static_cons+set}" = set; then :
20837   enableval=$enable_static_cons;
20838        if test x$enableval = xyes; then
20839           if test x$use_libtool = xyes; then
20840              as_fn_error "Libtool is enabled, not compatible with static tools,
20841   please rerun configure with --disable-libtool" "$LINENO" 5
20842           fi
20843           support_static_cons=yes
20844        fi
20845
20846
20847 fi
20848
20849
20850 STATIC_CONS=
20851 STATIC_GNOME_CONS=
20852 STATIC_WX_CONS=
20853 if test x$support_static_cons = xyes; then
20854    STATIC_CONS="static-bconsole"
20855    STATIC_GNOME_CONS="static-bgnome-console"
20856    STATIC_WX_CONS="static-bwx-console"
20857 fi
20858
20859
20860
20861
20862 # Check whether --enable-client-only was given.
20863 if test "${enable_client_only+set}" = set; then :
20864   enableval=$enable_client_only;
20865        if test x$enableval = xyes; then
20866           build_client_only=yes
20867           db_type=None
20868           DB_TYPE=none
20869        fi
20870
20871
20872 fi
20873
20874 if test x$build_client_only = xno; then
20875    ALL_DIRS="subdirs"
20876 else
20877    ALL_DIRS=""
20878 fi
20879
20880
20881 # Check whether --enable-build-dird was given.
20882 if test "${enable_build_dird+set}" = set; then :
20883   enableval=$enable_build_dird;
20884        if test x$enableval = xno; then
20885           build_dird=no
20886        fi
20887
20888
20889 fi
20890
20891 if test x$build_dird = xyes; then
20892    DIRD_DIR="src/dird"
20893    DIR_TOOLS="DIRTOOLS"
20894 else
20895    DIRD_DIR=""
20896    DIR_TOOLS="NODIRTOOLS"
20897 fi
20898
20899
20900
20901 # Check whether --enable-build-stored was given.
20902 if test "${enable_build_stored+set}" = set; then :
20903   enableval=$enable_build_stored;
20904       if test x$enableval = xno; then
20905          build_stored=no
20906       fi
20907
20908
20909 fi
20910
20911 if test x$build_stored = xyes; then
20912    STORED_DIR="src/stored"
20913 else
20914    STORED_DIR=""
20915 fi
20916
20917
20918 # Check whether --enable-conio was given.
20919 if test "${enable_conio+set}" = set; then :
20920   enableval=$enable_conio;
20921        if test x$enableval = xno; then
20922           support_conio=no
20923        fi
20924
20925
20926 fi
20927
20928
20929
20930 support_ipv6=yes
20931 # Check whether --enable-ipv6 was given.
20932 if test "${enable_ipv6+set}" = set; then :
20933   enableval=$enable_ipv6;
20934        if test x$enableval = xno; then
20935           support_ipv6=no
20936        fi
20937
20938
20939 fi
20940
20941
20942 if test x$support_ipv6 = xyes; then
20943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h.  */
20945  #include <sys/types.h>
20946 #include <sys/socket.h>
20947 #include <netinet/in.h>
20948 int
20949 main ()
20950 {
20951 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20952   ;
20953   return 0;
20954 }
20955 _ACEOF
20956 if ac_fn_c_try_link "$LINENO"; then :
20957   support_ipv6=yes
20958 else
20959   support_ipv6=no
20960 fi
20961 rm -f core conftest.err conftest.$ac_objext \
20962     conftest$ac_exeext conftest.$ac_ext
20963 fi
20964
20965 if test x$support_ipv6 = xyes; then
20966
20967 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20968
20969 fi
20970
20971 TERM_LIB=""
20972 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
20973 if test "x$ac_cv_header_curses_h" = x""yes; then :
20974    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
20975 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
20976 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
20977   $as_echo_n "(cached) " >&6
20978 else
20979   ac_check_lib_save_LIBS=$LIBS
20980 LIBS="-lncurses  $LIBS"
20981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982 /* end confdefs.h.  */
20983
20984 /* Override any GCC internal prototype to avoid an error.
20985    Use char because int might match the return type of a GCC
20986    builtin and then its argument prototype would still apply.  */
20987 #ifdef __cplusplus
20988 extern "C"
20989 #endif
20990 char tgetent ();
20991 int
20992 main ()
20993 {
20994 return tgetent ();
20995   ;
20996   return 0;
20997 }
20998 _ACEOF
20999 if ac_fn_c_try_link "$LINENO"; then :
21000   ac_cv_lib_ncurses_tgetent=yes
21001 else
21002   ac_cv_lib_ncurses_tgetent=no
21003 fi
21004 rm -f core conftest.err conftest.$ac_objext \
21005     conftest$ac_exeext conftest.$ac_ext
21006 LIBS=$ac_check_lib_save_LIBS
21007 fi
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21009 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21010 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21011    TERM_LIB="-lncurses"
21012 else
21013    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21014 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21015 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21016   $as_echo_n "(cached) " >&6
21017 else
21018   ac_check_lib_save_LIBS=$LIBS
21019 LIBS="-ltermcap  $LIBS"
21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h.  */
21022
21023 /* Override any GCC internal prototype to avoid an error.
21024    Use char because int might match the return type of a GCC
21025    builtin and then its argument prototype would still apply.  */
21026 #ifdef __cplusplus
21027 extern "C"
21028 #endif
21029 char tgetent ();
21030 int
21031 main ()
21032 {
21033 return tgetent ();
21034   ;
21035   return 0;
21036 }
21037 _ACEOF
21038 if ac_fn_c_try_link "$LINENO"; then :
21039   ac_cv_lib_termcap_tgetent=yes
21040 else
21041   ac_cv_lib_termcap_tgetent=no
21042 fi
21043 rm -f core conftest.err conftest.$ac_objext \
21044     conftest$ac_exeext conftest.$ac_ext
21045 LIBS=$ac_check_lib_save_LIBS
21046 fi
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21048 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21049 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21050    TERM_LIB="-ltermcap"
21051 fi
21052
21053
21054 fi
21055
21056
21057 else
21058     for ac_header in curses.h
21059 do :
21060   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21061 if test "x$ac_cv_header_curses_h" = x""yes; then :
21062   cat >>confdefs.h <<_ACEOF
21063 #define HAVE_CURSES_H 1
21064 _ACEOF
21065
21066 fi
21067
21068 done
21069
21070      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21071 if test "x$ac_cv_header_term_h" = x""yes; then :
21072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21073 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21074 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21075   $as_echo_n "(cached) " >&6
21076 else
21077   ac_check_lib_save_LIBS=$LIBS
21078 LIBS="-lcurses  $LIBS"
21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h.  */
21081
21082 /* Override any GCC internal prototype to avoid an error.
21083    Use char because int might match the return type of a GCC
21084    builtin and then its argument prototype would still apply.  */
21085 #ifdef __cplusplus
21086 extern "C"
21087 #endif
21088 char tgetent ();
21089 int
21090 main ()
21091 {
21092 return tgetent ();
21093   ;
21094   return 0;
21095 }
21096 _ACEOF
21097 if ac_fn_c_try_link "$LINENO"; then :
21098   ac_cv_lib_curses_tgetent=yes
21099 else
21100   ac_cv_lib_curses_tgetent=no
21101 fi
21102 rm -f core conftest.err conftest.$ac_objext \
21103     conftest$ac_exeext conftest.$ac_ext
21104 LIBS=$ac_check_lib_save_LIBS
21105 fi
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21107 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21108 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21109    TERM_LIB="-lcurses"
21110 fi
21111
21112
21113 fi
21114
21115
21116
21117 fi
21118
21119
21120
21121
21122 got_conio="no"
21123 if test x$support_conio = xyes; then
21124    if test x$TERM_LIB != x; then
21125       CONS_LIBS=$TERM_LIB
21126       CONS_OBJ="conio.o"
21127       CONS_SRC="conio.c"
21128       got_conio="yes"
21129       support_readline=no
21130
21131 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21132
21133    else
21134       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21135    fi
21136 fi
21137
21138
21139 # Check whether --enable-readline was given.
21140 if test "${enable_readline+set}" = set; then :
21141   enableval=$enable_readline;
21142        if test x$enableval = xno; then
21143           support_readline=no
21144        fi
21145
21146
21147 fi
21148
21149 if test x$TERM_LIB = x ; then
21150    support_readline=no
21151 fi
21152
21153 got_readline="no"
21154 READLINE_SRC=
21155 if test x$support_readline = xyes; then
21156
21157 # Check whether --with-readline was given.
21158 if test "${with_readline+set}" = set; then :
21159   withval=$with_readline;
21160           case "$with_readline" in
21161           no)
21162              :
21163              ;;
21164           yes|*)
21165              if test -f ${with_readline}/readline.h; then
21166                 CONS_INC="-I${with_readline}"
21167                 CONS_LDFLAGS="-L$with_readline"
21168              elif test -f ${with_readline}/include/readline/readline.h; then
21169                 CONS_INC="-I${with_readline}/include/readline"
21170                 CONS_LDFLAGS="-L${with_readline}/lib"
21171                 with_readline="${with_readline}/include/readline"
21172              else
21173                 with_readline="/usr/include/readline"
21174              fi
21175
21176              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21177 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21178 eval as_val=\$$as_ac_Header
21179    if test "x$as_val" = x""yes; then :
21180
21181
21182 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21183
21184                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21185                     got_readline="yes"
21186
21187 else
21188
21189                     echo " "
21190                     echo "readline.h not found. readline turned off ..."
21191                     echo " "
21192
21193
21194 fi
21195
21196
21197              ;;
21198           esac
21199
21200 else
21201
21202                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21203 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21204
21205
21206 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21207
21208                 got_readline="yes"
21209                 CONS_INC="-I/usr/include/readline"
21210                 CONS_LIBS="-lreadline $TERM_LIB"
21211
21212 else
21213
21214                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21215 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21216 eval as_val=\$$as_ac_Header
21217    if test "x$as_val" = x""yes; then :
21218
21219
21220 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21221
21222                         got_readline="yes"
21223                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21224                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21225                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21226                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21227
21228 else
21229
21230                         echo " "
21231                         echo "readline.h not found. readline turned off ..."
21232                         echo " "
21233
21234
21235 fi
21236
21237
21238
21239
21240 fi
21241
21242
21243
21244
21245 fi
21246
21247 fi
21248
21249
21250
21251
21252
21253
21254
21255
21256 MAKE_SHELL=/bin/sh
21257
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21259 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21260 if test "${ac_cv_header_stat_broken+set}" = set; then :
21261   $as_echo_n "(cached) " >&6
21262 else
21263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264 /* end confdefs.h.  */
21265 #include <sys/types.h>
21266 #include <sys/stat.h>
21267
21268 #if defined S_ISBLK && defined S_IFDIR
21269 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21270 #endif
21271
21272 #if defined S_ISBLK && defined S_IFCHR
21273 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21274 #endif
21275
21276 #if defined S_ISLNK && defined S_IFREG
21277 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21278 #endif
21279
21280 #if defined S_ISSOCK && defined S_IFREG
21281 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21282 #endif
21283
21284 _ACEOF
21285 if ac_fn_c_try_compile "$LINENO"; then :
21286   ac_cv_header_stat_broken=no
21287 else
21288   ac_cv_header_stat_broken=yes
21289 fi
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 fi
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21293 $as_echo "$ac_cv_header_stat_broken" >&6; }
21294 if test $ac_cv_header_stat_broken = yes; then
21295
21296 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21297
21298 fi
21299
21300 ac_header_dirent=no
21301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21302   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21304 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21306   $as_echo_n "(cached) " >&6
21307 else
21308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21309 /* end confdefs.h.  */
21310 #include <sys/types.h>
21311 #include <$ac_hdr>
21312
21313 int
21314 main ()
21315 {
21316 if ((DIR *) 0)
21317 return 0;
21318   ;
21319   return 0;
21320 }
21321 _ACEOF
21322 if ac_fn_c_try_compile "$LINENO"; then :
21323   eval "$as_ac_Header=yes"
21324 else
21325   eval "$as_ac_Header=no"
21326 fi
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 fi
21329 eval ac_res=\$$as_ac_Header
21330                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21331 $as_echo "$ac_res" >&6; }
21332 eval as_val=\$$as_ac_Header
21333    if test "x$as_val" = x""yes; then :
21334   cat >>confdefs.h <<_ACEOF
21335 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21336 _ACEOF
21337
21338 ac_header_dirent=$ac_hdr; break
21339 fi
21340
21341 done
21342 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21343 if test $ac_header_dirent = dirent.h; then
21344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21345 $as_echo_n "checking for library containing opendir... " >&6; }
21346 if test "${ac_cv_search_opendir+set}" = set; then :
21347   $as_echo_n "(cached) " >&6
21348 else
21349   ac_func_search_save_LIBS=$LIBS
21350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21351 /* end confdefs.h.  */
21352
21353 /* Override any GCC internal prototype to avoid an error.
21354    Use char because int might match the return type of a GCC
21355    builtin and then its argument prototype would still apply.  */
21356 #ifdef __cplusplus
21357 extern "C"
21358 #endif
21359 char opendir ();
21360 int
21361 main ()
21362 {
21363 return opendir ();
21364   ;
21365   return 0;
21366 }
21367 _ACEOF
21368 for ac_lib in '' dir; do
21369   if test -z "$ac_lib"; then
21370     ac_res="none required"
21371   else
21372     ac_res=-l$ac_lib
21373     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21374   fi
21375   if ac_fn_c_try_link "$LINENO"; then :
21376   ac_cv_search_opendir=$ac_res
21377 fi
21378 rm -f core conftest.err conftest.$ac_objext \
21379     conftest$ac_exeext
21380   if test "${ac_cv_search_opendir+set}" = set; then :
21381   break
21382 fi
21383 done
21384 if test "${ac_cv_search_opendir+set}" = set; then :
21385
21386 else
21387   ac_cv_search_opendir=no
21388 fi
21389 rm conftest.$ac_ext
21390 LIBS=$ac_func_search_save_LIBS
21391 fi
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21393 $as_echo "$ac_cv_search_opendir" >&6; }
21394 ac_res=$ac_cv_search_opendir
21395 if test "$ac_res" != no; then :
21396   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21397
21398 fi
21399
21400 else
21401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21402 $as_echo_n "checking for library containing opendir... " >&6; }
21403 if test "${ac_cv_search_opendir+set}" = set; then :
21404   $as_echo_n "(cached) " >&6
21405 else
21406   ac_func_search_save_LIBS=$LIBS
21407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21408 /* end confdefs.h.  */
21409
21410 /* Override any GCC internal prototype to avoid an error.
21411    Use char because int might match the return type of a GCC
21412    builtin and then its argument prototype would still apply.  */
21413 #ifdef __cplusplus
21414 extern "C"
21415 #endif
21416 char opendir ();
21417 int
21418 main ()
21419 {
21420 return opendir ();
21421   ;
21422   return 0;
21423 }
21424 _ACEOF
21425 for ac_lib in '' x; do
21426   if test -z "$ac_lib"; then
21427     ac_res="none required"
21428   else
21429     ac_res=-l$ac_lib
21430     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21431   fi
21432   if ac_fn_c_try_link "$LINENO"; then :
21433   ac_cv_search_opendir=$ac_res
21434 fi
21435 rm -f core conftest.err conftest.$ac_objext \
21436     conftest$ac_exeext
21437   if test "${ac_cv_search_opendir+set}" = set; then :
21438   break
21439 fi
21440 done
21441 if test "${ac_cv_search_opendir+set}" = set; then :
21442
21443 else
21444   ac_cv_search_opendir=no
21445 fi
21446 rm conftest.$ac_ext
21447 LIBS=$ac_func_search_save_LIBS
21448 fi
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21450 $as_echo "$ac_cv_search_opendir" >&6; }
21451 ac_res=$ac_cv_search_opendir
21452 if test "$ac_res" != no; then :
21453   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21454
21455 fi
21456
21457 fi
21458
21459 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21460 do :
21461   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21462 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21463 eval as_val=\$$as_ac_var
21464    if test "x$as_val" = x""yes; then :
21465   cat >>confdefs.h <<_ACEOF
21466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21467 _ACEOF
21468
21469 fi
21470 done
21471
21472 for ac_func in nanosleep nl_langinfo
21473 do :
21474   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21475 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21476 eval as_val=\$$as_ac_var
21477    if test "x$as_val" = x""yes; then :
21478   cat >>confdefs.h <<_ACEOF
21479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21480 _ACEOF
21481
21482 fi
21483 done
21484
21485 for ac_header in varargs.h
21486 do :
21487   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21488 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21489   cat >>confdefs.h <<_ACEOF
21490 #define HAVE_VARARGS_H 1
21491 _ACEOF
21492
21493 fi
21494
21495 done
21496
21497
21498
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21500 $as_echo_n "checking for Python support... " >&6; }
21501
21502 # Check whether --with-python was given.
21503 if test "${with_python+set}" = set; then :
21504   withval=$with_python;
21505        PYTHON_INCDIR=
21506        PYTHON_LIBS=
21507        if test "$withval" != "no"; then
21508           if test "$withval" = "yes"; then
21509              if test -e /usr/bin/python-config ; then
21510                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21511                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21512              else
21513                 for python_root in /usr /usr/local /usr/sfw; do
21514                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21515                       if test -f $python_root/include/${ver}/Python.h; then
21516                          PYTHON_INCDIR=-I$python_root/include/${ver}
21517                          if test -d $python_root/lib64/${ver}/config; then
21518                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21519                          else
21520                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21521                          fi
21522                          break
21523                       fi
21524                    done
21525                 done
21526
21527                 if test x$PYTHON_INCDIR = x; then
21528                    if test -f $prefix/include/Python.h; then
21529                       PYTHON_INCDIR=-I$prefix/include
21530                       if test -d $prefix/lib64/config; then
21531                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21532                       else
21533                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21534                       fi
21535                    else
21536                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21537 $as_echo "no" >&6; }
21538                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21539                    fi
21540                 fi
21541              fi
21542           else
21543              if test -e $withval/bin/python-config ; then
21544                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21545                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21546              elif test -f $withval/Python.h; then
21547                 PYTHON_INCDIR=-I$withval
21548                 PYTHON_LIBS="-L$withval/config -lpython"
21549              elif test -f $withval/include/Python.h; then
21550                 PYTHON_INCDIR=-I$withval/include
21551                 if test -d $withval/lib64/config; then
21552                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21553                 else
21554                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21555                 fi
21556              elif test -f $withval/include/python/Python.h; then
21557                 PYTHON_INCDIR=-I$withval/include/python
21558                 if test -d $withval/lib64/python/config; then
21559                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21560                 else
21561                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21562                 fi
21563              else
21564                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21565 $as_echo "no" >&6; }
21566                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21567              fi
21568           fi
21569
21570           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21571
21572           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21573 $as_echo "yes" >&6; }
21574           support_python=yes
21575           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21576 $as_echo "$as_me: checking for more Python libs" >&6;}
21577           saved_LIBS="$LIBS"; LIBS=
21578           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21579 $as_echo_n "checking for library containing shm_open... " >&6; }
21580 if test "${ac_cv_search_shm_open+set}" = set; then :
21581   $as_echo_n "(cached) " >&6
21582 else
21583   ac_func_search_save_LIBS=$LIBS
21584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21585 /* end confdefs.h.  */
21586
21587 /* Override any GCC internal prototype to avoid an error.
21588    Use char because int might match the return type of a GCC
21589    builtin and then its argument prototype would still apply.  */
21590 #ifdef __cplusplus
21591 extern "C"
21592 #endif
21593 char shm_open ();
21594 int
21595 main ()
21596 {
21597 return shm_open ();
21598   ;
21599   return 0;
21600 }
21601 _ACEOF
21602 for ac_lib in '' rt; do
21603   if test -z "$ac_lib"; then
21604     ac_res="none required"
21605   else
21606     ac_res=-l$ac_lib
21607     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21608   fi
21609   if ac_fn_c_try_link "$LINENO"; then :
21610   ac_cv_search_shm_open=$ac_res
21611 fi
21612 rm -f core conftest.err conftest.$ac_objext \
21613     conftest$ac_exeext
21614   if test "${ac_cv_search_shm_open+set}" = set; then :
21615   break
21616 fi
21617 done
21618 if test "${ac_cv_search_shm_open+set}" = set; then :
21619
21620 else
21621   ac_cv_search_shm_open=no
21622 fi
21623 rm conftest.$ac_ext
21624 LIBS=$ac_func_search_save_LIBS
21625 fi
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21627 $as_echo "$ac_cv_search_shm_open" >&6; }
21628 ac_res=$ac_cv_search_shm_open
21629 if test "$ac_res" != no; then :
21630   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21631
21632 fi
21633
21634           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21635 $as_echo_n "checking for openpty in -lutil... " >&6; }
21636 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21637   $as_echo_n "(cached) " >&6
21638 else
21639   ac_check_lib_save_LIBS=$LIBS
21640 LIBS="-lutil  $LIBS"
21641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21642 /* end confdefs.h.  */
21643
21644 /* Override any GCC internal prototype to avoid an error.
21645    Use char because int might match the return type of a GCC
21646    builtin and then its argument prototype would still apply.  */
21647 #ifdef __cplusplus
21648 extern "C"
21649 #endif
21650 char openpty ();
21651 int
21652 main ()
21653 {
21654 return openpty ();
21655   ;
21656   return 0;
21657 }
21658 _ACEOF
21659 if ac_fn_c_try_link "$LINENO"; then :
21660   ac_cv_lib_util_openpty=yes
21661 else
21662   ac_cv_lib_util_openpty=no
21663 fi
21664 rm -f core conftest.err conftest.$ac_objext \
21665     conftest$ac_exeext conftest.$ac_ext
21666 LIBS=$ac_check_lib_save_LIBS
21667 fi
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21669 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21670 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21671   cat >>confdefs.h <<_ACEOF
21672 #define HAVE_LIBUTIL 1
21673 _ACEOF
21674
21675   LIBS="-lutil $LIBS"
21676
21677 fi
21678
21679           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21680           LIBS="$saved_LIBS"
21681        else
21682           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21683 $as_echo "no" >&6; }
21684        fi
21685
21686 else
21687
21688        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21689 $as_echo "no" >&6; }
21690
21691
21692 fi
21693
21694
21695
21696
21697 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21698 if test "x$ac_cv_func_socket" = x""yes; then :
21699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21700 $as_echo "using libc's socket" >&6; }
21701 else
21702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21703 $as_echo_n "checking for socket in -lxnet... " >&6; }
21704 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21705   $as_echo_n "(cached) " >&6
21706 else
21707   ac_check_lib_save_LIBS=$LIBS
21708 LIBS="-lxnet  $LIBS"
21709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21710 /* end confdefs.h.  */
21711
21712 /* Override any GCC internal prototype to avoid an error.
21713    Use char because int might match the return type of a GCC
21714    builtin and then its argument prototype would still apply.  */
21715 #ifdef __cplusplus
21716 extern "C"
21717 #endif
21718 char socket ();
21719 int
21720 main ()
21721 {
21722 return socket ();
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 if ac_fn_c_try_link "$LINENO"; then :
21728   ac_cv_lib_xnet_socket=yes
21729 else
21730   ac_cv_lib_xnet_socket=no
21731 fi
21732 rm -f core conftest.err conftest.$ac_objext \
21733     conftest$ac_exeext conftest.$ac_ext
21734 LIBS=$ac_check_lib_save_LIBS
21735 fi
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21737 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21738 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21739   cat >>confdefs.h <<_ACEOF
21740 #define HAVE_LIBXNET 1
21741 _ACEOF
21742
21743   LIBS="-lxnet $LIBS"
21744
21745 fi
21746
21747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21748 $as_echo_n "checking for socket in -lsocket... " >&6; }
21749 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21750   $as_echo_n "(cached) " >&6
21751 else
21752   ac_check_lib_save_LIBS=$LIBS
21753 LIBS="-lsocket  $LIBS"
21754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h.  */
21756
21757 /* Override any GCC internal prototype to avoid an error.
21758    Use char because int might match the return type of a GCC
21759    builtin and then its argument prototype would still apply.  */
21760 #ifdef __cplusplus
21761 extern "C"
21762 #endif
21763 char socket ();
21764 int
21765 main ()
21766 {
21767 return socket ();
21768   ;
21769   return 0;
21770 }
21771 _ACEOF
21772 if ac_fn_c_try_link "$LINENO"; then :
21773   ac_cv_lib_socket_socket=yes
21774 else
21775   ac_cv_lib_socket_socket=no
21776 fi
21777 rm -f core conftest.err conftest.$ac_objext \
21778     conftest$ac_exeext conftest.$ac_ext
21779 LIBS=$ac_check_lib_save_LIBS
21780 fi
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21782 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21783 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21784   cat >>confdefs.h <<_ACEOF
21785 #define HAVE_LIBSOCKET 1
21786 _ACEOF
21787
21788   LIBS="-lsocket $LIBS"
21789
21790 fi
21791
21792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21793 $as_echo_n "checking for socket in -linet... " >&6; }
21794 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21795   $as_echo_n "(cached) " >&6
21796 else
21797   ac_check_lib_save_LIBS=$LIBS
21798 LIBS="-linet  $LIBS"
21799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h.  */
21801
21802 /* Override any GCC internal prototype to avoid an error.
21803    Use char because int might match the return type of a GCC
21804    builtin and then its argument prototype would still apply.  */
21805 #ifdef __cplusplus
21806 extern "C"
21807 #endif
21808 char socket ();
21809 int
21810 main ()
21811 {
21812 return socket ();
21813   ;
21814   return 0;
21815 }
21816 _ACEOF
21817 if ac_fn_c_try_link "$LINENO"; then :
21818   ac_cv_lib_inet_socket=yes
21819 else
21820   ac_cv_lib_inet_socket=no
21821 fi
21822 rm -f core conftest.err conftest.$ac_objext \
21823     conftest$ac_exeext conftest.$ac_ext
21824 LIBS=$ac_check_lib_save_LIBS
21825 fi
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21827 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21828 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21829   cat >>confdefs.h <<_ACEOF
21830 #define HAVE_LIBINET 1
21831 _ACEOF
21832
21833   LIBS="-linet $LIBS"
21834
21835 fi
21836
21837 fi
21838
21839
21840 TCPW_MSG="no"
21841 WRAPLIBS=""
21842
21843 # Check whether --with-tcp-wrappers was given.
21844 if test "${with_tcp_wrappers+set}" = set; then :
21845   withval=$with_tcp_wrappers;
21846        if test "x$withval" != "xno" ; then
21847           saved_LIBS="$LIBS"
21848           LIBS="$saved_LIBS -lwrap"
21849           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21850 $as_echo_n "checking for library containing nanosleep... " >&6; }
21851 if test "${ac_cv_search_nanosleep+set}" = set; then :
21852   $as_echo_n "(cached) " >&6
21853 else
21854   ac_func_search_save_LIBS=$LIBS
21855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21856 /* end confdefs.h.  */
21857
21858 /* Override any GCC internal prototype to avoid an error.
21859    Use char because int might match the return type of a GCC
21860    builtin and then its argument prototype would still apply.  */
21861 #ifdef __cplusplus
21862 extern "C"
21863 #endif
21864 char nanosleep ();
21865 int
21866 main ()
21867 {
21868 return nanosleep ();
21869   ;
21870   return 0;
21871 }
21872 _ACEOF
21873 for ac_lib in '' rt; do
21874   if test -z "$ac_lib"; then
21875     ac_res="none required"
21876   else
21877     ac_res=-l$ac_lib
21878     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21879   fi
21880   if ac_fn_c_try_link "$LINENO"; then :
21881   ac_cv_search_nanosleep=$ac_res
21882 fi
21883 rm -f core conftest.err conftest.$ac_objext \
21884     conftest$ac_exeext
21885   if test "${ac_cv_search_nanosleep+set}" = set; then :
21886   break
21887 fi
21888 done
21889 if test "${ac_cv_search_nanosleep+set}" = set; then :
21890
21891 else
21892   ac_cv_search_nanosleep=no
21893 fi
21894 rm conftest.$ac_ext
21895 LIBS=$ac_func_search_save_LIBS
21896 fi
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21898 $as_echo "$ac_cv_search_nanosleep" >&6; }
21899 ac_res=$ac_cv_search_nanosleep
21900 if test "$ac_res" != no; then :
21901   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21902
21903 fi
21904
21905           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21906 $as_echo_n "checking for libwrap... " >&6; }
21907           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h.  */
21909
21910                #include <sys/types.h>
21911                #include <tcpd.h>
21912                int deny_severity = 0;
21913                int allow_severity = 0;
21914                struct request_info *req;
21915
21916 int
21917 main ()
21918 {
21919
21920                 hosts_access(req);
21921
21922   ;
21923   return 0;
21924 }
21925 _ACEOF
21926 if ac_fn_c_try_link "$LINENO"; then :
21927
21928                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21929 $as_echo "yes" >&6; }
21930
21931 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21932
21933                  TCPW_MSG="yes"
21934                  LIBS="$saved_LIBS"
21935                  WRAPLIBS="-lwrap"
21936
21937 else
21938
21939                  LIBS="$saved_LIBS -lwrap -lnsl"
21940                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21941                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21942 /* end confdefs.h.  */
21943
21944                        #include <sys/types.h>
21945                        #include <tcpd.h>
21946                        int deny_severity = 0;
21947                        int allow_severity = 0;
21948                        struct request_info *req;
21949
21950 int
21951 main ()
21952 {
21953
21954                        hosts_access(req);
21955
21956   ;
21957   return 0;
21958 }
21959 _ACEOF
21960 if ac_fn_c_try_link "$LINENO"; then :
21961
21962                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21963 $as_echo "yes" >&6; }
21964
21965 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21966
21967                       TCPW_MSG="yes"
21968                       LIBS="$saved_LIBS"
21969                       WRAPLIBS="-lwrap"
21970
21971 else
21972
21973                       as_fn_error "*** libwrap missing" "$LINENO" 5
21974
21975
21976 fi
21977 rm -f core conftest.err conftest.$ac_objext \
21978     conftest$ac_exeext conftest.$ac_ext
21979
21980
21981 fi
21982 rm -f core conftest.err conftest.$ac_objext \
21983     conftest$ac_exeext conftest.$ac_ext
21984        fi
21985
21986
21987 fi
21988
21989
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
21991 $as_echo_n "checking for OpenSSL... " >&6; }
21992
21993 # Check whether --with-openssl was given.
21994 if test "${with_openssl+set}" = set; then :
21995   withval=$with_openssl;
21996         with_openssl_directory=${withval}
21997
21998
21999 fi
22000
22001
22002 if test "x$with_openssl_directory" != "xno"; then
22003    OPENSSL_LIBS="-lssl -lcrypto"
22004    OPENSSL_INC=""
22005
22006    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22007       #
22008       # Make sure the $with_openssl_directory also makes sense
22009       #
22010       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22011          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22012          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22013       fi
22014    fi
22015
22016    saved_LIBS="${LIBS}"
22017    saved_CFLAGS="${CFLAGS}"
22018    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22019    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22020
22021    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h.  */
22023
22024           #include <openssl/ssl.h>
22025
22026 int
22027 main ()
22028 {
22029
22030            CRYPTO_set_id_callback(NULL);
22031
22032   ;
22033   return 0;
22034 }
22035 _ACEOF
22036 if ac_fn_c_try_link "$LINENO"; then :
22037
22038           support_tls="yes"
22039           support_crypto="yes"
22040
22041 else
22042
22043           support_tls="no"
22044           support_crypto="no"
22045
22046
22047 fi
22048 rm -f core conftest.err conftest.$ac_objext \
22049     conftest$ac_exeext conftest.$ac_ext
22050
22051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052 /* end confdefs.h.  */
22053
22054           #include <openssl/evp.h>
22055
22056 int
22057 main ()
22058 {
22059
22060           EVP_sha512();
22061
22062   ;
22063   return 0;
22064 }
22065 _ACEOF
22066 if ac_fn_c_try_link "$LINENO"; then :
22067
22068           ac_cv_openssl_sha2="yes"
22069
22070 else
22071
22072           ac_cv_openssl_sha2="no"
22073
22074
22075 fi
22076 rm -f core conftest.err conftest.$ac_objext \
22077     conftest$ac_exeext conftest.$ac_ext
22078
22079                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22080 /* end confdefs.h.  */
22081
22082           #include <openssl/evp.h>
22083
22084 int
22085 main ()
22086 {
22087
22088           EVP_aes_192_cbc();
22089
22090   ;
22091   return 0;
22092 }
22093 _ACEOF
22094 if ac_fn_c_try_link "$LINENO"; then :
22095
22096           ac_cv_openssl_export="no"
22097
22098 else
22099
22100           ac_cv_openssl_export="yes"
22101
22102
22103 fi
22104 rm -f core conftest.err conftest.$ac_objext \
22105     conftest$ac_exeext conftest.$ac_ext
22106
22107    LIBS="${saved_LIBS}"
22108    CFLAGS="${saved_CFLAGS}"
22109
22110    if test "$support_tls" = "yes"; then
22111
22112 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22113
22114
22115 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22116
22117
22118 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22119
22120    fi
22121
22122    if test "$ac_cv_openssl_sha2" = "yes"; then
22123
22124 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22125
22126    fi
22127
22128    if test "$ac_cv_openssl_export" = "yes"; then
22129
22130 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22131
22132    fi
22133 else
22134    support_tls="no"
22135    support_crypto="no"
22136    OPENSSL_LIBS=""
22137    OPENSSL_INC=""
22138 fi
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22140 $as_echo "$support_tls" >&6; }
22141
22142 if test "$support_tls" = "no"; then
22143    OPENSSL_LIBS=""
22144    OPENSSL_INC=""
22145 fi
22146 if test "$support_crypto" = "no"; then
22147    OPENSSL_LIBS=""
22148    OPENSSL_INC=""
22149 else
22150    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22151 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22152 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
22153   $as_echo_n "(cached) " >&6
22154 else
22155   ac_check_lib_save_LIBS=$LIBS
22156 LIBS="-lssl  $LIBS"
22157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22158 /* end confdefs.h.  */
22159
22160 /* Override any GCC internal prototype to avoid an error.
22161    Use char because int might match the return type of a GCC
22162    builtin and then its argument prototype would still apply.  */
22163 #ifdef __cplusplus
22164 extern "C"
22165 #endif
22166 char EVP_PKEY_encrypt_old ();
22167 int
22168 main ()
22169 {
22170 return EVP_PKEY_encrypt_old ();
22171   ;
22172   return 0;
22173 }
22174 _ACEOF
22175 if ac_fn_c_try_link "$LINENO"; then :
22176   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22177 else
22178   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22179 fi
22180 rm -f core conftest.err conftest.$ac_objext \
22181     conftest$ac_exeext conftest.$ac_ext
22182 LIBS=$ac_check_lib_save_LIBS
22183 fi
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22185 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22186 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then :
22187
22188 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22189
22190 fi
22191
22192 fi
22193
22194
22195
22196
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22198 $as_echo_n "checking for library containing dlopen... " >&6; }
22199 if test "${ac_cv_search_dlopen+set}" = set; then :
22200   $as_echo_n "(cached) " >&6
22201 else
22202   ac_func_search_save_LIBS=$LIBS
22203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22204 /* end confdefs.h.  */
22205
22206 /* Override any GCC internal prototype to avoid an error.
22207    Use char because int might match the return type of a GCC
22208    builtin and then its argument prototype would still apply.  */
22209 #ifdef __cplusplus
22210 extern "C"
22211 #endif
22212 char dlopen ();
22213 int
22214 main ()
22215 {
22216 return dlopen ();
22217   ;
22218   return 0;
22219 }
22220 _ACEOF
22221 for ac_lib in '' dl; do
22222   if test -z "$ac_lib"; then
22223     ac_res="none required"
22224   else
22225     ac_res=-l$ac_lib
22226     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22227   fi
22228   if ac_fn_c_try_link "$LINENO"; then :
22229   ac_cv_search_dlopen=$ac_res
22230 fi
22231 rm -f core conftest.err conftest.$ac_objext \
22232     conftest$ac_exeext
22233   if test "${ac_cv_search_dlopen+set}" = set; then :
22234   break
22235 fi
22236 done
22237 if test "${ac_cv_search_dlopen+set}" = set; then :
22238
22239 else
22240   ac_cv_search_dlopen=no
22241 fi
22242 rm conftest.$ac_ext
22243 LIBS=$ac_func_search_save_LIBS
22244 fi
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22246 $as_echo "$ac_cv_search_dlopen" >&6; }
22247 ac_res=$ac_cv_search_dlopen
22248 if test "$ac_res" != no; then :
22249   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22250
22251 fi
22252
22253
22254 working_dir=`eval echo ${prefix}/var/bacula/working`
22255
22256 # Check whether --with-working-dir was given.
22257 if test "${with_working_dir+set}" = set; then :
22258   withval=$with_working_dir;
22259        if test "x$withval" != "xno" ; then
22260          working_dir=$withval
22261        fi
22262
22263
22264 fi
22265
22266
22267
22268
22269 archivedir=/tmp
22270
22271 # Check whether --with-archivedir was given.
22272 if test "${with_archivedir+set}" = set; then :
22273   withval=$with_archivedir;
22274        if test "x$withval" != "xno" ; then
22275           archivedir=$withval
22276        fi
22277
22278
22279 fi
22280
22281
22282
22283
22284 basename=`hostname`
22285
22286 # Check whether --with-basename was given.
22287 if test "${with_basename+set}" = set; then :
22288   withval=$with_basename;
22289        if test "x$withval" != "xno" ; then
22290           basename=$withval
22291        fi
22292
22293
22294 fi
22295
22296
22297
22298
22299 hostname=`uname -n | cut -d '.' -f 1`
22300 if test x${hostname} = x ; then
22301   hostname="localhost"
22302 fi
22303
22304 # Check whether --with-hostname was given.
22305 if test "${with_hostname+set}" = set; then :
22306   withval=$with_hostname;
22307        if test "x$withval" != "xno" ; then
22308          hostname=$withval
22309        fi
22310
22311
22312 fi
22313
22314
22315
22316
22317
22318 scriptdir=`eval echo ${sysconfdir}`
22319
22320 # Check whether --with-scriptdir was given.
22321 if test "${with_scriptdir+set}" = set; then :
22322   withval=$with_scriptdir;
22323        if test "x$withval" != "xno" ; then
22324           scriptdir=$withval
22325        fi
22326
22327
22328 fi
22329
22330
22331
22332
22333
22334 bsrdir=/tmp
22335
22336 # Check whether --with-bsrdir was given.
22337 if test "${with_bsrdir+set}" = set; then :
22338   withval=$with_bsrdir;
22339        if test "x$withval" != "xno" ; then
22340           bsrdir=$withval
22341        fi
22342
22343
22344 fi
22345
22346
22347
22348
22349 logdir=/tmp
22350
22351 # Check whether --with-logdir was given.
22352 if test "${with_logdir+set}" = set; then :
22353   withval=$with_logdir;
22354        if test "x$withval" != "xno" ; then
22355           logdir=$withval
22356        fi
22357
22358
22359 fi
22360
22361
22362
22363
22364
22365 # ------------------------------------------
22366 # Where to place plugindir (plugin files)
22367 # ------------------------------------------
22368 plugindir=`eval echo ${libdir}`
22369
22370 # Check whether --with-plugindir was given.
22371 if test "${with_plugindir+set}" = set; then :
22372   withval=$with_plugindir;
22373        if test "x$withval" != "xno" ; then
22374           plugindir=$withval
22375        fi
22376
22377
22378 fi
22379
22380
22381
22382
22383 dump_email=root@localhost
22384
22385 # Check whether --with-dump-email was given.
22386 if test "${with_dump_email+set}" = set; then :
22387   withval=$with_dump_email;
22388        if test "x$withval" != "xno" ; then
22389           dump_email=$withval
22390        fi
22391
22392
22393 fi
22394
22395
22396
22397
22398 job_email=root@localhost
22399
22400 # Check whether --with-job-email was given.
22401 if test "${with_job_email+set}" = set; then :
22402   withval=$with_job_email;
22403        if test "x$withval" != "xno" ; then
22404           job_email=$withval
22405        fi
22406
22407
22408 fi
22409
22410
22411
22412
22413 smtp_host=localhost
22414
22415 # Check whether --with-smtp_host was given.
22416 if test "${with_smtp_host+set}" = set; then :
22417   withval=$with_smtp_host;
22418        if test "x$withval" != "xno" ; then
22419           smtp_host=$withval
22420        fi
22421
22422
22423 fi
22424
22425
22426
22427
22428 piddir=/var/run
22429
22430 # Check whether --with-pid-dir was given.
22431 if test "${with_pid_dir+set}" = set; then :
22432   withval=$with_pid_dir;
22433        if test "x$withval" != "xno" ; then
22434           piddir=$withval
22435        fi
22436
22437
22438 fi
22439
22440
22441 cat >>confdefs.h <<_ACEOF
22442 #define _PATH_BACULA_PIDDIR "$piddir"
22443 _ACEOF
22444
22445
22446
22447 subsysdir=/var/run/subsys
22448 if test -d /var/run/subsys; then
22449    subsysdir=/var/run/subsys
22450 elif test -d /var/lock/subsys; then
22451    subsysdir=/var/lock/subsys
22452 else
22453    subsysdir=/var/run/subsys
22454 fi
22455
22456 # Check whether --with-subsys-dir was given.
22457 if test "${with_subsys_dir+set}" = set; then :
22458   withval=$with_subsys_dir;
22459        if test "x$withval" != "xno" ; then
22460           subsysdir=$withval
22461        fi
22462
22463
22464 fi
22465
22466
22467
22468
22469 baseport=9101
22470
22471 # Check whether --with-baseport was given.
22472 if test "${with_baseport+set}" = set; then :
22473   withval=$with_baseport;
22474        if test "x$withval" != "xno" ; then
22475           baseport=$withval
22476        fi
22477
22478
22479 fi
22480
22481
22482
22483 dir_port=`expr $baseport`
22484 fd_port=`expr $baseport + 1`
22485 sd_port=`expr $fd_port + 1`
22486
22487
22488
22489
22490
22491 dir_password=
22492
22493 # Check whether --with-dir-password was given.
22494 if test "${with_dir_password+set}" = set; then :
22495   withval=$with_dir_password;
22496        if test "x$withval" != "xno" ; then
22497           dir_password=$withval
22498        fi
22499
22500
22501 fi
22502
22503
22504 if test "x$dir_password" = "x" ; then
22505    if test "x$OPENSSL" = "xnone" ; then
22506       key=`autoconf/randpass 33`
22507    else
22508       key=`openssl rand -base64 33`
22509    fi
22510    dir_password=$key
22511 fi
22512
22513 fd_password=
22514
22515 # Check whether --with-fd-password was given.
22516 if test "${with_fd_password+set}" = set; then :
22517   withval=$with_fd_password;
22518        if test "x$withval" != "xno" ; then
22519           fd_password=$withval
22520        fi
22521
22522
22523 fi
22524
22525
22526 if test "x$fd_password" = "x" ; then
22527    if test "x$OPENSSL" = "xnone" ; then
22528       key=`autoconf/randpass 37`
22529    else
22530       key=`openssl rand -base64 33`
22531    fi
22532    fd_password=$key
22533 fi
22534
22535 sd_password=
22536
22537 # Check whether --with-sd-password was given.
22538 if test "${with_sd_password+set}" = set; then :
22539   withval=$with_sd_password;
22540        if test "x$withval" != "xno" ; then
22541           sd_password=$withval
22542        fi
22543
22544
22545 fi
22546
22547
22548 if test "x$sd_password" = "x" ; then
22549    if test "x$OPENSSL" = "xnone" ; then
22550       key=`autoconf/randpass 41`
22551    else
22552       key=`openssl rand -base64 33`
22553    fi
22554    sd_password=$key
22555 fi
22556
22557 mon_dir_password=
22558
22559 # Check whether --with-mon-dir-password was given.
22560 if test "${with_mon_dir_password+set}" = set; then :
22561   withval=$with_mon_dir_password;
22562        if test "x$withval" != "xno" ; then
22563           mon_dir_password=$withval
22564        fi
22565
22566
22567 fi
22568
22569
22570 if test "x$mon_dir_password" = "x" ; then
22571    if test "x$OPENSSL" = "xnone" ; then
22572       key=`autoconf/randpass 33`
22573    else
22574       key=`openssl rand -base64 33`
22575    fi
22576    mon_dir_password=$key
22577 fi
22578
22579 mon_fd_password=
22580
22581 # Check whether --with-mon-fd-password was given.
22582 if test "${with_mon_fd_password+set}" = set; then :
22583   withval=$with_mon_fd_password;
22584        if test "x$withval" != "xno" ; then
22585           mon_fd_password=$withval
22586        fi
22587
22588
22589 fi
22590
22591
22592 if test "x$mon_fd_password" = "x" ; then
22593    if test "x$OPENSSL" = "xnone" ; then
22594       key=`autoconf/randpass 37`
22595    else
22596       key=`openssl rand -base64 33`
22597    fi
22598    mon_fd_password=$key
22599 fi
22600
22601 mon_sd_password=
22602
22603 # Check whether --with-mon-sd-password was given.
22604 if test "${with_mon_sd_password+set}" = set; then :
22605   withval=$with_mon_sd_password;
22606        if test "x$withval" != "xno" ; then
22607           mon_sd_password=$withval
22608        fi
22609
22610
22611 fi
22612
22613
22614 if test "x$mon_sd_password" = "x" ; then
22615    if test "x$OPENSSL" = "xnone" ; then
22616       key=`autoconf/randpass 41`
22617    else
22618       key=`openssl rand -base64 33`
22619    fi
22620    mon_sd_password=$key
22621 fi
22622
22623
22624
22625
22626
22627
22628
22629
22630 db_name=bacula
22631
22632 # Check whether --with-db_name was given.
22633 if test "${with_db_name+set}" = set; then :
22634   withval=$with_db_name;
22635        if test "x$withval" != "x" ; then
22636           db_name=$withval
22637        fi
22638
22639
22640 fi
22641
22642
22643
22644 db_user=bacula
22645
22646 # Check whether --with-db_user was given.
22647 if test "${with_db_user+set}" = set; then :
22648   withval=$with_db_user;
22649        if test "x$withval" != "x" ; then
22650           db_user=$withval
22651        fi
22652
22653
22654 fi
22655
22656
22657
22658 db_password=
22659
22660 # Check whether --with-db_password was given.
22661 if test "${with_db_password+set}" = set; then :
22662   withval=$with_db_password;
22663        if test "x$withval" != "x" ; then
22664           db_password=$withval
22665        fi
22666
22667
22668 fi
22669
22670
22671
22672 db_port=" "
22673
22674 # Check whether --with-db_port was given.
22675 if test "${with_db_port+set}" = set; then :
22676   withval=$with_db_port;
22677        if test "x$withval" != "x" ; then
22678           db_port=$withval
22679        fi
22680
22681
22682 fi
22683
22684
22685
22686 #
22687 # Handle users and groups for each daemon
22688 #
22689 dir_user=
22690
22691 # Check whether --with-dir_user was given.
22692 if test "${with_dir_user+set}" = set; then :
22693   withval=$with_dir_user;
22694        if test "x$withval" != "x" ; then
22695            dir_user=$withval
22696        fi
22697
22698
22699 fi
22700
22701
22702 dir_group=
22703
22704 # Check whether --with-dir_group was given.
22705 if test "${with_dir_group+set}" = set; then :
22706   withval=$with_dir_group;
22707        if test "x$withval" != "x" ; then
22708           dir_group=$withval
22709        fi
22710
22711
22712 fi
22713
22714
22715 sd_user=
22716
22717 # Check whether --with-sd_user was given.
22718 if test "${with_sd_user+set}" = set; then :
22719   withval=$with_sd_user;
22720        if test "x$withval" != "x" ; then
22721           sd_user=$withval
22722        fi
22723
22724
22725 fi
22726
22727
22728 sd_group=
22729
22730 # Check whether --with-sd_group was given.
22731 if test "${with_sd_group+set}" = set; then :
22732   withval=$with_sd_group;
22733        if test "x$withval" != "x" ; then
22734           sd_group=$withval
22735        fi
22736
22737
22738 fi
22739
22740
22741 fd_user=
22742
22743 # Check whether --with-fd_user was given.
22744 if test "${with_fd_user+set}" = set; then :
22745   withval=$with_fd_user;
22746        if test "x$withval" != "x" ; then
22747           fd_user=$withval
22748        fi
22749
22750
22751 fi
22752
22753
22754 fd_group=
22755
22756 # Check whether --with-fd_group was given.
22757 if test "${with_fd_group+set}" = set; then :
22758   withval=$with_fd_group;
22759        if test "x$withval" != "x" ; then
22760           fd_group=$withval
22761        fi
22762
22763
22764 fi
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774 SBINPERM=0750
22775
22776 # Check whether --with-sbin-perm was given.
22777 if test "${with_sbin_perm+set}" = set; then :
22778   withval=$with_sbin_perm;
22779        if test "x$withval" != "x" ; then
22780           SBINPERM=$withval
22781        fi
22782
22783
22784 fi
22785
22786
22787
22788
22789 SQL_LIB=
22790
22791 db_found=no
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22793 $as_echo_n "checking for PostgreSQL support... " >&6; }
22794
22795 # Check whether --with-postgresql was given.
22796 if test "${with_postgresql+set}" = set; then :
22797   withval=$with_postgresql;
22798   if test "$withval" != "no"; then
22799       if test "$db_found" = "yes"; then
22800           { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22801 $as_echo "error" >&6; }
22802           as_fn_error "\"You can configure for only one database.\"" "$LINENO" 5;
22803       fi
22804       if test "$withval" = "yes"; then
22805           PG_CONFIG=`which pg_config`
22806           if test -n "$PG_CONFIG";then
22807               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22808               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22809               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22810           elif test -f /usr/local/include/libpq-fe.h; then
22811               POSTGRESQL_INCDIR=/usr/local/include
22812               if test -d /usr/local/lib64; then
22813                  POSTGRESQL_LIBDIR=/usr/local/lib64
22814               else
22815                  POSTGRESQL_LIBDIR=/usr/local/lib
22816               fi
22817               POSTGRESQL_BINDIR=/usr/local/bin
22818           elif test -f /usr/include/libpq-fe.h; then
22819               POSTGRESQL_INCDIR=/usr/include
22820               if test -d /usr/lib64; then
22821                  POSTGRESQL_LIBDIR=/usr/lib64
22822               else
22823                  POSTGRESQL_LIBDIR=/usr/lib
22824               fi
22825               POSTGRESQL_BINDIR=/usr/bin
22826           elif test -f /usr/include/pgsql/libpq-fe.h; then
22827               POSTGRESQL_INCDIR=/usr/include/pgsql
22828               if test -d /usr/lib64/pgsql; then
22829                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22830               else
22831                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22832               fi
22833               POSTGRESQL_BINDIR=/usr/bin
22834           elif test -f /usr/include/postgresql/libpq-fe.h; then
22835               POSTGRESQL_INCDIR=/usr/include/postgresql
22836               if test -d /usr/lib64/postgresql; then
22837                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22838               else
22839                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22840               fi
22841               POSTGRESQL_BINDIR=/usr/bin
22842           else
22843               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22844 $as_echo "no" >&6; }
22845               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22846           fi
22847       elif test -f $withval/include/libpq-fe.h; then
22848           POSTGRESQL_INCDIR=$withval/include
22849           POSTGRESQL_LIBDIR=$withval/lib
22850           POSTGRESQL_BINDIR=$withval/bin
22851       elif test -f $withval/include/postgresql/libpq-fe.h; then
22852           POSTGRESQL_INCDIR=$withval/include/postgresql
22853      if test -d $withval/lib64; then
22854          POSTGRESQL_LIBDIR=$withval/lib64
22855      else
22856          POSTGRESQL_LIBDIR=$withval/lib
22857      fi
22858           POSTGRESQL_BINDIR=$withval/bin
22859       else
22860           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22861 $as_echo "no" >&6; }
22862           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22863       fi
22864       $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22865
22866       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22867 $as_echo "yes" >&6; }
22868       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22869       ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22870 if test "x$ac_cv_func_crypt" = x""yes; then :
22871
22872 else
22873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22874 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22875 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22876   $as_echo_n "(cached) " >&6
22877 else
22878   ac_check_lib_save_LIBS=$LIBS
22879 LIBS="-lcrypt  $LIBS"
22880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22881 /* end confdefs.h.  */
22882
22883 /* Override any GCC internal prototype to avoid an error.
22884    Use char because int might match the return type of a GCC
22885    builtin and then its argument prototype would still apply.  */
22886 #ifdef __cplusplus
22887 extern "C"
22888 #endif
22889 char crypt ();
22890 int
22891 main ()
22892 {
22893 return crypt ();
22894   ;
22895   return 0;
22896 }
22897 _ACEOF
22898 if ac_fn_c_try_link "$LINENO"; then :
22899   ac_cv_lib_crypt_crypt=yes
22900 else
22901   ac_cv_lib_crypt_crypt=no
22902 fi
22903 rm -f core conftest.err conftest.$ac_objext \
22904     conftest$ac_exeext conftest.$ac_ext
22905 LIBS=$ac_check_lib_save_LIBS
22906 fi
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22908 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22909 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22910   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22911 fi
22912
22913 fi
22914
22915       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22916       SQL_LFLAGS=$POSTGRESQL_LFLAGS
22917       SQL_BINDIR=$POSTGRESQL_BINDIR
22918       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22919
22920       db_found=yes
22921       support_postgresql=yes
22922       db_type=PostgreSQL
22923       DB_TYPE=postgresql
22924   else
22925       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22926 $as_echo "no" >&6; }
22927   fi
22928
22929 else
22930
22931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22932 $as_echo "no" >&6; }
22933
22934 fi
22935
22936
22937
22938
22939
22940
22941
22942
22943 db_found=no
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22945 $as_echo_n "checking for MySQL support... " >&6; }
22946
22947 # Check whether --with-mysql was given.
22948 if test "${with_mysql+set}" = set; then :
22949   withval=$with_mysql;
22950   if test "$withval" != "no"; then
22951         if test "$withval" = "yes"; then
22952            if test -f /usr/local/mysql/include/mysql/mysql.h; then
22953                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
22954                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22955                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22956                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22957                    else
22958                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22959                    fi
22960                    MYSQL_BINDIR=/usr/local/mysql/bin
22961            elif test -f /usr/include/mysql/mysql.h; then
22962                    MYSQL_INCDIR=/usr/include/mysql
22963                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22964                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22965                            MYSQL_LIBDIR=/usr/lib64/mysql
22966                    elif test -f /usr/lib64/libmysqlclient_r.a \
22967                         -o -f /usr/lib64/libmysqlclient_r.so; then
22968                            MYSQL_LIBDIR=/usr/lib64
22969                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22970                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22971                            MYSQL_LIBDIR=/usr/lib/mysql
22972                    else
22973                            MYSQL_LIBDIR=/usr/lib
22974                    fi
22975                    MYSQL_BINDIR=/usr/bin
22976            elif test -f /usr/include/mysql.h; then
22977                    MYSQL_INCDIR=/usr/include
22978                    if test -f /usr/lib64/libmysqlclient_r.a \
22979                         -o -f /usr/lib64/libmysqlclient_r.so; then
22980                            MYSQL_LIBDIR=/usr/lib64
22981                    else
22982                            MYSQL_LIBDIR=/usr/lib
22983                    fi
22984                    MYSQL_BINDIR=/usr/bin
22985            elif test -f /usr/local/include/mysql/mysql.h; then
22986                    MYSQL_INCDIR=/usr/local/include/mysql
22987                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22988                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22989                            MYSQL_LIBDIR=/usr/local/lib64/mysql
22990                    else
22991                            MYSQL_LIBDIR=/usr/local/lib/mysql
22992                    fi
22993                    MYSQL_BINDIR=/usr/local/bin
22994            elif test -f /usr/local/include/mysql.h; then
22995                    MYSQL_INCDIR=/usr/local/include
22996                    if test -f /usr/local/lib64/libmysqlclient_r.a \
22997                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
22998                            MYSQL_LIBDIR=/usr/local/lib64
22999                    else
23000                            MYSQL_LIBDIR=/usr/local/lib
23001                    fi
23002                    MYSQL_BINDIR=/usr/local/bin
23003            else
23004               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23005 $as_echo "no" >&6; }
23006               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23007            fi
23008         else
23009            if test -f $withval/include/mysql/mysql.h; then
23010               MYSQL_INCDIR=$withval/include/mysql
23011               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23012                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23013                  MYSQL_LIBDIR=$withval/lib64/mysql
23014               elif test -f $withval/lib64/libmysqlclient_r.a \
23015                    -o -f $withval/lib64/libmysqlclient_r.so; then
23016                  MYSQL_LIBDIR=$withval/lib64
23017               elif test -f $withval/lib/libmysqlclient_r.a \
23018                    -o -f $withval/lib/libmysqlclient_r.so; then
23019                  MYSQL_LIBDIR=$withval/lib
23020               else
23021                  MYSQL_LIBDIR=$withval/lib/mysql
23022               fi
23023               MYSQL_BINDIR=$withval/bin
23024            elif test -f $withval/include/mysql.h; then
23025               MYSQL_INCDIR=$withval/include
23026               if test -f $withval/lib64/libmysqlclient_r.a \
23027                    -o -f $withval/lib64/libmysqlclient_r.so; then
23028                  MYSQL_LIBDIR=$withval/lib64
23029               else
23030                  MYSQL_LIBDIR=$withval/lib
23031               fi
23032               MYSQL_BINDIR=$withval/bin
23033            else
23034               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23035 $as_echo "no" >&6; }
23036               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23037            fi
23038         fi
23039     SQL_INCLUDE=-I$MYSQL_INCDIR
23040     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23041          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23042        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23043        $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23044
23045     fi
23046     SQL_BINDIR=$MYSQL_BINDIR
23047     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23048
23049
23050 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23051
23052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23053 $as_echo "yes" >&6; }
23054     db_found=yes
23055     support_mysql=yes
23056     db_type=MySQL
23057     DB_TYPE=mysql
23058
23059   else
23060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23061 $as_echo "no" >&6; }
23062   fi
23063
23064
23065 fi
23066
23067
23068
23069 # Check whether --with-embedded-mysql was given.
23070 if test "${with_embedded_mysql+set}" = set; then :
23071   withval=$with_embedded_mysql;
23072   if test "$withval" != "no"; then
23073         if test "$withval" = "yes"; then
23074                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23075                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23076                         if test -d /usr/local/mysql/lib64/mysql; then
23077                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23078                         else
23079                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23080                         fi
23081                         MYSQL_BINDIR=/usr/local/mysql/bin
23082                 elif test -f /usr/include/mysql/mysql.h; then
23083                         MYSQL_INCDIR=/usr/include/mysql
23084                         if test -d /usr/lib64/mysql; then
23085                                 MYSQL_LIBDIR=/usr/lib64/mysql
23086                         else
23087                                 MYSQL_LIBDIR=/usr/lib/mysql
23088                         fi
23089                         MYSQL_BINDIR=/usr/bin
23090                 elif test -f /usr/include/mysql.h; then
23091                         MYSQL_INCDIR=/usr/include
23092                         if test -d /usr/lib64; then
23093                                 MYSQL_LIBDIR=/usr/lib64
23094                         else
23095                                 MYSQL_LIBDIR=/usr/lib
23096                         fi
23097                         MYSQL_BINDIR=/usr/bin
23098                 elif test -f /usr/local/include/mysql/mysql.h; then
23099                         MYSQL_INCDIR=/usr/local/include/mysql
23100                         if test -d /usr/local/lib64/mysql; then
23101                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23102                         else
23103                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23104                         fi
23105                         MYSQL_BINDIR=/usr/local/bin
23106                 elif test -f /usr/local/include/mysql.h; then
23107                         MYSQL_INCDIR=/usr/local/include
23108                         if test -d /usr/local/lib64; then
23109                                 MYSQL_LIBDIR=/usr/local/lib64
23110                         else
23111                                 MYSQL_LIBDIR=/usr/local/lib
23112                         fi
23113                         MYSQL_BINDIR=/usr/local/bin
23114                 else
23115                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23116 $as_echo "no" >&6; }
23117                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23118                 fi
23119         else
23120                 if test -f $withval/include/mysql/mysql.h; then
23121                         MYSQL_INCDIR=$withval/include/mysql
23122                         if test -d $withval/lib64/mysql; then
23123                                 MYSQL_LIBDIR=$withval/lib64/mysql
23124                         else
23125                                 MYSQL_LIBDIR=$withval/lib/mysql
23126                         fi
23127                         MYSQL_BINDIR=$withval/bin
23128                 elif test -f $withval/include/mysql.h; then
23129                         MYSQL_INCDIR=$withval/include
23130                         if test -d $withval/lib64; then
23131                                 MYSQL_LIBDIR=$withval/lib64
23132                         else
23133                                 MYSQL_LIBDIR=$withval/lib
23134                         fi
23135                         MYSQL_BINDIR=$withval/bin
23136                 else
23137                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23138 $as_echo "no" >&6; }
23139                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23140                 fi
23141         fi
23142     SQL_INCLUDE=-I$MYSQL_INCDIR
23143     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23144     SQL_BINDIR=$MYSQL_BINDIR
23145     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23146
23147     $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23148
23149     $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23150
23151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23152 $as_echo "yes" >&6; }
23153     db_found=yes
23154     support_mysql=yes
23155     db_type=MySQL
23156     DB_TYPE=mysql
23157
23158   else
23159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23160 $as_echo "no" >&6; }
23161   fi
23162
23163
23164 fi
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175 db_found=no
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23177 $as_echo_n "checking for Ingres support... " >&6; }
23178
23179 # Check whether --with-ingres was given.
23180 if test "${with_ingres+set}" = set; then :
23181   withval=$with_ingres;
23182   if test "$withval" != "no"; then
23183      if test "$withval" = "yes"; then
23184         if test -f ${II_SYSTEM}/files/eqdefc.h; then
23185            INGRES_INCDIR=${II_SYSTEM}/files
23186            INGRES_LIBDIR=${II_SYSTEM}/lib
23187            INGRES_BINDIR=${II_SYSTEM}/bin
23188         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23189            INGRES_INCDIR=${II_SYSTEM}/ingres/files
23190            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23191            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23192         else
23193            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23194 $as_echo "no" >&6; }
23195            as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23196         fi
23197      else
23198         if test -f $withval/files/eqdefc.h; then
23199            INGRES_INCDIR=$withval/files
23200            INGRES_LIBDIR=$withval/lib
23201            INGRES_BINDIR=$withval/bin
23202         else
23203            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204 $as_echo "no" >&6; }
23205            as_fn_error "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23206         fi
23207      fi
23208      SQL_INCLUDE=-I$INGRES_INCDIR
23209      SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23210      SQL_BINDIR=$INGRES_BINDIR
23211      SQL_LIB=$INGRES_LIBDIR/libingres.a
23212
23213 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23214
23215      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23216 $as_echo "yes" >&6; }
23217      db_found=yes
23218      support_ingres=yes
23219      db_type=Ingres
23220      DB_TYPE=ingres
23221
23222   else
23223      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23224 $as_echo "no" >&6; }
23225   fi
23226
23227 else
23228
23229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23230 $as_echo "no" >&6; }
23231
23232 fi
23233
23234
23235
23236
23237
23238
23239
23240
23241 db_found=no
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23243 $as_echo_n "checking for SQLite3 support... " >&6; }
23244
23245 # Check whether --with-sqlite3 was given.
23246 if test "${with_sqlite3+set}" = set; then :
23247   withval=$with_sqlite3;
23248   if test "$withval" != "no"; then
23249      if test "$withval" = "yes"; then
23250         if test -f /usr/local/include/sqlite3.h; then
23251            SQLITE_INCDIR=/usr/local/include
23252            if test -d /usr/local/lib64; then
23253               SQLITE_LIBDIR=/usr/local/lib64
23254            else
23255               SQLITE_LIBDIR=/usr/local/lib
23256            fi
23257            SQLITE_BINDIR=/usr/local/bin
23258         elif test -f /usr/include/sqlite3.h; then
23259            SQLITE_INCDIR=/usr/include
23260            if test -d /usr/lib64; then
23261               SQLITE_LIBDIR=/usr/lib64
23262            else
23263               SQLITE_LIBDIR=/usr/lib
23264            fi
23265            SQLITE_BINDIR=/usr/bin
23266         elif test -f $prefix/include/sqlite3.h; then
23267            SQLITE_INCDIR=$prefix/include
23268            if test -d $prefix/lib64; then
23269               SQLITE_LIBDIR=$prefix/lib64
23270            else
23271               SQLITE_LIBDIR=$prefix/lib
23272            fi
23273            SQLITE_BINDIR=$prefix/bin
23274         else
23275            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23276 $as_echo "no" >&6; }
23277            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23278         fi
23279      else
23280         if test -f $withval/sqlite3.h; then
23281            SQLITE_INCDIR=$withval
23282            SQLITE_LIBDIR=$withval
23283            SQLITE_BINDIR=$withval
23284         elif test -f $withval/include/sqlite3.h; then
23285            SQLITE_INCDIR=$withval/include
23286            if test -d $withval/lib64; then
23287               SQLITE_LIBDIR=$withval/lib64
23288            else
23289               SQLITE_LIBDIR=$withval/lib
23290            fi
23291            SQLITE_BINDIR=$withval/bin
23292         else
23293            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23294 $as_echo "no" >&6; }
23295            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23296         fi
23297      fi
23298      SQL_INCLUDE=-I$SQLITE_INCDIR
23299      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23300      SQL_BINDIR=$SQLITE_BINDIR
23301      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23302
23303      $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23304
23305      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23306 $as_echo "yes" >&6; }
23307      db_found=yes
23308      support_sqlite3=yes
23309      db_type=SQLite3
23310      DB_TYPE=sqlite3
23311
23312   else
23313      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23314 $as_echo "no" >&6; }
23315   fi
23316
23317 else
23318
23319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23320 $as_echo "no" >&6; }
23321
23322 fi
23323
23324
23325
23326
23327
23328
23329
23330 # BA_CHECK_SQLITE_DB
23331
23332
23333 db_found=no
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23335 $as_echo_n "checking for DBI support... " >&6; }
23336
23337 # Check whether --with-dbi was given.
23338 if test "${with_dbi+set}" = set; then :
23339   withval=$with_dbi;
23340   if test "$withval" != "no"; then
23341      if test "$withval" = "yes"; then
23342         if test -f /usr/local/include/dbi/dbi.h; then
23343            DBI_INCDIR=/usr/local/dbi/include
23344            if test -d /usr/local/lib64; then
23345               DBI_LIBDIR=/usr/local/lib64
23346            else
23347               DBI_LIBDIR=/usr/local/lib
23348            fi
23349            DBI_BINDIR=/usr/local/bin
23350         elif test -f /usr/include/dbi/dbi.h; then
23351            DBI_INCDIR=/usr/include
23352            if test -d /usr/lib64; then
23353               DBI_LIBDIR=/usr/lib64
23354            else
23355               DBI_LIBDIR=/usr/lib
23356            fi
23357            DBI_BINDIR=/usr/bin
23358         elif test -f $prefix/include/dbi/dbi.h; then
23359            DBI_INCDIR=$prefix/include
23360            if test -d $prefix/lib64; then
23361               DBI_LIBDIR=$prefix/lib64
23362            else
23363               DBI_LIBDIR=$prefix/lib
23364            fi
23365            DBI_BINDIR=$prefix/bin
23366         else
23367            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23368 $as_echo "no" >&6; }
23369            as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23370         fi
23371         if test -d /usr/local/lib/dbd; then
23372            DRIVERDIR=/usr/local/lib/dbd
23373            if test -d /usr/local/lib64/dbd; then
23374               DRIVERDIR=/usr/local/lib64/dbd
23375            else
23376               DRIVERDIR=/usr/local/lib/dbd
23377            fi
23378         elif test -d /usr/lib/dbd; then
23379            DRIVERDIR=/usr/lib/dbd
23380            if test -d /usr/lib64/dbd; then
23381               DRIVERDIR=/usr/lib64/dbd
23382            else
23383               DRIVERDIR=/usr/lib/dbd
23384            fi
23385         elif test -d $prefix/lib/dbd; then
23386            if test -d $prefix/lib64/dbd; then
23387               DRIVERDIR=$prefix/lib64/dbd
23388            else
23389               DRIVERDIR=$prefix/lib/dbd
23390            fi
23391         elif test -d /usr/local/lib64/dbd; then
23392            DRIVERDIR=/usr/local/lib64/dbd
23393         elif test -d /usr/lib64/dbd; then
23394            DRIVERDIR=/usr/lib64/dbd
23395         elif test -d $prefix/lib64/dbd; then
23396            DRIVERDIR=$prefix/lib64/dbd
23397         else
23398            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23399 $as_echo "no" >&6; }
23400            as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23401         fi
23402      else
23403         if test -f $withval/dbi.h; then
23404            DBI_INCDIR=$withval
23405            DBI_LIBDIR=$withval
23406            DBI_BINDIR=$withval
23407         elif test -f $withval/include/dbi/dbi.h; then
23408            DBI_INCDIR=$withval/include
23409            if test -d $withval/lib64; then
23410               DBI_LIBDIR=$withval/lib64
23411            else
23412               DBI_LIBDIR=$withval/lib
23413            fi
23414            DBI_BINDIR=$withval/bin
23415         else
23416            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23417 $as_echo "no" >&6; }
23418            as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23419         fi
23420         if test -d $withval/dbd; then
23421            DRIVERDIR=$withval/dbd
23422         elif test -d $withval/lib/; then
23423            if test -d $withval/lib64/dbd; then
23424               DRIVERDIR=$withval/lib64/dbd
23425            else
23426               DRIVERDIR=$withval/lib/dbd
23427            fi
23428         elif test -d $withval/lib64/dbd; then
23429            DRIVERDIR=$withval/lib64/dbd
23430         else
23431            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23432 $as_echo "no" >&6; }
23433            as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23434         fi
23435      fi
23436      SQL_INCLUDE=-I$DBI_INCDIR
23437      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23438      SQL_BINDIR=$DBI_BINDIR
23439      SQL_LIB=$DBI_LIBDIR/libdbi.a
23440      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23441
23442
23443 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23444
23445      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23446 $as_echo "yes" >&6; }
23447      db_found=yes
23448      support_dbi=yes
23449      db_type=DBI
23450      DB_TYPE=dbi
23451      uncomment_dbi=" "
23452
23453   else
23454      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23455 $as_echo "no" >&6; }
23456   fi
23457
23458 else
23459
23460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23461 $as_echo "no" >&6; }
23462
23463 fi
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474 db_found=no
23475 db_prog=no
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23477 $as_echo_n "checking for DBI drivers support... " >&6; }
23478
23479 # Check whether --with-dbi-driver was given.
23480 if test "${with_dbi_driver+set}" = set; then :
23481   withval=$with_dbi_driver;
23482   if test "$withval" != "no"; then
23483      case $withval in
23484         "mysql")
23485            db_prog="mysql"
23486            if test -f /usr/local/mysql/bin/mysql; then
23487               SQL_BINDIR=/usr/local/mysql/bin
23488               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23489                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23490                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23491               else
23492                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
23493               fi
23494            elif test -f /usr/bin/mysql; then
23495               SQL_BINDIR=/usr/bin
23496               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23497                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23498                   SQL_LIBDIR=/usr/lib64/mysql
23499               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23500                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23501                   SQL_LIBDIR=/usr/lib/mysql
23502               else
23503                   SQL_LIBDIR=/usr/lib
23504               fi
23505            elif test -f /usr/local/bin/mysql; then
23506               SQL_BINDIR=/usr/local/bin
23507               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23508                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23509                   SQL_LIBDIR=/usr/local/lib64/mysql
23510               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23511                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23512                   SQL_LIBDIR=/usr/local/lib/mysql
23513               else
23514                   SQL_LIBDIR=/usr/local/lib
23515               fi
23516            elif test -f $withval/bin/mysql; then
23517               SQL_BINDIR=$withval/bin
23518               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23519                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23520                   SQL_LIBDIR=$withval/lib64/mysql
23521               elif test -f $withval/lib64/libmysqlclient_r.a \
23522                   -o -f $withval/lib64/libmysqlclient_r.so; then
23523                   SQL_LIBDIR=$withval/lib64
23524               elif test -f $withval/lib/libmysqlclient_r.a \
23525                   -o -f $withval/lib/libmysqlclient_r.so; then
23526                   SQL_LIBDIR=$withval/lib/
23527               else
23528                   SQL_LIBDIR=$withval/lib/mysql
23529               fi
23530            else
23531               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23532 $as_echo "no" >&6; }
23533               as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23534            fi
23535            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23536               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23537            else
23538               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23539            fi
23540         ;;
23541         "postgresql")
23542            db_prog="postgresql"
23543            PG_CONFIG=`which pg_config`
23544            if test -n "$PG_CONFIG"; then
23545               SQL_BINDIR=`"$PG_CONFIG" --bindir`
23546               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23547            elif test -f /usr/local/bin/psql; then
23548               SQL_BINDIR=/usr/local/bin
23549               if test -d /usr/local/lib64; then
23550                  SQL_LIBDIR=/usr/local/lib64
23551               else
23552                  SQL_LIBDIR=/usr/local/lib
23553               fi
23554            elif test -f /usr/bin/psql; then
23555               SQL_BINDIR=/usr/local/bin
23556               if test -d /usr/lib64/postgresql; then
23557                  SQL_LIBDIR=/usr/lib64/postgresql
23558               elif test -d /usr/lib/postgresql; then
23559                  SQL_LIBDIR=/usr/lib/postgresql
23560               elif test -d /usr/lib64; then
23561                  SQL_LIBDIR=/usr/lib64
23562               else
23563                  SQL_LIBDIR=/usr/lib
23564               fi
23565            elif test -f $withval/bin/psql; then
23566               SQL_BINDIR=$withval/bin
23567               if test -d $withval/lib64; then
23568                  SQL_LIBDIR=$withval/lib64
23569               else
23570                  SQL_LIBDIR=$withval/lib
23571               fi
23572            else
23573               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23574 $as_echo "no" >&6; }
23575               as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23576            fi
23577            if test -f $SQL_LIBDIR/libpq.so; then
23578               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23579            else
23580               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23581            fi
23582         ;;
23583         "sqlite")
23584            db_prog="sqlite"
23585            if test -f /usr/local/bin/sqlite; then
23586               SQL_BINDIR=/usr/local/bin
23587               if test -d /usr/local/lib64; then
23588                  SQL_LIBDIR=/usr/local/lib64
23589               else
23590                  SQL_LIBDIR=/usr/local/lib
23591               fi
23592            elif test -f /usr/bin/sqlite; then
23593               SQL_BINDIR=/usr/bin
23594               if test -d /usr/lib64; then
23595                  SQL_LIBDIR=/usr/lib64
23596               else
23597                  SQL_LIBDIR=/usr/lib
23598               fi
23599            elif test -f $withval/bin/sqlite; then
23600               SQL_BINDIR=$withval/bin
23601               if test -d $withval/lib64; then
23602                  SQL_LIBDIR=$withval/lib64
23603               else
23604                  SQL_LIBDIR=$withval/lib
23605               fi
23606            else
23607               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23608 $as_echo "no" >&6; }
23609               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23610            fi
23611            if test -f $SQL_LIBDIR/libsqlite.so; then
23612               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23613            else
23614               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23615            fi
23616         ;;
23617         "sqlite3")
23618            db_prog="sqlite3"
23619            if test -f /usr/local/bin/sqlite3; then
23620               SQL_BINDIR=/usr/local/bin
23621               if test -d /usr/local/lib64; then
23622                  SQL_LIBDIR=/usr/local/lib64
23623               else
23624                  SQL_LIBDIR=/usr/local/lib
23625               fi
23626            elif test -f /usr/bin/sqlite3; then
23627               SQL_BINDIR=/usr/bin
23628               if test -d /usr/lib64; then
23629                  SQL_LIBDIR=/usr/lib64
23630               else
23631                  SQL_LIBDIR=/usr/lib
23632               fi
23633            elif test -f $withval/bin/sqlite3; then
23634               SQL_BINDIR=$withval/bin
23635               if test -d $withval/lib64; then
23636                  SQL_LIBDIR=$withval/lib64
23637               else
23638                  SQL_LIBDIR=$withval/lib
23639               fi
23640            else
23641               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23642 $as_echo "no" >&6; }
23643               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23644            fi
23645            if test -f $SQL_LIBDIR/libsqlite3.so; then
23646               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23647            else
23648               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23649            fi
23650         ;;
23651         *)
23652            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23653 $as_echo "no" >&6; }
23654            as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23655         ;;
23656      esac
23657
23658      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23659 $as_echo "yes" >&6; }
23660      DB_PROG=$db_prog
23661   else
23662      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23663 $as_echo "no" >&6; }
23664   fi
23665
23666 else
23667
23668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23669 $as_echo "no" >&6; }
23670
23671 fi
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682 support_batch_insert=no
23683 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23684 pkg=$?
23685 if test $pkg = 0; then
23686    support_batch_insert=yes
23687    # Check whether --enable-batch-insert was given.
23688 if test "${enable_batch_insert+set}" = set; then :
23689   enableval=$enable_batch_insert;
23690           if test x$enableval = xno; then
23691              support_batch_insert=no
23692           else
23693              support_batch_insert=yes
23694           fi
23695
23696
23697 fi
23698
23699 fi
23700
23701 if test x$DB_TYPE = xpostgresql; then
23702    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23703 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23704 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23705   $as_echo_n "(cached) " >&6
23706 else
23707   ac_check_lib_save_LIBS=$LIBS
23708 LIBS="-lpq  $LIBS"
23709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23710 /* end confdefs.h.  */
23711
23712 /* Override any GCC internal prototype to avoid an error.
23713    Use char because int might match the return type of a GCC
23714    builtin and then its argument prototype would still apply.  */
23715 #ifdef __cplusplus
23716 extern "C"
23717 #endif
23718 char PQisthreadsafe ();
23719 int
23720 main ()
23721 {
23722 return PQisthreadsafe ();
23723   ;
23724   return 0;
23725 }
23726 _ACEOF
23727 if ac_fn_c_try_link "$LINENO"; then :
23728   ac_cv_lib_pq_PQisthreadsafe=yes
23729 else
23730   ac_cv_lib_pq_PQisthreadsafe=no
23731 fi
23732 rm -f core conftest.err conftest.$ac_objext \
23733     conftest$ac_exeext conftest.$ac_ext
23734 LIBS=$ac_check_lib_save_LIBS
23735 fi
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23737 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23738 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23739
23740 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23741
23742 fi
23743
23744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23745 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23746 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23747   $as_echo_n "(cached) " >&6
23748 else
23749   ac_check_lib_save_LIBS=$LIBS
23750 LIBS="-lpq  $LIBS"
23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h.  */
23753
23754 /* Override any GCC internal prototype to avoid an error.
23755    Use char because int might match the return type of a GCC
23756    builtin and then its argument prototype would still apply.  */
23757 #ifdef __cplusplus
23758 extern "C"
23759 #endif
23760 char PQputCopyData ();
23761 int
23762 main ()
23763 {
23764 return PQputCopyData ();
23765   ;
23766   return 0;
23767 }
23768 _ACEOF
23769 if ac_fn_c_try_link "$LINENO"; then :
23770   ac_cv_lib_pq_PQputCopyData=yes
23771 else
23772   ac_cv_lib_pq_PQputCopyData=no
23773 fi
23774 rm -f core conftest.err conftest.$ac_objext \
23775     conftest$ac_exeext conftest.$ac_ext
23776 LIBS=$ac_check_lib_save_LIBS
23777 fi
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23779 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23780 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23781
23782 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23783
23784 fi
23785
23786    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23787     then
23788         support_batch_insert=no
23789    fi
23790 fi
23791
23792 if test x$DB_TYPE = xdbi; then
23793    DB_TYPE=$DB_PROG
23794    db_type=$DB_PROG
23795    pkg=1
23796       if test $DB_PROG = postgresql; then
23797       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23798 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23799 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23800   $as_echo_n "(cached) " >&6
23801 else
23802   ac_check_lib_save_LIBS=$LIBS
23803 LIBS="-lpq  $LIBS"
23804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23805 /* end confdefs.h.  */
23806
23807 /* Override any GCC internal prototype to avoid an error.
23808    Use char because int might match the return type of a GCC
23809    builtin and then its argument prototype would still apply.  */
23810 #ifdef __cplusplus
23811 extern "C"
23812 #endif
23813 char PQisthreadsafe ();
23814 int
23815 main ()
23816 {
23817 return PQisthreadsafe ();
23818   ;
23819   return 0;
23820 }
23821 _ACEOF
23822 if ac_fn_c_try_link "$LINENO"; then :
23823   ac_cv_lib_pq_PQisthreadsafe=yes
23824 else
23825   ac_cv_lib_pq_PQisthreadsafe=no
23826 fi
23827 rm -f core conftest.err conftest.$ac_objext \
23828     conftest$ac_exeext conftest.$ac_ext
23829 LIBS=$ac_check_lib_save_LIBS
23830 fi
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23832 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23833 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23834   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23835
23836 fi
23837
23838       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23839 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23840 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23841   $as_echo_n "(cached) " >&6
23842 else
23843   ac_check_lib_save_LIBS=$LIBS
23844 LIBS="-lpq  $LIBS"
23845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23846 /* end confdefs.h.  */
23847
23848 /* Override any GCC internal prototype to avoid an error.
23849    Use char because int might match the return type of a GCC
23850    builtin and then its argument prototype would still apply.  */
23851 #ifdef __cplusplus
23852 extern "C"
23853 #endif
23854 char PQputCopyData ();
23855 int
23856 main ()
23857 {
23858 return PQputCopyData ();
23859   ;
23860   return 0;
23861 }
23862 _ACEOF
23863 if ac_fn_c_try_link "$LINENO"; then :
23864   ac_cv_lib_pq_PQputCopyData=yes
23865 else
23866   ac_cv_lib_pq_PQputCopyData=no
23867 fi
23868 rm -f core conftest.err conftest.$ac_objext \
23869     conftest$ac_exeext conftest.$ac_ext
23870 LIBS=$ac_check_lib_save_LIBS
23871 fi
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23873 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23874 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23875   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23876
23877 fi
23878
23879       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23880       pkg=$?
23881    fi
23882
23883    if test $DB_PROG = mysql; then
23884       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23885       pkg=$?
23886    fi
23887
23888    if test $DB_PROG = sqlite3; then
23889       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23890       pkg=$?
23891       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23892 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23893 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23894   $as_echo_n "(cached) " >&6
23895 else
23896   ac_check_lib_save_LIBS=$LIBS
23897 LIBS="-lsqlite3  $LIBS"
23898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23899 /* end confdefs.h.  */
23900
23901 /* Override any GCC internal prototype to avoid an error.
23902    Use char because int might match the return type of a GCC
23903    builtin and then its argument prototype would still apply.  */
23904 #ifdef __cplusplus
23905 extern "C"
23906 #endif
23907 char sqlite3_threadsafe ();
23908 int
23909 main ()
23910 {
23911 return sqlite3_threadsafe ();
23912   ;
23913   return 0;
23914 }
23915 _ACEOF
23916 if ac_fn_c_try_link "$LINENO"; then :
23917   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23918 else
23919   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23920 fi
23921 rm -f core conftest.err conftest.$ac_objext \
23922     conftest$ac_exeext conftest.$ac_ext
23923 LIBS=$ac_check_lib_save_LIBS
23924 fi
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23926 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23927 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23928
23929 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23930
23931 fi
23932
23933    fi
23934
23935    if test $pkg = 0; then
23936       # Check whether --enable-batch-insert was given.
23937 if test "${enable_batch_insert+set}" = set; then :
23938   enableval=$enable_batch_insert;
23939              if test x$enableval = xno; then
23940                 support_batch_insert=no
23941              else
23942                 support_batch_insert=yes
23943              fi
23944
23945
23946 fi
23947
23948    fi
23949 else
23950       uncomment_dbi="#"
23951 fi
23952
23953
23954
23955 if test x$DB_TYPE = xingres; then
23956    support_batch_insert=yes
23957 fi
23958
23959 if test $support_batch_insert = yes ; then
23960
23961 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23962
23963 fi
23964
23965 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23966
23967
23968 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23969    if test -z "$CCOPTS"; then
23970       CCOPTS='-g -O2 -Wall'
23971    fi
23972    CFLAGS="$CCOPTS"
23973 fi
23974
23975
23976
23977 largefile_support="no"
23978
23979    # Check whether --enable-largefile was given.
23980 if test "${enable_largefile+set}" = set; then :
23981   enableval=$enable_largefile;
23982 fi
23983
23984    if test "$enable_largefile" != no; then
23985      if test -n "$ac_tool_prefix"; then
23986   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23987 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23989 $as_echo_n "checking for $ac_word... " >&6; }
23990 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23991   $as_echo_n "(cached) " >&6
23992 else
23993   if test -n "$GETCONF"; then
23994   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23995 else
23996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23997 for as_dir in $PATH
23998 do
23999   IFS=$as_save_IFS
24000   test -z "$as_dir" && as_dir=.
24001     for ac_exec_ext in '' $ac_executable_extensions; do
24002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24003     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24005     break 2
24006   fi
24007 done
24008   done
24009 IFS=$as_save_IFS
24010
24011 fi
24012 fi
24013 GETCONF=$ac_cv_prog_GETCONF
24014 if test -n "$GETCONF"; then
24015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24016 $as_echo "$GETCONF" >&6; }
24017 else
24018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019 $as_echo "no" >&6; }
24020 fi
24021
24022
24023 fi
24024 if test -z "$ac_cv_prog_GETCONF"; then
24025   ac_ct_GETCONF=$GETCONF
24026   # Extract the first word of "getconf", so it can be a program name with args.
24027 set dummy getconf; ac_word=$2
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24029 $as_echo_n "checking for $ac_word... " >&6; }
24030 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24031   $as_echo_n "(cached) " >&6
24032 else
24033   if test -n "$ac_ct_GETCONF"; then
24034   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24035 else
24036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24037 for as_dir in $PATH
24038 do
24039   IFS=$as_save_IFS
24040   test -z "$as_dir" && as_dir=.
24041     for ac_exec_ext in '' $ac_executable_extensions; do
24042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24043     ac_cv_prog_ac_ct_GETCONF="getconf"
24044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24045     break 2
24046   fi
24047 done
24048   done
24049 IFS=$as_save_IFS
24050
24051 fi
24052 fi
24053 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24054 if test -n "$ac_ct_GETCONF"; then
24055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24056 $as_echo "$ac_ct_GETCONF" >&6; }
24057 else
24058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24059 $as_echo "no" >&6; }
24060 fi
24061
24062   if test "x$ac_ct_GETCONF" = x; then
24063     GETCONF=""
24064   else
24065     case $cross_compiling:$ac_tool_warned in
24066 yes:)
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24069 ac_tool_warned=yes ;;
24070 esac
24071     GETCONF=$ac_ct_GETCONF
24072   fi
24073 else
24074   GETCONF="$ac_cv_prog_GETCONF"
24075 fi
24076
24077      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24078 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24079 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24080   $as_echo_n "(cached) " >&6
24081 else
24082   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24083         ac_cv_sys_largefile_CFLAGS=no
24084         case "$host_os" in
24085            # IRIX 6.2 and later require cc -n32.
24086            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24087              if test "$GCC" != yes; then
24088                ac_cv_sys_largefile_CFLAGS=-n32
24089              fi
24090              ac_save_CC="$CC"
24091              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24092              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24093 /* end confdefs.h.  */
24094
24095 int
24096 main ()
24097 {
24098
24099   ;
24100   return 0;
24101 }
24102 _ACEOF
24103 if ac_fn_c_try_link "$LINENO"; then :
24104
24105 else
24106   ac_cv_sys_largefile_CFLAGS=no
24107 fi
24108 rm -f core conftest.err conftest.$ac_objext \
24109     conftest$ac_exeext conftest.$ac_ext
24110              CC="$ac_save_CC"
24111            esac
24112       }
24113 fi
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24115 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24116      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24117 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24118 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24119   $as_echo_n "(cached) " >&6
24120 else
24121   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24122         ac_cv_sys_largefile_LDFLAGS=no
24123
24124       }
24125 fi
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24127 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24128      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24129 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24130 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24131   $as_echo_n "(cached) " >&6
24132 else
24133   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24134         ac_cv_sys_largefile_LIBS=no
24135
24136       }
24137 fi
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24139 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24140
24141      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24142        case "$ac_flag" in
24143        no) ;;
24144        -D_FILE_OFFSET_BITS=*) ;;
24145        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24146        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24147        -D?* | -I?*)
24148          case "$ac_flag" in
24149    no) ;;
24150    ?*)
24151      case "$CPPFLAGS" in
24152      '') CPPFLAGS="$ac_flag" ;;
24153      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24154      esac ;;
24155    esac ;;
24156        *)
24157          case "$ac_flag" in
24158    no) ;;
24159    ?*)
24160      case "$CFLAGS" in
24161      '') CFLAGS="$ac_flag" ;;
24162      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24163      esac ;;
24164    esac ;;
24165        esac
24166      done
24167      case "$ac_cv_sys_largefile_LDFLAGS" in
24168    no) ;;
24169    ?*)
24170      case "$LDFLAGS" in
24171      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24172      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24173      esac ;;
24174    esac
24175      case "$ac_cv_sys_largefile_LIBS" in
24176    no) ;;
24177    ?*)
24178      case "$LIBS" in
24179      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24180      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24181      esac ;;
24182    esac
24183      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24184 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24185 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24186   $as_echo_n "(cached) " >&6
24187 else
24188   ac_cv_sys_file_offset_bits=no
24189       ac_cv_sys_file_offset_bits=64
24190       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24191         case "$ac_flag" in
24192         -D_FILE_OFFSET_BITS)
24193           ac_cv_sys_file_offset_bits=1 ;;
24194         -D_FILE_OFFSET_BITS=*)
24195           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24196         esac
24197       done
24198
24199 fi
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24201 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24202    if test "$ac_cv_sys_file_offset_bits" != no; then
24203
24204 cat >>confdefs.h <<_ACEOF
24205 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24206 _ACEOF
24207
24208    fi
24209      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24210 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24211 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24212   $as_echo_n "(cached) " >&6
24213 else
24214   ac_cv_sys_largefile_source=no
24215       ac_cv_sys_largefile_source=1
24216       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24217         case "$ac_flag" in
24218         -D_LARGEFILE_SOURCE)
24219           ac_cv_sys_largefile_source=1 ;;
24220         -D_LARGEFILE_SOURCE=*)
24221           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24222         esac
24223       done
24224
24225 fi
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24227 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24228    if test "$ac_cv_sys_largefile_source" != no; then
24229
24230 cat >>confdefs.h <<_ACEOF
24231 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24232 _ACEOF
24233
24234    fi
24235      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24236 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24237 if test "${ac_cv_sys_large_files+set}" = set; then :
24238   $as_echo_n "(cached) " >&6
24239 else
24240   ac_cv_sys_large_files=no
24241       ac_cv_sys_large_files=1
24242       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24243         case "$ac_flag" in
24244         -D_LARGE_FILES)
24245           ac_cv_sys_large_files=1 ;;
24246         -D_LARGE_FILES=*)
24247           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24248         esac
24249       done
24250
24251 fi
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24253 $as_echo "$ac_cv_sys_large_files" >&6; }
24254    if test "$ac_cv_sys_large_files" != no; then
24255
24256 cat >>confdefs.h <<_ACEOF
24257 #define _LARGE_FILES $ac_cv_sys_large_files
24258 _ACEOF
24259
24260    fi
24261    fi
24262
24263
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24265 $as_echo_n "checking for X... " >&6; }
24266
24267
24268 # Check whether --with-x was given.
24269 if test "${with_x+set}" = set; then :
24270   withval=$with_x;
24271 fi
24272
24273 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24274 if test "x$with_x" = xno; then
24275   # The user explicitly disabled X.
24276   have_x=disabled
24277 else
24278   case $x_includes,$x_libraries in #(
24279     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24280     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24281   $as_echo_n "(cached) " >&6
24282 else
24283   # One or both of the vars are not set, and there is no cached value.
24284 ac_x_includes=no ac_x_libraries=no
24285 rm -f -r conftest.dir
24286 if mkdir conftest.dir; then
24287   cd conftest.dir
24288   cat >Imakefile <<'_ACEOF'
24289 incroot:
24290         @echo incroot='${INCROOT}'
24291 usrlibdir:
24292         @echo usrlibdir='${USRLIBDIR}'
24293 libdir:
24294         @echo libdir='${LIBDIR}'
24295 _ACEOF
24296   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24297     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24298     for ac_var in incroot usrlibdir libdir; do
24299       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24300     done
24301     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24302     for ac_extension in a so sl dylib la dll; do
24303       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24304          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24305         ac_im_usrlibdir=$ac_im_libdir; break
24306       fi
24307     done
24308     # Screen out bogus values from the imake configuration.  They are
24309     # bogus both because they are the default anyway, and because
24310     # using them would break gcc on systems where it needs fixed includes.
24311     case $ac_im_incroot in
24312         /usr/include) ac_x_includes= ;;
24313         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24314     esac
24315     case $ac_im_usrlibdir in
24316         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24317         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24318     esac
24319   fi
24320   cd ..
24321   rm -f -r conftest.dir
24322 fi
24323
24324 # Standard set of common directories for X headers.
24325 # Check X11 before X11Rn because it is often a symlink to the current release.
24326 ac_x_header_dirs='
24327 /usr/X11/include
24328 /usr/X11R7/include
24329 /usr/X11R6/include
24330 /usr/X11R5/include
24331 /usr/X11R4/include
24332
24333 /usr/include/X11
24334 /usr/include/X11R7
24335 /usr/include/X11R6
24336 /usr/include/X11R5
24337 /usr/include/X11R4
24338
24339 /usr/local/X11/include
24340 /usr/local/X11R7/include
24341 /usr/local/X11R6/include
24342 /usr/local/X11R5/include
24343 /usr/local/X11R4/include
24344
24345 /usr/local/include/X11
24346 /usr/local/include/X11R7
24347 /usr/local/include/X11R6
24348 /usr/local/include/X11R5
24349 /usr/local/include/X11R4
24350
24351 /usr/X386/include
24352 /usr/x386/include
24353 /usr/XFree86/include/X11
24354
24355 /usr/include
24356 /usr/local/include
24357 /usr/unsupported/include
24358 /usr/athena/include
24359 /usr/local/x11r5/include
24360 /usr/lpp/Xamples/include
24361
24362 /usr/openwin/include
24363 /usr/openwin/share/include'
24364
24365 if test "$ac_x_includes" = no; then
24366   # Guess where to find include files, by looking for Xlib.h.
24367   # First, try using that file with no special directory specified.
24368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24369 /* end confdefs.h.  */
24370 #include <X11/Xlib.h>
24371 _ACEOF
24372 if ac_fn_c_try_cpp "$LINENO"; then :
24373   # We can compile using X headers with no special include directory.
24374 ac_x_includes=
24375 else
24376   for ac_dir in $ac_x_header_dirs; do
24377   if test -r "$ac_dir/X11/Xlib.h"; then
24378     ac_x_includes=$ac_dir
24379     break
24380   fi
24381 done
24382 fi
24383 rm -f conftest.err conftest.$ac_ext
24384 fi # $ac_x_includes = no
24385
24386 if test "$ac_x_libraries" = no; then
24387   # Check for the libraries.
24388   # See if we find them without any special options.
24389   # Don't add to $LIBS permanently.
24390   ac_save_LIBS=$LIBS
24391   LIBS="-lX11 $LIBS"
24392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24393 /* end confdefs.h.  */
24394 #include <X11/Xlib.h>
24395 int
24396 main ()
24397 {
24398 XrmInitialize ()
24399   ;
24400   return 0;
24401 }
24402 _ACEOF
24403 if ac_fn_c_try_link "$LINENO"; then :
24404   LIBS=$ac_save_LIBS
24405 # We can link X programs with no special library path.
24406 ac_x_libraries=
24407 else
24408   LIBS=$ac_save_LIBS
24409 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24410 do
24411   # Don't even attempt the hair of trying to link an X program!
24412   for ac_extension in a so sl dylib la dll; do
24413     if test -r "$ac_dir/libX11.$ac_extension"; then
24414       ac_x_libraries=$ac_dir
24415       break 2
24416     fi
24417   done
24418 done
24419 fi
24420 rm -f core conftest.err conftest.$ac_objext \
24421     conftest$ac_exeext conftest.$ac_ext
24422 fi # $ac_x_libraries = no
24423
24424 case $ac_x_includes,$ac_x_libraries in #(
24425   no,* | *,no | *\'*)
24426     # Didn't find X, or a directory has "'" in its name.
24427     ac_cv_have_x="have_x=no";; #(
24428   *)
24429     # Record where we found X for the cache.
24430     ac_cv_have_x="have_x=yes\
24431         ac_x_includes='$ac_x_includes'\
24432         ac_x_libraries='$ac_x_libraries'"
24433 esac
24434 fi
24435 ;; #(
24436     *) have_x=yes;;
24437   esac
24438   eval "$ac_cv_have_x"
24439 fi # $with_x != no
24440
24441 if test "$have_x" != yes; then
24442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24443 $as_echo "$have_x" >&6; }
24444   no_x=yes
24445 else
24446   # If each of the values was on the command line, it overrides each guess.
24447   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24448   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24449   # Update the cache value to reflect the command line values.
24450   ac_cv_have_x="have_x=yes\
24451         ac_x_includes='$x_includes'\
24452         ac_x_libraries='$x_libraries'"
24453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24454 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24455 fi
24456
24457 if test "$no_x" = yes; then
24458   # Not all programs may use this symbol, but it does not hurt to define it.
24459
24460 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24461
24462   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24463 else
24464   if test -n "$x_includes"; then
24465     X_CFLAGS="$X_CFLAGS -I$x_includes"
24466   fi
24467
24468   # It would also be nice to do this for all -L options, not just this one.
24469   if test -n "$x_libraries"; then
24470     X_LIBS="$X_LIBS -L$x_libraries"
24471     # For Solaris; some versions of Sun CC require a space after -R and
24472     # others require no space.  Words are not sufficient . . . .
24473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24474 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24475     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24476     ac_xsave_c_werror_flag=$ac_c_werror_flag
24477     ac_c_werror_flag=yes
24478     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24479 /* end confdefs.h.  */
24480
24481 int
24482 main ()
24483 {
24484
24485   ;
24486   return 0;
24487 }
24488 _ACEOF
24489 if ac_fn_c_try_link "$LINENO"; then :
24490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24491 $as_echo "no" >&6; }
24492        X_LIBS="$X_LIBS -R$x_libraries"
24493 else
24494   LIBS="$ac_xsave_LIBS -R $x_libraries"
24495        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24496 /* end confdefs.h.  */
24497
24498 int
24499 main ()
24500 {
24501
24502   ;
24503   return 0;
24504 }
24505 _ACEOF
24506 if ac_fn_c_try_link "$LINENO"; then :
24507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24508 $as_echo "yes" >&6; }
24509           X_LIBS="$X_LIBS -R $x_libraries"
24510 else
24511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24512 $as_echo "neither works" >&6; }
24513 fi
24514 rm -f core conftest.err conftest.$ac_objext \
24515     conftest$ac_exeext conftest.$ac_ext
24516 fi
24517 rm -f core conftest.err conftest.$ac_objext \
24518     conftest$ac_exeext conftest.$ac_ext
24519     ac_c_werror_flag=$ac_xsave_c_werror_flag
24520     LIBS=$ac_xsave_LIBS
24521   fi
24522
24523   # Check for system-dependent libraries X programs must link with.
24524   # Do this before checking for the system-independent R6 libraries
24525   # (-lICE), since we may need -lsocket or whatever for X linking.
24526
24527   if test "$ISC" = yes; then
24528     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24529   else
24530     # Martyn Johnson says this is needed for Ultrix, if the X
24531     # libraries were built with DECnet support.  And Karl Berry says
24532     # the Alpha needs dnet_stub (dnet does not exist).
24533     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24535 /* end confdefs.h.  */
24536
24537 /* Override any GCC internal prototype to avoid an error.
24538    Use char because int might match the return type of a GCC
24539    builtin and then its argument prototype would still apply.  */
24540 #ifdef __cplusplus
24541 extern "C"
24542 #endif
24543 char XOpenDisplay ();
24544 int
24545 main ()
24546 {
24547 return XOpenDisplay ();
24548   ;
24549   return 0;
24550 }
24551 _ACEOF
24552 if ac_fn_c_try_link "$LINENO"; then :
24553
24554 else
24555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24556 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24557 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24558   $as_echo_n "(cached) " >&6
24559 else
24560   ac_check_lib_save_LIBS=$LIBS
24561 LIBS="-ldnet  $LIBS"
24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24563 /* end confdefs.h.  */
24564
24565 /* Override any GCC internal prototype to avoid an error.
24566    Use char because int might match the return type of a GCC
24567    builtin and then its argument prototype would still apply.  */
24568 #ifdef __cplusplus
24569 extern "C"
24570 #endif
24571 char dnet_ntoa ();
24572 int
24573 main ()
24574 {
24575 return dnet_ntoa ();
24576   ;
24577   return 0;
24578 }
24579 _ACEOF
24580 if ac_fn_c_try_link "$LINENO"; then :
24581   ac_cv_lib_dnet_dnet_ntoa=yes
24582 else
24583   ac_cv_lib_dnet_dnet_ntoa=no
24584 fi
24585 rm -f core conftest.err conftest.$ac_objext \
24586     conftest$ac_exeext conftest.$ac_ext
24587 LIBS=$ac_check_lib_save_LIBS
24588 fi
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24590 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24591 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24592   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24593 fi
24594
24595     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24596       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24597 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24598 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24599   $as_echo_n "(cached) " >&6
24600 else
24601   ac_check_lib_save_LIBS=$LIBS
24602 LIBS="-ldnet_stub  $LIBS"
24603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24604 /* end confdefs.h.  */
24605
24606 /* Override any GCC internal prototype to avoid an error.
24607    Use char because int might match the return type of a GCC
24608    builtin and then its argument prototype would still apply.  */
24609 #ifdef __cplusplus
24610 extern "C"
24611 #endif
24612 char dnet_ntoa ();
24613 int
24614 main ()
24615 {
24616 return dnet_ntoa ();
24617   ;
24618   return 0;
24619 }
24620 _ACEOF
24621 if ac_fn_c_try_link "$LINENO"; then :
24622   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24623 else
24624   ac_cv_lib_dnet_stub_dnet_ntoa=no
24625 fi
24626 rm -f core conftest.err conftest.$ac_objext \
24627     conftest$ac_exeext conftest.$ac_ext
24628 LIBS=$ac_check_lib_save_LIBS
24629 fi
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24631 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24632 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24633   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24634 fi
24635
24636     fi
24637 fi
24638 rm -f core conftest.err conftest.$ac_objext \
24639     conftest$ac_exeext conftest.$ac_ext
24640     LIBS="$ac_xsave_LIBS"
24641
24642     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24643     # to get the SysV transport functions.
24644     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24645     # needs -lnsl.
24646     # The nsl library prevents programs from opening the X display
24647     # on Irix 5.2, according to T.E. Dickey.
24648     # The functions gethostbyname, getservbyname, and inet_addr are
24649     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24650     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24651 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24652
24653 fi
24654
24655     if test $ac_cv_func_gethostbyname = no; then
24656       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24657 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24658 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24659   $as_echo_n "(cached) " >&6
24660 else
24661   ac_check_lib_save_LIBS=$LIBS
24662 LIBS="-lnsl  $LIBS"
24663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h.  */
24665
24666 /* Override any GCC internal prototype to avoid an error.
24667    Use char because int might match the return type of a GCC
24668    builtin and then its argument prototype would still apply.  */
24669 #ifdef __cplusplus
24670 extern "C"
24671 #endif
24672 char gethostbyname ();
24673 int
24674 main ()
24675 {
24676 return gethostbyname ();
24677   ;
24678   return 0;
24679 }
24680 _ACEOF
24681 if ac_fn_c_try_link "$LINENO"; then :
24682   ac_cv_lib_nsl_gethostbyname=yes
24683 else
24684   ac_cv_lib_nsl_gethostbyname=no
24685 fi
24686 rm -f core conftest.err conftest.$ac_objext \
24687     conftest$ac_exeext conftest.$ac_ext
24688 LIBS=$ac_check_lib_save_LIBS
24689 fi
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24691 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24692 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24693   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24694 fi
24695
24696       if test $ac_cv_lib_nsl_gethostbyname = no; then
24697         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24698 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24699 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24700   $as_echo_n "(cached) " >&6
24701 else
24702   ac_check_lib_save_LIBS=$LIBS
24703 LIBS="-lbsd  $LIBS"
24704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24705 /* end confdefs.h.  */
24706
24707 /* Override any GCC internal prototype to avoid an error.
24708    Use char because int might match the return type of a GCC
24709    builtin and then its argument prototype would still apply.  */
24710 #ifdef __cplusplus
24711 extern "C"
24712 #endif
24713 char gethostbyname ();
24714 int
24715 main ()
24716 {
24717 return gethostbyname ();
24718   ;
24719   return 0;
24720 }
24721 _ACEOF
24722 if ac_fn_c_try_link "$LINENO"; then :
24723   ac_cv_lib_bsd_gethostbyname=yes
24724 else
24725   ac_cv_lib_bsd_gethostbyname=no
24726 fi
24727 rm -f core conftest.err conftest.$ac_objext \
24728     conftest$ac_exeext conftest.$ac_ext
24729 LIBS=$ac_check_lib_save_LIBS
24730 fi
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24732 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24733 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24734   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24735 fi
24736
24737       fi
24738     fi
24739
24740     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24741     # socket/setsockopt and other routines are undefined under SCO ODT
24742     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24743     # on later versions), says Simon Leinen: it contains gethostby*
24744     # variants that don't use the name server (or something).  -lsocket
24745     # must be given before -lnsl if both are needed.  We assume that
24746     # if connect needs -lnsl, so does gethostbyname.
24747     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24748 if test "x$ac_cv_func_connect" = x""yes; then :
24749
24750 fi
24751
24752     if test $ac_cv_func_connect = no; then
24753       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24754 $as_echo_n "checking for connect in -lsocket... " >&6; }
24755 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24756   $as_echo_n "(cached) " >&6
24757 else
24758   ac_check_lib_save_LIBS=$LIBS
24759 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24761 /* end confdefs.h.  */
24762
24763 /* Override any GCC internal prototype to avoid an error.
24764    Use char because int might match the return type of a GCC
24765    builtin and then its argument prototype would still apply.  */
24766 #ifdef __cplusplus
24767 extern "C"
24768 #endif
24769 char connect ();
24770 int
24771 main ()
24772 {
24773 return connect ();
24774   ;
24775   return 0;
24776 }
24777 _ACEOF
24778 if ac_fn_c_try_link "$LINENO"; then :
24779   ac_cv_lib_socket_connect=yes
24780 else
24781   ac_cv_lib_socket_connect=no
24782 fi
24783 rm -f core conftest.err conftest.$ac_objext \
24784     conftest$ac_exeext conftest.$ac_ext
24785 LIBS=$ac_check_lib_save_LIBS
24786 fi
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24788 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24789 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24790   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24791 fi
24792
24793     fi
24794
24795     # Guillermo Gomez says -lposix is necessary on A/UX.
24796     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24797 if test "x$ac_cv_func_remove" = x""yes; then :
24798
24799 fi
24800
24801     if test $ac_cv_func_remove = no; then
24802       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24803 $as_echo_n "checking for remove in -lposix... " >&6; }
24804 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24805   $as_echo_n "(cached) " >&6
24806 else
24807   ac_check_lib_save_LIBS=$LIBS
24808 LIBS="-lposix  $LIBS"
24809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24810 /* end confdefs.h.  */
24811
24812 /* Override any GCC internal prototype to avoid an error.
24813    Use char because int might match the return type of a GCC
24814    builtin and then its argument prototype would still apply.  */
24815 #ifdef __cplusplus
24816 extern "C"
24817 #endif
24818 char remove ();
24819 int
24820 main ()
24821 {
24822 return remove ();
24823   ;
24824   return 0;
24825 }
24826 _ACEOF
24827 if ac_fn_c_try_link "$LINENO"; then :
24828   ac_cv_lib_posix_remove=yes
24829 else
24830   ac_cv_lib_posix_remove=no
24831 fi
24832 rm -f core conftest.err conftest.$ac_objext \
24833     conftest$ac_exeext conftest.$ac_ext
24834 LIBS=$ac_check_lib_save_LIBS
24835 fi
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24837 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24838 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24839   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24840 fi
24841
24842     fi
24843
24844     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24845     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24846 if test "x$ac_cv_func_shmat" = x""yes; then :
24847
24848 fi
24849
24850     if test $ac_cv_func_shmat = no; then
24851       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24852 $as_echo_n "checking for shmat in -lipc... " >&6; }
24853 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24854   $as_echo_n "(cached) " >&6
24855 else
24856   ac_check_lib_save_LIBS=$LIBS
24857 LIBS="-lipc  $LIBS"
24858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859 /* end confdefs.h.  */
24860
24861 /* Override any GCC internal prototype to avoid an error.
24862    Use char because int might match the return type of a GCC
24863    builtin and then its argument prototype would still apply.  */
24864 #ifdef __cplusplus
24865 extern "C"
24866 #endif
24867 char shmat ();
24868 int
24869 main ()
24870 {
24871 return shmat ();
24872   ;
24873   return 0;
24874 }
24875 _ACEOF
24876 if ac_fn_c_try_link "$LINENO"; then :
24877   ac_cv_lib_ipc_shmat=yes
24878 else
24879   ac_cv_lib_ipc_shmat=no
24880 fi
24881 rm -f core conftest.err conftest.$ac_objext \
24882     conftest$ac_exeext conftest.$ac_ext
24883 LIBS=$ac_check_lib_save_LIBS
24884 fi
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24886 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24887 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24888   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24889 fi
24890
24891     fi
24892   fi
24893
24894   # Check for libraries that X11R6 Xt/Xaw programs need.
24895   ac_save_LDFLAGS=$LDFLAGS
24896   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24897   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24898   # check for ICE first), but we must link in the order -lSM -lICE or
24899   # we get undefined symbols.  So assume we have SM if we have ICE.
24900   # These have to be linked with before -lX11, unlike the other
24901   # libraries we check for below, so use a different variable.
24902   # John Interrante, Karl Berry
24903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24904 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24905 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24906   $as_echo_n "(cached) " >&6
24907 else
24908   ac_check_lib_save_LIBS=$LIBS
24909 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24911 /* end confdefs.h.  */
24912
24913 /* Override any GCC internal prototype to avoid an error.
24914    Use char because int might match the return type of a GCC
24915    builtin and then its argument prototype would still apply.  */
24916 #ifdef __cplusplus
24917 extern "C"
24918 #endif
24919 char IceConnectionNumber ();
24920 int
24921 main ()
24922 {
24923 return IceConnectionNumber ();
24924   ;
24925   return 0;
24926 }
24927 _ACEOF
24928 if ac_fn_c_try_link "$LINENO"; then :
24929   ac_cv_lib_ICE_IceConnectionNumber=yes
24930 else
24931   ac_cv_lib_ICE_IceConnectionNumber=no
24932 fi
24933 rm -f core conftest.err conftest.$ac_objext \
24934     conftest$ac_exeext conftest.$ac_ext
24935 LIBS=$ac_check_lib_save_LIBS
24936 fi
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24938 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24939 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24940   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24941 fi
24942
24943   LDFLAGS=$ac_save_LDFLAGS
24944
24945 fi
24946
24947
24948 for ac_header in \
24949    assert.h \
24950    fcntl.h \
24951    grp.h \
24952    pwd.h \
24953    libc.h \
24954    limits.h \
24955    stdarg.h \
24956    stdlib.h \
24957    stdint.h \
24958    string.h \
24959    strings.h \
24960    termios.h \
24961    termcap.h \
24962    term.h \
24963    unistd.h \
24964    sys/bitypes.h \
24965    sys/byteorder.h \
24966    sys/ioctl.h \
24967    sys/select.h \
24968    sys/socket.h \
24969    sys/sockio.h \
24970    sys/stat.h \
24971    sys/time.h \
24972    sys/types.h \
24973    arpa/nameser.h \
24974    mtio.h \
24975    sys/mtio.h \
24976    sys/tape.h \
24977    regex.h \
24978
24979 do :
24980   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24981 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24982 eval as_val=\$$as_ac_Header
24983    if test "x$as_val" = x""yes; then :
24984   cat >>confdefs.h <<_ACEOF
24985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24986 _ACEOF
24987
24988 fi
24989
24990 done
24991
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24993 $as_echo_n "checking for ANSI C header files... " >&6; }
24994 if test "${ac_cv_header_stdc+set}" = set; then :
24995   $as_echo_n "(cached) " >&6
24996 else
24997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24998 /* end confdefs.h.  */
24999 #include <stdlib.h>
25000 #include <stdarg.h>
25001 #include <string.h>
25002 #include <float.h>
25003
25004 int
25005 main ()
25006 {
25007
25008   ;
25009   return 0;
25010 }
25011 _ACEOF
25012 if ac_fn_c_try_compile "$LINENO"; then :
25013   ac_cv_header_stdc=yes
25014 else
25015   ac_cv_header_stdc=no
25016 fi
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018
25019 if test $ac_cv_header_stdc = yes; then
25020   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25022 /* end confdefs.h.  */
25023 #include <string.h>
25024
25025 _ACEOF
25026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25027   $EGREP "memchr" >/dev/null 2>&1; then :
25028
25029 else
25030   ac_cv_header_stdc=no
25031 fi
25032 rm -f conftest*
25033
25034 fi
25035
25036 if test $ac_cv_header_stdc = yes; then
25037   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25039 /* end confdefs.h.  */
25040 #include <stdlib.h>
25041
25042 _ACEOF
25043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25044   $EGREP "free" >/dev/null 2>&1; then :
25045
25046 else
25047   ac_cv_header_stdc=no
25048 fi
25049 rm -f conftest*
25050
25051 fi
25052
25053 if test $ac_cv_header_stdc = yes; then
25054   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25055   if test "$cross_compiling" = yes; then :
25056   :
25057 else
25058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h.  */
25060 #include <ctype.h>
25061 #include <stdlib.h>
25062 #if ((' ' & 0x0FF) == 0x020)
25063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25065 #else
25066 # define ISLOWER(c) \
25067                    (('a' <= (c) && (c) <= 'i') \
25068                      || ('j' <= (c) && (c) <= 'r') \
25069                      || ('s' <= (c) && (c) <= 'z'))
25070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25071 #endif
25072
25073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25074 int
25075 main ()
25076 {
25077   int i;
25078   for (i = 0; i < 256; i++)
25079     if (XOR (islower (i), ISLOWER (i))
25080         || toupper (i) != TOUPPER (i))
25081       return 2;
25082   return 0;
25083 }
25084 _ACEOF
25085 if ac_fn_c_try_run "$LINENO"; then :
25086
25087 else
25088   ac_cv_header_stdc=no
25089 fi
25090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25091   conftest.$ac_objext conftest.beam conftest.$ac_ext
25092 fi
25093
25094 fi
25095 fi
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25097 $as_echo "$ac_cv_header_stdc" >&6; }
25098 if test $ac_cv_header_stdc = yes; then
25099
25100 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25101
25102 fi
25103
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25105 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25106 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25107   $as_echo_n "(cached) " >&6
25108 else
25109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25110 /* end confdefs.h.  */
25111 #include <sys/types.h>
25112 int
25113 main ()
25114 {
25115 return makedev(0, 0);
25116   ;
25117   return 0;
25118 }
25119 _ACEOF
25120 if ac_fn_c_try_link "$LINENO"; then :
25121   ac_cv_header_sys_types_h_makedev=yes
25122 else
25123   ac_cv_header_sys_types_h_makedev=no
25124 fi
25125 rm -f core conftest.err conftest.$ac_objext \
25126     conftest$ac_exeext conftest.$ac_ext
25127
25128 fi
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25130 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25131
25132 if test $ac_cv_header_sys_types_h_makedev = no; then
25133 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25134 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25135
25136 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25137
25138 fi
25139
25140
25141
25142   if test $ac_cv_header_sys_mkdev_h = no; then
25143     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25144 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25145
25146 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25147
25148 fi
25149
25150
25151   fi
25152 fi
25153
25154 ac_header_dirent=no
25155 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25156   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25158 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25160   $as_echo_n "(cached) " >&6
25161 else
25162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25163 /* end confdefs.h.  */
25164 #include <sys/types.h>
25165 #include <$ac_hdr>
25166
25167 int
25168 main ()
25169 {
25170 if ((DIR *) 0)
25171 return 0;
25172   ;
25173   return 0;
25174 }
25175 _ACEOF
25176 if ac_fn_c_try_compile "$LINENO"; then :
25177   eval "$as_ac_Header=yes"
25178 else
25179   eval "$as_ac_Header=no"
25180 fi
25181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25182 fi
25183 eval ac_res=\$$as_ac_Header
25184                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25185 $as_echo "$ac_res" >&6; }
25186 eval as_val=\$$as_ac_Header
25187    if test "x$as_val" = x""yes; then :
25188   cat >>confdefs.h <<_ACEOF
25189 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25190 _ACEOF
25191
25192 ac_header_dirent=$ac_hdr; break
25193 fi
25194
25195 done
25196 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25197 if test $ac_header_dirent = dirent.h; then
25198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25199 $as_echo_n "checking for library containing opendir... " >&6; }
25200 if test "${ac_cv_search_opendir+set}" = set; then :
25201   $as_echo_n "(cached) " >&6
25202 else
25203   ac_func_search_save_LIBS=$LIBS
25204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25205 /* end confdefs.h.  */
25206
25207 /* Override any GCC internal prototype to avoid an error.
25208    Use char because int might match the return type of a GCC
25209    builtin and then its argument prototype would still apply.  */
25210 #ifdef __cplusplus
25211 extern "C"
25212 #endif
25213 char opendir ();
25214 int
25215 main ()
25216 {
25217 return opendir ();
25218   ;
25219   return 0;
25220 }
25221 _ACEOF
25222 for ac_lib in '' dir; do
25223   if test -z "$ac_lib"; then
25224     ac_res="none required"
25225   else
25226     ac_res=-l$ac_lib
25227     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25228   fi
25229   if ac_fn_c_try_link "$LINENO"; then :
25230   ac_cv_search_opendir=$ac_res
25231 fi
25232 rm -f core conftest.err conftest.$ac_objext \
25233     conftest$ac_exeext
25234   if test "${ac_cv_search_opendir+set}" = set; then :
25235   break
25236 fi
25237 done
25238 if test "${ac_cv_search_opendir+set}" = set; then :
25239
25240 else
25241   ac_cv_search_opendir=no
25242 fi
25243 rm conftest.$ac_ext
25244 LIBS=$ac_func_search_save_LIBS
25245 fi
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25247 $as_echo "$ac_cv_search_opendir" >&6; }
25248 ac_res=$ac_cv_search_opendir
25249 if test "$ac_res" != no; then :
25250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25251
25252 fi
25253
25254 else
25255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25256 $as_echo_n "checking for library containing opendir... " >&6; }
25257 if test "${ac_cv_search_opendir+set}" = set; then :
25258   $as_echo_n "(cached) " >&6
25259 else
25260   ac_func_search_save_LIBS=$LIBS
25261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25262 /* end confdefs.h.  */
25263
25264 /* Override any GCC internal prototype to avoid an error.
25265    Use char because int might match the return type of a GCC
25266    builtin and then its argument prototype would still apply.  */
25267 #ifdef __cplusplus
25268 extern "C"
25269 #endif
25270 char opendir ();
25271 int
25272 main ()
25273 {
25274 return opendir ();
25275   ;
25276   return 0;
25277 }
25278 _ACEOF
25279 for ac_lib in '' x; do
25280   if test -z "$ac_lib"; then
25281     ac_res="none required"
25282   else
25283     ac_res=-l$ac_lib
25284     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25285   fi
25286   if ac_fn_c_try_link "$LINENO"; then :
25287   ac_cv_search_opendir=$ac_res
25288 fi
25289 rm -f core conftest.err conftest.$ac_objext \
25290     conftest$ac_exeext
25291   if test "${ac_cv_search_opendir+set}" = set; then :
25292   break
25293 fi
25294 done
25295 if test "${ac_cv_search_opendir+set}" = set; then :
25296
25297 else
25298   ac_cv_search_opendir=no
25299 fi
25300 rm conftest.$ac_ext
25301 LIBS=$ac_func_search_save_LIBS
25302 fi
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25304 $as_echo "$ac_cv_search_opendir" >&6; }
25305 ac_res=$ac_cv_search_opendir
25306 if test "$ac_res" != no; then :
25307   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25308
25309 fi
25310
25311 fi
25312
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25314 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25315 if test "${ac_cv_header_stat_broken+set}" = set; then :
25316   $as_echo_n "(cached) " >&6
25317 else
25318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25319 /* end confdefs.h.  */
25320 #include <sys/types.h>
25321 #include <sys/stat.h>
25322
25323 #if defined S_ISBLK && defined S_IFDIR
25324 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25325 #endif
25326
25327 #if defined S_ISBLK && defined S_IFCHR
25328 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25329 #endif
25330
25331 #if defined S_ISLNK && defined S_IFREG
25332 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25333 #endif
25334
25335 #if defined S_ISSOCK && defined S_IFREG
25336 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25337 #endif
25338
25339 _ACEOF
25340 if ac_fn_c_try_compile "$LINENO"; then :
25341   ac_cv_header_stat_broken=no
25342 else
25343   ac_cv_header_stat_broken=yes
25344 fi
25345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25346 fi
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25348 $as_echo "$ac_cv_header_stat_broken" >&6; }
25349 if test $ac_cv_header_stat_broken = yes; then
25350
25351 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25352
25353 fi
25354
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25356 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25357 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25358   $as_echo_n "(cached) " >&6
25359 else
25360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361 /* end confdefs.h.  */
25362 #include <sys/types.h>
25363 #include <sys/wait.h>
25364 #ifndef WEXITSTATUS
25365 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25366 #endif
25367 #ifndef WIFEXITED
25368 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25369 #endif
25370
25371 int
25372 main ()
25373 {
25374   int s;
25375   wait (&s);
25376   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25377   ;
25378   return 0;
25379 }
25380 _ACEOF
25381 if ac_fn_c_try_compile "$LINENO"; then :
25382   ac_cv_header_sys_wait_h=yes
25383 else
25384   ac_cv_header_sys_wait_h=no
25385 fi
25386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25387 fi
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25389 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25390 if test $ac_cv_header_sys_wait_h = yes; then
25391
25392 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25393
25394 fi
25395
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25397 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25398 if test "${ac_cv_header_time+set}" = set; then :
25399   $as_echo_n "(cached) " >&6
25400 else
25401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25402 /* end confdefs.h.  */
25403 #include <sys/types.h>
25404 #include <sys/time.h>
25405 #include <time.h>
25406
25407 int
25408 main ()
25409 {
25410 if ((struct tm *) 0)
25411 return 0;
25412   ;
25413   return 0;
25414 }
25415 _ACEOF
25416 if ac_fn_c_try_compile "$LINENO"; then :
25417   ac_cv_header_time=yes
25418 else
25419   ac_cv_header_time=no
25420 fi
25421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25422 fi
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25424 $as_echo "$ac_cv_header_time" >&6; }
25425 if test $ac_cv_header_time = yes; then
25426
25427 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25428
25429 fi
25430
25431 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25432 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25433
25434 cat >>confdefs.h <<_ACEOF
25435 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25436 _ACEOF
25437
25438
25439 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25440
25441 fi
25442
25443
25444 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25445 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25446
25447 cat >>confdefs.h <<_ACEOF
25448 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25449 _ACEOF
25450
25451
25452 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25453
25454 else
25455   case " $LIBOBJS " in
25456   *" fileblocks.$ac_objext "* ) ;;
25457   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25458  ;;
25459 esac
25460
25461 fi
25462
25463
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25465 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25466 if test "${ac_cv_struct_tm+set}" = set; then :
25467   $as_echo_n "(cached) " >&6
25468 else
25469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470 /* end confdefs.h.  */
25471 #include <sys/types.h>
25472 #include <time.h>
25473
25474 int
25475 main ()
25476 {
25477 struct tm tm;
25478                                      int *p = &tm.tm_sec;
25479                                      return !p;
25480   ;
25481   return 0;
25482 }
25483 _ACEOF
25484 if ac_fn_c_try_compile "$LINENO"; then :
25485   ac_cv_struct_tm=time.h
25486 else
25487   ac_cv_struct_tm=sys/time.h
25488 fi
25489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25490 fi
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25492 $as_echo "$ac_cv_struct_tm" >&6; }
25493 if test $ac_cv_struct_tm = sys/time.h; then
25494
25495 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25496
25497 fi
25498
25499 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25500 #include <$ac_cv_struct_tm>
25501
25502 "
25503 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25504
25505 cat >>confdefs.h <<_ACEOF
25506 #define HAVE_STRUCT_TM_TM_ZONE 1
25507 _ACEOF
25508
25509
25510 fi
25511
25512 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25513
25514 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25515
25516 else
25517   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25518 "
25519 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25520   ac_have_decl=1
25521 else
25522   ac_have_decl=0
25523 fi
25524
25525 cat >>confdefs.h <<_ACEOF
25526 #define HAVE_DECL_TZNAME $ac_have_decl
25527 _ACEOF
25528
25529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25530 $as_echo_n "checking for tzname... " >&6; }
25531 if test "${ac_cv_var_tzname+set}" = set; then :
25532   $as_echo_n "(cached) " >&6
25533 else
25534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25535 /* end confdefs.h.  */
25536 #include <time.h>
25537 #if !HAVE_DECL_TZNAME
25538 extern char *tzname[];
25539 #endif
25540
25541 int
25542 main ()
25543 {
25544 return tzname[0][0];
25545   ;
25546   return 0;
25547 }
25548 _ACEOF
25549 if ac_fn_c_try_link "$LINENO"; then :
25550   ac_cv_var_tzname=yes
25551 else
25552   ac_cv_var_tzname=no
25553 fi
25554 rm -f core conftest.err conftest.$ac_objext \
25555     conftest$ac_exeext conftest.$ac_ext
25556 fi
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25558 $as_echo "$ac_cv_var_tzname" >&6; }
25559   if test $ac_cv_var_tzname = yes; then
25560
25561 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25562
25563   fi
25564 fi
25565
25566
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25568 $as_echo_n "checking for utime.h... " >&6; }
25569 if test "${ba_cv_header_utime_h+set}" = set; then :
25570   $as_echo_n "(cached) " >&6
25571 else
25572
25573        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h.  */
25575
25576               #include <sys/types.h>
25577               #include <utime.h>
25578
25579 int
25580 main ()
25581 {
25582
25583               struct utimbuf foo
25584
25585   ;
25586   return 0;
25587 }
25588 _ACEOF
25589 if ac_fn_c_try_compile "$LINENO"; then :
25590
25591               ba_cv_header_utime_h=yes
25592
25593 else
25594
25595               ba_cv_header_utime_h=no
25596
25597
25598 fi
25599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25600
25601
25602 fi
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25604 $as_echo "$ba_cv_header_utime_h" >&6; }
25605 test $ba_cv_header_utime_h = yes &&
25606 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25607
25608
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25610 $as_echo_n "checking for socklen_t... " >&6; }
25611 if test "${ba_cv_header_socklen_t+set}" = set; then :
25612   $as_echo_n "(cached) " >&6
25613 else
25614
25615        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25616 /* end confdefs.h.  */
25617
25618               #include <sys/types.h>
25619               #include <sys/socket.h>
25620
25621 int
25622 main ()
25623 {
25624
25625               socklen_t x
25626
25627   ;
25628   return 0;
25629 }
25630 _ACEOF
25631 if ac_fn_c_try_compile "$LINENO"; then :
25632
25633              ba_cv_header_socklen_t=yes
25634
25635 else
25636
25637              ba_cv_header_socklen_t=no
25638
25639
25640 fi
25641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25642
25643
25644 fi
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25646 $as_echo "$ba_cv_header_socklen_t" >&6; }
25647 test $ba_cv_header_socklen_t = yes &&
25648 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25649
25650
25651 ac_ext=cpp
25652 ac_cpp='$CXXCPP $CPPFLAGS'
25653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25656
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25658 $as_echo_n "checking for ioctl_req_t... " >&6; }
25659 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25660   $as_echo_n "(cached) " >&6
25661 else
25662
25663        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25664 /* end confdefs.h.  */
25665
25666               #include <unistd.h>
25667               #include <sys/types.h>
25668               #include <sys/ioctl.h>
25669
25670 int
25671 main ()
25672 {
25673
25674               int (*d_ioctl)(int fd, unsigned long int request, ...);
25675               d_ioctl = ::ioctl;
25676
25677   ;
25678   return 0;
25679 }
25680 _ACEOF
25681 if ac_fn_cxx_try_compile "$LINENO"; then :
25682
25683              ba_cv_header_ioctl_req_t=yes
25684
25685 else
25686
25687              ba_cv_header_ioctl_req_t=no
25688
25689
25690 fi
25691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25692
25693
25694 fi
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25696 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25697 test $ba_cv_header_ioctl_req_t = yes &&
25698 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25699
25700
25701 ac_ext=c
25702 ac_cpp='$CPP $CPPFLAGS'
25703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25706
25707
25708 ac_ext=cpp
25709 ac_cpp='$CXXCPP $CPPFLAGS'
25710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25713
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25715 $as_echo_n "checking for typeof... " >&6; }
25716 if test "${ba_cv_have_typeof+set}" = set; then :
25717   $as_echo_n "(cached) " >&6
25718 else
25719
25720        if test "$cross_compiling" = yes; then :
25721
25722               ba_cv_have_typeof=no
25723
25724
25725 else
25726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25727 /* end confdefs.h.  */
25728
25729               main(){char *a = 0; a = (typeof a)a;}
25730
25731 _ACEOF
25732 if ac_fn_cxx_try_run "$LINENO"; then :
25733
25734               ba_cv_have_typeof=yes
25735
25736 else
25737
25738               ba_cv_have_typeof=no
25739
25740 fi
25741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25742   conftest.$ac_objext conftest.beam conftest.$ac_ext
25743 fi
25744
25745
25746
25747 fi
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25749 $as_echo "$ba_cv_have_typeof" >&6; }
25750 test $ba_cv_have_typeof = yes &&
25751 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25752
25753 ac_ext=c
25754 ac_cpp='$CPP $CPPFLAGS'
25755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25758
25759
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25761 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25762 if test "${ac_cv_c_const+set}" = set; then :
25763   $as_echo_n "(cached) " >&6
25764 else
25765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h.  */
25767
25768 int
25769 main ()
25770 {
25771 /* FIXME: Include the comments suggested by Paul. */
25772 #ifndef __cplusplus
25773   /* Ultrix mips cc rejects this.  */
25774   typedef int charset[2];
25775   const charset cs;
25776   /* SunOS 4.1.1 cc rejects this.  */
25777   char const *const *pcpcc;
25778   char **ppc;
25779   /* NEC SVR4.0.2 mips cc rejects this.  */
25780   struct point {int x, y;};
25781   static struct point const zero = {0,0};
25782   /* AIX XL C 1.02.0.0 rejects this.
25783      It does not let you subtract one const X* pointer from another in
25784      an arm of an if-expression whose if-part is not a constant
25785      expression */
25786   const char *g = "string";
25787   pcpcc = &g + (g ? g-g : 0);
25788   /* HPUX 7.0 cc rejects these. */
25789   ++pcpcc;
25790   ppc = (char**) pcpcc;
25791   pcpcc = (char const *const *) ppc;
25792   { /* SCO 3.2v4 cc rejects this.  */
25793     char *t;
25794     char const *s = 0 ? (char *) 0 : (char const *) 0;
25795
25796     *t++ = 0;
25797     if (s) return 0;
25798   }
25799   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25800     int x[] = {25, 17};
25801     const int *foo = &x[0];
25802     ++foo;
25803   }
25804   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25805     typedef const int *iptr;
25806     iptr p = 0;
25807     ++p;
25808   }
25809   { /* AIX XL C 1.02.0.0 rejects this saying
25810        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25811     struct s { int j; const int *ap[3]; };
25812     struct s *b; b->j = 5;
25813   }
25814   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25815     const int foo = 10;
25816     if (!foo) return 0;
25817   }
25818   return !cs[0] && !zero.x;
25819 #endif
25820
25821   ;
25822   return 0;
25823 }
25824 _ACEOF
25825 if ac_fn_c_try_compile "$LINENO"; then :
25826   ac_cv_c_const=yes
25827 else
25828   ac_cv_c_const=no
25829 fi
25830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25831 fi
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25833 $as_echo "$ac_cv_c_const" >&6; }
25834 if test $ac_cv_c_const = no; then
25835
25836 $as_echo "#define const /**/" >>confdefs.h
25837
25838 fi
25839
25840
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25842 $as_echo_n "checking how to get filesystem type... " >&6; }
25843 fstype=no
25844 # The order of these tests is important.
25845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25846 /* end confdefs.h.  */
25847
25848        #include <sys/statvfs.h>
25849        #include <sys/fstyp.h>
25850
25851 _ACEOF
25852 if ac_fn_c_try_cpp "$LINENO"; then :
25853   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25854  fstype=SVR4
25855
25856 fi
25857 rm -f conftest.err conftest.$ac_ext
25858 if test $fstype = no; then
25859    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25860 /* end confdefs.h.  */
25861
25862           #include <sys/statfs.h>
25863           #include <sys/fstyp.h>
25864
25865 _ACEOF
25866 if ac_fn_c_try_cpp "$LINENO"; then :
25867   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25868  fstype=SVR3
25869
25870 fi
25871 rm -f conftest.err conftest.$ac_ext
25872 fi
25873 if test $fstype = no; then
25874    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25875 /* end confdefs.h.  */
25876
25877           #include <sys/statfs.h>
25878           #include <sys/vmount.h>
25879
25880 _ACEOF
25881 if ac_fn_c_try_cpp "$LINENO"; then :
25882   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25883  fstype=AIX
25884
25885 fi
25886 rm -f conftest.err conftest.$ac_ext
25887 fi
25888 if test $fstype = no; then
25889    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25890 /* end confdefs.h.  */
25891
25892           #include <mntent.h>
25893
25894 _ACEOF
25895 if ac_fn_c_try_cpp "$LINENO"; then :
25896   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25897  fstype=4.3BSD
25898
25899 fi
25900 rm -f conftest.err conftest.$ac_ext
25901 fi
25902 if test $fstype = no; then
25903    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25904 /* end confdefs.h.  */
25905 #include <sys/mount.h>
25906
25907 _ACEOF
25908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25909   $EGREP "f_type;" >/dev/null 2>&1; then :
25910   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25911  fstype=4.4BSD/OSF1
25912 fi
25913 rm -f conftest*
25914
25915 fi
25916 if test $fstype = no; then
25917    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25918 /* end confdefs.h.  */
25919
25920           #include <sys/mount.h>
25921           #include <sys/fs_types.h>
25922
25923 _ACEOF
25924 if ac_fn_c_try_cpp "$LINENO"; then :
25925   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25926  fstype=Ultrix
25927
25928 fi
25929 rm -f conftest.err conftest.$ac_ext
25930 fi
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25932 $as_echo "$fstype" >&6; }
25933
25934 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25935 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25936
25937 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25938
25939 fi
25940
25941
25942
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25944 $as_echo_n "checking return type of signal handlers... " >&6; }
25945 if test "${ac_cv_type_signal+set}" = set; then :
25946   $as_echo_n "(cached) " >&6
25947 else
25948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25949 /* end confdefs.h.  */
25950 #include <sys/types.h>
25951 #include <signal.h>
25952
25953 int
25954 main ()
25955 {
25956 return *(signal (0, 0)) (0) == 1;
25957   ;
25958   return 0;
25959 }
25960 _ACEOF
25961 if ac_fn_c_try_compile "$LINENO"; then :
25962   ac_cv_type_signal=int
25963 else
25964   ac_cv_type_signal=void
25965 fi
25966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25967 fi
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25969 $as_echo "$ac_cv_type_signal" >&6; }
25970
25971 cat >>confdefs.h <<_ACEOF
25972 #define RETSIGTYPE $ac_cv_type_signal
25973 _ACEOF
25974
25975
25976
25977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25978 $as_echo_n "checking for type of signal functions... " >&6; }
25979   if test "${bash_cv_signal_vintage+set}" = set; then :
25980   $as_echo_n "(cached) " >&6
25981 else
25982
25983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25984 /* end confdefs.h.  */
25985 #include <signal.h>
25986 int
25987 main ()
25988 {
25989
25990       sigset_t ss;
25991       struct sigaction sa;
25992       sigemptyset(&ss); sigsuspend(&ss);
25993       sigaction(SIGINT, &sa, (struct sigaction *) 0);
25994       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25995
25996   ;
25997   return 0;
25998 }
25999 _ACEOF
26000 if ac_fn_c_try_link "$LINENO"; then :
26001   bash_cv_signal_vintage="posix"
26002 else
26003
26004       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26005 /* end confdefs.h.  */
26006 #include <signal.h>
26007 int
26008 main ()
26009 {
26010
26011           int mask = sigmask(SIGINT);
26012           sigsetmask(mask); sigblock(mask); sigpause(mask);
26013
26014   ;
26015   return 0;
26016 }
26017 _ACEOF
26018 if ac_fn_c_try_link "$LINENO"; then :
26019   bash_cv_signal_vintage="4.2bsd"
26020 else
26021
26022         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26023 /* end confdefs.h.  */
26024
26025           #include <signal.h>
26026           RETSIGTYPE foo() { }
26027 int
26028 main ()
26029 {
26030
26031                   int mask = sigmask(SIGINT);
26032                   sigset(SIGINT, foo); sigrelse(SIGINT);
26033                   sighold(SIGINT); sigpause(SIGINT);
26034
26035   ;
26036   return 0;
26037 }
26038 _ACEOF
26039 if ac_fn_c_try_link "$LINENO"; then :
26040   bash_cv_signal_vintage="svr3"
26041 else
26042   bash_cv_signal_vintage="v7"
26043
26044 fi
26045 rm -f core conftest.err conftest.$ac_objext \
26046     conftest$ac_exeext conftest.$ac_ext
26047
26048 fi
26049 rm -f core conftest.err conftest.$ac_objext \
26050     conftest$ac_exeext conftest.$ac_ext
26051
26052 fi
26053 rm -f core conftest.err conftest.$ac_objext \
26054     conftest$ac_exeext conftest.$ac_ext
26055
26056 fi
26057
26058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26059 $as_echo "$bash_cv_signal_vintage" >&6; }
26060   if test "$bash_cv_signal_vintage" = "posix"; then
26061     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26062
26063   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26064     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26065
26066   elif test "$bash_cv_signal_vintage" = "svr3"; then
26067     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26068
26069   fi
26070
26071 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26072 if test "x$ac_cv_type_mode_t" = x""yes; then :
26073
26074 else
26075
26076 cat >>confdefs.h <<_ACEOF
26077 #define mode_t int
26078 _ACEOF
26079
26080 fi
26081
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26083 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26084 if test "${ac_cv_type_uid_t+set}" = set; then :
26085   $as_echo_n "(cached) " >&6
26086 else
26087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26088 /* end confdefs.h.  */
26089 #include <sys/types.h>
26090
26091 _ACEOF
26092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26093   $EGREP "uid_t" >/dev/null 2>&1; then :
26094   ac_cv_type_uid_t=yes
26095 else
26096   ac_cv_type_uid_t=no
26097 fi
26098 rm -f conftest*
26099
26100 fi
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26102 $as_echo "$ac_cv_type_uid_t" >&6; }
26103 if test $ac_cv_type_uid_t = no; then
26104
26105 $as_echo "#define uid_t int" >>confdefs.h
26106
26107
26108 $as_echo "#define gid_t int" >>confdefs.h
26109
26110 fi
26111
26112 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26113 if test "x$ac_cv_type_size_t" = x""yes; then :
26114
26115 else
26116
26117 cat >>confdefs.h <<_ACEOF
26118 #define size_t unsigned int
26119 _ACEOF
26120
26121 fi
26122
26123 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26124 if test "x$ac_cv_type_pid_t" = x""yes; then :
26125
26126 else
26127
26128 cat >>confdefs.h <<_ACEOF
26129 #define pid_t int
26130 _ACEOF
26131
26132 fi
26133
26134 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26135 if test "x$ac_cv_type_off_t" = x""yes; then :
26136
26137 else
26138
26139 cat >>confdefs.h <<_ACEOF
26140 #define off_t long int
26141 _ACEOF
26142
26143 fi
26144
26145
26146   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26147 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26148
26149 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26150
26151 else
26152   for ac_type in 'int' 'long int' 'long long int'; do
26153        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26154 /* end confdefs.h.  */
26155 $ac_includes_default
26156 int
26157 main ()
26158 {
26159 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26160 test_array [0] = 0
26161
26162   ;
26163   return 0;
26164 }
26165 _ACEOF
26166 if ac_fn_c_try_compile "$LINENO"; then :
26167
26168 cat >>confdefs.h <<_ACEOF
26169 #define intptr_t $ac_type
26170 _ACEOF
26171
26172           ac_type=
26173 fi
26174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26175        test -z "$ac_type" && break
26176      done
26177 fi
26178
26179
26180
26181   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26182 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26183
26184 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26185
26186 else
26187   for ac_type in 'unsigned int' 'unsigned long int' \
26188         'unsigned long long int'; do
26189        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26190 /* end confdefs.h.  */
26191 $ac_includes_default
26192 int
26193 main ()
26194 {
26195 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26196 test_array [0] = 0
26197
26198   ;
26199   return 0;
26200 }
26201 _ACEOF
26202 if ac_fn_c_try_compile "$LINENO"; then :
26203
26204 cat >>confdefs.h <<_ACEOF
26205 #define uintptr_t $ac_type
26206 _ACEOF
26207
26208           ac_type=
26209 fi
26210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26211        test -z "$ac_type" && break
26212      done
26213 fi
26214
26215
26216 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26217 if test "x$ac_cv_type_ino_t" = x""yes; then :
26218
26219 else
26220
26221 cat >>confdefs.h <<_ACEOF
26222 #define ino_t unsigned long
26223 _ACEOF
26224
26225 fi
26226
26227 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26228 if test "x$ac_cv_type_dev_t" = x""yes; then :
26229
26230 else
26231
26232 cat >>confdefs.h <<_ACEOF
26233 #define dev_t unsigned long
26234 _ACEOF
26235
26236 fi
26237
26238 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26239 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26240
26241 else
26242
26243 cat >>confdefs.h <<_ACEOF
26244 #define daddr_t long
26245 _ACEOF
26246
26247 fi
26248
26249 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26250 if test "x$ac_cv_type_major_t" = x""yes; then :
26251
26252 else
26253
26254 cat >>confdefs.h <<_ACEOF
26255 #define major_t int
26256 _ACEOF
26257
26258 fi
26259
26260 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26261 if test "x$ac_cv_type_minor_t" = x""yes; then :
26262
26263 else
26264
26265 cat >>confdefs.h <<_ACEOF
26266 #define minor_t int
26267 _ACEOF
26268
26269 fi
26270
26271 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26272 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26273
26274 else
26275
26276 cat >>confdefs.h <<_ACEOF
26277 #define ssize_t int
26278 _ACEOF
26279
26280 fi
26281
26282 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26283 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26284
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26287 _ACEOF
26288
26289
26290 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26291
26292 else
26293   case " $LIBOBJS " in
26294   *" fileblocks.$ac_objext "* ) ;;
26295   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26296  ;;
26297 esac
26298
26299 fi
26300
26301
26302 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26303 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26304
26305 cat >>confdefs.h <<_ACEOF
26306 #define HAVE_STRUCT_STAT_ST_RDEV 1
26307 _ACEOF
26308
26309
26310 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26311
26312 fi
26313
26314
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26316 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26317 if test "${ac_cv_struct_tm+set}" = set; then :
26318   $as_echo_n "(cached) " >&6
26319 else
26320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26321 /* end confdefs.h.  */
26322 #include <sys/types.h>
26323 #include <time.h>
26324
26325 int
26326 main ()
26327 {
26328 struct tm tm;
26329                                      int *p = &tm.tm_sec;
26330                                      return !p;
26331   ;
26332   return 0;
26333 }
26334 _ACEOF
26335 if ac_fn_c_try_compile "$LINENO"; then :
26336   ac_cv_struct_tm=time.h
26337 else
26338   ac_cv_struct_tm=sys/time.h
26339 fi
26340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26341 fi
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26343 $as_echo "$ac_cv_struct_tm" >&6; }
26344 if test $ac_cv_struct_tm = sys/time.h; then
26345
26346 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26347
26348 fi
26349
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26351 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26352 if test "${ac_cv_c_const+set}" = set; then :
26353   $as_echo_n "(cached) " >&6
26354 else
26355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26356 /* end confdefs.h.  */
26357
26358 int
26359 main ()
26360 {
26361 /* FIXME: Include the comments suggested by Paul. */
26362 #ifndef __cplusplus
26363   /* Ultrix mips cc rejects this.  */
26364   typedef int charset[2];
26365   const charset cs;
26366   /* SunOS 4.1.1 cc rejects this.  */
26367   char const *const *pcpcc;
26368   char **ppc;
26369   /* NEC SVR4.0.2 mips cc rejects this.  */
26370   struct point {int x, y;};
26371   static struct point const zero = {0,0};
26372   /* AIX XL C 1.02.0.0 rejects this.
26373      It does not let you subtract one const X* pointer from another in
26374      an arm of an if-expression whose if-part is not a constant
26375      expression */
26376   const char *g = "string";
26377   pcpcc = &g + (g ? g-g : 0);
26378   /* HPUX 7.0 cc rejects these. */
26379   ++pcpcc;
26380   ppc = (char**) pcpcc;
26381   pcpcc = (char const *const *) ppc;
26382   { /* SCO 3.2v4 cc rejects this.  */
26383     char *t;
26384     char const *s = 0 ? (char *) 0 : (char const *) 0;
26385
26386     *t++ = 0;
26387     if (s) return 0;
26388   }
26389   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26390     int x[] = {25, 17};
26391     const int *foo = &x[0];
26392     ++foo;
26393   }
26394   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26395     typedef const int *iptr;
26396     iptr p = 0;
26397     ++p;
26398   }
26399   { /* AIX XL C 1.02.0.0 rejects this saying
26400        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26401     struct s { int j; const int *ap[3]; };
26402     struct s *b; b->j = 5;
26403   }
26404   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26405     const int foo = 10;
26406     if (!foo) return 0;
26407   }
26408   return !cs[0] && !zero.x;
26409 #endif
26410
26411   ;
26412   return 0;
26413 }
26414 _ACEOF
26415 if ac_fn_c_try_compile "$LINENO"; then :
26416   ac_cv_c_const=yes
26417 else
26418   ac_cv_c_const=no
26419 fi
26420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26421 fi
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26423 $as_echo "$ac_cv_c_const" >&6; }
26424 if test $ac_cv_c_const = no; then
26425
26426 $as_echo "#define const /**/" >>confdefs.h
26427
26428 fi
26429
26430
26431 # The cast to long int works around a bug in the HP C Compiler
26432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26434 # This bug is HP SR number 8606223364.
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26436 $as_echo_n "checking size of char... " >&6; }
26437 if test "${ac_cv_sizeof_char+set}" = set; then :
26438   $as_echo_n "(cached) " >&6
26439 else
26440   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26441
26442 else
26443   if test "$ac_cv_type_char" = yes; then
26444      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26446 { as_fn_set_status 77
26447 as_fn_error "cannot compute sizeof (char)
26448 See \`config.log' for more details." "$LINENO" 5; }; }
26449    else
26450      ac_cv_sizeof_char=0
26451    fi
26452 fi
26453
26454 fi
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26456 $as_echo "$ac_cv_sizeof_char" >&6; }
26457
26458
26459
26460 cat >>confdefs.h <<_ACEOF
26461 #define SIZEOF_CHAR $ac_cv_sizeof_char
26462 _ACEOF
26463
26464
26465 # The cast to long int works around a bug in the HP C Compiler
26466 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26467 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26468 # This bug is HP SR number 8606223364.
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26470 $as_echo_n "checking size of short int... " >&6; }
26471 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26472   $as_echo_n "(cached) " >&6
26473 else
26474   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26475
26476 else
26477   if test "$ac_cv_type_short_int" = yes; then
26478      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26480 { as_fn_set_status 77
26481 as_fn_error "cannot compute sizeof (short int)
26482 See \`config.log' for more details." "$LINENO" 5; }; }
26483    else
26484      ac_cv_sizeof_short_int=0
26485    fi
26486 fi
26487
26488 fi
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26490 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26491
26492
26493
26494 cat >>confdefs.h <<_ACEOF
26495 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26496 _ACEOF
26497
26498
26499 # The cast to long int works around a bug in the HP C Compiler
26500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26502 # This bug is HP SR number 8606223364.
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26504 $as_echo_n "checking size of int... " >&6; }
26505 if test "${ac_cv_sizeof_int+set}" = set; then :
26506   $as_echo_n "(cached) " >&6
26507 else
26508   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26509
26510 else
26511   if test "$ac_cv_type_int" = yes; then
26512      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26514 { as_fn_set_status 77
26515 as_fn_error "cannot compute sizeof (int)
26516 See \`config.log' for more details." "$LINENO" 5; }; }
26517    else
26518      ac_cv_sizeof_int=0
26519    fi
26520 fi
26521
26522 fi
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26524 $as_echo "$ac_cv_sizeof_int" >&6; }
26525
26526
26527
26528 cat >>confdefs.h <<_ACEOF
26529 #define SIZEOF_INT $ac_cv_sizeof_int
26530 _ACEOF
26531
26532
26533 # The cast to long int works around a bug in the HP C Compiler
26534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26536 # This bug is HP SR number 8606223364.
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26538 $as_echo_n "checking size of long int... " >&6; }
26539 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26540   $as_echo_n "(cached) " >&6
26541 else
26542   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26543
26544 else
26545   if test "$ac_cv_type_long_int" = yes; then
26546      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26548 { as_fn_set_status 77
26549 as_fn_error "cannot compute sizeof (long int)
26550 See \`config.log' for more details." "$LINENO" 5; }; }
26551    else
26552      ac_cv_sizeof_long_int=0
26553    fi
26554 fi
26555
26556 fi
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26558 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26559
26560
26561
26562 cat >>confdefs.h <<_ACEOF
26563 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26564 _ACEOF
26565
26566
26567 # The cast to long int works around a bug in the HP C Compiler
26568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26570 # This bug is HP SR number 8606223364.
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26572 $as_echo_n "checking size of long long int... " >&6; }
26573 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26574   $as_echo_n "(cached) " >&6
26575 else
26576   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26577
26578 else
26579   if test "$ac_cv_type_long_long_int" = yes; then
26580      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26582 { as_fn_set_status 77
26583 as_fn_error "cannot compute sizeof (long long int)
26584 See \`config.log' for more details." "$LINENO" 5; }; }
26585    else
26586      ac_cv_sizeof_long_long_int=0
26587    fi
26588 fi
26589
26590 fi
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26592 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26593
26594
26595
26596 cat >>confdefs.h <<_ACEOF
26597 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26598 _ACEOF
26599
26600
26601 # The cast to long int works around a bug in the HP C Compiler
26602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26604 # This bug is HP SR number 8606223364.
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26606 $as_echo_n "checking size of int *... " >&6; }
26607 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26608   $as_echo_n "(cached) " >&6
26609 else
26610   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26611
26612 else
26613   if test "$ac_cv_type_int_p" = yes; then
26614      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26616 { as_fn_set_status 77
26617 as_fn_error "cannot compute sizeof (int *)
26618 See \`config.log' for more details." "$LINENO" 5; }; }
26619    else
26620      ac_cv_sizeof_int_p=0
26621    fi
26622 fi
26623
26624 fi
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26626 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26627
26628
26629
26630 cat >>confdefs.h <<_ACEOF
26631 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26632 _ACEOF
26633
26634
26635
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26637 $as_echo_n "checking for u_int type... " >&6; }
26638 if test "${ac_cv_have_u_int+set}" = set; then :
26639   $as_echo_n "(cached) " >&6
26640 else
26641
26642        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26643 /* end confdefs.h.  */
26644
26645               #include <sys/types.h>
26646
26647 int
26648 main ()
26649 {
26650
26651               u_int 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_u_int="yes"
26660
26661 else
26662
26663               ac_cv_have_u_int="no"
26664
26665
26666 fi
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26668
26669
26670 fi
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26672 $as_echo "$ac_cv_have_u_int" >&6; }
26673 if test "x$ac_cv_have_u_int" = "xyes" ; then
26674    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26675
26676    have_u_int=1
26677 fi
26678
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26680 $as_echo_n "checking for intmax_t type... " >&6; }
26681 if test "${ac_cv_have_intmax_t+set}" = set; then :
26682   $as_echo_n "(cached) " >&6
26683 else
26684
26685        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26686 /* end confdefs.h.  */
26687
26688               #include <sys/types.h>
26689
26690 int
26691 main ()
26692 {
26693
26694               intmax_t a; a = 1;
26695
26696   ;
26697   return 0;
26698 }
26699 _ACEOF
26700 if ac_fn_c_try_compile "$LINENO"; then :
26701
26702               ac_cv_have_intmax_t="yes"
26703
26704 else
26705
26706               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26707 /* end confdefs.h.  */
26708
26709                      #include <stdint.h>
26710
26711 int
26712 main ()
26713 {
26714
26715                      intmax_t a; a = 1;
26716
26717   ;
26718   return 0;
26719 }
26720 _ACEOF
26721 if ac_fn_c_try_compile "$LINENO"; then :
26722
26723                      ac_cv_have_intmax_t="yes"
26724
26725 else
26726
26727                      ac_cv_have_intmax_t="no"
26728
26729
26730 fi
26731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26732
26733
26734 fi
26735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26736
26737
26738 fi
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26740 $as_echo "$ac_cv_have_intmax_t" >&6; }
26741 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26742    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26743
26744    have_intmax_t=1
26745 fi
26746
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26748 $as_echo_n "checking for u_intmax_t type... " >&6; }
26749 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26750   $as_echo_n "(cached) " >&6
26751 else
26752
26753        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26754 /* end confdefs.h.  */
26755
26756               #include <sys/types.h>
26757
26758 int
26759 main ()
26760 {
26761
26762               u_intmax_t a; a = 1;
26763
26764   ;
26765   return 0;
26766 }
26767 _ACEOF
26768 if ac_fn_c_try_compile "$LINENO"; then :
26769
26770               ac_cv_have_u_intmax_t="yes"
26771
26772 else
26773
26774               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26775 /* end confdefs.h.  */
26776
26777                      #include <stdint.h>
26778
26779 int
26780 main ()
26781 {
26782
26783                     u_intmax_t a; a = 1;
26784
26785   ;
26786   return 0;
26787 }
26788 _ACEOF
26789 if ac_fn_c_try_compile "$LINENO"; then :
26790
26791                     ac_cv_have_u_intmax_t="yes"
26792
26793 else
26794
26795                     ac_cv_have_u_intmax_t="no"
26796
26797
26798 fi
26799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26800
26801
26802 fi
26803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26804
26805
26806 fi
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26808 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26809 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26810    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26811
26812    have_u_intmax_t=1
26813 fi
26814
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26816 $as_echo_n "checking for intXX_t types... " >&6; }
26817 if test "${ac_cv_have_intxx_t+set}" = set; then :
26818   $as_echo_n "(cached) " >&6
26819 else
26820
26821        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26822 /* end confdefs.h.  */
26823
26824               #include <sys/types.h>
26825
26826 int
26827 main ()
26828 {
26829
26830               int8_t a; int16_t b; int32_t c; a = b = c = 1;
26831
26832   ;
26833   return 0;
26834 }
26835 _ACEOF
26836 if ac_fn_c_try_compile "$LINENO"; then :
26837
26838               ac_cv_have_intxx_t="yes"
26839
26840 else
26841
26842               ac_cv_have_intxx_t="no"
26843
26844
26845 fi
26846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26847
26848
26849 fi
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26851 $as_echo "$ac_cv_have_intxx_t" >&6; }
26852 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26853    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26854
26855    have_intxx_t=1
26856 fi
26857
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26859 $as_echo_n "checking for int64_t type... " >&6; }
26860 if test "${ac_cv_have_int64_t+set}" = set; then :
26861   $as_echo_n "(cached) " >&6
26862 else
26863
26864        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26865 /* end confdefs.h.  */
26866
26867               #include <sys/types.h>
26868
26869 int
26870 main ()
26871 {
26872
26873               int64_t a; a = 1;
26874
26875   ;
26876   return 0;
26877 }
26878 _ACEOF
26879 if ac_fn_c_try_compile "$LINENO"; then :
26880
26881               ac_cv_have_int64_t="yes"
26882
26883 else
26884
26885               ac_cv_have_int64_t="no"
26886
26887
26888 fi
26889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26890
26891
26892 fi
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26894 $as_echo "$ac_cv_have_int64_t" >&6; }
26895 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26896    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26897
26898    have_int64_t=1
26899 fi
26900
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26902 $as_echo_n "checking for u_intXX_t types... " >&6; }
26903 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26904   $as_echo_n "(cached) " >&6
26905 else
26906
26907        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908 /* end confdefs.h.  */
26909
26910               #include <sys/types.h>
26911
26912 int
26913 main ()
26914 {
26915
26916               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26917
26918   ;
26919   return 0;
26920 }
26921 _ACEOF
26922 if ac_fn_c_try_compile "$LINENO"; then :
26923
26924              ac_cv_have_u_intxx_t="yes"
26925
26926 else
26927
26928              ac_cv_have_u_intxx_t="no"
26929
26930
26931 fi
26932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26933
26934
26935 fi
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26937 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26938 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26939    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26940
26941    have_u_intxx_t=1
26942 fi
26943
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26945 $as_echo_n "checking for u_int64_t types... " >&6; }
26946 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26947   $as_echo_n "(cached) " >&6
26948 else
26949
26950        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26951 /* end confdefs.h.  */
26952
26953               #include <sys/types.h>
26954
26955 int
26956 main ()
26957 {
26958
26959               u_int64_t a; a = 1;
26960
26961   ;
26962   return 0;
26963 }
26964 _ACEOF
26965 if ac_fn_c_try_compile "$LINENO"; then :
26966
26967              ac_cv_have_u_int64_t="yes"
26968
26969 else
26970
26971              ac_cv_have_u_int64_t="no"
26972
26973
26974 fi
26975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26976
26977
26978 fi
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26980 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26981 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26982    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26983
26984    have_u_int64_t=1
26985 fi
26986
26987 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26988     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26989 then
26990    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26991 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
26992    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26993 /* end confdefs.h.  */
26994
26995           #include <sys/bitypes.h>
26996
26997 int
26998 main ()
26999 {
27000
27001           int8_t a; int16_t b; int32_t c;
27002           u_int8_t e; u_int16_t f; u_int32_t g;
27003           a = b = c = e = f = g = 1;
27004
27005   ;
27006   return 0;
27007 }
27008 _ACEOF
27009 if ac_fn_c_try_compile "$LINENO"; then :
27010
27011           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27012
27013           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27014
27015           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27016
27017           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27018 $as_echo "yes" >&6; }
27019
27020 else
27021
27022           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27023 $as_echo "no" >&6; }
27024
27025
27026 fi
27027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27028 fi
27029
27030 if test -z "$have_u_intxx_t" ; then
27031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27032 $as_echo_n "checking for uintXX_t types... " >&6; }
27033 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27034   $as_echo_n "(cached) " >&6
27035 else
27036
27037           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27038 /* end confdefs.h.  */
27039
27040                  #include <sys/types.h>
27041
27042 int
27043 main ()
27044 {
27045
27046                  uint8_t a; uint16_t b;
27047                  uint32_t c; a = b = c = 1;
27048
27049   ;
27050   return 0;
27051 }
27052 _ACEOF
27053 if ac_fn_c_try_compile "$LINENO"; then :
27054
27055                 ac_cv_have_uintxx_t="yes"
27056
27057 else
27058
27059                 ac_cv_have_uintxx_t="no"
27060
27061
27062 fi
27063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27064
27065
27066 fi
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27068 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27069    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27070       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27071
27072    fi
27073 fi
27074
27075 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27076     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27077 then
27078    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27079 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27080    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27081 /* end confdefs.h.  */
27082
27083           #include <sys/bitypes.h>
27084
27085 int
27086 main ()
27087 {
27088
27089           int64_t a; u_int64_t b;
27090           a = b = 1;
27091
27092   ;
27093   return 0;
27094 }
27095 _ACEOF
27096 if ac_fn_c_try_compile "$LINENO"; then :
27097
27098           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27099
27100           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27101
27102           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27103 $as_echo "yes" >&6; }
27104
27105 else
27106
27107           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27108 $as_echo "no" >&6; }
27109
27110
27111 fi
27112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27113 fi
27114
27115 if (test -z "$have_uintxx_t" && \
27116     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27117 then
27118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27119 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27120    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27121 /* end confdefs.h.  */
27122
27123           #include <sys/bitypes.h>
27124
27125 int
27126 main ()
27127 {
27128
27129           uint8_t a; uint16_t b;
27130           uint32_t c; a = b = c = 1;
27131
27132   ;
27133   return 0;
27134 }
27135 _ACEOF
27136 if ac_fn_c_try_compile "$LINENO"; then :
27137
27138           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27139
27140           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27141 $as_echo "yes" >&6; }
27142
27143 else
27144
27145           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27146 $as_echo "no" >&6; }
27147
27148
27149 fi
27150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27151 fi
27152
27153 for ac_func in \
27154    fork \
27155    getcwd \
27156    gethostname \
27157    getpid \
27158    gettimeofday \
27159    setpgid \
27160    setpgrp \
27161    setsid \
27162    signal \
27163    strerror \
27164    strncmp \
27165    strncpy \
27166    vfprintf \
27167
27168 do :
27169   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27170 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27171 eval as_val=\$$as_ac_var
27172    if test "x$as_val" = x""yes; then :
27173   cat >>confdefs.h <<_ACEOF
27174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27175 _ACEOF
27176
27177 else
27178   echo 'configure: cannot find needed function.'; exit 1
27179
27180 fi
27181 done
27182
27183
27184 for ac_func in fchdir
27185 do :
27186   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27187 if test "x$ac_cv_func_fchdir" = x""yes; then :
27188   cat >>confdefs.h <<_ACEOF
27189 #define HAVE_FCHDIR 1
27190 _ACEOF
27191  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27192
27193 fi
27194 done
27195
27196 for ac_func in strtoll
27197 do :
27198   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27199 if test "x$ac_cv_func_strtoll" = x""yes; then :
27200   cat >>confdefs.h <<_ACEOF
27201 #define HAVE_STRTOLL 1
27202 _ACEOF
27203  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27204
27205 fi
27206 done
27207
27208 for ac_func in posix_fadvise
27209 do :
27210   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27211 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27212   cat >>confdefs.h <<_ACEOF
27213 #define HAVE_POSIX_FADVISE 1
27214 _ACEOF
27215
27216 fi
27217 done
27218
27219 for ac_func in fdatasync
27220 do :
27221   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27222 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27223   cat >>confdefs.h <<_ACEOF
27224 #define HAVE_FDATASYNC 1
27225 _ACEOF
27226
27227 fi
27228 done
27229
27230
27231 for ac_func in chflags
27232 do :
27233   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27234 if test "x$ac_cv_func_chflags" = x""yes; then :
27235   cat >>confdefs.h <<_ACEOF
27236 #define HAVE_CHFLAGS 1
27237 _ACEOF
27238
27239 fi
27240 done
27241
27242
27243 for ac_func in snprintf vsnprintf gethostid fseeko
27244 do :
27245   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27247 eval as_val=\$$as_ac_var
27248    if test "x$as_val" = x""yes; then :
27249   cat >>confdefs.h <<_ACEOF
27250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27251 _ACEOF
27252
27253 fi
27254 done
27255
27256
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27258 $as_echo_n "checking for va_copy... " >&6; }
27259 if test "${ba_cv_va_copy+set}" = set; then :
27260   $as_echo_n "(cached) " >&6
27261 else
27262
27263        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27264 /* end confdefs.h.  */
27265
27266               #include <stdarg.h>
27267               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27268               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27269
27270 int
27271 main ()
27272 {
27273
27274               call_use_va_copy(1,2,3)
27275
27276   ;
27277   return 0;
27278 }
27279 _ACEOF
27280 if ac_fn_c_try_link "$LINENO"; then :
27281
27282               ba_cv_va_copy=yes,
27283
27284 else
27285
27286               ba_cv_va_copy=no
27287
27288
27289 fi
27290 rm -f core conftest.err conftest.$ac_objext \
27291     conftest$ac_exeext conftest.$ac_ext
27292
27293
27294 fi
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27296 $as_echo "$ba_cv_va_copy" >&6; }
27297 test $ba_cv_va_copy = yes &&
27298 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27299
27300
27301 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27302 do :
27303   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27305 eval as_val=\$$as_ac_var
27306    if test "x$as_val" = x""yes; then :
27307   cat >>confdefs.h <<_ACEOF
27308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27309 _ACEOF
27310
27311 fi
27312 done
27313
27314
27315 # If resolver functions are not in libc check for -lnsl or -lresolv.
27316 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27317 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27319 $as_echo "using libc's resolver" >&6; }
27320 else
27321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27322 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27323 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27324   $as_echo_n "(cached) " >&6
27325 else
27326   ac_check_lib_save_LIBS=$LIBS
27327 LIBS="-lnsl  $LIBS"
27328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27329 /* end confdefs.h.  */
27330
27331 /* Override any GCC internal prototype to avoid an error.
27332    Use char because int might match the return type of a GCC
27333    builtin and then its argument prototype would still apply.  */
27334 #ifdef __cplusplus
27335 extern "C"
27336 #endif
27337 char gethostbyname_r ();
27338 int
27339 main ()
27340 {
27341 return gethostbyname_r ();
27342   ;
27343   return 0;
27344 }
27345 _ACEOF
27346 if ac_fn_c_try_link "$LINENO"; then :
27347   ac_cv_lib_nsl_gethostbyname_r=yes
27348 else
27349   ac_cv_lib_nsl_gethostbyname_r=no
27350 fi
27351 rm -f core conftest.err conftest.$ac_objext \
27352     conftest$ac_exeext conftest.$ac_ext
27353 LIBS=$ac_check_lib_save_LIBS
27354 fi
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27356 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27357 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27358   cat >>confdefs.h <<_ACEOF
27359 #define HAVE_LIBNSL 1
27360 _ACEOF
27361
27362   LIBS="-lnsl $LIBS"
27363
27364 fi
27365
27366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27367 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27368 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27369   $as_echo_n "(cached) " >&6
27370 else
27371   ac_check_lib_save_LIBS=$LIBS
27372 LIBS="-lresolv  $LIBS"
27373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h.  */
27375
27376 /* Override any GCC internal prototype to avoid an error.
27377    Use char because int might match the return type of a GCC
27378    builtin and then its argument prototype would still apply.  */
27379 #ifdef __cplusplus
27380 extern "C"
27381 #endif
27382 char gethostbyname_r ();
27383 int
27384 main ()
27385 {
27386 return gethostbyname_r ();
27387   ;
27388   return 0;
27389 }
27390 _ACEOF
27391 if ac_fn_c_try_link "$LINENO"; then :
27392   ac_cv_lib_resolv_gethostbyname_r=yes
27393 else
27394   ac_cv_lib_resolv_gethostbyname_r=no
27395 fi
27396 rm -f core conftest.err conftest.$ac_objext \
27397     conftest$ac_exeext conftest.$ac_ext
27398 LIBS=$ac_check_lib_save_LIBS
27399 fi
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27401 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27402 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27403   cat >>confdefs.h <<_ACEOF
27404 #define HAVE_LIBRESOLV 1
27405 _ACEOF
27406
27407   LIBS="-lresolv $LIBS"
27408
27409 fi
27410
27411 fi
27412
27413
27414 for ac_func in inet_pton
27415 do :
27416   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27417 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27418   cat >>confdefs.h <<_ACEOF
27419 #define HAVE_INET_PTON 1
27420 _ACEOF
27421  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27422
27423 fi
27424 done
27425
27426 for ac_func in inet_ntop
27427 do :
27428   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27429 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27430   cat >>confdefs.h <<_ACEOF
27431 #define HAVE_INET_NTOP 1
27432 _ACEOF
27433  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27434
27435 fi
27436 done
27437
27438 for ac_func in gethostbyname2
27439 do :
27440   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27441 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27442   cat >>confdefs.h <<_ACEOF
27443 #define HAVE_GETHOSTBYNAME2 1
27444 _ACEOF
27445  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27446
27447 fi
27448 done
27449
27450
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27452 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27453 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27454   $as_echo_n "(cached) " >&6
27455 else
27456
27457        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27458 /* end confdefs.h.  */
27459
27460               #include <sys/socket.h>
27461
27462 int
27463 main ()
27464 {
27465
27466               struct sockaddr s; s.sa_len;
27467
27468   ;
27469   return 0;
27470 }
27471 _ACEOF
27472 if ac_fn_c_try_compile "$LINENO"; then :
27473
27474              ac_cv_struct_sockaddr_sa_len=yes
27475
27476 else
27477   ac_cv_struct_sockaddr_sa_len=no
27478
27479
27480 fi
27481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27482
27483
27484 fi
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27486 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27487
27488 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27489
27490 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27491
27492 fi
27493
27494 for ac_func in strftime
27495 do :
27496   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27497 if test "x$ac_cv_func_strftime" = x""yes; then :
27498   cat >>confdefs.h <<_ACEOF
27499 #define HAVE_STRFTIME 1
27500 _ACEOF
27501
27502 else
27503   # strftime is in -lintl on SCO UNIX.
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27505 $as_echo_n "checking for strftime in -lintl... " >&6; }
27506 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27507   $as_echo_n "(cached) " >&6
27508 else
27509   ac_check_lib_save_LIBS=$LIBS
27510 LIBS="-lintl  $LIBS"
27511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27512 /* end confdefs.h.  */
27513
27514 /* Override any GCC internal prototype to avoid an error.
27515    Use char because int might match the return type of a GCC
27516    builtin and then its argument prototype would still apply.  */
27517 #ifdef __cplusplus
27518 extern "C"
27519 #endif
27520 char strftime ();
27521 int
27522 main ()
27523 {
27524 return strftime ();
27525   ;
27526   return 0;
27527 }
27528 _ACEOF
27529 if ac_fn_c_try_link "$LINENO"; then :
27530   ac_cv_lib_intl_strftime=yes
27531 else
27532   ac_cv_lib_intl_strftime=no
27533 fi
27534 rm -f core conftest.err conftest.$ac_objext \
27535     conftest$ac_exeext conftest.$ac_ext
27536 LIBS=$ac_check_lib_save_LIBS
27537 fi
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27539 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27540 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27541   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27542
27543 LIBS="-lintl $LIBS"
27544 fi
27545
27546 fi
27547 done
27548
27549 for ac_func in vprintf
27550 do :
27551   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27552 if test "x$ac_cv_func_vprintf" = x""yes; then :
27553   cat >>confdefs.h <<_ACEOF
27554 #define HAVE_VPRINTF 1
27555 _ACEOF
27556
27557 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27558 if test "x$ac_cv_func__doprnt" = x""yes; then :
27559
27560 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27561
27562 fi
27563
27564 fi
27565 done
27566
27567
27568 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27569 # for constant arguments.  Useless!
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27571 $as_echo_n "checking for working alloca.h... " >&6; }
27572 if test "${ac_cv_working_alloca_h+set}" = set; then :
27573   $as_echo_n "(cached) " >&6
27574 else
27575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27576 /* end confdefs.h.  */
27577 #include <alloca.h>
27578 int
27579 main ()
27580 {
27581 char *p = (char *) alloca (2 * sizeof (int));
27582                           if (p) return 0;
27583   ;
27584   return 0;
27585 }
27586 _ACEOF
27587 if ac_fn_c_try_link "$LINENO"; then :
27588   ac_cv_working_alloca_h=yes
27589 else
27590   ac_cv_working_alloca_h=no
27591 fi
27592 rm -f core conftest.err conftest.$ac_objext \
27593     conftest$ac_exeext conftest.$ac_ext
27594 fi
27595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27596 $as_echo "$ac_cv_working_alloca_h" >&6; }
27597 if test $ac_cv_working_alloca_h = yes; then
27598
27599 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27600
27601 fi
27602
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27604 $as_echo_n "checking for alloca... " >&6; }
27605 if test "${ac_cv_func_alloca_works+set}" = set; then :
27606   $as_echo_n "(cached) " >&6
27607 else
27608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27609 /* end confdefs.h.  */
27610 #ifdef __GNUC__
27611 # define alloca __builtin_alloca
27612 #else
27613 # ifdef _MSC_VER
27614 #  include <malloc.h>
27615 #  define alloca _alloca
27616 # else
27617 #  ifdef HAVE_ALLOCA_H
27618 #   include <alloca.h>
27619 #  else
27620 #   ifdef _AIX
27621  #pragma alloca
27622 #   else
27623 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27624 char *alloca ();
27625 #    endif
27626 #   endif
27627 #  endif
27628 # endif
27629 #endif
27630
27631 int
27632 main ()
27633 {
27634 char *p = (char *) alloca (1);
27635                                     if (p) return 0;
27636   ;
27637   return 0;
27638 }
27639 _ACEOF
27640 if ac_fn_c_try_link "$LINENO"; then :
27641   ac_cv_func_alloca_works=yes
27642 else
27643   ac_cv_func_alloca_works=no
27644 fi
27645 rm -f core conftest.err conftest.$ac_objext \
27646     conftest$ac_exeext conftest.$ac_ext
27647 fi
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27649 $as_echo "$ac_cv_func_alloca_works" >&6; }
27650
27651 if test $ac_cv_func_alloca_works = yes; then
27652
27653 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27654
27655 else
27656   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27657 # that cause trouble.  Some versions do not even contain alloca or
27658 # contain a buggy version.  If you still want to use their alloca,
27659 # use ar to extract alloca.o from them instead of compiling alloca.c.
27660
27661 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27662
27663 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27664
27665
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27667 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27668 if test "${ac_cv_os_cray+set}" = set; then :
27669   $as_echo_n "(cached) " >&6
27670 else
27671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27672 /* end confdefs.h.  */
27673 #if defined CRAY && ! defined CRAY2
27674 webecray
27675 #else
27676 wenotbecray
27677 #endif
27678
27679 _ACEOF
27680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27681   $EGREP "webecray" >/dev/null 2>&1; then :
27682   ac_cv_os_cray=yes
27683 else
27684   ac_cv_os_cray=no
27685 fi
27686 rm -f conftest*
27687
27688 fi
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27690 $as_echo "$ac_cv_os_cray" >&6; }
27691 if test $ac_cv_os_cray = yes; then
27692   for ac_func in _getb67 GETB67 getb67; do
27693     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27695 eval as_val=\$$as_ac_var
27696    if test "x$as_val" = x""yes; then :
27697
27698 cat >>confdefs.h <<_ACEOF
27699 #define CRAY_STACKSEG_END $ac_func
27700 _ACEOF
27701
27702     break
27703 fi
27704
27705   done
27706 fi
27707
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27709 $as_echo_n "checking stack direction for C alloca... " >&6; }
27710 if test "${ac_cv_c_stack_direction+set}" = set; then :
27711   $as_echo_n "(cached) " >&6
27712 else
27713   if test "$cross_compiling" = yes; then :
27714   ac_cv_c_stack_direction=0
27715 else
27716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27717 /* end confdefs.h.  */
27718 $ac_includes_default
27719 int
27720 find_stack_direction ()
27721 {
27722   static char *addr = 0;
27723   auto char dummy;
27724   if (addr == 0)
27725     {
27726       addr = &dummy;
27727       return find_stack_direction ();
27728     }
27729   else
27730     return (&dummy > addr) ? 1 : -1;
27731 }
27732
27733 int
27734 main ()
27735 {
27736   return find_stack_direction () < 0;
27737 }
27738 _ACEOF
27739 if ac_fn_c_try_run "$LINENO"; then :
27740   ac_cv_c_stack_direction=1
27741 else
27742   ac_cv_c_stack_direction=-1
27743 fi
27744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27745   conftest.$ac_objext conftest.beam conftest.$ac_ext
27746 fi
27747
27748 fi
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27750 $as_echo "$ac_cv_c_stack_direction" >&6; }
27751 cat >>confdefs.h <<_ACEOF
27752 #define STACK_DIRECTION $ac_cv_c_stack_direction
27753 _ACEOF
27754
27755
27756 fi
27757
27758 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27759 # -lseq on Dynix/PTX, -lgen on Unixware.
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27761 $as_echo_n "checking for library containing getmntent... " >&6; }
27762 if test "${ac_cv_search_getmntent+set}" = set; then :
27763   $as_echo_n "(cached) " >&6
27764 else
27765   ac_func_search_save_LIBS=$LIBS
27766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27767 /* end confdefs.h.  */
27768
27769 /* Override any GCC internal prototype to avoid an error.
27770    Use char because int might match the return type of a GCC
27771    builtin and then its argument prototype would still apply.  */
27772 #ifdef __cplusplus
27773 extern "C"
27774 #endif
27775 char getmntent ();
27776 int
27777 main ()
27778 {
27779 return getmntent ();
27780   ;
27781   return 0;
27782 }
27783 _ACEOF
27784 for ac_lib in '' sun seq gen; do
27785   if test -z "$ac_lib"; then
27786     ac_res="none required"
27787   else
27788     ac_res=-l$ac_lib
27789     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27790   fi
27791   if ac_fn_c_try_link "$LINENO"; then :
27792   ac_cv_search_getmntent=$ac_res
27793 fi
27794 rm -f core conftest.err conftest.$ac_objext \
27795     conftest$ac_exeext
27796   if test "${ac_cv_search_getmntent+set}" = set; then :
27797   break
27798 fi
27799 done
27800 if test "${ac_cv_search_getmntent+set}" = set; then :
27801
27802 else
27803   ac_cv_search_getmntent=no
27804 fi
27805 rm conftest.$ac_ext
27806 LIBS=$ac_func_search_save_LIBS
27807 fi
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27809 $as_echo "$ac_cv_search_getmntent" >&6; }
27810 ac_res=$ac_cv_search_getmntent
27811 if test "$ac_res" != no; then :
27812   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27813   ac_cv_func_getmntent=yes
27814
27815 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27816
27817 else
27818   ac_cv_func_getmntent=no
27819 fi
27820
27821
27822 for ac_func in getmntinfo
27823 do :
27824   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27825 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
27826   cat >>confdefs.h <<_ACEOF
27827 #define HAVE_GETMNTINFO 1
27828 _ACEOF
27829  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27830
27831 fi
27832 done
27833
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27835 $as_echo_n "checking whether closedir returns void... " >&6; }
27836 if test "${ac_cv_func_closedir_void+set}" = set; then :
27837   $as_echo_n "(cached) " >&6
27838 else
27839   if test "$cross_compiling" = yes; then :
27840   ac_cv_func_closedir_void=yes
27841 else
27842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27843 /* end confdefs.h.  */
27844 $ac_includes_default
27845 #include <$ac_header_dirent>
27846 #ifndef __cplusplus
27847 int closedir ();
27848 #endif
27849
27850 int
27851 main ()
27852 {
27853 return closedir (opendir (".")) != 0;
27854   ;
27855   return 0;
27856 }
27857 _ACEOF
27858 if ac_fn_c_try_run "$LINENO"; then :
27859   ac_cv_func_closedir_void=no
27860 else
27861   ac_cv_func_closedir_void=yes
27862 fi
27863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27864   conftest.$ac_objext conftest.beam conftest.$ac_ext
27865 fi
27866
27867 fi
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27869 $as_echo "$ac_cv_func_closedir_void" >&6; }
27870 if test $ac_cv_func_closedir_void = yes; then
27871
27872 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27873
27874 fi
27875
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27877 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27878 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27879   $as_echo_n "(cached) " >&6
27880 else
27881   if test "$cross_compiling" = yes; then :
27882   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27883 else
27884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27885 /* end confdefs.h.  */
27886 $ac_includes_default
27887 int
27888 main ()
27889 {
27890 /* If this system has a BSD-style setpgrp which takes arguments,
27891   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27892   exit successfully. */
27893   return setpgrp (1,1) != -1;
27894   ;
27895   return 0;
27896 }
27897 _ACEOF
27898 if ac_fn_c_try_run "$LINENO"; then :
27899   ac_cv_func_setpgrp_void=no
27900 else
27901   ac_cv_func_setpgrp_void=yes
27902 fi
27903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27904   conftest.$ac_objext conftest.beam conftest.$ac_ext
27905 fi
27906
27907 fi
27908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27909 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27910 if test $ac_cv_func_setpgrp_void = yes; then
27911
27912 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27913
27914 fi
27915             # AC_FUNC_FNMATCH    dnl use local version
27916
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27918 $as_echo_n "checking for gettext in -lintl... " >&6; }
27919 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27920   $as_echo_n "(cached) " >&6
27921 else
27922   ac_check_lib_save_LIBS=$LIBS
27923 LIBS="-lintl  $LIBS"
27924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27925 /* end confdefs.h.  */
27926
27927 /* Override any GCC internal prototype to avoid an error.
27928    Use char because int might match the return type of a GCC
27929    builtin and then its argument prototype would still apply.  */
27930 #ifdef __cplusplus
27931 extern "C"
27932 #endif
27933 char gettext ();
27934 int
27935 main ()
27936 {
27937 return gettext ();
27938   ;
27939   return 0;
27940 }
27941 _ACEOF
27942 if ac_fn_c_try_link "$LINENO"; then :
27943   ac_cv_lib_intl_gettext=yes
27944 else
27945   ac_cv_lib_intl_gettext=no
27946 fi
27947 rm -f core conftest.err conftest.$ac_objext \
27948     conftest$ac_exeext conftest.$ac_ext
27949 LIBS=$ac_check_lib_save_LIBS
27950 fi
27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27952 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27953 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27954   LIBS="$LIBS -lintl"
27955 fi
27956
27957
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27959 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27960 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27961   $as_echo_n "(cached) " >&6
27962 else
27963   ac_check_lib_save_LIBS=$LIBS
27964 LIBS="-lsun  $LIBS"
27965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27966 /* end confdefs.h.  */
27967
27968 /* Override any GCC internal prototype to avoid an error.
27969    Use char because int might match the return type of a GCC
27970    builtin and then its argument prototype would still apply.  */
27971 #ifdef __cplusplus
27972 extern "C"
27973 #endif
27974 char getpwnam ();
27975 int
27976 main ()
27977 {
27978 return getpwnam ();
27979   ;
27980   return 0;
27981 }
27982 _ACEOF
27983 if ac_fn_c_try_link "$LINENO"; then :
27984   ac_cv_lib_sun_getpwnam=yes
27985 else
27986   ac_cv_lib_sun_getpwnam=no
27987 fi
27988 rm -f core conftest.err conftest.$ac_objext \
27989     conftest$ac_exeext conftest.$ac_ext
27990 LIBS=$ac_check_lib_save_LIBS
27991 fi
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
27993 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
27994 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
27995   cat >>confdefs.h <<_ACEOF
27996 #define HAVE_LIBSUN 1
27997 _ACEOF
27998
27999   LIBS="-lsun $LIBS"
28000
28001 fi
28002
28003
28004 for ac_header in zlib.h
28005 do :
28006   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28007 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28008   cat >>confdefs.h <<_ACEOF
28009 #define HAVE_ZLIB_H 1
28010 _ACEOF
28011
28012 fi
28013
28014 done
28015
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28017 $as_echo_n "checking for deflate in -lz... " >&6; }
28018 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28019   $as_echo_n "(cached) " >&6
28020 else
28021   ac_check_lib_save_LIBS=$LIBS
28022 LIBS="-lz  $LIBS"
28023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28024 /* end confdefs.h.  */
28025
28026 /* Override any GCC internal prototype to avoid an error.
28027    Use char because int might match the return type of a GCC
28028    builtin and then its argument prototype would still apply.  */
28029 #ifdef __cplusplus
28030 extern "C"
28031 #endif
28032 char deflate ();
28033 int
28034 main ()
28035 {
28036 return deflate ();
28037   ;
28038   return 0;
28039 }
28040 _ACEOF
28041 if ac_fn_c_try_link "$LINENO"; then :
28042   ac_cv_lib_z_deflate=yes
28043 else
28044   ac_cv_lib_z_deflate=no
28045 fi
28046 rm -f core conftest.err conftest.$ac_objext \
28047     conftest$ac_exeext conftest.$ac_ext
28048 LIBS=$ac_check_lib_save_LIBS
28049 fi
28050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28051 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28052 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28053   ZLIBS="-lz"
28054 fi
28055
28056 have_zlib=no
28057 if test x$ZLIBS = x-lz; then
28058    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28059
28060    have_zlib=yes
28061 fi
28062
28063
28064 AFS_CFLAGS=""
28065 AFS_LIBS=""
28066 support_afs=auto
28067 # Check whether --enable-afs was given.
28068 if test "${enable_afs+set}" = set; then :
28069   enableval=$enable_afs;
28070        if test x$enableval = xyes; then
28071           support_afs=yes
28072        elif test x$enableval = xno; then
28073           support_afs=no
28074        fi
28075
28076
28077 fi
28078
28079
28080 have_afs=no
28081 if test x$support_afs = xyes -o x$support_afs = xauto; then
28082
28083 # Check whether --with-afsdir was given.
28084 if test "${with_afsdir+set}" = set; then :
28085   withval=$with_afsdir; with_afsdir=$withval
28086
28087 fi
28088
28089
28090             if test x$with_afsdir = x; then
28091       for root in /usr /usr/local; do
28092          if test -d ${root}/include/afs/ ; then
28093             with_afsdir=${root}
28094             break
28095          fi
28096       done
28097    fi
28098
28099    AFS_CFLAGS="-I${with_afsdir}/include"
28100
28101    saved_CFLAGS="${CFLAGS}"
28102    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28103
28104    for ac_header in afs/stds.h
28105 do :
28106   ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28107 if test "x$ac_cv_header_afs_stds_h" = x""yes; then :
28108   cat >>confdefs.h <<_ACEOF
28109 #define HAVE_AFS_STDS_H 1
28110 _ACEOF
28111
28112 fi
28113
28114 done
28115
28116
28117    CFLAGS="${saved_CFLAGS}"
28118
28119             for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28120    do
28121       for arch_type in .a .so
28122       do
28123          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28124          pkg=$?
28125          if test $pkg = 0; then
28126             have_afs=yes
28127             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28128             break
28129          fi
28130       done
28131    done
28132
28133    if test x$support_afs = xyes -a $have_afs != yes; then
28134       as_fn_error "afs support explicitly enabled but no supported afs implementation found,
28135   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28136    else
28137       if test $have_afs = yes; then
28138
28139 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28140
28141
28142 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28143
28144       fi
28145    fi
28146 fi
28147
28148
28149
28150 $as_echo "#define AFS_CFLAGS 1" >>confdefs.h
28151
28152 $as_echo "#define AFS_LIBS 1" >>confdefs.h
28153
28154
28155 support_acl=auto
28156 # Check whether --enable-acl was given.
28157 if test "${enable_acl+set}" = set; then :
28158   enableval=$enable_acl;
28159        if test x$enableval = xyes; then
28160           support_acl=yes
28161        elif test x$enableval = xno; then
28162           support_acl=no
28163        fi
28164
28165
28166 fi
28167
28168
28169 have_acl=no
28170 have_extended_acl=no
28171 if test x$support_acl = xyes -o x$support_acl = xauto; then
28172    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28173 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28174
28175 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28176
28177 fi
28178
28179
28180    ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28181 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28182
28183           have_acl=yes
28184
28185 else
28186
28187           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28188 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28189 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28190   $as_echo_n "(cached) " >&6
28191 else
28192   ac_check_lib_save_LIBS=$LIBS
28193 LIBS="-lacl  $LIBS"
28194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28195 /* end confdefs.h.  */
28196
28197 /* Override any GCC internal prototype to avoid an error.
28198    Use char because int might match the return type of a GCC
28199    builtin and then its argument prototype would still apply.  */
28200 #ifdef __cplusplus
28201 extern "C"
28202 #endif
28203 char acl_get_file ();
28204 int
28205 main ()
28206 {
28207 return acl_get_file ();
28208   ;
28209   return 0;
28210 }
28211 _ACEOF
28212 if ac_fn_c_try_link "$LINENO"; then :
28213   ac_cv_lib_acl_acl_get_file=yes
28214 else
28215   ac_cv_lib_acl_acl_get_file=no
28216 fi
28217 rm -f core conftest.err conftest.$ac_objext \
28218     conftest$ac_exeext conftest.$ac_ext
28219 LIBS=$ac_check_lib_save_LIBS
28220 fi
28221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28222 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28223 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28224
28225                  have_acl=yes;
28226                  if test $have_afs = yes; then
28227                                                                             if test -d /usr/lib64/; then
28228                        FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28229                     else
28230                        FDLIBS="-L/usr/lib -lacl $FDLIBS"
28231                     fi
28232                  else
28233                     FDLIBS="-lacl $FDLIBS"
28234                  fi
28235
28236 else
28237
28238                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28239 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28240 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28241   $as_echo_n "(cached) " >&6
28242 else
28243   ac_check_lib_save_LIBS=$LIBS
28244 LIBS="-lpacl  $LIBS"
28245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28246 /* end confdefs.h.  */
28247
28248 /* Override any GCC internal prototype to avoid an error.
28249    Use char because int might match the return type of a GCC
28250    builtin and then its argument prototype would still apply.  */
28251 #ifdef __cplusplus
28252 extern "C"
28253 #endif
28254 char acl_get_file ();
28255 int
28256 main ()
28257 {
28258 return acl_get_file ();
28259   ;
28260   return 0;
28261 }
28262 _ACEOF
28263 if ac_fn_c_try_link "$LINENO"; then :
28264   ac_cv_lib_pacl_acl_get_file=yes
28265 else
28266   ac_cv_lib_pacl_acl_get_file=no
28267 fi
28268 rm -f core conftest.err conftest.$ac_objext \
28269     conftest$ac_exeext conftest.$ac_ext
28270 LIBS=$ac_check_lib_save_LIBS
28271 fi
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28273 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28274 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28275
28276                         have_acl=yes;
28277                         FDLIBS="-lpacl $FDLIBS"
28278
28279 else
28280
28281                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28282 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28283 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28284   $as_echo_n "(cached) " >&6
28285 else
28286   ac_check_lib_save_LIBS=$LIBS
28287 LIBS="-lsec  $LIBS"
28288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h.  */
28290
28291 /* Override any GCC internal prototype to avoid an error.
28292    Use char because int might match the return type of a GCC
28293    builtin and then its argument prototype would still apply.  */
28294 #ifdef __cplusplus
28295 extern "C"
28296 #endif
28297 char acltotext ();
28298 int
28299 main ()
28300 {
28301 return acltotext ();
28302   ;
28303   return 0;
28304 }
28305 _ACEOF
28306 if ac_fn_c_try_link "$LINENO"; then :
28307   ac_cv_lib_sec_acltotext=yes
28308 else
28309   ac_cv_lib_sec_acltotext=no
28310 fi
28311 rm -f core conftest.err conftest.$ac_objext \
28312     conftest$ac_exeext conftest.$ac_ext
28313 LIBS=$ac_check_lib_save_LIBS
28314 fi
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28316 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28317 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28318
28319                                have_acl=yes;
28320                                FDLIBS="-lsec $FDLIBS"
28321
28322                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28323 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28324 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28325   $as_echo_n "(cached) " >&6
28326 else
28327   ac_check_lib_save_LIBS=$LIBS
28328 LIBS="-lsec  $LIBS"
28329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28330 /* end confdefs.h.  */
28331
28332 /* Override any GCC internal prototype to avoid an error.
28333    Use char because int might match the return type of a GCC
28334    builtin and then its argument prototype would still apply.  */
28335 #ifdef __cplusplus
28336 extern "C"
28337 #endif
28338 char acl_totext ();
28339 int
28340 main ()
28341 {
28342 return acl_totext ();
28343   ;
28344   return 0;
28345 }
28346 _ACEOF
28347 if ac_fn_c_try_link "$LINENO"; then :
28348   ac_cv_lib_sec_acl_totext=yes
28349 else
28350   ac_cv_lib_sec_acl_totext=no
28351 fi
28352 rm -f core conftest.err conftest.$ac_objext \
28353     conftest$ac_exeext conftest.$ac_ext
28354 LIBS=$ac_check_lib_save_LIBS
28355 fi
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28357 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28358 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28359
28360                                       have_extended_acl=yes
28361
28362
28363 fi
28364
28365
28366
28367 fi
28368
28369
28370
28371 fi
28372
28373
28374
28375 fi
28376
28377
28378
28379 fi
28380
28381
28382    if test x$support_acl = xyes -a $have_acl != yes; then
28383       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28384   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28385    else
28386       if test $have_acl = yes; then
28387
28388 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28389
28390       fi
28391
28392       if test $have_extended_acl = yes; then
28393
28394 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28395
28396       fi
28397    fi
28398 fi
28399
28400 support_xattr=auto
28401 # Check whether --enable-xattr was given.
28402 if test "${enable_xattr+set}" = set; then :
28403   enableval=$enable_xattr;
28404        if test x$enableval = xyes; then
28405           support_xattr=yes
28406        elif test x$enableval = xno; then
28407           support_xattr=no
28408        fi
28409
28410
28411 fi
28412
28413
28414 have_xattr=no
28415 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28416             ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28417 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28418
28419 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28420
28421 fi
28422
28423
28424    ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28425 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28426
28427 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28428
28429 fi
28430
28431
28432    for ac_func in extattr_get_link extattr_set_link extattr_list_link
28433 do :
28434   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28435 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28436 eval as_val=\$$as_ac_var
28437    if test "x$as_val" = x""yes; then :
28438   cat >>confdefs.h <<_ACEOF
28439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28440 _ACEOF
28441
28442           have_xattr=yes
28443
28444 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28445
28446
28447 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28448
28449
28450 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28451
28452
28453
28454 fi
28455 done
28456
28457
28458    if test $have_xattr = no; then
28459       for ac_func in extattr_get_file extattr_set_file extattr_list_file
28460 do :
28461   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28462 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28463 eval as_val=\$$as_ac_var
28464    if test "x$as_val" = x""yes; then :
28465   cat >>confdefs.h <<_ACEOF
28466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28467 _ACEOF
28468
28469              have_xattr=yes
28470
28471 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28472
28473
28474 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28475
28476
28477 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28478
28479
28480
28481 fi
28482 done
28483
28484    fi
28485
28486    if test $have_xattr = yes; then
28487       have_extattr_string_in_libc=no
28488       for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28489 do :
28490   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28491 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28492 eval as_val=\$$as_ac_var
28493    if test "x$as_val" = x""yes; then :
28494   cat >>confdefs.h <<_ACEOF
28495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28496 _ACEOF
28497
28498              have_extattr_string_in_libc=yes
28499
28500 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28501
28502
28503 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28504
28505
28506
28507 fi
28508 done
28509
28510
28511                         if test $have_extattr_string_in_libc = no; then
28512          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28513 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28514 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28515   $as_echo_n "(cached) " >&6
28516 else
28517   ac_check_lib_save_LIBS=$LIBS
28518 LIBS="-lutil  $LIBS"
28519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28520 /* end confdefs.h.  */
28521
28522 /* Override any GCC internal prototype to avoid an error.
28523    Use char because int might match the return type of a GCC
28524    builtin and then its argument prototype would still apply.  */
28525 #ifdef __cplusplus
28526 extern "C"
28527 #endif
28528 char extattr_namespace_to_string extattr_string_to_namespace ();
28529 int
28530 main ()
28531 {
28532 return extattr_namespace_to_string extattr_string_to_namespace ();
28533   ;
28534   return 0;
28535 }
28536 _ACEOF
28537 if ac_fn_c_try_link "$LINENO"; then :
28538   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28539 else
28540   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28541 fi
28542 rm -f core conftest.err conftest.$ac_objext \
28543     conftest$ac_exeext conftest.$ac_ext
28544 LIBS=$ac_check_lib_save_LIBS
28545 fi
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28547 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28548 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28549
28550
28551 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28552
28553
28554 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28555
28556                 FDLIBS="-lutil $FDLIBS"
28557
28558
28559 fi
28560
28561       fi
28562    fi
28563
28564             if test $have_xattr = no; then
28565       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28566 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28567
28568 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28569
28570 fi
28571
28572
28573       for ac_func in llistxattr lgetxattr lsetxattr
28574 do :
28575   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28577 eval as_val=\$$as_ac_var
28578    if test "x$as_val" = x""yes; then :
28579   cat >>confdefs.h <<_ACEOF
28580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28581 _ACEOF
28582
28583              have_xattr=yes
28584
28585 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28586
28587
28588 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28589
28590
28591 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28592
28593
28594
28595 fi
28596 done
28597
28598
28599       if test $have_xattr = no; then
28600          for ac_func in listxattr getxattr setxattr
28601 do :
28602   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28603 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28604 eval as_val=\$$as_ac_var
28605    if test "x$as_val" = x""yes; then :
28606   cat >>confdefs.h <<_ACEOF
28607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28608 _ACEOF
28609
28610                 have_xattr=yes
28611
28612 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28613
28614
28615 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28616
28617
28618 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28619
28620
28621
28622 fi
28623 done
28624
28625       fi
28626    fi
28627
28628             if test $have_xattr = no; then
28629       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28630 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28631
28632 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28633
28634 fi
28635
28636
28637       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28638 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28639
28640 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28641
28642 fi
28643
28644
28645       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28646 if test "x$ac_cv_header_attr_h" = x""yes; then :
28647
28648 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28649
28650 fi
28651
28652
28653
28654       for ac_func in openat fstatat unlinkat fchownat futimesat
28655 do :
28656   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28658 eval as_val=\$$as_ac_var
28659    if test "x$as_val" = x""yes; then :
28660   cat >>confdefs.h <<_ACEOF
28661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28662 _ACEOF
28663
28664              have_xattr=yes
28665
28666 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28667
28668
28669 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28670
28671
28672 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28673
28674
28675 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28676
28677
28678 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28679
28680
28681
28682 fi
28683 done
28684
28685
28686       if test $have_xattr = yes; then
28687          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28688 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28689 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28690   $as_echo_n "(cached) " >&6
28691 else
28692   ac_check_lib_save_LIBS=$LIBS
28693 LIBS="-lnvpair  $LIBS"
28694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28695 /* end confdefs.h.  */
28696
28697 /* Override any GCC internal prototype to avoid an error.
28698    Use char because int might match the return type of a GCC
28699    builtin and then its argument prototype would still apply.  */
28700 #ifdef __cplusplus
28701 extern "C"
28702 #endif
28703 char nvlist_next_nvpair ();
28704 int
28705 main ()
28706 {
28707 return nvlist_next_nvpair ();
28708   ;
28709   return 0;
28710 }
28711 _ACEOF
28712 if ac_fn_c_try_link "$LINENO"; then :
28713   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28714 else
28715   ac_cv_lib_nvpair_nvlist_next_nvpair=no
28716 fi
28717 rm -f core conftest.err conftest.$ac_objext \
28718     conftest$ac_exeext conftest.$ac_ext
28719 LIBS=$ac_check_lib_save_LIBS
28720 fi
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28722 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28723 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28724
28725
28726 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28727
28728                 FDLIBS="-lnvpair $FDLIBS"
28729
28730
28731 fi
28732
28733       fi
28734    fi
28735
28736    if test x$support_xattr = xyes -a $have_xattr != yes; then
28737       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28738   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28739    else
28740       if test $have_xattr = yes; then
28741
28742 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28743
28744       fi
28745    fi
28746 fi
28747
28748 PTHREAD_LIB=""
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28750 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28751 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28752   $as_echo_n "(cached) " >&6
28753 else
28754   ac_check_lib_save_LIBS=$LIBS
28755 LIBS="-lpthread  $LIBS"
28756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28757 /* end confdefs.h.  */
28758
28759 /* Override any GCC internal prototype to avoid an error.
28760    Use char because int might match the return type of a GCC
28761    builtin and then its argument prototype would still apply.  */
28762 #ifdef __cplusplus
28763 extern "C"
28764 #endif
28765 char pthread_create ();
28766 int
28767 main ()
28768 {
28769 return pthread_create ();
28770   ;
28771   return 0;
28772 }
28773 _ACEOF
28774 if ac_fn_c_try_link "$LINENO"; then :
28775   ac_cv_lib_pthread_pthread_create=yes
28776 else
28777   ac_cv_lib_pthread_pthread_create=no
28778 fi
28779 rm -f core conftest.err conftest.$ac_objext \
28780     conftest$ac_exeext conftest.$ac_ext
28781 LIBS=$ac_check_lib_save_LIBS
28782 fi
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28784 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28785 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28786   PTHREAD_LIB="-lpthread"
28787 else
28788
28789        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28790 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28791 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28792   $as_echo_n "(cached) " >&6
28793 else
28794   ac_check_lib_save_LIBS=$LIBS
28795 LIBS="-lpthreads  $LIBS"
28796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28797 /* end confdefs.h.  */
28798
28799 /* Override any GCC internal prototype to avoid an error.
28800    Use char because int might match the return type of a GCC
28801    builtin and then its argument prototype would still apply.  */
28802 #ifdef __cplusplus
28803 extern "C"
28804 #endif
28805 char pthread_create ();
28806 int
28807 main ()
28808 {
28809 return pthread_create ();
28810   ;
28811   return 0;
28812 }
28813 _ACEOF
28814 if ac_fn_c_try_link "$LINENO"; then :
28815   ac_cv_lib_pthreads_pthread_create=yes
28816 else
28817   ac_cv_lib_pthreads_pthread_create=no
28818 fi
28819 rm -f core conftest.err conftest.$ac_objext \
28820     conftest$ac_exeext conftest.$ac_ext
28821 LIBS=$ac_check_lib_save_LIBS
28822 fi
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28824 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28825 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28826   PTHREAD_LIB="-lpthreads"
28827 else
28828
28829               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28830 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28831 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28832   $as_echo_n "(cached) " >&6
28833 else
28834   ac_check_lib_save_LIBS=$LIBS
28835 LIBS="-lc_r  $LIBS"
28836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28837 /* end confdefs.h.  */
28838
28839 /* Override any GCC internal prototype to avoid an error.
28840    Use char because int might match the return type of a GCC
28841    builtin and then its argument prototype would still apply.  */
28842 #ifdef __cplusplus
28843 extern "C"
28844 #endif
28845 char pthread_create ();
28846 int
28847 main ()
28848 {
28849 return pthread_create ();
28850   ;
28851   return 0;
28852 }
28853 _ACEOF
28854 if ac_fn_c_try_link "$LINENO"; then :
28855   ac_cv_lib_c_r_pthread_create=yes
28856 else
28857   ac_cv_lib_c_r_pthread_create=no
28858 fi
28859 rm -f core conftest.err conftest.$ac_objext \
28860     conftest$ac_exeext conftest.$ac_ext
28861 LIBS=$ac_check_lib_save_LIBS
28862 fi
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28864 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28865 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28866   PTHREAD_LIB="-lc_r"
28867 else
28868
28869                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28870 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28871
28872 fi
28873
28874
28875
28876 fi
28877
28878
28879
28880 fi
28881
28882
28883
28884 fi
28885
28886
28887 for ac_header in sys/prctl.h sys/capability.h
28888 do :
28889   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28890 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28891 eval as_val=\$$as_ac_Header
28892    if test "x$as_val" = x""yes; then :
28893   cat >>confdefs.h <<_ACEOF
28894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28895 _ACEOF
28896
28897 fi
28898
28899 done
28900
28901 for ac_func in prctl setreuid
28902 do :
28903   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28905 eval as_val=\$$as_ac_var
28906    if test "x$as_val" = x""yes; then :
28907   cat >>confdefs.h <<_ACEOF
28908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28909 _ACEOF
28910
28911 fi
28912 done
28913
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28915 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28916 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28917   $as_echo_n "(cached) " >&6
28918 else
28919   ac_check_lib_save_LIBS=$LIBS
28920 LIBS="-lcap  $LIBS"
28921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28922 /* end confdefs.h.  */
28923
28924 /* Override any GCC internal prototype to avoid an error.
28925    Use char because int might match the return type of a GCC
28926    builtin and then its argument prototype would still apply.  */
28927 #ifdef __cplusplus
28928 extern "C"
28929 #endif
28930 char cap_set_proc ();
28931 int
28932 main ()
28933 {
28934 return cap_set_proc ();
28935   ;
28936   return 0;
28937 }
28938 _ACEOF
28939 if ac_fn_c_try_link "$LINENO"; then :
28940   ac_cv_lib_cap_cap_set_proc=yes
28941 else
28942   ac_cv_lib_cap_cap_set_proc=no
28943 fi
28944 rm -f core conftest.err conftest.$ac_objext \
28945     conftest$ac_exeext conftest.$ac_ext
28946 LIBS=$ac_check_lib_save_LIBS
28947 fi
28948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28949 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28950 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28951   CAP_LIBS="-lcap"
28952 else
28953   CAP_LIBS=
28954 fi
28955
28956 if test x$CAP_LIBS = x-lcap; then
28957
28958 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28959
28960 fi
28961
28962
28963
28964 $as_echo "#define FDLIBS 1" >>confdefs.h
28965
28966
28967 CFLAGS=${CFLAGS--O}
28968
28969 if test x$have_gcc = xyes ; then
28970    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28971    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28972 fi
28973 LDFLAGS=${LDFLAGS--O}
28974 DB_LIBS="${SQL_LFLAGS}"
28975 CPPFLAGS="$CPPFLAGS"
28976 CFLAGS="$CFLAGS"
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993 OBJLIST=
28994
28995
28996 lld="lld"
28997 llu="llu"
28998
28999 WCFLAGS=
29000 WLDFLAGS=
29001
29002 PFILES="platforms/Makefile"
29003 PSCMD="ps -e"
29004 WIN32=
29005 MACOSX=
29006
29007 hostname=`uname -n | cut -d '.' -f 1`
29008 if test x${hostname} = x ; then
29009    hostname="localhost"
29010 fi
29011 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29012 if test ! $? = 0; then
29013   hostname="localhost"
29014 fi
29015
29016 case "$DISTNAME" in
29017 aix)
29018    DISTVER=`uname -r`
29019    PSCMD="ps -e -o pid,comm"
29020    PFILES="${PFILES} \
29021       platforms/aix/Makefile"
29022    TAPEDRIVE="/dev/rmt0.1"
29023   ;;
29024 alpha)
29025    DISTVER=`uname -r`
29026    PTHREAD_LIB="-lpthread -lexc"
29027    if test "${CC}" = "gcc" ; then
29028       lld="lld"
29029       llu="llu"
29030    else
29031       lld="ld"
29032       llu="lu"
29033    fi
29034    TAPEDRIVE="/dev/nrmt0"
29035   ;;
29036 bsdi)
29037    DISTVER=`uname -a |awk '{print $3}'`
29038    TAPEDRIVE="/dev/nrmt0"
29039    PTHREAD_LIB="-pthread"
29040    CFLAGS="${CFLAGS} -pthread"
29041    PSCMD="ps -ax -o pid,command"
29042    lld="qd"
29043    llu="qu"
29044    PFILES="${PFILES} \
29045        platforms/bsdi/Makefile \
29046        platforms/bsdi/bacula-fd \
29047        platforms/bsdi/bacula-sd \
29048        platforms/bsdi/bacula-dir"
29049    largefile_support="yes"
29050   ;;
29051 cygwin)
29052    DISTVER=`uname -a |awk '{print $3}'`
29053    TAPEDRIVE="/dev/nrst0"
29054    WIN32=win32
29055    WCFLAGS="-mwindows"
29056    WLDFLAGS="-mwindows"
29057   ;;
29058 darwin)
29059    DISTVER=`uname -r`
29060    TAPEDRIVE="/dev/nst0"
29061    PSCMD="ps -e -o pid,command"
29062    MACOSX=macosx
29063    PFILES="${PFILES} \
29064       platforms/darwin/Makefile"
29065   ;;
29066 osx)
29067    DISTVER=`uname -r`
29068    TAPEDRIVE="/dev/nst0"
29069    PSCMD="ps -e -o pid,command"
29070    MACOSX=macosx
29071    PFILES="${PFILES} \
29072       platforms/osx/Makefile"
29073   ;;
29074 debian)
29075    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29076       DISTNAME="ubuntu"
29077    fi
29078    DISTVER=`cat /etc/debian_version`
29079    if test -f /etc/lsb-release ; then
29080       . /etc/lsb-release
29081       if test "x$DISTRIB_ID" != "x" ; then
29082          DISTNAME=$DISTRIB_ID
29083       fi
29084       if test "x$DISTRIB_RELEASE" != "x" ; then
29085          DISTVER=$DISTRIB_RELEASE
29086       fi
29087    fi
29088    if test "$DISTNAME" = "Ubuntu" ; then
29089       DISTNAME="ubuntu"
29090    fi
29091    TAPEDRIVE="/dev/nst0"
29092    PSCMD="ps -e -o pid,command"
29093    if test "$DISTNAME" = "ubuntu" ; then
29094       PFILES="${PFILES} \
29095          platforms/ubuntu/Makefile \
29096          platforms/ubuntu/bacula-fd \
29097          platforms/ubuntu/bacula-sd \
29098          platforms/ubuntu/bacula-dir"
29099    else
29100       PFILES="${PFILES} \
29101          platforms/debian/Makefile \
29102          platforms/debian/bacula-fd \
29103          platforms/debian/bacula-sd \
29104          platforms/debian/bacula-dir"
29105    fi
29106   ;;
29107 freebsd)
29108    DISTVER=`uname -a |awk '{print $3}'`
29109    VER=`echo $DISTVER | cut -c 1`
29110    if test x$VER = x4 ; then
29111       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29112       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29113    fi
29114    lld="qd"
29115    llu="qu"
29116    TAPEDRIVE="/dev/nrsa0"
29117    PSCMD="ps -ax -o pid,command"
29118    PFILES="${PFILES} \
29119        platforms/freebsd/Makefile \
29120        platforms/freebsd/bacula-fd \
29121        platforms/freebsd/bacula-sd \
29122        platforms/freebsd/bacula-dir"
29123    largefile_support="yes"
29124   ;;
29125 hpux)
29126    PSCMD="UNIX95=1; ps -e -o pid,comm"
29127    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29128    DISTVER=`uname -r`
29129    TAPEDRIVE="/dev/rmt/0hnb"
29130    PTHREAD_LIB="-lpthread"
29131    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29132
29133   ;;
29134 irix)
29135    DISTVER=`uname -r`
29136    TAPEDRIVE="/dev/rmt/0cbn"
29137    PSCMD="ps -e -o pid,comm"
29138    PFILES="${PFILES} \
29139        platforms/irix/Makefile \
29140        platforms/irix/bacula-fd \
29141        platforms/irix/bacula-sd \
29142        platforms/irix/bacula-dir"
29143   ;;
29144 netbsd)
29145    DISTVER=`uname -a |awk '{print $3}'`
29146    lld="qd"
29147    llu="qu"
29148    TAPEDRIVE="/dev/nrst0"
29149    PSCMD="ps -ax -o pid,command"
29150    PTHREAD_LIB="-pthread"
29151    CFLAGS="${CFLAGS} -pthread"
29152   ;;
29153 openbsd)
29154    DISTVER=`uname -a |awk '{print $3}'`
29155    lld="qd"
29156    llu="qu"
29157    TAPEDRIVE="/dev/nrst0"
29158    PSCMD="ps -ax -o pid,command"
29159    PTHREAD_LIB="-pthread"
29160    CFLAGS="${CFLAGS} -pthread"
29161    PFILES="${PFILES} \
29162        platforms/openbsd/Makefile \
29163        platforms/openbsd/bacula-fd \
29164        platforms/openbsd/bacula-sd \
29165        platforms/openbsd/bacula-dir"
29166   ;;
29167 redhat)
29168    if test -f /etc/whitebox-release ; then
29169       f=/etc/whitebox-release
29170    else
29171       f=/etc/redhat-release
29172    fi
29173    if test `cat $f | grep release |\
29174          cut -f 3 -d ' '`x = "Enterprise"x ; then
29175       DISTVER="Enterprise "`cat $f | grep release |\
29176           cut -f 6 -d ' '`
29177    else
29178        DISTVER=`cat /etc/redhat-release | grep release |\
29179            cut -f 5 -d ' '`
29180    fi
29181    TAPEDRIVE="/dev/nst0"
29182    PSCMD="ps -e -o pid,command"
29183    PFILES="${PFILES} \
29184        platforms/redhat/Makefile \
29185        platforms/redhat/bacula-fd \
29186        platforms/redhat/bacula-sd \
29187        platforms/redhat/bacula-dir
29188        "
29189   ;;
29190 mandrake)
29191    DISTVER=`cat /etc/mandrake-release | grep release |\
29192       cut -f 5 -d ' '`
29193    TAPEDRIVE="/dev/nst0"
29194    PSCMD="ps -e -o pid,command"
29195    PFILES="${PFILES} \
29196        platforms/mandrake/Makefile \
29197        platforms/mandrake/bacula-fd \
29198        platforms/mandrake/bacula-sd \
29199        platforms/mandrake/bacula-dir \
29200        "
29201   ;;
29202 gentoo)
29203    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29204    TAPEDRIVE="/dev/nst0"
29205    PSCMD="ps -e -o pid,command"
29206    PFILES="${PFILES} \
29207        platforms/gentoo/Makefile \
29208     platforms/gentoo/bacula-init \
29209        platforms/gentoo/bacula-fd \
29210        platforms/gentoo/bacula-sd \
29211        platforms/gentoo/bacula-dir"
29212   ;;
29213 slackware)
29214    DISTVER=`cat /etc/slackware-version`
29215    TAPEDRIVE="/dev/nst0"
29216    PSCMD="ps -e -o pid,command"
29217    PFILES="${PFILES} \
29218        platforms/slackware/Makefile \
29219        platforms/slackware/rc.bacula-fd \
29220        platforms/slackware/rc.bacula-sd \
29221        platforms/slackware/rc.bacula-dir\
29222        platforms/slackware/functions.bacula"
29223   ;;
29224 solaris)
29225    DISTVER=`uname -r`
29226    TAPEDRIVE="/dev/rmt/0cbn"
29227    PSCMD="ps -e -o pid,comm"
29228    PFILES="${PFILES} \
29229        platforms/solaris/Makefile \
29230        platforms/solaris/bacula-fd \
29231        platforms/solaris/bacula-sd \
29232        platforms/solaris/bacula-dir"
29233    if test x$DISTVER = x5.6 ; then
29234        $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29235
29236    fi
29237    LIBS="$LIBS -lresolv -lrt"
29238   ;;
29239 suse)
29240    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29241        cut -f 3 -d ' '`
29242    TAPEDRIVE="/dev/nst0"
29243    PSCMD="ps -e -o pid,command"
29244    PFILES="${PFILES} \
29245        platforms/suse/Makefile \
29246        platforms/suse/bacula-fd \
29247        platforms/suse/bacula-sd \
29248        platforms/suse/bacula-dir \
29249        platforms/suse/bacula"
29250   ;;
29251 suse5)
29252    DISTNAME=suse
29253    DISTVER=5.x
29254    TAPEDRIVE="/dev/nst0"
29255    PSCMD="ps -e -o pid,command"
29256    PFILES="${PFILES} \
29257        platforms/suse/Makefile \
29258        platforms/suse/bacula-fd \
29259        platforms/suse/bacula-sd \
29260        platforms/suse/bacula-dir"
29261   ;;
29262 unknown)
29263    DISTVER=unknown
29264    TAPEDRIVE="/dev/nst0"
29265   ;;
29266 *)
29267   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29268   ;;
29269 esac
29270
29271
29272
29273 LIBS="$PTHREAD_LIB $LIBS"
29274
29275 cat >>confdefs.h <<_ACEOF
29276 #define lld "$lld"
29277 _ACEOF
29278
29279 cat >>confdefs.h <<_ACEOF
29280 #define llu "$llu"
29281 _ACEOF
29282
29283
29284
29285
29286
29287
29288
29289
29290 MCOMMON=./autoconf/Make.common
29291
29292
29293 if test "x${subsysdir}" = "x${sbindir}" ; then
29294    echo " "
29295    echo " "
29296    echo "You have set both --sbindir and --with-subsys-dir"
29297    echo "  equal to: ${subsysdir} "
29298    echo "This is not permitted. Please reconfigure."
29299    echo " "
29300    echo "Aborting configuration ..."
29301    echo " "
29302    echo " "
29303    exit 1
29304 fi
29305
29306 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
29307
29308 ac_config_commands="$ac_config_commands default"
29309
29310 cat >confcache <<\_ACEOF
29311 # This file is a shell script that caches the results of configure
29312 # tests run on this system so they can be shared between configure
29313 # scripts and configure runs, see configure's option --config-cache.
29314 # It is not useful on other systems.  If it contains results you don't
29315 # want to keep, you may remove or edit it.
29316 #
29317 # config.status only pays attention to the cache file if you give it
29318 # the --recheck option to rerun configure.
29319 #
29320 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29321 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29322 # following values.
29323
29324 _ACEOF
29325
29326 # The following way of writing the cache mishandles newlines in values,
29327 # but we know of no workaround that is simple, portable, and efficient.
29328 # So, we kill variables containing newlines.
29329 # Ultrix sh set writes to stderr and can't be redirected directly,
29330 # and sets the high bit in the cache file unless we assign to the vars.
29331 (
29332   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29333     eval ac_val=\$$ac_var
29334     case $ac_val in #(
29335     *${as_nl}*)
29336       case $ac_var in #(
29337       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29338 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29339       esac
29340       case $ac_var in #(
29341       _ | IFS | as_nl) ;; #(
29342       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29343       *) { eval $ac_var=; unset $ac_var;} ;;
29344       esac ;;
29345     esac
29346   done
29347
29348   (set) 2>&1 |
29349     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29350     *${as_nl}ac_space=\ *)
29351       # `set' does not quote correctly, so add quotes: double-quote
29352       # substitution turns \\\\ into \\, and sed turns \\ into \.
29353       sed -n \
29354         "s/'/'\\\\''/g;
29355           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29356       ;; #(
29357     *)
29358       # `set' quotes correctly as required by POSIX, so do not add quotes.
29359       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29360       ;;
29361     esac |
29362     sort
29363 ) |
29364   sed '
29365      /^ac_cv_env_/b end
29366      t clear
29367      :clear
29368      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29369      t end
29370      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29371      :end' >>confcache
29372 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29373   if test -w "$cache_file"; then
29374     test "x$cache_file" != "x/dev/null" &&
29375       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29376 $as_echo "$as_me: updating cache $cache_file" >&6;}
29377     cat confcache >$cache_file
29378   else
29379     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29380 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29381   fi
29382 fi
29383 rm -f confcache
29384
29385 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29386 # Let make expand exec_prefix.
29387 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29388
29389 DEFS=-DHAVE_CONFIG_H
29390
29391 ac_libobjs=
29392 ac_ltlibobjs=
29393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29394   # 1. Remove the extension, and $U if already installed.
29395   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29396   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29397   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29398   #    will be set to the directory where LIBOBJS objects are built.
29399   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29400   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29401 done
29402 LIBOBJS=$ac_libobjs
29403
29404 LTLIBOBJS=$ac_ltlibobjs
29405
29406
29407
29408 : ${CONFIG_STATUS=./config.status}
29409 ac_write_fail=0
29410 ac_clean_files_save=$ac_clean_files
29411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29414 as_write_fail=0
29415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29416 #! $SHELL
29417 # Generated by $as_me.
29418 # Run this file to recreate the current configuration.
29419 # Compiler output produced by configure, useful for debugging
29420 # configure, is in config.log if it exists.
29421
29422 debug=false
29423 ac_cs_recheck=false
29424 ac_cs_silent=false
29425
29426 SHELL=\${CONFIG_SHELL-$SHELL}
29427 export SHELL
29428 _ASEOF
29429 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29430 ## -------------------- ##
29431 ## M4sh Initialization. ##
29432 ## -------------------- ##
29433
29434 # Be more Bourne compatible
29435 DUALCASE=1; export DUALCASE # for MKS sh
29436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29437   emulate sh
29438   NULLCMD=:
29439   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29440   # is contrary to our usage.  Disable this feature.
29441   alias -g '${1+"$@"}'='"$@"'
29442   setopt NO_GLOB_SUBST
29443 else
29444   case `(set -o) 2>/dev/null` in #(
29445   *posix*) :
29446     set -o posix ;; #(
29447   *) :
29448      ;;
29449 esac
29450 fi
29451
29452
29453 as_nl='
29454 '
29455 export as_nl
29456 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29457 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29460 # Prefer a ksh shell builtin over an external printf program on Solaris,
29461 # but without wasting forks for bash or zsh.
29462 if test -z "$BASH_VERSION$ZSH_VERSION" \
29463     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29464   as_echo='print -r --'
29465   as_echo_n='print -rn --'
29466 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29467   as_echo='printf %s\n'
29468   as_echo_n='printf %s'
29469 else
29470   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29471     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29472     as_echo_n='/usr/ucb/echo -n'
29473   else
29474     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29475     as_echo_n_body='eval
29476       arg=$1;
29477       case $arg in #(
29478       *"$as_nl"*)
29479         expr "X$arg" : "X\\(.*\\)$as_nl";
29480         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29481       esac;
29482       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29483     '
29484     export as_echo_n_body
29485     as_echo_n='sh -c $as_echo_n_body as_echo'
29486   fi
29487   export as_echo_body
29488   as_echo='sh -c $as_echo_body as_echo'
29489 fi
29490
29491 # The user is always right.
29492 if test "${PATH_SEPARATOR+set}" != set; then
29493   PATH_SEPARATOR=:
29494   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29495     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29496       PATH_SEPARATOR=';'
29497   }
29498 fi
29499
29500
29501 # IFS
29502 # We need space, tab and new line, in precisely that order.  Quoting is
29503 # there to prevent editors from complaining about space-tab.
29504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29505 # splitting by setting IFS to empty value.)
29506 IFS=" ""        $as_nl"
29507
29508 # Find who we are.  Look in the path if we contain no directory separator.
29509 case $0 in #((
29510   *[\\/]* ) as_myself=$0 ;;
29511   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29512 for as_dir in $PATH
29513 do
29514   IFS=$as_save_IFS
29515   test -z "$as_dir" && as_dir=.
29516     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29517   done
29518 IFS=$as_save_IFS
29519
29520      ;;
29521 esac
29522 # We did not find ourselves, most probably we were run as `sh COMMAND'
29523 # in which case we are not to be found in the path.
29524 if test "x$as_myself" = x; then
29525   as_myself=$0
29526 fi
29527 if test ! -f "$as_myself"; then
29528   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29529   exit 1
29530 fi
29531
29532 # Unset variables that we do not need and which cause bugs (e.g. in
29533 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29534 # suppresses any "Segmentation fault" message there.  '((' could
29535 # trigger a bug in pdksh 5.2.14.
29536 for as_var in BASH_ENV ENV MAIL MAILPATH
29537 do eval test x\${$as_var+set} = xset \
29538   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29539 done
29540 PS1='$ '
29541 PS2='> '
29542 PS4='+ '
29543
29544 # NLS nuisances.
29545 LC_ALL=C
29546 export LC_ALL
29547 LANGUAGE=C
29548 export LANGUAGE
29549
29550 # CDPATH.
29551 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29552
29553
29554 # as_fn_error ERROR [LINENO LOG_FD]
29555 # ---------------------------------
29556 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29557 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29558 # script with status $?, using 1 if that was 0.
29559 as_fn_error ()
29560 {
29561   as_status=$?; test $as_status -eq 0 && as_status=1
29562   if test "$3"; then
29563     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29564     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29565   fi
29566   $as_echo "$as_me: error: $1" >&2
29567   as_fn_exit $as_status
29568 } # as_fn_error
29569
29570
29571 # as_fn_set_status STATUS
29572 # -----------------------
29573 # Set $? to STATUS, without forking.
29574 as_fn_set_status ()
29575 {
29576   return $1
29577 } # as_fn_set_status
29578
29579 # as_fn_exit STATUS
29580 # -----------------
29581 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29582 as_fn_exit ()
29583 {
29584   set +e
29585   as_fn_set_status $1
29586   exit $1
29587 } # as_fn_exit
29588
29589 # as_fn_unset VAR
29590 # ---------------
29591 # Portably unset VAR.
29592 as_fn_unset ()
29593 {
29594   { eval $1=; unset $1;}
29595 }
29596 as_unset=as_fn_unset
29597 # as_fn_append VAR VALUE
29598 # ----------------------
29599 # Append the text in VALUE to the end of the definition contained in VAR. Take
29600 # advantage of any shell optimizations that allow amortized linear growth over
29601 # repeated appends, instead of the typical quadratic growth present in naive
29602 # implementations.
29603 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29604   eval 'as_fn_append ()
29605   {
29606     eval $1+=\$2
29607   }'
29608 else
29609   as_fn_append ()
29610   {
29611     eval $1=\$$1\$2
29612   }
29613 fi # as_fn_append
29614
29615 # as_fn_arith ARG...
29616 # ------------------
29617 # Perform arithmetic evaluation on the ARGs, and store the result in the
29618 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29619 # must be portable across $(()) and expr.
29620 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29621   eval 'as_fn_arith ()
29622   {
29623     as_val=$(( $* ))
29624   }'
29625 else
29626   as_fn_arith ()
29627   {
29628     as_val=`expr "$@" || test $? -eq 1`
29629   }
29630 fi # as_fn_arith
29631
29632
29633 if expr a : '\(a\)' >/dev/null 2>&1 &&
29634    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29635   as_expr=expr
29636 else
29637   as_expr=false
29638 fi
29639
29640 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29641   as_basename=basename
29642 else
29643   as_basename=false
29644 fi
29645
29646 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29647   as_dirname=dirname
29648 else
29649   as_dirname=false
29650 fi
29651
29652 as_me=`$as_basename -- "$0" ||
29653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29654          X"$0" : 'X\(//\)$' \| \
29655          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29656 $as_echo X/"$0" |
29657     sed '/^.*\/\([^/][^/]*\)\/*$/{
29658             s//\1/
29659             q
29660           }
29661           /^X\/\(\/\/\)$/{
29662             s//\1/
29663             q
29664           }
29665           /^X\/\(\/\).*/{
29666             s//\1/
29667             q
29668           }
29669           s/.*/./; q'`
29670
29671 # Avoid depending upon Character Ranges.
29672 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29673 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29674 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29675 as_cr_digits='0123456789'
29676 as_cr_alnum=$as_cr_Letters$as_cr_digits
29677
29678 ECHO_C= ECHO_N= ECHO_T=
29679 case `echo -n x` in #(((((
29680 -n*)
29681   case `echo 'xy\c'` in
29682   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29683   xy)  ECHO_C='\c';;
29684   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29685        ECHO_T=' ';;
29686   esac;;
29687 *)
29688   ECHO_N='-n';;
29689 esac
29690
29691 rm -f conf$$ conf$$.exe conf$$.file
29692 if test -d conf$$.dir; then
29693   rm -f conf$$.dir/conf$$.file
29694 else
29695   rm -f conf$$.dir
29696   mkdir conf$$.dir 2>/dev/null
29697 fi
29698 if (echo >conf$$.file) 2>/dev/null; then
29699   if ln -s conf$$.file conf$$ 2>/dev/null; then
29700     as_ln_s='ln -s'
29701     # ... but there are two gotchas:
29702     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29703     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29704     # In both cases, we have to default to `cp -p'.
29705     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29706       as_ln_s='cp -p'
29707   elif ln conf$$.file conf$$ 2>/dev/null; then
29708     as_ln_s=ln
29709   else
29710     as_ln_s='cp -p'
29711   fi
29712 else
29713   as_ln_s='cp -p'
29714 fi
29715 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29716 rmdir conf$$.dir 2>/dev/null
29717
29718
29719 # as_fn_mkdir_p
29720 # -------------
29721 # Create "$as_dir" as a directory, including parents if necessary.
29722 as_fn_mkdir_p ()
29723 {
29724
29725   case $as_dir in #(
29726   -*) as_dir=./$as_dir;;
29727   esac
29728   test -d "$as_dir" || eval $as_mkdir_p || {
29729     as_dirs=
29730     while :; do
29731       case $as_dir in #(
29732       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29733       *) as_qdir=$as_dir;;
29734       esac
29735       as_dirs="'$as_qdir' $as_dirs"
29736       as_dir=`$as_dirname -- "$as_dir" ||
29737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29738          X"$as_dir" : 'X\(//\)[^/]' \| \
29739          X"$as_dir" : 'X\(//\)$' \| \
29740          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29741 $as_echo X"$as_dir" |
29742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29743             s//\1/
29744             q
29745           }
29746           /^X\(\/\/\)[^/].*/{
29747             s//\1/
29748             q
29749           }
29750           /^X\(\/\/\)$/{
29751             s//\1/
29752             q
29753           }
29754           /^X\(\/\).*/{
29755             s//\1/
29756             q
29757           }
29758           s/.*/./; q'`
29759       test -d "$as_dir" && break
29760     done
29761     test -z "$as_dirs" || eval "mkdir $as_dirs"
29762   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29763
29764
29765 } # as_fn_mkdir_p
29766 if mkdir -p . 2>/dev/null; then
29767   as_mkdir_p='mkdir -p "$as_dir"'
29768 else
29769   test -d ./-p && rmdir ./-p
29770   as_mkdir_p=false
29771 fi
29772
29773 if test -x / >/dev/null 2>&1; then
29774   as_test_x='test -x'
29775 else
29776   if ls -dL / >/dev/null 2>&1; then
29777     as_ls_L_option=L
29778   else
29779     as_ls_L_option=
29780   fi
29781   as_test_x='
29782     eval sh -c '\''
29783       if test -d "$1"; then
29784         test -d "$1/.";
29785       else
29786         case $1 in #(
29787         -*)set "./$1";;
29788         esac;
29789         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29790         ???[sx]*):;;*)false;;esac;fi
29791     '\'' sh
29792   '
29793 fi
29794 as_executable_p=$as_test_x
29795
29796 # Sed expression to map a string onto a valid CPP name.
29797 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29798
29799 # Sed expression to map a string onto a valid variable name.
29800 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29801
29802
29803 exec 6>&1
29804 ## ----------------------------------- ##
29805 ## Main body of $CONFIG_STATUS script. ##
29806 ## ----------------------------------- ##
29807 _ASEOF
29808 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29809
29810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29811 # Save the log message, to keep $0 and so on meaningful, and to
29812 # report actual input values of CONFIG_FILES etc. instead of their
29813 # values after options handling.
29814 ac_log="
29815 This file was extended by $as_me, which was
29816 generated by GNU Autoconf 2.65.  Invocation command line was
29817
29818   CONFIG_FILES    = $CONFIG_FILES
29819   CONFIG_HEADERS  = $CONFIG_HEADERS
29820   CONFIG_LINKS    = $CONFIG_LINKS
29821   CONFIG_COMMANDS = $CONFIG_COMMANDS
29822   $ $0 $@
29823
29824 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29825 "
29826
29827 _ACEOF
29828
29829 case $ac_config_files in *"
29830 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29831 esac
29832
29833 case $ac_config_headers in *"
29834 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29835 esac
29836
29837
29838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29839 # Files that config.status was made for.
29840 config_files="$ac_config_files"
29841 config_headers="$ac_config_headers"
29842 config_commands="$ac_config_commands"
29843
29844 _ACEOF
29845
29846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29847 ac_cs_usage="\
29848 \`$as_me' instantiates files and other configuration actions
29849 from templates according to the current configuration.  Unless the files
29850 and actions are specified as TAGs, all are instantiated by default.
29851
29852 Usage: $0 [OPTION]... [TAG]...
29853
29854   -h, --help       print this help, then exit
29855   -V, --version    print version number and configuration settings, then exit
29856       --config     print configuration, then exit
29857   -q, --quiet, --silent
29858                    do not print progress messages
29859   -d, --debug      don't remove temporary files
29860       --recheck    update $as_me by reconfiguring in the same conditions
29861       --file=FILE[:TEMPLATE]
29862                    instantiate the configuration file FILE
29863       --header=FILE[:TEMPLATE]
29864                    instantiate the configuration header FILE
29865
29866 Configuration files:
29867 $config_files
29868
29869 Configuration headers:
29870 $config_headers
29871
29872 Configuration commands:
29873 $config_commands
29874
29875 Report bugs to the package provider."
29876
29877 _ACEOF
29878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29879 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29880 ac_cs_version="\\
29881 config.status
29882 configured by $0, generated by GNU Autoconf 2.65,
29883   with options \\"\$ac_cs_config\\"
29884
29885 Copyright (C) 2009 Free Software Foundation, Inc.
29886 This config.status script is free software; the Free Software Foundation
29887 gives unlimited permission to copy, distribute and modify it."
29888
29889 ac_pwd='$ac_pwd'
29890 srcdir='$srcdir'
29891 INSTALL='$INSTALL'
29892 AWK='$AWK'
29893 test -n "\$AWK" || AWK=awk
29894 _ACEOF
29895
29896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29897 # The default lists apply if the user does not specify any file.
29898 ac_need_defaults=:
29899 while test $# != 0
29900 do
29901   case $1 in
29902   --*=*)
29903     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29904     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29905     ac_shift=:
29906     ;;
29907   *)
29908     ac_option=$1
29909     ac_optarg=$2
29910     ac_shift=shift
29911     ;;
29912   esac
29913
29914   case $ac_option in
29915   # Handling of the options.
29916   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29917     ac_cs_recheck=: ;;
29918   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29919     $as_echo "$ac_cs_version"; exit ;;
29920   --config | --confi | --conf | --con | --co | --c )
29921     $as_echo "$ac_cs_config"; exit ;;
29922   --debug | --debu | --deb | --de | --d | -d )
29923     debug=: ;;
29924   --file | --fil | --fi | --f )
29925     $ac_shift
29926     case $ac_optarg in
29927     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29928     esac
29929     as_fn_append CONFIG_FILES " '$ac_optarg'"
29930     ac_need_defaults=false;;
29931   --header | --heade | --head | --hea )
29932     $ac_shift
29933     case $ac_optarg in
29934     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29935     esac
29936     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29937     ac_need_defaults=false;;
29938   --he | --h)
29939     # Conflict between --help and --header
29940     as_fn_error "ambiguous option: \`$1'
29941 Try \`$0 --help' for more information.";;
29942   --help | --hel | -h )
29943     $as_echo "$ac_cs_usage"; exit ;;
29944   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29945   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29946     ac_cs_silent=: ;;
29947
29948   # This is an error.
29949   -*) as_fn_error "unrecognized option: \`$1'
29950 Try \`$0 --help' for more information." ;;
29951
29952   *) as_fn_append ac_config_targets " $1"
29953      ac_need_defaults=false ;;
29954
29955   esac
29956   shift
29957 done
29958
29959 ac_configure_extra_args=
29960
29961 if $ac_cs_silent; then
29962   exec 6>/dev/null
29963   ac_configure_extra_args="$ac_configure_extra_args --silent"
29964 fi
29965
29966 _ACEOF
29967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29968 if \$ac_cs_recheck; then
29969   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29970   shift
29971   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29972   CONFIG_SHELL='$SHELL'
29973   export CONFIG_SHELL
29974   exec "\$@"
29975 fi
29976
29977 _ACEOF
29978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29979 exec 5>>config.log
29980 {
29981   echo
29982   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29983 ## Running $as_me. ##
29984 _ASBOX
29985   $as_echo "$ac_log"
29986 } >&5
29987
29988 _ACEOF
29989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29990 #
29991 # INIT-COMMANDS
29992 #
29993
29994
29995 # The HP-UX ksh and POSIX shell print the target directory to stdout
29996 # if CDPATH is set.
29997 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29998
29999 sed_quote_subst='$sed_quote_subst'
30000 double_quote_subst='$double_quote_subst'
30001 delay_variable_subst='$delay_variable_subst'
30002 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30003 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30004 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30005 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30006 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30007 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30008 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30009 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30010 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30011 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30012 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30013 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30014 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30015 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30016 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30017 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30018 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30019 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30020 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30021 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30022 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30023 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30024 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30025 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30026 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30027 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30028 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30029 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30030 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30031 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30032 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30033 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30034 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30035 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30036 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30037 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30038 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30039 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30040 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30041 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30042 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30043 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30044 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30045 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30046 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"`'
30047 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"`'
30048 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30049 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30050 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30051 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30052 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30053 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30054 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30055 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30056 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30057 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30058 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30059 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30060 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30061 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30062 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30063 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30064 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30065 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30066 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30067 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30068 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30069 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30070 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30071 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30072 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30073 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30074 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30075 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30076 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30077 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30078 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30079 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30080 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30081 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30082 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30083 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30084 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30085 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30086 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30087 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30088 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30089 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30090 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30091 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30092 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30093 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30094 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30095 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30096 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30097 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30098 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30099 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30100 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30101 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30102 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30103 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30104 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30105 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30106 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30107 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30108 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30109 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30110 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30111 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30112 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30113 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30114 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30115 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30116 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30117 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30118 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30119 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30120 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30121 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30122 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30123 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30124 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30125 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30126 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30127 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30128 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30129 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30130 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30131 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30132 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30133 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30134 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30135 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30136 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30137 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30138 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30139 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30140 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30141 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30142 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30143 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30144 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30145 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30146 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30147 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30148 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30149 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30150 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30151 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30152 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30153 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30154 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30155 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30156 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30157 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30158 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30159 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30160 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30161 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30162 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30163 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30164 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30165 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30166 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30167 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30168 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30169 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30170 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30171 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30172 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30173
30174 LTCC='$LTCC'
30175 LTCFLAGS='$LTCFLAGS'
30176 compiler='$compiler_DEFAULT'
30177
30178 # Quote evaled strings.
30179 for var in SED \
30180 GREP \
30181 EGREP \
30182 FGREP \
30183 LD \
30184 NM \
30185 LN_S \
30186 lt_SP2NL \
30187 lt_NL2SP \
30188 reload_flag \
30189 OBJDUMP \
30190 deplibs_check_method \
30191 file_magic_cmd \
30192 AR \
30193 AR_FLAGS \
30194 STRIP \
30195 RANLIB \
30196 CC \
30197 CFLAGS \
30198 compiler \
30199 lt_cv_sys_global_symbol_pipe \
30200 lt_cv_sys_global_symbol_to_cdecl \
30201 lt_cv_sys_global_symbol_to_c_name_address \
30202 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30203 SHELL \
30204 ECHO \
30205 lt_prog_compiler_no_builtin_flag \
30206 lt_prog_compiler_wl \
30207 lt_prog_compiler_pic \
30208 lt_prog_compiler_static \
30209 lt_cv_prog_compiler_c_o \
30210 need_locks \
30211 DSYMUTIL \
30212 NMEDIT \
30213 LIPO \
30214 OTOOL \
30215 OTOOL64 \
30216 shrext_cmds \
30217 export_dynamic_flag_spec \
30218 whole_archive_flag_spec \
30219 compiler_needs_object \
30220 with_gnu_ld \
30221 allow_undefined_flag \
30222 no_undefined_flag \
30223 hardcode_libdir_flag_spec \
30224 hardcode_libdir_flag_spec_ld \
30225 hardcode_libdir_separator \
30226 fix_srcfile_path \
30227 exclude_expsyms \
30228 include_expsyms \
30229 file_list_spec \
30230 variables_saved_for_relink \
30231 libname_spec \
30232 library_names_spec \
30233 soname_spec \
30234 finish_eval \
30235 old_striplib \
30236 striplib \
30237 compiler_lib_search_dirs \
30238 predep_objects \
30239 postdep_objects \
30240 predeps \
30241 postdeps \
30242 compiler_lib_search_path \
30243 LD_CXX \
30244 compiler_CXX \
30245 lt_prog_compiler_no_builtin_flag_CXX \
30246 lt_prog_compiler_wl_CXX \
30247 lt_prog_compiler_pic_CXX \
30248 lt_prog_compiler_static_CXX \
30249 lt_cv_prog_compiler_c_o_CXX \
30250 export_dynamic_flag_spec_CXX \
30251 whole_archive_flag_spec_CXX \
30252 compiler_needs_object_CXX \
30253 with_gnu_ld_CXX \
30254 allow_undefined_flag_CXX \
30255 no_undefined_flag_CXX \
30256 hardcode_libdir_flag_spec_CXX \
30257 hardcode_libdir_flag_spec_ld_CXX \
30258 hardcode_libdir_separator_CXX \
30259 fix_srcfile_path_CXX \
30260 exclude_expsyms_CXX \
30261 include_expsyms_CXX \
30262 file_list_spec_CXX \
30263 compiler_lib_search_dirs_CXX \
30264 predep_objects_CXX \
30265 postdep_objects_CXX \
30266 predeps_CXX \
30267 postdeps_CXX \
30268 compiler_lib_search_path_CXX; do
30269     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30270     *[\\\\\\\`\\"\\\$]*)
30271       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30272       ;;
30273     *)
30274       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30275       ;;
30276     esac
30277 done
30278
30279 # Double-quote double-evaled strings.
30280 for var in reload_cmds \
30281 old_postinstall_cmds \
30282 old_postuninstall_cmds \
30283 old_archive_cmds \
30284 extract_expsyms_cmds \
30285 old_archive_from_new_cmds \
30286 old_archive_from_expsyms_cmds \
30287 archive_cmds \
30288 archive_expsym_cmds \
30289 module_cmds \
30290 module_expsym_cmds \
30291 export_symbols_cmds \
30292 prelink_cmds \
30293 postinstall_cmds \
30294 postuninstall_cmds \
30295 finish_cmds \
30296 sys_lib_search_path_spec \
30297 sys_lib_dlsearch_path_spec \
30298 old_archive_cmds_CXX \
30299 old_archive_from_new_cmds_CXX \
30300 old_archive_from_expsyms_cmds_CXX \
30301 archive_cmds_CXX \
30302 archive_expsym_cmds_CXX \
30303 module_cmds_CXX \
30304 module_expsym_cmds_CXX \
30305 export_symbols_cmds_CXX \
30306 prelink_cmds_CXX; do
30307     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30308     *[\\\\\\\`\\"\\\$]*)
30309       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30310       ;;
30311     *)
30312       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30313       ;;
30314     esac
30315 done
30316
30317 # Fix-up fallback echo if it was mangled by the above quoting rules.
30318 case \$lt_ECHO in
30319 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30320   ;;
30321 esac
30322
30323 ac_aux_dir='$ac_aux_dir'
30324 xsi_shell='$xsi_shell'
30325 lt_shell_append='$lt_shell_append'
30326
30327 # See if we are running on zsh, and set the options which allow our
30328 # commands through without removal of \ escapes INIT.
30329 if test -n "\${ZSH_VERSION+set}" ; then
30330    setopt NO_GLOB_SUBST
30331 fi
30332
30333
30334     PACKAGE='$PACKAGE'
30335     VERSION='$VERSION'
30336     TIMESTAMP='$TIMESTAMP'
30337     RM='$RM'
30338     ofile='$ofile'
30339
30340
30341
30342
30343
30344 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30345     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30346     # from automake.
30347     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30348     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30349     LINGUAS="${LINGUAS-%UNSET%}"
30350
30351
30352 _ACEOF
30353
30354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30355
30356 # Handling of arguments.
30357 for ac_config_target in $ac_config_targets
30358 do
30359   case $ac_config_target in
30360     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30361     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30362     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30363     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30364     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30365     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30366     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30367     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30368     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30369     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30370     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30371     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30372     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30373     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30374     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30375     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30376     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30377     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30378     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30379     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30380     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30381     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30382     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30383     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30384     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30385     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30386     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30387     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30388     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30389     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30390     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30391     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30392     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30393     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30394     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30395     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30396     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30397     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30398     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30399     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30400     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30401     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30402     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30403     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30404     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30405     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30406     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30407     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30408     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30409     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30410     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30411     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30412     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30413     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30414     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30415     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30416     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30417     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30418     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30419     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30420     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30421     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30422     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30423     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30424     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30425     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30426     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30427     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30428     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30429     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30430     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30431     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30432     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30433     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30434     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30435     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30436     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30437     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30438     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30439     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30440     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30441     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30442     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30443     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30444     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30445     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30446     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30447     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30448     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30449     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30450     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30451     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30452     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30453     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30454     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30455     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30456     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30457     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30458     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30459     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30460     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30461     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30462     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30463     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30464     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30465     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30466     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30467     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30468     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30469     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30470     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30471     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30472
30473   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30474   esac
30475 done
30476
30477
30478 # If the user did not use the arguments to specify the items to instantiate,
30479 # then the envvar interface is used.  Set only those that are not.
30480 # We use the long form for the default assignment because of an extremely
30481 # bizarre bug on SunOS 4.1.3.
30482 if $ac_need_defaults; then
30483   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30484   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30485   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30486 fi
30487
30488 # Have a temporary directory for convenience.  Make it in the build tree
30489 # simply because there is no reason against having it here, and in addition,
30490 # creating and moving files from /tmp can sometimes cause problems.
30491 # Hook for its removal unless debugging.
30492 # Note that there is a small window in which the directory will not be cleaned:
30493 # after its creation but before its name has been assigned to `$tmp'.
30494 $debug ||
30495 {
30496   tmp=
30497   trap 'exit_status=$?
30498   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30499 ' 0
30500   trap 'as_fn_exit 1' 1 2 13 15
30501 }
30502 # Create a (secure) tmp directory for tmp files.
30503
30504 {
30505   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30506   test -n "$tmp" && test -d "$tmp"
30507 }  ||
30508 {
30509   tmp=./conf$$-$RANDOM
30510   (umask 077 && mkdir "$tmp")
30511 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30512
30513 # Set up the scripts for CONFIG_FILES section.
30514 # No need to generate them if there are no CONFIG_FILES.
30515 # This happens for instance with `./config.status config.h'.
30516 if test -n "$CONFIG_FILES"; then
30517
30518 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30519   ac_cs_awk_getline=:
30520   ac_cs_awk_pipe_init=
30521   ac_cs_awk_read_file='
30522       while ((getline aline < (F[key])) > 0)
30523         print(aline)
30524       close(F[key])'
30525   ac_cs_awk_pipe_fini=
30526 else
30527   ac_cs_awk_getline=false
30528   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30529   ac_cs_awk_read_file='
30530       print "|#_!!_#|"
30531       print "cat " F[key] " &&"
30532       '$ac_cs_awk_pipe_init
30533   # The final `:' finishes the AND list.
30534   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30535 fi
30536 ac_cr=`echo X | tr X '\015'`
30537 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30538 # But we know of no other shell where ac_cr would be empty at this
30539 # point, so we can use a bashism as a fallback.
30540 if test "x$ac_cr" = x; then
30541   eval ac_cr=\$\'\\r\'
30542 fi
30543 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30544 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30545   ac_cs_awk_cr='\r'
30546 else
30547   ac_cs_awk_cr=$ac_cr
30548 fi
30549
30550 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30551 _ACEOF
30552
30553 # Create commands to substitute file output variables.
30554 {
30555   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30556   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30557   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30558   echo "_ACAWK" &&
30559   echo "_ACEOF"
30560 } >conf$$files.sh &&
30561 . ./conf$$files.sh ||
30562   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30563 rm -f conf$$files.sh
30564
30565 {
30566   echo "cat >conf$$subs.awk <<_ACEOF" &&
30567   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30568   echo "_ACEOF"
30569 } >conf$$subs.sh ||
30570   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30571 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30572 ac_delim='%!_!# '
30573 for ac_last_try in false false false false false :; do
30574   . ./conf$$subs.sh ||
30575     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30576
30577   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30578   if test $ac_delim_n = $ac_delim_num; then
30579     break
30580   elif $ac_last_try; then
30581     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30582   else
30583     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30584   fi
30585 done
30586 rm -f conf$$subs.sh
30587
30588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30589 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30590 _ACEOF
30591 sed -n '
30592 h
30593 s/^/S["/; s/!.*/"]=/
30594 p
30595 g
30596 s/^[^!]*!//
30597 :repl
30598 t repl
30599 s/'"$ac_delim"'$//
30600 t delim
30601 :nl
30602 h
30603 s/\(.\{148\}\)..*/\1/
30604 t more1
30605 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30606 p
30607 n
30608 b repl
30609 :more1
30610 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30611 p
30612 g
30613 s/.\{148\}//
30614 t nl
30615 :delim
30616 h
30617 s/\(.\{148\}\)..*/\1/
30618 t more2
30619 s/["\\]/\\&/g; s/^/"/; s/$/"/
30620 p
30621 b
30622 :more2
30623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30624 p
30625 g
30626 s/.\{148\}//
30627 t delim
30628 ' <conf$$subs.awk | sed '
30629 /^[^""]/{
30630   N
30631   s/\n//
30632 }
30633 ' >>$CONFIG_STATUS || ac_write_fail=1
30634 rm -f conf$$subs.awk
30635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30636 _ACAWK
30637 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30638   for (key in S) S_is_set[key] = 1
30639   FS = "\a"
30640   \$ac_cs_awk_pipe_init
30641 }
30642 {
30643   line = $ 0
30644   nfields = split(line, field, "@")
30645   substed = 0
30646   len = length(field[1])
30647   for (i = 2; i < nfields; i++) {
30648     key = field[i]
30649     keylen = length(key)
30650     if (S_is_set[key]) {
30651       value = S[key]
30652       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30653       len += length(value) + length(field[++i])
30654       substed = 1
30655     } else
30656       len += 1 + keylen
30657   }
30658   if (nfields == 3 && !substed) {
30659     key = field[2]
30660     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30661       \$ac_cs_awk_read_file
30662       next
30663     }
30664   }
30665   print line
30666 }
30667 \$ac_cs_awk_pipe_fini
30668 _ACAWK
30669 _ACEOF
30670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30672   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30673 else
30674   cat
30675 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30676   || as_fn_error "could not setup config files machinery" "$LINENO" 5
30677 _ACEOF
30678
30679 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30680 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30681 # trailing colons and then remove the whole line if VPATH becomes empty
30682 # (actually we leave an empty line to preserve line numbers).
30683 if test "x$srcdir" = x.; then
30684   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30685 s/:*\$(srcdir):*/:/
30686 s/:*\${srcdir}:*/:/
30687 s/:*@srcdir@:*/:/
30688 s/^\([^=]*=[     ]*\):*/\1/
30689 s/:*$//
30690 s/^[^=]*=[       ]*$//
30691 }'
30692 fi
30693
30694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30695 fi # test -n "$CONFIG_FILES"
30696
30697 # Set up the scripts for CONFIG_HEADERS section.
30698 # No need to generate them if there are no CONFIG_HEADERS.
30699 # This happens for instance with `./config.status Makefile'.
30700 if test -n "$CONFIG_HEADERS"; then
30701 cat >"$tmp/defines.awk" <<\_ACAWK ||
30702 BEGIN {
30703 _ACEOF
30704
30705 # Transform confdefs.h into an awk script `defines.awk', embedded as
30706 # here-document in config.status, that substitutes the proper values into
30707 # config.h.in to produce config.h.
30708
30709 # Create a delimiter string that does not exist in confdefs.h, to ease
30710 # handling of long lines.
30711 ac_delim='%!_!# '
30712 for ac_last_try in false false :; do
30713   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30714   if test -z "$ac_t"; then
30715     break
30716   elif $ac_last_try; then
30717     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30718   else
30719     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30720   fi
30721 done
30722
30723 # For the awk script, D is an array of macro values keyed by name,
30724 # likewise P contains macro parameters if any.  Preserve backslash
30725 # newline sequences.
30726
30727 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30728 sed -n '
30729 s/.\{148\}/&'"$ac_delim"'/g
30730 t rset
30731 :rset
30732 s/^[     ]*#[    ]*define[       ][      ]*/ /
30733 t def
30734 d
30735 :def
30736 s/\\$//
30737 t bsnl
30738 s/["\\]/\\&/g
30739 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30740 D["\1"]=" \3"/p
30741 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30742 d
30743 :bsnl
30744 s/["\\]/\\&/g
30745 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30746 D["\1"]=" \3\\\\\\n"\\/p
30747 t cont
30748 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30749 t cont
30750 d
30751 :cont
30752 n
30753 s/.\{148\}/&'"$ac_delim"'/g
30754 t clear
30755 :clear
30756 s/\\$//
30757 t bsnlc
30758 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30759 d
30760 :bsnlc
30761 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30762 b cont
30763 ' <confdefs.h | sed '
30764 s/'"$ac_delim"'/"\\\
30765 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30766
30767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30768   for (key in D) D_is_set[key] = 1
30769   FS = "\a"
30770 }
30771 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30772   line = \$ 0
30773   split(line, arg, " ")
30774   if (arg[1] == "#") {
30775     defundef = arg[2]
30776     mac1 = arg[3]
30777   } else {
30778     defundef = substr(arg[1], 2)
30779     mac1 = arg[2]
30780   }
30781   split(mac1, mac2, "(") #)
30782   macro = mac2[1]
30783   prefix = substr(line, 1, index(line, defundef) - 1)
30784   if (D_is_set[macro]) {
30785     # Preserve the white space surrounding the "#".
30786     print prefix "define", macro P[macro] D[macro]
30787     next
30788   } else {
30789     # Replace #undef with comments.  This is necessary, for example,
30790     # in the case of _POSIX_SOURCE, which is predefined and required
30791     # on some systems where configure will not decide to define it.
30792     if (defundef == "undef") {
30793       print "/*", prefix defundef, macro, "*/"
30794       next
30795     }
30796   }
30797 }
30798 { print }
30799 _ACAWK
30800 _ACEOF
30801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30802   as_fn_error "could not setup config headers machinery" "$LINENO" 5
30803 fi # test -n "$CONFIG_HEADERS"
30804
30805
30806 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30807 shift
30808 for ac_tag
30809 do
30810   case $ac_tag in
30811   :[FHLC]) ac_mode=$ac_tag; continue;;
30812   esac
30813   case $ac_mode$ac_tag in
30814   :[FHL]*:*);;
30815   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30816   :[FH]-) ac_tag=-:-;;
30817   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30818   esac
30819   ac_save_IFS=$IFS
30820   IFS=:
30821   set x $ac_tag
30822   IFS=$ac_save_IFS
30823   shift
30824   ac_file=$1
30825   shift
30826
30827   case $ac_mode in
30828   :L) ac_source=$1;;
30829   :[FH])
30830     ac_file_inputs=
30831     for ac_f
30832     do
30833       case $ac_f in
30834       -) ac_f="$tmp/stdin";;
30835       *) # Look for the file first in the build tree, then in the source tree
30836          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30837          # because $ac_f cannot contain `:'.
30838          test -f "$ac_f" ||
30839            case $ac_f in
30840            [\\/$]*) false;;
30841            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30842            esac ||
30843            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30844       esac
30845       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30846       as_fn_append ac_file_inputs " '$ac_f'"
30847     done
30848
30849     # Let's still pretend it is `configure' which instantiates (i.e., don't
30850     # use $as_me), people would be surprised to read:
30851     #    /* config.h.  Generated by config.status.  */
30852     configure_input='Generated from '`
30853           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30854         `' by configure.'
30855     if test x"$ac_file" != x-; then
30856       configure_input="$ac_file.  $configure_input"
30857       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30858 $as_echo "$as_me: creating $ac_file" >&6;}
30859     fi
30860     # Neutralize special characters interpreted by sed in replacement strings.
30861     case $configure_input in #(
30862     *\&* | *\|* | *\\* )
30863        ac_sed_conf_input=`$as_echo "$configure_input" |
30864        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30865     *) ac_sed_conf_input=$configure_input;;
30866     esac
30867
30868     case $ac_tag in
30869     *:-:* | *:-) cat >"$tmp/stdin" \
30870       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30871     esac
30872     ;;
30873   esac
30874
30875   ac_dir=`$as_dirname -- "$ac_file" ||
30876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30877          X"$ac_file" : 'X\(//\)[^/]' \| \
30878          X"$ac_file" : 'X\(//\)$' \| \
30879          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30880 $as_echo X"$ac_file" |
30881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30882             s//\1/
30883             q
30884           }
30885           /^X\(\/\/\)[^/].*/{
30886             s//\1/
30887             q
30888           }
30889           /^X\(\/\/\)$/{
30890             s//\1/
30891             q
30892           }
30893           /^X\(\/\).*/{
30894             s//\1/
30895             q
30896           }
30897           s/.*/./; q'`
30898   as_dir="$ac_dir"; as_fn_mkdir_p
30899   ac_builddir=.
30900
30901 case "$ac_dir" in
30902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30903 *)
30904   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30905   # A ".." for each directory in $ac_dir_suffix.
30906   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30907   case $ac_top_builddir_sub in
30908   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30909   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30910   esac ;;
30911 esac
30912 ac_abs_top_builddir=$ac_pwd
30913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30914 # for backward compatibility:
30915 ac_top_builddir=$ac_top_build_prefix
30916
30917 case $srcdir in
30918   .)  # We are building in place.
30919     ac_srcdir=.
30920     ac_top_srcdir=$ac_top_builddir_sub
30921     ac_abs_top_srcdir=$ac_pwd ;;
30922   [\\/]* | ?:[\\/]* )  # Absolute name.
30923     ac_srcdir=$srcdir$ac_dir_suffix;
30924     ac_top_srcdir=$srcdir
30925     ac_abs_top_srcdir=$srcdir ;;
30926   *) # Relative name.
30927     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30928     ac_top_srcdir=$ac_top_build_prefix$srcdir
30929     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30930 esac
30931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30932
30933
30934   case $ac_mode in
30935   :F)
30936   #
30937   # CONFIG_FILE
30938   #
30939
30940   case $INSTALL in
30941   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30942   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30943   esac
30944 _ACEOF
30945
30946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30947 # If the template does not know about datarootdir, expand it.
30948 # FIXME: This hack should be removed a few years after 2.60.
30949 ac_datarootdir_hack=; ac_datarootdir_seen=
30950 ac_sed_dataroot='
30951 /datarootdir/ {
30952   p
30953   q
30954 }
30955 /@datadir@/p
30956 /@docdir@/p
30957 /@infodir@/p
30958 /@localedir@/p
30959 /@mandir@/p'
30960 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30961 *datarootdir*) ac_datarootdir_seen=yes;;
30962 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30963   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30964 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30965 _ACEOF
30966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30967   ac_datarootdir_hack='
30968   s&@datadir@&$datadir&g
30969   s&@docdir@&$docdir&g
30970   s&@infodir@&$infodir&g
30971   s&@localedir@&$localedir&g
30972   s&@mandir@&$mandir&g
30973   s&\\\${datarootdir}&$datarootdir&g' ;;
30974 esac
30975 _ACEOF
30976
30977 # Neutralize VPATH when `$srcdir' = `.'.
30978 # Shell code in configure.ac might set extrasub.
30979 # FIXME: do we really want to maintain this feature?
30980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30981 ac_sed_extra="$ac_vpsub
30982 $extrasub
30983 _ACEOF
30984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30985 :t
30986 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30987 s|@configure_input@|$ac_sed_conf_input|;t t
30988 s&@top_builddir@&$ac_top_builddir_sub&;t t
30989 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30990 s&@srcdir@&$ac_srcdir&;t t
30991 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30992 s&@top_srcdir@&$ac_top_srcdir&;t t
30993 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30994 s&@builddir@&$ac_builddir&;t t
30995 s&@abs_builddir@&$ac_abs_builddir&;t t
30996 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30997 s&@INSTALL@&$ac_INSTALL&;t t
30998 $ac_datarootdir_hack
30999 "
31000 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31001 if $ac_cs_awk_getline; then
31002   $AWK -f "$tmp/subs.awk"
31003 else
31004   $AWK -f "$tmp/subs.awk" | $SHELL
31005 fi >$tmp/out \
31006   || as_fn_error "could not create $ac_file" "$LINENO" 5
31007
31008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31009   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31010   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31011   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31012 which seems to be undefined.  Please make sure it is defined." >&5
31013 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31014 which seems to be undefined.  Please make sure it is defined." >&2;}
31015
31016   rm -f "$tmp/stdin"
31017   case $ac_file in
31018   -) cat "$tmp/out" && rm -f "$tmp/out";;
31019   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31020   esac \
31021   || as_fn_error "could not create $ac_file" "$LINENO" 5
31022  ;;
31023   :H)
31024   #
31025   # CONFIG_HEADER
31026   #
31027   if test x"$ac_file" != x-; then
31028     {
31029       $as_echo "/* $configure_input  */" \
31030       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31031     } >"$tmp/config.h" \
31032       || as_fn_error "could not create $ac_file" "$LINENO" 5
31033     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31034       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31035 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31036     else
31037       rm -f "$ac_file"
31038       mv "$tmp/config.h" "$ac_file" \
31039         || as_fn_error "could not create $ac_file" "$LINENO" 5
31040     fi
31041   else
31042     $as_echo "/* $configure_input  */" \
31043       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31044       || as_fn_error "could not create -" "$LINENO" 5
31045   fi
31046  ;;
31047
31048   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31049 $as_echo "$as_me: executing $ac_file commands" >&6;}
31050  ;;
31051   esac
31052
31053
31054   case $ac_file$ac_mode in
31055     "libtool":C)
31056
31057     # See if we are running on zsh, and set the options which allow our
31058     # commands through without removal of \ escapes.
31059     if test -n "${ZSH_VERSION+set}" ; then
31060       setopt NO_GLOB_SUBST
31061     fi
31062
31063     cfgfile="${ofile}T"
31064     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31065     $RM "$cfgfile"
31066
31067     cat <<_LT_EOF >> "$cfgfile"
31068 #! $SHELL
31069
31070 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31071 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31073 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31074 #
31075 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31076 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31077 #   Written by Gordon Matzigkeit, 1996
31078 #
31079 #   This file is part of GNU Libtool.
31080 #
31081 # GNU Libtool is free software; you can redistribute it and/or
31082 # modify it under the terms of the GNU General Public License as
31083 # published by the Free Software Foundation; either version 2 of
31084 # the License, or (at your option) any later version.
31085 #
31086 # As a special exception to the GNU General Public License,
31087 # if you distribute this file as part of a program or library that
31088 # is built using GNU Libtool, you may include this file under the
31089 # same distribution terms that you use for the rest of that program.
31090 #
31091 # GNU Libtool is distributed in the hope that it will be useful,
31092 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31093 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31094 # GNU General Public License for more details.
31095 #
31096 # You should have received a copy of the GNU General Public License
31097 # along with GNU Libtool; see the file COPYING.  If not, a copy
31098 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31099 # obtained by writing to the Free Software Foundation, Inc.,
31100 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31101
31102
31103 # The names of the tagged configurations supported by this script.
31104 available_tags="CXX "
31105
31106 # ### BEGIN LIBTOOL CONFIG
31107
31108 # Which release of libtool.m4 was used?
31109 macro_version=$macro_version
31110 macro_revision=$macro_revision
31111
31112 # Whether or not to build shared libraries.
31113 build_libtool_libs=$enable_shared
31114
31115 # Whether or not to build static libraries.
31116 build_old_libs=$enable_static
31117
31118 # What type of objects to build.
31119 pic_mode=$pic_mode
31120
31121 # Whether or not to optimize for fast installation.
31122 fast_install=$enable_fast_install
31123
31124 # The host system.
31125 host_alias=$host_alias
31126 host=$host
31127 host_os=$host_os
31128
31129 # The build system.
31130 build_alias=$build_alias
31131 build=$build
31132 build_os=$build_os
31133
31134 # A sed program that does not truncate output.
31135 SED=$lt_SED
31136
31137 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31138 Xsed="\$SED -e 1s/^X//"
31139
31140 # A grep program that handles long lines.
31141 GREP=$lt_GREP
31142
31143 # An ERE matcher.
31144 EGREP=$lt_EGREP
31145
31146 # A literal string matcher.
31147 FGREP=$lt_FGREP
31148
31149 # A BSD- or MS-compatible name lister.
31150 NM=$lt_NM
31151
31152 # Whether we need soft or hard links.
31153 LN_S=$lt_LN_S
31154
31155 # What is the maximum length of a command?
31156 max_cmd_len=$max_cmd_len
31157
31158 # Object file suffix (normally "o").
31159 objext=$ac_objext
31160
31161 # Executable file suffix (normally "").
31162 exeext=$exeext
31163
31164 # whether the shell understands "unset".
31165 lt_unset=$lt_unset
31166
31167 # turn spaces into newlines.
31168 SP2NL=$lt_lt_SP2NL
31169
31170 # turn newlines into spaces.
31171 NL2SP=$lt_lt_NL2SP
31172
31173 # How to create reloadable object files.
31174 reload_flag=$lt_reload_flag
31175 reload_cmds=$lt_reload_cmds
31176
31177 # An object symbol dumper.
31178 OBJDUMP=$lt_OBJDUMP
31179
31180 # Method to check whether dependent libraries are shared objects.
31181 deplibs_check_method=$lt_deplibs_check_method
31182
31183 # Command to use when deplibs_check_method == "file_magic".
31184 file_magic_cmd=$lt_file_magic_cmd
31185
31186 # The archiver.
31187 AR=$lt_AR
31188 AR_FLAGS=$lt_AR_FLAGS
31189
31190 # A symbol stripping program.
31191 STRIP=$lt_STRIP
31192
31193 # Commands used to install an old-style archive.
31194 RANLIB=$lt_RANLIB
31195 old_postinstall_cmds=$lt_old_postinstall_cmds
31196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31197
31198 # A C compiler.
31199 LTCC=$lt_CC
31200
31201 # LTCC compiler flags.
31202 LTCFLAGS=$lt_CFLAGS
31203
31204 # Take the output of nm and produce a listing of raw symbols and C names.
31205 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31206
31207 # Transform the output of nm in a proper C declaration.
31208 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31209
31210 # Transform the output of nm in a C name address pair.
31211 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31212
31213 # Transform the output of nm in a C name address pair when lib prefix is needed.
31214 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31215
31216 # The name of the directory that contains temporary libtool files.
31217 objdir=$objdir
31218
31219 # Shell to use when invoking shell scripts.
31220 SHELL=$lt_SHELL
31221
31222 # An echo program that does not interpret backslashes.
31223 ECHO=$lt_ECHO
31224
31225 # Used to examine libraries when file_magic_cmd begins with "file".
31226 MAGIC_CMD=$MAGIC_CMD
31227
31228 # Must we lock files when doing compilation?
31229 need_locks=$lt_need_locks
31230
31231 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31232 DSYMUTIL=$lt_DSYMUTIL
31233
31234 # Tool to change global to local symbols on Mac OS X.
31235 NMEDIT=$lt_NMEDIT
31236
31237 # Tool to manipulate fat objects and archives on Mac OS X.
31238 LIPO=$lt_LIPO
31239
31240 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31241 OTOOL=$lt_OTOOL
31242
31243 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31244 OTOOL64=$lt_OTOOL64
31245
31246 # Old archive suffix (normally "a").
31247 libext=$libext
31248
31249 # Shared library suffix (normally ".so").
31250 shrext_cmds=$lt_shrext_cmds
31251
31252 # The commands to extract the exported symbol list from a shared archive.
31253 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31254
31255 # Variables whose values should be saved in libtool wrapper scripts and
31256 # restored at link time.
31257 variables_saved_for_relink=$lt_variables_saved_for_relink
31258
31259 # Do we need the "lib" prefix for modules?
31260 need_lib_prefix=$need_lib_prefix
31261
31262 # Do we need a version for libraries?
31263 need_version=$need_version
31264
31265 # Library versioning type.
31266 version_type=$version_type
31267
31268 # Shared library runtime path variable.
31269 runpath_var=$runpath_var
31270
31271 # Shared library path variable.
31272 shlibpath_var=$shlibpath_var
31273
31274 # Is shlibpath searched before the hard-coded library search path?
31275 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31276
31277 # Format of library name prefix.
31278 libname_spec=$lt_libname_spec
31279
31280 # List of archive names.  First name is the real one, the rest are links.
31281 # The last name is the one that the linker finds with -lNAME
31282 library_names_spec=$lt_library_names_spec
31283
31284 # The coded name of the library, if different from the real name.
31285 soname_spec=$lt_soname_spec
31286
31287 # Command to use after installation of a shared archive.
31288 postinstall_cmds=$lt_postinstall_cmds
31289
31290 # Command to use after uninstallation of a shared archive.
31291 postuninstall_cmds=$lt_postuninstall_cmds
31292
31293 # Commands used to finish a libtool library installation in a directory.
31294 finish_cmds=$lt_finish_cmds
31295
31296 # As "finish_cmds", except a single script fragment to be evaled but
31297 # not shown.
31298 finish_eval=$lt_finish_eval
31299
31300 # Whether we should hardcode library paths into libraries.
31301 hardcode_into_libs=$hardcode_into_libs
31302
31303 # Compile-time system search path for libraries.
31304 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31305
31306 # Run-time system search path for libraries.
31307 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31308
31309 # Whether dlopen is supported.
31310 dlopen_support=$enable_dlopen
31311
31312 # Whether dlopen of programs is supported.
31313 dlopen_self=$enable_dlopen_self
31314
31315 # Whether dlopen of statically linked programs is supported.
31316 dlopen_self_static=$enable_dlopen_self_static
31317
31318 # Commands to strip libraries.
31319 old_striplib=$lt_old_striplib
31320 striplib=$lt_striplib
31321
31322
31323 # The linker used to build libraries.
31324 LD=$lt_LD
31325
31326 # Commands used to build an old-style archive.
31327 old_archive_cmds=$lt_old_archive_cmds
31328
31329 # A language specific compiler.
31330 CC=$lt_compiler
31331
31332 # Is the compiler the GNU compiler?
31333 with_gcc=$GCC
31334
31335 # Compiler flag to turn off builtin functions.
31336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31337
31338 # How to pass a linker flag through the compiler.
31339 wl=$lt_lt_prog_compiler_wl
31340
31341 # Additional compiler flags for building library objects.
31342 pic_flag=$lt_lt_prog_compiler_pic
31343
31344 # Compiler flag to prevent dynamic linking.
31345 link_static_flag=$lt_lt_prog_compiler_static
31346
31347 # Does compiler simultaneously support -c and -o options?
31348 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31349
31350 # Whether or not to add -lc for building shared libraries.
31351 build_libtool_need_lc=$archive_cmds_need_lc
31352
31353 # Whether or not to disallow shared libs when runtime libs are static.
31354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31355
31356 # Compiler flag to allow reflexive dlopens.
31357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31358
31359 # Compiler flag to generate shared objects directly from archives.
31360 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31361
31362 # Whether the compiler copes with passing no objects directly.
31363 compiler_needs_object=$lt_compiler_needs_object
31364
31365 # Create an old-style archive from a shared archive.
31366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31367
31368 # Create a temporary old-style archive to link instead of a shared archive.
31369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31370
31371 # Commands used to build a shared archive.
31372 archive_cmds=$lt_archive_cmds
31373 archive_expsym_cmds=$lt_archive_expsym_cmds
31374
31375 # Commands used to build a loadable module if different from building
31376 # a shared archive.
31377 module_cmds=$lt_module_cmds
31378 module_expsym_cmds=$lt_module_expsym_cmds
31379
31380 # Whether we are building with GNU ld or not.
31381 with_gnu_ld=$lt_with_gnu_ld
31382
31383 # Flag that allows shared libraries with undefined symbols to be built.
31384 allow_undefined_flag=$lt_allow_undefined_flag
31385
31386 # Flag that enforces no undefined symbols.
31387 no_undefined_flag=$lt_no_undefined_flag
31388
31389 # Flag to hardcode \$libdir into a binary during linking.
31390 # This must work even if \$libdir does not exist
31391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31392
31393 # If ld is used when linking, flag to hardcode \$libdir into a binary
31394 # during linking.  This must work even if \$libdir does not exist.
31395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31396
31397 # Whether we need a single "-rpath" flag with a separated argument.
31398 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31399
31400 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31401 # DIR into the resulting binary.
31402 hardcode_direct=$hardcode_direct
31403
31404 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31405 # DIR into the resulting binary and the resulting library dependency is
31406 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31407 # library is relocated.
31408 hardcode_direct_absolute=$hardcode_direct_absolute
31409
31410 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31411 # into the resulting binary.
31412 hardcode_minus_L=$hardcode_minus_L
31413
31414 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31415 # into the resulting binary.
31416 hardcode_shlibpath_var=$hardcode_shlibpath_var
31417
31418 # Set to "yes" if building a shared library automatically hardcodes DIR
31419 # into the library and all subsequent libraries and executables linked
31420 # against it.
31421 hardcode_automatic=$hardcode_automatic
31422
31423 # Set to yes if linker adds runtime paths of dependent libraries
31424 # to runtime path list.
31425 inherit_rpath=$inherit_rpath
31426
31427 # Whether libtool must link a program against all its dependency libraries.
31428 link_all_deplibs=$link_all_deplibs
31429
31430 # Fix the shell variable \$srcfile for the compiler.
31431 fix_srcfile_path=$lt_fix_srcfile_path
31432
31433 # Set to "yes" if exported symbols are required.
31434 always_export_symbols=$always_export_symbols
31435
31436 # The commands to list exported symbols.
31437 export_symbols_cmds=$lt_export_symbols_cmds
31438
31439 # Symbols that should not be listed in the preloaded symbols.
31440 exclude_expsyms=$lt_exclude_expsyms
31441
31442 # Symbols that must always be exported.
31443 include_expsyms=$lt_include_expsyms
31444
31445 # Commands necessary for linking programs (against libraries) with templates.
31446 prelink_cmds=$lt_prelink_cmds
31447
31448 # Specify filename containing input files.
31449 file_list_spec=$lt_file_list_spec
31450
31451 # How to hardcode a shared library path into an executable.
31452 hardcode_action=$hardcode_action
31453
31454 # The directories searched by this compiler when creating a shared library.
31455 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31456
31457 # Dependencies to place before and after the objects being linked to
31458 # create a shared library.
31459 predep_objects=$lt_predep_objects
31460 postdep_objects=$lt_postdep_objects
31461 predeps=$lt_predeps
31462 postdeps=$lt_postdeps
31463
31464 # The library search path used internally by the compiler when linking
31465 # a shared library.
31466 compiler_lib_search_path=$lt_compiler_lib_search_path
31467
31468 # ### END LIBTOOL CONFIG
31469
31470 _LT_EOF
31471
31472   case $host_os in
31473   aix3*)
31474     cat <<\_LT_EOF >> "$cfgfile"
31475 # AIX sometimes has problems with the GCC collect2 program.  For some
31476 # reason, if we set the COLLECT_NAMES environment variable, the problems
31477 # vanish in a puff of smoke.
31478 if test "X${COLLECT_NAMES+set}" != Xset; then
31479   COLLECT_NAMES=
31480   export COLLECT_NAMES
31481 fi
31482 _LT_EOF
31483     ;;
31484   esac
31485
31486
31487 ltmain="$ac_aux_dir/ltmain.sh"
31488
31489
31490   # We use sed instead of cat because bash on DJGPP gets confused if
31491   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31492   # text mode, it properly converts lines to CR/LF.  This bash problem
31493   # is reportedly fixed, but why not run on old versions too?
31494   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31495     || (rm -f "$cfgfile"; exit 1)
31496
31497   case $xsi_shell in
31498   yes)
31499     cat << \_LT_EOF >> "$cfgfile"
31500
31501 # func_dirname file append nondir_replacement
31502 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31503 # otherwise set result to NONDIR_REPLACEMENT.
31504 func_dirname ()
31505 {
31506   case ${1} in
31507     */*) func_dirname_result="${1%/*}${2}" ;;
31508     *  ) func_dirname_result="${3}" ;;
31509   esac
31510 }
31511
31512 # func_basename file
31513 func_basename ()
31514 {
31515   func_basename_result="${1##*/}"
31516 }
31517
31518 # func_dirname_and_basename file append nondir_replacement
31519 # perform func_basename and func_dirname in a single function
31520 # call:
31521 #   dirname:  Compute the dirname of FILE.  If nonempty,
31522 #             add APPEND to the result, otherwise set result
31523 #             to NONDIR_REPLACEMENT.
31524 #             value returned in "$func_dirname_result"
31525 #   basename: Compute filename of FILE.
31526 #             value retuned in "$func_basename_result"
31527 # Implementation must be kept synchronized with func_dirname
31528 # and func_basename. For efficiency, we do not delegate to
31529 # those functions but instead duplicate the functionality here.
31530 func_dirname_and_basename ()
31531 {
31532   case ${1} in
31533     */*) func_dirname_result="${1%/*}${2}" ;;
31534     *  ) func_dirname_result="${3}" ;;
31535   esac
31536   func_basename_result="${1##*/}"
31537 }
31538
31539 # func_stripname prefix suffix name
31540 # strip PREFIX and SUFFIX off of NAME.
31541 # PREFIX and SUFFIX must not contain globbing or regex special
31542 # characters, hashes, percent signs, but SUFFIX may contain a leading
31543 # dot (in which case that matches only a dot).
31544 func_stripname ()
31545 {
31546   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31547   # positional parameters, so assign one to ordinary parameter first.
31548   func_stripname_result=${3}
31549   func_stripname_result=${func_stripname_result#"${1}"}
31550   func_stripname_result=${func_stripname_result%"${2}"}
31551 }
31552
31553 # func_opt_split
31554 func_opt_split ()
31555 {
31556   func_opt_split_opt=${1%%=*}
31557   func_opt_split_arg=${1#*=}
31558 }
31559
31560 # func_lo2o object
31561 func_lo2o ()
31562 {
31563   case ${1} in
31564     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31565     *)    func_lo2o_result=${1} ;;
31566   esac
31567 }
31568
31569 # func_xform libobj-or-source
31570 func_xform ()
31571 {
31572   func_xform_result=${1%.*}.lo
31573 }
31574
31575 # func_arith arithmetic-term...
31576 func_arith ()
31577 {
31578   func_arith_result=$(( $* ))
31579 }
31580
31581 # func_len string
31582 # STRING may not start with a hyphen.
31583 func_len ()
31584 {
31585   func_len_result=${#1}
31586 }
31587
31588 _LT_EOF
31589     ;;
31590   *) # Bourne compatible functions.
31591     cat << \_LT_EOF >> "$cfgfile"
31592
31593 # func_dirname file append nondir_replacement
31594 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31595 # otherwise set result to NONDIR_REPLACEMENT.
31596 func_dirname ()
31597 {
31598   # Extract subdirectory from the argument.
31599   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31600   if test "X$func_dirname_result" = "X${1}"; then
31601     func_dirname_result="${3}"
31602   else
31603     func_dirname_result="$func_dirname_result${2}"
31604   fi
31605 }
31606
31607 # func_basename file
31608 func_basename ()
31609 {
31610   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31611 }
31612
31613
31614 # func_stripname prefix suffix name
31615 # strip PREFIX and SUFFIX off of NAME.
31616 # PREFIX and SUFFIX must not contain globbing or regex special
31617 # characters, hashes, percent signs, but SUFFIX may contain a leading
31618 # dot (in which case that matches only a dot).
31619 # func_strip_suffix prefix name
31620 func_stripname ()
31621 {
31622   case ${2} in
31623     .*) func_stripname_result=`$ECHO "X${3}" \
31624            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31625     *)  func_stripname_result=`$ECHO "X${3}" \
31626            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31627   esac
31628 }
31629
31630 # sed scripts:
31631 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31632 my_sed_long_arg='1s/^-[^=]*=//'
31633
31634 # func_opt_split
31635 func_opt_split ()
31636 {
31637   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31638   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31639 }
31640
31641 # func_lo2o object
31642 func_lo2o ()
31643 {
31644   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31645 }
31646
31647 # func_xform libobj-or-source
31648 func_xform ()
31649 {
31650   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31651 }
31652
31653 # func_arith arithmetic-term...
31654 func_arith ()
31655 {
31656   func_arith_result=`expr "$@"`
31657 }
31658
31659 # func_len string
31660 # STRING may not start with a hyphen.
31661 func_len ()
31662 {
31663   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31664 }
31665
31666 _LT_EOF
31667 esac
31668
31669 case $lt_shell_append in
31670   yes)
31671     cat << \_LT_EOF >> "$cfgfile"
31672
31673 # func_append var value
31674 # Append VALUE to the end of shell variable VAR.
31675 func_append ()
31676 {
31677   eval "$1+=\$2"
31678 }
31679 _LT_EOF
31680     ;;
31681   *)
31682     cat << \_LT_EOF >> "$cfgfile"
31683
31684 # func_append var value
31685 # Append VALUE to the end of shell variable VAR.
31686 func_append ()
31687 {
31688   eval "$1=\$$1\$2"
31689 }
31690
31691 _LT_EOF
31692     ;;
31693   esac
31694
31695
31696   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31697     || (rm -f "$cfgfile"; exit 1)
31698
31699   mv -f "$cfgfile" "$ofile" ||
31700     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31701   chmod +x "$ofile"
31702
31703
31704     cat <<_LT_EOF >> "$ofile"
31705
31706 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31707
31708 # The linker used to build libraries.
31709 LD=$lt_LD_CXX
31710
31711 # Commands used to build an old-style archive.
31712 old_archive_cmds=$lt_old_archive_cmds_CXX
31713
31714 # A language specific compiler.
31715 CC=$lt_compiler_CXX
31716
31717 # Is the compiler the GNU compiler?
31718 with_gcc=$GCC_CXX
31719
31720 # Compiler flag to turn off builtin functions.
31721 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31722
31723 # How to pass a linker flag through the compiler.
31724 wl=$lt_lt_prog_compiler_wl_CXX
31725
31726 # Additional compiler flags for building library objects.
31727 pic_flag=$lt_lt_prog_compiler_pic_CXX
31728
31729 # Compiler flag to prevent dynamic linking.
31730 link_static_flag=$lt_lt_prog_compiler_static_CXX
31731
31732 # Does compiler simultaneously support -c and -o options?
31733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31734
31735 # Whether or not to add -lc for building shared libraries.
31736 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31737
31738 # Whether or not to disallow shared libs when runtime libs are static.
31739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31740
31741 # Compiler flag to allow reflexive dlopens.
31742 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31743
31744 # Compiler flag to generate shared objects directly from archives.
31745 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31746
31747 # Whether the compiler copes with passing no objects directly.
31748 compiler_needs_object=$lt_compiler_needs_object_CXX
31749
31750 # Create an old-style archive from a shared archive.
31751 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31752
31753 # Create a temporary old-style archive to link instead of a shared archive.
31754 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31755
31756 # Commands used to build a shared archive.
31757 archive_cmds=$lt_archive_cmds_CXX
31758 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31759
31760 # Commands used to build a loadable module if different from building
31761 # a shared archive.
31762 module_cmds=$lt_module_cmds_CXX
31763 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31764
31765 # Whether we are building with GNU ld or not.
31766 with_gnu_ld=$lt_with_gnu_ld_CXX
31767
31768 # Flag that allows shared libraries with undefined symbols to be built.
31769 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31770
31771 # Flag that enforces no undefined symbols.
31772 no_undefined_flag=$lt_no_undefined_flag_CXX
31773
31774 # Flag to hardcode \$libdir into a binary during linking.
31775 # This must work even if \$libdir does not exist
31776 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31777
31778 # If ld is used when linking, flag to hardcode \$libdir into a binary
31779 # during linking.  This must work even if \$libdir does not exist.
31780 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31781
31782 # Whether we need a single "-rpath" flag with a separated argument.
31783 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31784
31785 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31786 # DIR into the resulting binary.
31787 hardcode_direct=$hardcode_direct_CXX
31788
31789 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31790 # DIR into the resulting binary and the resulting library dependency is
31791 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31792 # library is relocated.
31793 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31794
31795 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31796 # into the resulting binary.
31797 hardcode_minus_L=$hardcode_minus_L_CXX
31798
31799 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31800 # into the resulting binary.
31801 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31802
31803 # Set to "yes" if building a shared library automatically hardcodes DIR
31804 # into the library and all subsequent libraries and executables linked
31805 # against it.
31806 hardcode_automatic=$hardcode_automatic_CXX
31807
31808 # Set to yes if linker adds runtime paths of dependent libraries
31809 # to runtime path list.
31810 inherit_rpath=$inherit_rpath_CXX
31811
31812 # Whether libtool must link a program against all its dependency libraries.
31813 link_all_deplibs=$link_all_deplibs_CXX
31814
31815 # Fix the shell variable \$srcfile for the compiler.
31816 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31817
31818 # Set to "yes" if exported symbols are required.
31819 always_export_symbols=$always_export_symbols_CXX
31820
31821 # The commands to list exported symbols.
31822 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31823
31824 # Symbols that should not be listed in the preloaded symbols.
31825 exclude_expsyms=$lt_exclude_expsyms_CXX
31826
31827 # Symbols that must always be exported.
31828 include_expsyms=$lt_include_expsyms_CXX
31829
31830 # Commands necessary for linking programs (against libraries) with templates.
31831 prelink_cmds=$lt_prelink_cmds_CXX
31832
31833 # Specify filename containing input files.
31834 file_list_spec=$lt_file_list_spec_CXX
31835
31836 # How to hardcode a shared library path into an executable.
31837 hardcode_action=$hardcode_action_CXX
31838
31839 # The directories searched by this compiler when creating a shared library.
31840 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31841
31842 # Dependencies to place before and after the objects being linked to
31843 # create a shared library.
31844 predep_objects=$lt_predep_objects_CXX
31845 postdep_objects=$lt_postdep_objects_CXX
31846 predeps=$lt_predeps_CXX
31847 postdeps=$lt_postdeps_CXX
31848
31849 # The library search path used internally by the compiler when linking
31850 # a shared library.
31851 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31852
31853 # ### END LIBTOOL TAG CONFIG: CXX
31854 _LT_EOF
31855
31856  ;;
31857     "default-1":C)
31858     for ac_file in $CONFIG_FILES; do
31859       # Support "outfile[:infile[:infile...]]"
31860       case "$ac_file" in
31861         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31862       esac
31863       # PO directories have a Makefile.in generated from Makefile.in.in.
31864       case "$ac_file" in */Makefile.in)
31865         # Adjust a relative srcdir.
31866         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31867         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31868         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31869         # In autoconf-2.13 it is called $ac_given_srcdir.
31870         # In autoconf-2.50 it is called $srcdir.
31871         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31872         case "$ac_given_srcdir" in
31873           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31874           /*) top_srcdir="$ac_given_srcdir" ;;
31875           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31876         esac
31877         # Treat a directory as a PO directory if and only if it has a
31878         # POTFILES.in file. This allows packages to have multiple PO
31879         # directories under different names or in different locations.
31880         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31881           rm -f "$ac_dir/POTFILES"
31882           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31883           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31884           POMAKEFILEDEPS="POTFILES.in"
31885           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31886           # on $ac_dir but don't depend on user-specified configuration
31887           # parameters.
31888           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31889             # The LINGUAS file contains the set of available languages.
31890             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31891               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31892             fi
31893             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31894             # Hide the ALL_LINGUAS assigment from automake.
31895             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31896             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31897           else
31898             # The set of available languages was given in configure.in.
31899             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31900           fi
31901           # Compute POFILES
31902           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31903           # Compute UPDATEPOFILES
31904           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31905           # Compute DUMMYPOFILES
31906           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31907           # Compute GMOFILES
31908           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31909           case "$ac_given_srcdir" in
31910             .) srcdirpre= ;;
31911             *) srcdirpre='$(srcdir)/' ;;
31912           esac
31913           POFILES=
31914           UPDATEPOFILES=
31915           DUMMYPOFILES=
31916           GMOFILES=
31917           for lang in $ALL_LINGUAS; do
31918             POFILES="$POFILES $srcdirpre$lang.po"
31919             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31920             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31921             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31922           done
31923           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31924           # environment variable.
31925           INST_LINGUAS=
31926           if test -n "$ALL_LINGUAS"; then
31927             for presentlang in $ALL_LINGUAS; do
31928               useit=no
31929               if test "%UNSET%" != "$LINGUAS"; then
31930                 desiredlanguages="$LINGUAS"
31931               else
31932                 desiredlanguages="$ALL_LINGUAS"
31933               fi
31934               for desiredlang in $desiredlanguages; do
31935                 # Use the presentlang catalog if desiredlang is
31936                 #   a. equal to presentlang, or
31937                 #   b. a variant of presentlang (because in this case,
31938                 #      presentlang can be used as a fallback for messages
31939                 #      which are not translated in the desiredlang catalog).
31940                 case "$desiredlang" in
31941                   "$presentlang"*) useit=yes;;
31942                 esac
31943               done
31944               if test $useit = yes; then
31945                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31946               fi
31947             done
31948           fi
31949           CATALOGS=
31950           if test -n "$INST_LINGUAS"; then
31951             for lang in $INST_LINGUAS; do
31952               CATALOGS="$CATALOGS $lang.gmo"
31953             done
31954           fi
31955           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31956           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"
31957           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31958             if test -f "$f"; then
31959               case "$f" in
31960                 *.orig | *.bak | *~) ;;
31961                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31962               esac
31963             fi
31964           done
31965         fi
31966         ;;
31967       esac
31968     done ;;
31969     "default":C)
31970  ;;
31971
31972   esac
31973 done # for ac_tag
31974
31975
31976 as_fn_exit 0
31977 _ACEOF
31978 ac_clean_files=$ac_clean_files_save
31979
31980 test $ac_write_fail = 0 ||
31981   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31982
31983
31984 # configure is writing to config.log, and then calls config.status.
31985 # config.status does its own redirection, appending to config.log.
31986 # Unfortunately, on DOS this fails, as config.log is still kept open
31987 # by configure, so config.status won't be able to write to it; its
31988 # output is simply discarded.  So we exec the FD to /dev/null,
31989 # effectively closing config.log, so it can be properly (re)opened and
31990 # appended to by config.status.  When coming back to configure, we
31991 # need to make the FD available again.
31992 if test "$no_create" != yes; then
31993   ac_cs_success=:
31994   ac_config_status_args=
31995   test "$silent" = yes &&
31996     ac_config_status_args="$ac_config_status_args --quiet"
31997   exec 5>/dev/null
31998   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31999   exec 5>>config.log
32000   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32001   # would make configure fail if this is the last instruction.
32002   $ac_cs_success || as_fn_exit $?
32003 fi
32004 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32005   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32006 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32007 fi
32008
32009
32010 if test "${support_bat}" = "yes" ; then
32011    if test "x$QMAKE" = "xnone"; then
32012       as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32013    fi
32014
32015    QMAKEBIN="qmake"
32016    cd src/qt-console
32017    echo "Creating bat Makefile"
32018    touch bat
32019    chmod 755 bat
32020    rm -f Makefile
32021    $QMAKEBIN
32022    ${MAKE:-make} clean
32023    cd ${BUILD_DIR}
32024 fi
32025
32026 if test X"$GCC" = "Xyes" ; then
32027   echo "Doing make of dependencies"
32028   ${MAKE:-make} depend
32029 fi
32030
32031 cd src/qt-console
32032 chmod 755 install_conf_file build-depkgs-qt-console
32033 cd ${BUILD_DIR}
32034
32035 cd scripts
32036 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32037 chmod 755 dvd-handler dvd-simulator
32038 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32039 cd ..
32040
32041 c=updatedb
32042 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
32043 chmod 755 $c/update_postgresql_tables_10_to_11
32044
32045 c=src/cats
32046
32047 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32048 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32049
32050 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32051 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32052
32053 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32054 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32055
32056 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32057 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32058
32059 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32060 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32061
32062 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
32063 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
32064
32065
32066 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
32067 chmod 755 $c/sqlite
32068 chmod 755 $c/mysql
32069
32070 chmod 755 src/win32/build-depkgs-mingw32
32071
32072 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32073    largefile_support="yes"
32074 fi
32075
32076 if test X"$GCC" = "Xyes" ; then
32077                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32078    if test "x${CCVERSION}" = "x" ; then
32079       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32080    fi
32081    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32082    if test x"${CXXVERSION}" = x ; then
32083       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32084    fi
32085 fi
32086
32087 # clean up any old junk
32088 echo " "
32089 echo "Cleaning up"
32090 echo " "
32091 ${MAKE:-make} clean
32092
32093 if test "x${db_type}" = "xInternal" ; then
32094    echo " "
32095    echo " "
32096    echo "You have not specified either --enable-client-only or one of the"
32097    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
32098    echo "  This is not permitted. Please reconfigure."
32099    echo " "
32100    echo "Aborting the configuration ..."
32101    echo " "
32102    echo " "
32103    exit 1
32104 fi
32105
32106 echo "
32107 Configuration on `date`:
32108
32109    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32110    Bacula version:          ${BACULA} ${VERSION} (${DATE})
32111    Source code location:    ${srcdir}
32112    Install binaries:        ${sbindir}
32113    Install libraries:       ${libdir}
32114    Install config files:    ${sysconfdir}
32115    Scripts directory:       ${scriptdir}
32116    Archive directory:       ${archivedir}
32117    Working directory:       ${working_dir}
32118    PID directory:           ${piddir}
32119    Subsys directory:        ${subsysdir}
32120    Man directory:           ${mandir}
32121    Data directory:          ${datarootdir}
32122    Plugin directory:        ${plugindir}
32123    C Compiler:              ${CC} ${CCVERSION}
32124    C++ Compiler:            ${CXX} ${CXXVERSION}
32125    Compiler flags:          ${WCFLAGS} ${CFLAGS}
32126    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
32127    Libraries:               ${LIBS}
32128    Statically Linked Tools: ${support_static_tools}
32129    Statically Linked FD:    ${support_static_fd}
32130    Statically Linked SD:    ${support_static_sd}
32131    Statically Linked DIR:   ${support_static_dir}
32132    Statically Linked CONS:  ${support_static_cons}
32133    Database type:           ${db_type}
32134    Database port:           ${db_port}
32135    Database lib:            ${DB_LIBS}
32136    Database name:           ${db_name}
32137    Database user:           ${db_user}
32138
32139    Job Output Email:        ${job_email}
32140    Traceback Email:         ${dump_email}
32141    SMTP Host Address:       ${smtp_host}
32142
32143    Director Port:           ${dir_port}
32144    File daemon Port:        ${fd_port}
32145    Storage daemon Port:     ${sd_port}
32146
32147    Director User:           ${dir_user}
32148    Director Group:          ${dir_group}
32149    Storage Daemon User:     ${sd_user}
32150    Storage DaemonGroup:     ${sd_group}
32151    File Daemon User:        ${fd_user}
32152    File Daemon Group:       ${fd_group}
32153
32154    SQL binaries Directory   ${SQL_BINDIR}
32155
32156    Large file support:      $largefile_support
32157    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32158    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32159    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32160    TLS support:             ${support_tls}
32161    Encryption support:      ${support_crypto}
32162    ZLIB support:            ${have_zlib}
32163    enable-smartalloc:       ${support_smartalloc}
32164    enable-lockmgr:          ${support_lockmgr}
32165    bat support:             ${support_bat}
32166    enable-gnome:            ${support_gnome} ${gnome_version}
32167    enable-bwx-console:      ${support_wx_console} ${wx_version}
32168    enable-tray-monitor:     ${support_tray_monitor}
32169    client-only:             ${build_client_only}
32170    build-dird:              ${build_dird}
32171    build-stored:            ${build_stored}
32172    Plugin support:          ${have_plugins}
32173    AFS support:             ${have_afs}
32174    ACL support:             ${have_acl}
32175    XATTR support:           ${have_xattr}
32176    Python support:          ${support_python} ${PYTHON_LIBS}
32177    Batch insert enabled:    ${support_batch_insert}
32178
32179   " > config.out
32180
32181 # create a small shell script useful for support with
32182 # configure options and config.out info
32183 cat > scripts/bacula_config << EOF
32184 #!/bin/sh
32185 cat << __EOC__
32186 $ $0 $ac_configure_args
32187 EOF
32188 cat config.out >> scripts/bacula_config
32189 echo __EOC__ >> scripts/bacula_config
32190 chmod 755 scripts/bacula_config
32191
32192 cat config.out
32193
32194 # Display a warning message if postgresql client lib is <= 8.1
32195 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
32196         -a x$support_batch_insert = xyes
32197 then
32198         echo "WARNING: Your PostgreSQL client library is too old to detect "
32199         echo " if it was compiled with --enable-thread-safety, consider to"
32200         echo " upgrade it in order to avoid problems with Batch insert mode"
32201         echo
32202 fi