]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
update configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="src/version.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_header_list=
744 ac_subst_vars='LTLIBOBJS
745 DISTVER
746 DISTNAME
747 MACOSX
748 WIN32
749 PSCMD
750 TAPEDRIVE
751 OBJLIST
752 WRAPLIBS
753 WLDFLAGS
754 WCFLAGS
755 DB_LIBS
756 DLIB
757 DINCLUDE
758 DEBUG
759 FDLIBS
760 CAP_LIBS
761 LIBOBJS
762 X_EXTRA_LIBS
763 X_LIBS
764 X_PRE_LIBS
765 X_CFLAGS
766 XMKMF
767 GETCONF
768 DB_TYPE
769 cats
770 DB_PROG_LIB
771 DB_PROG
772 uncomment_dbi
773 DBI_DBD_DRIVERDIR
774 SQL_BINDIR
775 SQL_INCLUDE
776 SQL_LFLAGS
777 SBINPERM
778 fd_group
779 fd_user
780 sd_group
781 sd_user
782 dir_group
783 dir_user
784 db_port
785 db_password
786 db_user
787 db_name
788 mon_sd_password
789 mon_fd_password
790 mon_dir_password
791 sd_password
792 fd_password
793 dir_password
794 sd_port
795 fd_port
796 dir_port
797 baseport
798 subsysdir
799 piddir
800 smtp_host
801 job_email
802 dump_email
803 plugindir
804 logdir
805 bsrdir
806 scriptdir
807 hostname
808 basename
809 archivedir
810 working_dir
811 OPENSSL_INC
812 OPENSSL_LIBS
813 PYTHON_INCDIR
814 PYTHON_LIBS
815 READLINE_SRC
816 CONS_LDFLAGS
817 CONS_LIBS
818 CONS_SRC
819 CONS_OBJ
820 CONS_INC
821 STORED_DIR
822 DIR_TOOLS
823 DIRD_DIR
824 ALL_DIRS
825 STATIC_WX_CONS
826 STATIC_GNOME_CONS
827 STATIC_CONS
828 STATIC_DIR
829 STATIC_SD
830 STATIC_FD
831 TTOOL_LDFLAGS
832 TRAY_MONITOR_DIR
833 TRAY_MONITOR_LDFLAGS
834 TRAY_MONITOR_CPPFLAGS
835 WX_DIR
836 WXCONS_LDFLAGS
837 WXCONS_CPPFLAGS
838 QWT
839 QWT_LIB
840 QWT_LDFLAGS
841 QWT_INC
842 BAT_DIR
843 INTL_LIBTOOL_SUFFIX_PREFIX
844 INTLOBJS
845 GENCAT
846 INSTOBJEXT
847 DATADIRNAME
848 CATOBJEXT
849 USE_INCLUDED_LIBINTL
850 BUILD_INCLUDED_LIBINTL
851 INTLBISON
852 HAVE_WPRINTF
853 HAVE_SNPRINTF
854 HAVE_ASPRINTF
855 HAVE_POSIX_PRINTF
856 GLIBC21
857 ALLOCA
858 GLIBC2
859 POSUB
860 LTLIBINTL
861 LIBINTL
862 INTLLIBS
863 LTLIBICONV
864 LIBICONV
865 INTL_MACOSX_LIBS
866 MSGMERGE
867 XGETTEXT
868 GMSGFMT
869 MSGFMT
870 USE_NLS
871 MKINSTALLDIRS
872 SET_MAKE
873 HAVE_DARWIN_OS_FALSE
874 HAVE_DARWIN_OS_TRUE
875 HAVE_IRIX_OS_FALSE
876 HAVE_IRIX_OS_TRUE
877 HAVE_SGI_OS_FALSE
878 HAVE_SGI_OS_TRUE
879 HAVE_BSDI_OS_FALSE
880 HAVE_BSDI_OS_TRUE
881 HAVE_OPENBSD_OS_FALSE
882 HAVE_OPENBSD_OS_TRUE
883 HAVE_NETBSD_OS_FALSE
884 HAVE_NETBSD_OS_TRUE
885 HAVE_FREEBSD_OS_FALSE
886 HAVE_FREEBSD_OS_TRUE
887 HAVE_LINUX_OS_FALSE
888 HAVE_LINUX_OS_TRUE
889 HAVE_HPUX_OS_FALSE
890 HAVE_HPUX_OS_TRUE
891 HAVE_AIX_OS_FALSE
892 HAVE_AIX_OS_TRUE
893 HAVE_OSF1_OS_FALSE
894 HAVE_OSF1_OS_TRUE
895 HAVE_SUN_OS_FALSE
896 HAVE_SUN_OS_TRUE
897 INCLUDE_UNINSTALL_TARGET
898 INCLUDE_INSTALL_TARGET
899 FD_PLUGIN_DIR
900 QMAKE_LIBTOOL
901 LIBTOOL_CLEAN_TARGET
902 LIBTOOL_UNINSTALL_TARGET
903 LIBTOOL_INSTALL_TARGET
904 DEFAULT_SHARED_OBJECT_TYPE
905 DEFAULT_ARCHIVE_TYPE
906 DEFAULT_OBJECT_TYPE
907 CXXCPP
908 OTOOL64
909 OTOOL
910 LIPO
911 NMEDIT
912 DSYMUTIL
913 lt_ECHO
914 RANLIB
915 STRIP
916 OBJDUMP
917 LN_S
918 NM
919 ac_ct_DUMPBIN
920 DUMPBIN
921 LD
922 FGREP
923 host_os
924 host_vendor
925 host_cpu
926 host
927 build_os
928 build_vendor
929 build_cpu
930 build
931 LIBTOOL
932 LOCAL_DEFS
933 LOCAL_LDFLAGS
934 LOCAL_CFLAGS
935 LOCAL_LIBS
936 MAKE_SHELL
937 ARFLAGS
938 AWK
939 PIDOF
940 CDRECORD
941 WXFLAGS
942 WXCONFIG
943 GMAKE
944 QMAKE
945 PKGCONFIG
946 DVDRWFORMAT
947 DVDRWMEDIAINFO
948 GROWISOFS
949 PYTHON
950 MKISOFS
951 DD
952 MTX
953 OPENSSL
954 AR
955 TBL
956 CMP
957 ECHO
958 SED
959 CP
960 REMOVE
961 MV
962 INSTALL_DATA
963 INSTALL_SCRIPT
964 INSTALL_PROGRAM
965 EGREP
966 GREP
967 CPP
968 ac_ct_CXX
969 CXXFLAGS
970 CXX
971 OBJEXT
972 EXEEXT
973 ac_ct_CC
974 CPPFLAGS
975 LDFLAGS
976 CFLAGS
977 CC
978 LIBBACFIND_LT_AGE
979 LIBBACFIND_LT_REVISION
980 LIBBACFIND_LT_CURRENT
981 LIBBACSQL_LT_AGE
982 LIBBACSQL_LT_REVISION
983 LIBBACSQL_LT_CURRENT
984 LIBBACPY_LT_AGE
985 LIBBACPY_LT_REVISION
986 LIBBACPY_LT_CURRENT
987 LIBBACCFG_LT_AGE
988 LIBBACCFG_LT_REVISION
989 LIBBACCFG_LT_CURRENT
990 LIBBAC_LT_AGE
991 LIBBAC_LT_REVISION
992 LIBBAC_LT_CURRENT
993 post_host
994 BACULA
995 LSMDATE
996 DATE
997 VERSION
998 FALSEPRG
999 TRUEPRG
1000 WIN32TOPDIR
1001 WIN32MAINDIR
1002 WIN32BUILDDIR
1003 TOP_DIR
1004 BUILD_DIR
1005 target_alias
1006 host_alias
1007 build_alias
1008 LIBS
1009 ECHO_T
1010 ECHO_N
1011 ECHO_C
1012 DEFS
1013 mandir
1014 localedir
1015 libdir
1016 psdir
1017 pdfdir
1018 dvidir
1019 htmldir
1020 infodir
1021 docdir
1022 oldincludedir
1023 includedir
1024 localstatedir
1025 sharedstatedir
1026 sysconfdir
1027 datadir
1028 datarootdir
1029 libexecdir
1030 sbindir
1031 bindir
1032 program_transform_name
1033 prefix
1034 exec_prefix
1035 PACKAGE_URL
1036 PACKAGE_BUGREPORT
1037 PACKAGE_STRING
1038 PACKAGE_VERSION
1039 PACKAGE_TARNAME
1040 PACKAGE_NAME
1041 PATH_SEPARATOR
1042 SHELL'
1043 ac_subst_files='MCOMMON'
1044 ac_user_opts='
1045 enable_option_checking
1046 enable_libtool
1047 enable_shared
1048 enable_static
1049 with_pic
1050 enable_fast_install
1051 with_gnu_ld
1052 enable_libtool_lock
1053 enable_includes
1054 enable_nls
1055 enable_rpath
1056 with_libiconv_prefix
1057 with_libintl_prefix
1058 with_included_gettext
1059 enable_gnome
1060 enable_bat
1061 enable_bwx_console
1062 enable_tray_monitor
1063 enable_smartalloc
1064 enable_lockmgr
1065 enable_static_tools
1066 enable_static_fd
1067 enable_static_sd
1068 enable_static_dir
1069 enable_static_cons
1070 enable_client_only
1071 enable_build_dird
1072 enable_build_stored
1073 enable_conio
1074 enable_ipv6
1075 enable_readline
1076 with_readline
1077 with_python
1078 with_tcp_wrappers
1079 with_openssl
1080 with_working_dir
1081 with_archivedir
1082 with_basename
1083 with_hostname
1084 with_scriptdir
1085 with_bsrdir
1086 with_logdir
1087 with_plugindir
1088 with_dump_email
1089 with_job_email
1090 with_smtp_host
1091 with_pid_dir
1092 with_subsys_dir
1093 with_baseport
1094 with_dir_password
1095 with_fd_password
1096 with_sd_password
1097 with_mon_dir_password
1098 with_mon_fd_password
1099 with_mon_sd_password
1100 with_db_name
1101 with_db_user
1102 with_db_password
1103 with_db_port
1104 with_dir_user
1105 with_dir_group
1106 with_sd_user
1107 with_sd_group
1108 with_fd_user
1109 with_fd_group
1110 with_sbin_perm
1111 with_postgresql
1112 with_mysql
1113 with_embedded_mysql
1114 with_ingres
1115 with_sqlite3
1116 with_dbi
1117 with_dbi_driver
1118 enable_batch_insert
1119 enable_largefile
1120 with_x
1121 enable_acl
1122 enable_xattr
1123 '
1124       ac_precious_vars='build_alias
1125 host_alias
1126 target_alias
1127 CC
1128 CFLAGS
1129 LDFLAGS
1130 LIBS
1131 CPPFLAGS
1132 CXX
1133 CXXFLAGS
1134 CCC
1135 CPP
1136 WXCONFIG
1137 WXFLAGS
1138 CXXCPP
1139 XMKMF'
1140
1141
1142 # Initialize some variables set by options.
1143 ac_init_help=
1144 ac_init_version=false
1145 ac_unrecognized_opts=
1146 ac_unrecognized_sep=
1147 # The variables have the same names as the options, with
1148 # dashes changed to underlines.
1149 cache_file=/dev/null
1150 exec_prefix=NONE
1151 no_create=
1152 no_recursion=
1153 prefix=NONE
1154 program_prefix=NONE
1155 program_suffix=NONE
1156 program_transform_name=s,x,x,
1157 silent=
1158 site=
1159 srcdir=
1160 verbose=
1161 x_includes=NONE
1162 x_libraries=NONE
1163
1164 # Installation directory options.
1165 # These are left unexpanded so users can "make install exec_prefix=/foo"
1166 # and all the variables that are supposed to be based on exec_prefix
1167 # by default will actually change.
1168 # Use braces instead of parens because sh, perl, etc. also accept them.
1169 # (The list follows the same order as the GNU Coding Standards.)
1170 bindir='${exec_prefix}/bin'
1171 sbindir='${exec_prefix}/sbin'
1172 libexecdir='${exec_prefix}/libexec'
1173 datarootdir='${prefix}/share'
1174 datadir='${datarootdir}'
1175 sysconfdir='${prefix}/etc'
1176 sharedstatedir='${prefix}/com'
1177 localstatedir='${prefix}/var'
1178 includedir='${prefix}/include'
1179 oldincludedir='/usr/include'
1180 docdir='${datarootdir}/doc/${PACKAGE}'
1181 infodir='${datarootdir}/info'
1182 htmldir='${docdir}'
1183 dvidir='${docdir}'
1184 pdfdir='${docdir}'
1185 psdir='${docdir}'
1186 libdir='${exec_prefix}/lib'
1187 localedir='${datarootdir}/locale'
1188 mandir='${datarootdir}/man'
1189
1190 ac_prev=
1191 ac_dashdash=
1192 for ac_option
1193 do
1194   # If the previous option needs an argument, assign it.
1195   if test -n "$ac_prev"; then
1196     eval $ac_prev=\$ac_option
1197     ac_prev=
1198     continue
1199   fi
1200
1201   case $ac_option in
1202   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1203   *)    ac_optarg=yes ;;
1204   esac
1205
1206   # Accept the important Cygnus configure options, so we can diagnose typos.
1207
1208   case $ac_dashdash$ac_option in
1209   --)
1210     ac_dashdash=yes ;;
1211
1212   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1213     ac_prev=bindir ;;
1214   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1215     bindir=$ac_optarg ;;
1216
1217   -build | --build | --buil | --bui | --bu)
1218     ac_prev=build_alias ;;
1219   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1220     build_alias=$ac_optarg ;;
1221
1222   -cache-file | --cache-file | --cache-fil | --cache-fi \
1223   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1224     ac_prev=cache_file ;;
1225   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1226   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1227     cache_file=$ac_optarg ;;
1228
1229   --config-cache | -C)
1230     cache_file=config.cache ;;
1231
1232   -datadir | --datadir | --datadi | --datad)
1233     ac_prev=datadir ;;
1234   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1235     datadir=$ac_optarg ;;
1236
1237   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1238   | --dataroo | --dataro | --datar)
1239     ac_prev=datarootdir ;;
1240   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1241   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1242     datarootdir=$ac_optarg ;;
1243
1244   -disable-* | --disable-*)
1245     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1246     # Reject names that are not valid shell variable names.
1247     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248       as_fn_error "invalid feature name: $ac_useropt"
1249     ac_useropt_orig=$ac_useropt
1250     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251     case $ac_user_opts in
1252       *"
1253 "enable_$ac_useropt"
1254 "*) ;;
1255       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1256          ac_unrecognized_sep=', ';;
1257     esac
1258     eval enable_$ac_useropt=no ;;
1259
1260   -docdir | --docdir | --docdi | --doc | --do)
1261     ac_prev=docdir ;;
1262   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1263     docdir=$ac_optarg ;;
1264
1265   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1266     ac_prev=dvidir ;;
1267   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1268     dvidir=$ac_optarg ;;
1269
1270   -enable-* | --enable-*)
1271     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274       as_fn_error "invalid feature name: $ac_useropt"
1275     ac_useropt_orig=$ac_useropt
1276     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277     case $ac_user_opts in
1278       *"
1279 "enable_$ac_useropt"
1280 "*) ;;
1281       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1282          ac_unrecognized_sep=', ';;
1283     esac
1284     eval enable_$ac_useropt=\$ac_optarg ;;
1285
1286   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1287   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1288   | --exec | --exe | --ex)
1289     ac_prev=exec_prefix ;;
1290   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1291   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1292   | --exec=* | --exe=* | --ex=*)
1293     exec_prefix=$ac_optarg ;;
1294
1295   -gas | --gas | --ga | --g)
1296     # Obsolete; use --with-gas.
1297     with_gas=yes ;;
1298
1299   -help | --help | --hel | --he | -h)
1300     ac_init_help=long ;;
1301   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1302     ac_init_help=recursive ;;
1303   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1304     ac_init_help=short ;;
1305
1306   -host | --host | --hos | --ho)
1307     ac_prev=host_alias ;;
1308   -host=* | --host=* | --hos=* | --ho=*)
1309     host_alias=$ac_optarg ;;
1310
1311   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1312     ac_prev=htmldir ;;
1313   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1314   | --ht=*)
1315     htmldir=$ac_optarg ;;
1316
1317   -includedir | --includedir | --includedi | --included | --include \
1318   | --includ | --inclu | --incl | --inc)
1319     ac_prev=includedir ;;
1320   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1321   | --includ=* | --inclu=* | --incl=* | --inc=*)
1322     includedir=$ac_optarg ;;
1323
1324   -infodir | --infodir | --infodi | --infod | --info | --inf)
1325     ac_prev=infodir ;;
1326   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1327     infodir=$ac_optarg ;;
1328
1329   -libdir | --libdir | --libdi | --libd)
1330     ac_prev=libdir ;;
1331   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1332     libdir=$ac_optarg ;;
1333
1334   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1335   | --libexe | --libex | --libe)
1336     ac_prev=libexecdir ;;
1337   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1338   | --libexe=* | --libex=* | --libe=*)
1339     libexecdir=$ac_optarg ;;
1340
1341   -localedir | --localedir | --localedi | --localed | --locale)
1342     ac_prev=localedir ;;
1343   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1344     localedir=$ac_optarg ;;
1345
1346   -localstatedir | --localstatedir | --localstatedi | --localstated \
1347   | --localstate | --localstat | --localsta | --localst | --locals)
1348     ac_prev=localstatedir ;;
1349   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1350   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1351     localstatedir=$ac_optarg ;;
1352
1353   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1354     ac_prev=mandir ;;
1355   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1356     mandir=$ac_optarg ;;
1357
1358   -nfp | --nfp | --nf)
1359     # Obsolete; use --without-fp.
1360     with_fp=no ;;
1361
1362   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1363   | --no-cr | --no-c | -n)
1364     no_create=yes ;;
1365
1366   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1367   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1368     no_recursion=yes ;;
1369
1370   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1371   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1372   | --oldin | --oldi | --old | --ol | --o)
1373     ac_prev=oldincludedir ;;
1374   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1375   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1376   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1377     oldincludedir=$ac_optarg ;;
1378
1379   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1380     ac_prev=prefix ;;
1381   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1382     prefix=$ac_optarg ;;
1383
1384   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1385   | --program-pre | --program-pr | --program-p)
1386     ac_prev=program_prefix ;;
1387   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1388   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1389     program_prefix=$ac_optarg ;;
1390
1391   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1392   | --program-suf | --program-su | --program-s)
1393     ac_prev=program_suffix ;;
1394   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1395   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1396     program_suffix=$ac_optarg ;;
1397
1398   -program-transform-name | --program-transform-name \
1399   | --program-transform-nam | --program-transform-na \
1400   | --program-transform-n | --program-transform- \
1401   | --program-transform | --program-transfor \
1402   | --program-transfo | --program-transf \
1403   | --program-trans | --program-tran \
1404   | --progr-tra | --program-tr | --program-t)
1405     ac_prev=program_transform_name ;;
1406   -program-transform-name=* | --program-transform-name=* \
1407   | --program-transform-nam=* | --program-transform-na=* \
1408   | --program-transform-n=* | --program-transform-=* \
1409   | --program-transform=* | --program-transfor=* \
1410   | --program-transfo=* | --program-transf=* \
1411   | --program-trans=* | --program-tran=* \
1412   | --progr-tra=* | --program-tr=* | --program-t=*)
1413     program_transform_name=$ac_optarg ;;
1414
1415   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1416     ac_prev=pdfdir ;;
1417   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1418     pdfdir=$ac_optarg ;;
1419
1420   -psdir | --psdir | --psdi | --psd | --ps)
1421     ac_prev=psdir ;;
1422   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1423     psdir=$ac_optarg ;;
1424
1425   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1426   | -silent | --silent | --silen | --sile | --sil)
1427     silent=yes ;;
1428
1429   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1430     ac_prev=sbindir ;;
1431   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1432   | --sbi=* | --sb=*)
1433     sbindir=$ac_optarg ;;
1434
1435   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1436   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1437   | --sharedst | --shareds | --shared | --share | --shar \
1438   | --sha | --sh)
1439     ac_prev=sharedstatedir ;;
1440   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1441   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1442   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1443   | --sha=* | --sh=*)
1444     sharedstatedir=$ac_optarg ;;
1445
1446   -site | --site | --sit)
1447     ac_prev=site ;;
1448   -site=* | --site=* | --sit=*)
1449     site=$ac_optarg ;;
1450
1451   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1452     ac_prev=srcdir ;;
1453   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1454     srcdir=$ac_optarg ;;
1455
1456   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1457   | --syscon | --sysco | --sysc | --sys | --sy)
1458     ac_prev=sysconfdir ;;
1459   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1460   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1461     sysconfdir=$ac_optarg ;;
1462
1463   -target | --target | --targe | --targ | --tar | --ta | --t)
1464     ac_prev=target_alias ;;
1465   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1466     target_alias=$ac_optarg ;;
1467
1468   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1469     verbose=yes ;;
1470
1471   -version | --version | --versio | --versi | --vers | -V)
1472     ac_init_version=: ;;
1473
1474   -with-* | --with-*)
1475     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1476     # Reject names that are not valid shell variable names.
1477     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1478       as_fn_error "invalid package name: $ac_useropt"
1479     ac_useropt_orig=$ac_useropt
1480     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1481     case $ac_user_opts in
1482       *"
1483 "with_$ac_useropt"
1484 "*) ;;
1485       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1486          ac_unrecognized_sep=', ';;
1487     esac
1488     eval with_$ac_useropt=\$ac_optarg ;;
1489
1490   -without-* | --without-*)
1491     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1492     # Reject names that are not valid shell variable names.
1493     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1494       as_fn_error "invalid package name: $ac_useropt"
1495     ac_useropt_orig=$ac_useropt
1496     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1497     case $ac_user_opts in
1498       *"
1499 "with_$ac_useropt"
1500 "*) ;;
1501       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1502          ac_unrecognized_sep=', ';;
1503     esac
1504     eval with_$ac_useropt=no ;;
1505
1506   --x)
1507     # Obsolete; use --with-x.
1508     with_x=yes ;;
1509
1510   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1511   | --x-incl | --x-inc | --x-in | --x-i)
1512     ac_prev=x_includes ;;
1513   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1514   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1515     x_includes=$ac_optarg ;;
1516
1517   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1518   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1519     ac_prev=x_libraries ;;
1520   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1521   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1522     x_libraries=$ac_optarg ;;
1523
1524   -*) as_fn_error "unrecognized option: \`$ac_option'
1525 Try \`$0 --help' for more information."
1526     ;;
1527
1528   *=*)
1529     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1530     # Reject names that are not valid shell variable names.
1531     case $ac_envvar in #(
1532       '' | [0-9]* | *[!_$as_cr_alnum]* )
1533       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1534     esac
1535     eval $ac_envvar=\$ac_optarg
1536     export $ac_envvar ;;
1537
1538   *)
1539     # FIXME: should be removed in autoconf 3.0.
1540     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1541     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1542       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1543     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1544     ;;
1545
1546   esac
1547 done
1548
1549 if test -n "$ac_prev"; then
1550   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1551   as_fn_error "missing argument to $ac_option"
1552 fi
1553
1554 if test -n "$ac_unrecognized_opts"; then
1555   case $enable_option_checking in
1556     no) ;;
1557     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1558     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1559   esac
1560 fi
1561
1562 # Check all directory arguments for consistency.
1563 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1564                 datadir sysconfdir sharedstatedir localstatedir includedir \
1565                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1566                 libdir localedir mandir
1567 do
1568   eval ac_val=\$$ac_var
1569   # Remove trailing slashes.
1570   case $ac_val in
1571     */ )
1572       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1573       eval $ac_var=\$ac_val;;
1574   esac
1575   # Be sure to have absolute directory names.
1576   case $ac_val in
1577     [\\/$]* | ?:[\\/]* )  continue;;
1578     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1579   esac
1580   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1581 done
1582
1583 # There might be people who depend on the old broken behavior: `$host'
1584 # used to hold the argument of --host etc.
1585 # FIXME: To remove some day.
1586 build=$build_alias
1587 host=$host_alias
1588 target=$target_alias
1589
1590 # FIXME: To remove some day.
1591 if test "x$host_alias" != x; then
1592   if test "x$build_alias" = x; then
1593     cross_compiling=maybe
1594     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1595     If a cross compiler is detected then cross compile mode will be used." >&2
1596   elif test "x$build_alias" != "x$host_alias"; then
1597     cross_compiling=yes
1598   fi
1599 fi
1600
1601 ac_tool_prefix=
1602 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1603
1604 test "$silent" = yes && exec 6>/dev/null
1605
1606
1607 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1608 ac_ls_di=`ls -di .` &&
1609 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1610   as_fn_error "working directory cannot be determined"
1611 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1612   as_fn_error "pwd does not report name of working directory"
1613
1614
1615 # Find the source files, if location was not specified.
1616 if test -z "$srcdir"; then
1617   ac_srcdir_defaulted=yes
1618   # Try the directory containing this script, then the parent directory.
1619   ac_confdir=`$as_dirname -- "$as_myself" ||
1620 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1621          X"$as_myself" : 'X\(//\)[^/]' \| \
1622          X"$as_myself" : 'X\(//\)$' \| \
1623          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1624 $as_echo X"$as_myself" |
1625     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1626             s//\1/
1627             q
1628           }
1629           /^X\(\/\/\)[^/].*/{
1630             s//\1/
1631             q
1632           }
1633           /^X\(\/\/\)$/{
1634             s//\1/
1635             q
1636           }
1637           /^X\(\/\).*/{
1638             s//\1/
1639             q
1640           }
1641           s/.*/./; q'`
1642   srcdir=$ac_confdir
1643   if test ! -r "$srcdir/$ac_unique_file"; then
1644     srcdir=..
1645   fi
1646 else
1647   ac_srcdir_defaulted=no
1648 fi
1649 if test ! -r "$srcdir/$ac_unique_file"; then
1650   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1651   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1652 fi
1653 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1654 ac_abs_confdir=`(
1655         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1656         pwd)`
1657 # When building in place, set srcdir=.
1658 if test "$ac_abs_confdir" = "$ac_pwd"; then
1659   srcdir=.
1660 fi
1661 # Remove unnecessary trailing slashes from srcdir.
1662 # Double slashes in file names in object file debugging info
1663 # mess up M-x gdb in Emacs.
1664 case $srcdir in
1665 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1666 esac
1667 for ac_var in $ac_precious_vars; do
1668   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1669   eval ac_env_${ac_var}_value=\$${ac_var}
1670   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1671   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1672 done
1673
1674 #
1675 # Report the --help message.
1676 #
1677 if test "$ac_init_help" = "long"; then
1678   # Omit some internal or obsolete options to make the list less imposing.
1679   # This message is too long to be a string in the A/UX 3.1 sh.
1680   cat <<_ACEOF
1681 \`configure' configures this package to adapt to many kinds of systems.
1682
1683 Usage: $0 [OPTION]... [VAR=VALUE]...
1684
1685 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1686 VAR=VALUE.  See below for descriptions of some of the useful variables.
1687
1688 Defaults for the options are specified in brackets.
1689
1690 Configuration:
1691   -h, --help              display this help and exit
1692       --help=short        display options specific to this package
1693       --help=recursive    display the short help of all the included packages
1694   -V, --version           display version information and exit
1695   -q, --quiet, --silent   do not print \`checking...' messages
1696       --cache-file=FILE   cache test results in FILE [disabled]
1697   -C, --config-cache      alias for \`--cache-file=config.cache'
1698   -n, --no-create         do not create output files
1699       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1700
1701 Installation directories:
1702   --prefix=PREFIX         install architecture-independent files in PREFIX
1703                           [$ac_default_prefix]
1704   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1705                           [PREFIX]
1706
1707 By default, \`make install' will install all the files in
1708 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1709 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1710 for instance \`--prefix=\$HOME'.
1711
1712 For better control, use the options below.
1713
1714 Fine tuning of the installation directories:
1715   --bindir=DIR            user executables [EPREFIX/bin]
1716   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1717   --libexecdir=DIR        program executables [EPREFIX/libexec]
1718   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1719   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1720   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1721   --libdir=DIR            object code libraries [EPREFIX/lib]
1722   --includedir=DIR        C header files [PREFIX/include]
1723   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1724   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1725   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1726   --infodir=DIR           info documentation [DATAROOTDIR/info]
1727   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1728   --mandir=DIR            man documentation [DATAROOTDIR/man]
1729   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1730   --htmldir=DIR           html documentation [DOCDIR]
1731   --dvidir=DIR            dvi documentation [DOCDIR]
1732   --pdfdir=DIR            pdf documentation [DOCDIR]
1733   --psdir=DIR             ps documentation [DOCDIR]
1734 _ACEOF
1735
1736   cat <<\_ACEOF
1737
1738 X features:
1739   --x-includes=DIR    X include files are in DIR
1740   --x-libraries=DIR   X library files are in DIR
1741
1742 System types:
1743   --build=BUILD     configure for building on BUILD [guessed]
1744   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1745 _ACEOF
1746 fi
1747
1748 if test -n "$ac_init_help"; then
1749
1750   cat <<\_ACEOF
1751
1752 Optional Features:
1753   --disable-option-checking  ignore unrecognized --enable/--with options
1754   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1755   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1756   --enable-libtool        enable building using GNU libtool [default=yes]
1757   --enable-shared[=PKGS]  build shared libraries [default=yes]
1758   --enable-static[=PKGS]  build static libraries [default=no]
1759   --enable-fast-install[=PKGS]
1760                           optimize for fast installation [default=yes]
1761   --disable-libtool-lock  avoid locking (might break parallel builds)
1762   --enable-includes       enable installing of include files [default=no]
1763   --disable-nls           do not use Native Language Support
1764   --disable-rpath         do not hardcode runtime library paths
1765   --enable-gnome          enable build of bgnome-console GUI [default=no]
1766   --enable-bat            enable build of bat Qt4 GUI [default=no]
1767   --enable-bwx-console    enable build of wxWidgets console [default=no]
1768   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1769                           KDE [default=no]
1770   --enable-smartalloc     enable smartalloc debugging support [default=no]
1771   --enable-lockmgr        enable lock manager support [default=no]
1772   --enable-static-tools   enable static tape tools [default=no]
1773   --enable-static-fd      enable static File daemon [default=no]
1774   --enable-static-sd      enable static Storage daemon [default=no]
1775   --enable-static-dir     enable static Director [default=no]
1776   --enable-static-cons    enable static Console [default=no]
1777   --enable-client-only    build client (File daemon) only [default=no]
1778   --enable-build-dird     enable building of dird (Director) [default=yes]
1779   --enable-build-stored   enable building of stored (Storage daemon)
1780                           [default=yes]
1781   --disable-conio         disable conio support [default=no]
1782   --enable-ipv6           enable ipv6 support [default=yes]
1783   --disable-readline      disable readline support [default=yes]
1784   --enable-batch-insert   enable the DB batch insert code [default=no]
1785   --disable-largefile     omit support for large files
1786   --disable-acl           disable acl support [default=auto]
1787   --disable-xattr         disable xattr support [default=auto]
1788
1789 Optional Packages:
1790   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1791   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1792   --with-pic              try to use only PIC/non-PIC objects [default=use
1793                           both]
1794   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1795   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1796   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1797   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1798   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1799   --without-libintl-prefix     don't search for libintl in includedir and libdir
1800   --with-included-gettext use the GNU gettext library included here
1801   --with-readline[=DIR]   specify readline library directory
1802   --with-python[=DIR]     Include Python support. DIR is the Python base
1803                           install directory, default is to search through a
1804                           number of common places for the Python files.
1805   --with-tcp-wrappers[=DIR]
1806                           enable tcpwrappers support
1807   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1808   --with-working-dir=PATH specify path of Bacula working directory
1809   --with-archivedir=PATH  specify path of SD archive directory
1810   --with-basename=RESNAME specify base resource name for daemons
1811   --with-hostname=RESNAME specify host name for daemons
1812   --with-scriptdir=PATH   specify path of Bacula scripts directory
1813   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1814   --with-logdir=PATH      specify path of Bacula logs directory
1815   --with-plugindir=PATH   specify path of Bacula plugins directory
1816   --with-dump-email=EMAIL dump email address
1817   --with-job-email=EMAIL  job output email address
1818   --with-smtp-host=HOST   SMTP mail host address
1819   --with-pid-dir=PATH     specify location of Bacula pid files
1820   --with-subsys-dir=PATH  specify location of Bacula subsys file
1821   --with-baseport=PORT    specify base port address for daemons
1822   --with-dir-password=PASSWORD
1823                           specify Director's password
1824   --with-fd-password=PASSWORD
1825                           specify Client's password
1826   --with-sd-password=PASSWORD
1827                           specify Storage daemon's password
1828   --with-mon-dir-password=PASSWORD
1829                           specify Director's password used by the monitor
1830   --with-mon-fd-password=PASSWORD
1831                           specify Client's password used by the monitor
1832   --with-mon-sd-password=PASSWORD
1833                           specify Storage daemon's password used by the
1834                           monitor
1835   --with-db-name=DBNAME   specify database name [default=bacula]
1836   --with-db-user=UNAME    specify database user [default=bacula]
1837   --with-db-password=PWD  specify database password [default=*none*]
1838   --with-db-port=DBPORT   specify a database port [default=null]
1839   --with-dir-user=USER    specify user for Director daemon
1840   --with-dir-group=GROUP  specify group for Director daemon
1841   --with-sd-user=USER     specify user for Storage daemon
1842   --with-sd-group=GROUP   specify group for Storage daemon
1843   --with-fd-user=USER     specify user for File daemon
1844   --with-fd-group=GROUP   specify group for File daemon
1845   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1846   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1847                           base install directory, [default=/usr/local/pgsql]
1848   --with-mysql[=DIR]      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-embedded-mysql[=DIR]
1852                           Include MySQL support. DIR is the MySQL base install
1853                           directory, default is to search through a number of
1854                           common places for the MySQL files.
1855   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1856                           install directory, default is to search through a
1857                           number of common places for the Ingres files.
1858   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1859                           install directory, default is to search through a
1860                           number of common places for the SQLite3 files.
1861   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1862                           directory, default is to search through a number of
1863                           common places for the DBI files.
1864   --with-dbi-driver[=DRIVER]
1865                           Suport for DBI driver. DRIVER is the one DBI driver
1866                           like Mysql, Postgresql, others. Default is to not
1867                           configure any driver.
1868   --with-x                use the X Window System
1869
1870 Some influential environment variables:
1871   CC          C compiler command
1872   CFLAGS      C compiler flags
1873   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1874               nonstandard directory <lib dir>
1875   LIBS        libraries to pass to the linker, e.g. -l<library>
1876   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1877               you have headers in a nonstandard directory <include dir>
1878   CXX         C++ compiler command
1879   CXXFLAGS    C++ compiler flags
1880   CPP         C preprocessor
1881   WXCONFIG    wx-config command. On some systems, you must set it to
1882               wx-config-2.6 to use wxWidgets 2.6.
1883   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1884   CXXCPP      C++ preprocessor
1885   XMKMF       Path to xmkmf, Makefile generator for X Window System
1886
1887 Use these variables to override the choices made by `configure' or to help
1888 it to find libraries and programs with nonstandard names/locations.
1889
1890 Report bugs to the package provider.
1891 _ACEOF
1892 ac_status=$?
1893 fi
1894
1895 if test "$ac_init_help" = "recursive"; then
1896   # If there are subdirs, report their specific --help.
1897   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1898     test -d "$ac_dir" ||
1899       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1900       continue
1901     ac_builddir=.
1902
1903 case "$ac_dir" in
1904 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1905 *)
1906   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1907   # A ".." for each directory in $ac_dir_suffix.
1908   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1909   case $ac_top_builddir_sub in
1910   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1911   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1912   esac ;;
1913 esac
1914 ac_abs_top_builddir=$ac_pwd
1915 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1916 # for backward compatibility:
1917 ac_top_builddir=$ac_top_build_prefix
1918
1919 case $srcdir in
1920   .)  # We are building in place.
1921     ac_srcdir=.
1922     ac_top_srcdir=$ac_top_builddir_sub
1923     ac_abs_top_srcdir=$ac_pwd ;;
1924   [\\/]* | ?:[\\/]* )  # Absolute name.
1925     ac_srcdir=$srcdir$ac_dir_suffix;
1926     ac_top_srcdir=$srcdir
1927     ac_abs_top_srcdir=$srcdir ;;
1928   *) # Relative name.
1929     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1930     ac_top_srcdir=$ac_top_build_prefix$srcdir
1931     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1932 esac
1933 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1934
1935     cd "$ac_dir" || { ac_status=$?; continue; }
1936     # Check for guested configure.
1937     if test -f "$ac_srcdir/configure.gnu"; then
1938       echo &&
1939       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1940     elif test -f "$ac_srcdir/configure"; then
1941       echo &&
1942       $SHELL "$ac_srcdir/configure" --help=recursive
1943     else
1944       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1945     fi || ac_status=$?
1946     cd "$ac_pwd" || { ac_status=$?; break; }
1947   done
1948 fi
1949
1950 test -n "$ac_init_help" && exit $ac_status
1951 if $ac_init_version; then
1952   cat <<\_ACEOF
1953 configure
1954 generated by GNU Autoconf 2.65
1955
1956 Copyright (C) 2009 Free Software Foundation, Inc.
1957 This configure script is free software; the Free Software Foundation
1958 gives unlimited permission to copy, distribute and modify it.
1959 _ACEOF
1960   exit
1961 fi
1962
1963 ## ------------------------ ##
1964 ## Autoconf initialization. ##
1965 ## ------------------------ ##
1966
1967 # ac_fn_c_try_compile LINENO
1968 # --------------------------
1969 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1970 ac_fn_c_try_compile ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   rm -f conftest.$ac_objext
1974   if { { ac_try="$ac_compile"
1975 case "(($ac_try" in
1976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977   *) ac_try_echo=$ac_try;;
1978 esac
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981   (eval "$ac_compile") 2>conftest.err
1982   ac_status=$?
1983   if test -s conftest.err; then
1984     grep -v '^ *+' conftest.err >conftest.er1
1985     cat conftest.er1 >&5
1986     mv -f conftest.er1 conftest.err
1987   fi
1988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989   test $ac_status = 0; } && {
1990          test -z "$ac_c_werror_flag" ||
1991          test ! -s conftest.err
1992        } && test -s conftest.$ac_objext; then :
1993   ac_retval=0
1994 else
1995   $as_echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1997
1998         ac_retval=1
1999 fi
2000   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001   as_fn_set_status $ac_retval
2002
2003 } # ac_fn_c_try_compile
2004
2005 # ac_fn_cxx_try_compile LINENO
2006 # ----------------------------
2007 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2008 ac_fn_cxx_try_compile ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   rm -f conftest.$ac_objext
2012   if { { ac_try="$ac_compile"
2013 case "(($ac_try" in
2014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015   *) ac_try_echo=$ac_try;;
2016 esac
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019   (eval "$ac_compile") 2>conftest.err
2020   ac_status=$?
2021   if test -s conftest.err; then
2022     grep -v '^ *+' conftest.err >conftest.er1
2023     cat conftest.er1 >&5
2024     mv -f conftest.er1 conftest.err
2025   fi
2026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027   test $ac_status = 0; } && {
2028          test -z "$ac_cxx_werror_flag" ||
2029          test ! -s conftest.err
2030        } && test -s conftest.$ac_objext; then :
2031   ac_retval=0
2032 else
2033   $as_echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2035
2036         ac_retval=1
2037 fi
2038   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039   as_fn_set_status $ac_retval
2040
2041 } # ac_fn_cxx_try_compile
2042
2043 # ac_fn_c_try_cpp LINENO
2044 # ----------------------
2045 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2046 ac_fn_c_try_cpp ()
2047 {
2048   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049   if { { ac_try="$ac_cpp conftest.$ac_ext"
2050 case "(($ac_try" in
2051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052   *) ac_try_echo=$ac_try;;
2053 esac
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2057   ac_status=$?
2058   if test -s conftest.err; then
2059     grep -v '^ *+' conftest.err >conftest.er1
2060     cat conftest.er1 >&5
2061     mv -f conftest.er1 conftest.err
2062   fi
2063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064   test $ac_status = 0; } >/dev/null && {
2065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2066          test ! -s conftest.err
2067        }; then :
2068   ac_retval=0
2069 else
2070   $as_echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073     ac_retval=1
2074 fi
2075   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076   as_fn_set_status $ac_retval
2077
2078 } # ac_fn_c_try_cpp
2079
2080 # ac_fn_c_try_link LINENO
2081 # -----------------------
2082 # Try to link conftest.$ac_ext, and return whether this succeeded.
2083 ac_fn_c_try_link ()
2084 {
2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086   rm -f conftest.$ac_objext conftest$ac_exeext
2087   if { { ac_try="$ac_link"
2088 case "(($ac_try" in
2089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090   *) ac_try_echo=$ac_try;;
2091 esac
2092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093 $as_echo "$ac_try_echo"; } >&5
2094   (eval "$ac_link") 2>conftest.err
2095   ac_status=$?
2096   if test -s conftest.err; then
2097     grep -v '^ *+' conftest.err >conftest.er1
2098     cat conftest.er1 >&5
2099     mv -f conftest.er1 conftest.err
2100   fi
2101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102   test $ac_status = 0; } && {
2103          test -z "$ac_c_werror_flag" ||
2104          test ! -s conftest.err
2105        } && test -s conftest$ac_exeext && {
2106          test "$cross_compiling" = yes ||
2107          $as_test_x conftest$ac_exeext
2108        }; then :
2109   ac_retval=0
2110 else
2111   $as_echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2113
2114         ac_retval=1
2115 fi
2116   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2117   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2118   # interfere with the next link command; also delete a directory that is
2119   # left behind by Apple's compiler.  We do this before executing the actions.
2120   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2121   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2122   as_fn_set_status $ac_retval
2123
2124 } # ac_fn_c_try_link
2125
2126 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2127 # -------------------------------------------------------
2128 # Tests whether HEADER exists and can be compiled using the include files in
2129 # INCLUDES, setting the cache variable VAR accordingly.
2130 ac_fn_c_check_header_compile ()
2131 {
2132   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134 $as_echo_n "checking for $2... " >&6; }
2135 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2136   $as_echo_n "(cached) " >&6
2137 else
2138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h.  */
2140 $4
2141 #include <$2>
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144   eval "$3=yes"
2145 else
2146   eval "$3=no"
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 fi
2150 eval ac_res=\$$3
2151                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154
2155 } # ac_fn_c_check_header_compile
2156
2157 # ac_fn_c_try_run LINENO
2158 # ----------------------
2159 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2160 # that executables *can* be run.
2161 ac_fn_c_try_run ()
2162 {
2163   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164   if { { ac_try="$ac_link"
2165 case "(($ac_try" in
2166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167   *) ac_try_echo=$ac_try;;
2168 esac
2169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170 $as_echo "$ac_try_echo"; } >&5
2171   (eval "$ac_link") 2>&5
2172   ac_status=$?
2173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2174   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2175   { { case "(($ac_try" in
2176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177   *) ac_try_echo=$ac_try;;
2178 esac
2179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180 $as_echo "$ac_try_echo"; } >&5
2181   (eval "$ac_try") 2>&5
2182   ac_status=$?
2183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184   test $ac_status = 0; }; }; then :
2185   ac_retval=0
2186 else
2187   $as_echo "$as_me: program exited with status $ac_status" >&5
2188        $as_echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2190
2191        ac_retval=$ac_status
2192 fi
2193   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2194   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195   as_fn_set_status $ac_retval
2196
2197 } # ac_fn_c_try_run
2198
2199 # ac_fn_c_check_func LINENO FUNC VAR
2200 # ----------------------------------
2201 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2202 ac_fn_c_check_func ()
2203 {
2204   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206 $as_echo_n "checking for $2... " >&6; }
2207 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208   $as_echo_n "(cached) " >&6
2209 else
2210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h.  */
2212 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2214 #define $2 innocuous_$2
2215
2216 /* System header to define __stub macros and hopefully few prototypes,
2217     which can conflict with char $2 (); below.
2218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2219     <limits.h> exists even on freestanding compilers.  */
2220
2221 #ifdef __STDC__
2222 # include <limits.h>
2223 #else
2224 # include <assert.h>
2225 #endif
2226
2227 #undef $2
2228
2229 /* Override any GCC internal prototype to avoid an error.
2230    Use char because int might match the return type of a GCC
2231    builtin and then its argument prototype would still apply.  */
2232 #ifdef __cplusplus
2233 extern "C"
2234 #endif
2235 char $2 ();
2236 /* The GNU C library defines this for functions which it implements
2237     to always fail with ENOSYS.  Some functions are actually named
2238     something starting with __ and the normal name is an alias.  */
2239 #if defined __stub_$2 || defined __stub___$2
2240 choke me
2241 #endif
2242
2243 int
2244 main ()
2245 {
2246 return $2 ();
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_link "$LINENO"; then :
2252   eval "$3=yes"
2253 else
2254   eval "$3=no"
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext \
2257     conftest$ac_exeext conftest.$ac_ext
2258 fi
2259 eval ac_res=\$$3
2260                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263
2264 } # ac_fn_c_check_func
2265
2266 # ac_fn_cxx_try_cpp LINENO
2267 # ------------------------
2268 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2269 ac_fn_cxx_try_cpp ()
2270 {
2271   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272   if { { ac_try="$ac_cpp conftest.$ac_ext"
2273 case "(($ac_try" in
2274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275   *) ac_try_echo=$ac_try;;
2276 esac
2277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2278 $as_echo "$ac_try_echo"; } >&5
2279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2280   ac_status=$?
2281   if test -s conftest.err; then
2282     grep -v '^ *+' conftest.err >conftest.er1
2283     cat conftest.er1 >&5
2284     mv -f conftest.er1 conftest.err
2285   fi
2286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2287   test $ac_status = 0; } >/dev/null && {
2288          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2289          test ! -s conftest.err
2290        }; then :
2291   ac_retval=0
2292 else
2293   $as_echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296     ac_retval=1
2297 fi
2298   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2299   as_fn_set_status $ac_retval
2300
2301 } # ac_fn_cxx_try_cpp
2302
2303 # ac_fn_cxx_try_link LINENO
2304 # -------------------------
2305 # Try to link conftest.$ac_ext, and return whether this succeeded.
2306 ac_fn_cxx_try_link ()
2307 {
2308   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309   rm -f conftest.$ac_objext conftest$ac_exeext
2310   if { { ac_try="$ac_link"
2311 case "(($ac_try" in
2312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313   *) ac_try_echo=$ac_try;;
2314 esac
2315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2316 $as_echo "$ac_try_echo"; } >&5
2317   (eval "$ac_link") 2>conftest.err
2318   ac_status=$?
2319   if test -s conftest.err; then
2320     grep -v '^ *+' conftest.err >conftest.er1
2321     cat conftest.er1 >&5
2322     mv -f conftest.er1 conftest.err
2323   fi
2324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2325   test $ac_status = 0; } && {
2326          test -z "$ac_cxx_werror_flag" ||
2327          test ! -s conftest.err
2328        } && test -s conftest$ac_exeext && {
2329          test "$cross_compiling" = yes ||
2330          $as_test_x conftest$ac_exeext
2331        }; then :
2332   ac_retval=0
2333 else
2334   $as_echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337         ac_retval=1
2338 fi
2339   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2340   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2341   # interfere with the next link command; also delete a directory that is
2342   # left behind by Apple's compiler.  We do this before executing the actions.
2343   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2344   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345   as_fn_set_status $ac_retval
2346
2347 } # ac_fn_cxx_try_link
2348
2349 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2350 # -------------------------------------------
2351 # Tests whether TYPE exists after having included INCLUDES, setting cache
2352 # variable VAR accordingly.
2353 ac_fn_c_check_type ()
2354 {
2355   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2357 $as_echo_n "checking for $2... " >&6; }
2358 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2359   $as_echo_n "(cached) " >&6
2360 else
2361   eval "$3=no"
2362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h.  */
2364 $4
2365 int
2366 main ()
2367 {
2368 if (sizeof ($2))
2369          return 0;
2370   ;
2371   return 0;
2372 }
2373 _ACEOF
2374 if ac_fn_c_try_compile "$LINENO"; then :
2375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h.  */
2377 $4
2378 int
2379 main ()
2380 {
2381 if (sizeof (($2)))
2382             return 0;
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 if ac_fn_c_try_compile "$LINENO"; then :
2388
2389 else
2390   eval "$3=yes"
2391 fi
2392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 fi
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 fi
2396 eval ac_res=\$$3
2397                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2398 $as_echo "$ac_res" >&6; }
2399   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400
2401 } # ac_fn_c_check_type
2402
2403 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2404 # -------------------------------------------------------
2405 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2406 # the include files in INCLUDES and setting the cache variable VAR
2407 # accordingly.
2408 ac_fn_c_check_header_mongrel ()
2409 {
2410   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413 $as_echo_n "checking for $2... " >&6; }
2414 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2415   $as_echo_n "(cached) " >&6
2416 fi
2417 eval ac_res=\$$3
2418                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2420 else
2421   # Is the header compilable?
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2423 $as_echo_n "checking $2 usability... " >&6; }
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h.  */
2426 $4
2427 #include <$2>
2428 _ACEOF
2429 if ac_fn_c_try_compile "$LINENO"; then :
2430   ac_header_compiler=yes
2431 else
2432   ac_header_compiler=no
2433 fi
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2436 $as_echo "$ac_header_compiler" >&6; }
2437
2438 # Is the header present?
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2440 $as_echo_n "checking $2 presence... " >&6; }
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h.  */
2443 #include <$2>
2444 _ACEOF
2445 if ac_fn_c_try_cpp "$LINENO"; then :
2446   ac_header_preproc=yes
2447 else
2448   ac_header_preproc=no
2449 fi
2450 rm -f conftest.err conftest.$ac_ext
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2452 $as_echo "$ac_header_preproc" >&6; }
2453
2454 # So?  What about this header?
2455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2456   yes:no: )
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2458 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2460 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2461     ;;
2462   no:yes:* )
2463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2464 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2465     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2466 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2468 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2469     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2470 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2471     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2472 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2473     ;;
2474 esac
2475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478   $as_echo_n "(cached) " >&6
2479 else
2480   eval "$3=\$ac_header_compiler"
2481 fi
2482 eval ac_res=\$$3
2483                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 fi
2486   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2487
2488 } # ac_fn_c_check_header_mongrel
2489
2490 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2491 # --------------------------------------------
2492 # Tries to find the compile-time value of EXPR in a program that includes
2493 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2494 # computed
2495 ac_fn_c_compute_int ()
2496 {
2497   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498   if test "$cross_compiling" = yes; then
2499     # Depending upon the size, compute the lo and hi bounds.
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h.  */
2502 $4
2503 int
2504 main ()
2505 {
2506 static int test_array [1 - 2 * !(($2) >= 0)];
2507 test_array [0] = 0
2508
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 if ac_fn_c_try_compile "$LINENO"; then :
2514   ac_lo=0 ac_mid=0
2515   while :; do
2516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h.  */
2518 $4
2519 int
2520 main ()
2521 {
2522 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2523 test_array [0] = 0
2524
2525   ;
2526   return 0;
2527 }
2528 _ACEOF
2529 if ac_fn_c_try_compile "$LINENO"; then :
2530   ac_hi=$ac_mid; break
2531 else
2532   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2533                         if test $ac_lo -le $ac_mid; then
2534                           ac_lo= ac_hi=
2535                           break
2536                         fi
2537                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2538 fi
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540   done
2541 else
2542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h.  */
2544 $4
2545 int
2546 main ()
2547 {
2548 static int test_array [1 - 2 * !(($2) < 0)];
2549 test_array [0] = 0
2550
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 if ac_fn_c_try_compile "$LINENO"; then :
2556   ac_hi=-1 ac_mid=-1
2557   while :; do
2558     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h.  */
2560 $4
2561 int
2562 main ()
2563 {
2564 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2565 test_array [0] = 0
2566
2567   ;
2568   return 0;
2569 }
2570 _ACEOF
2571 if ac_fn_c_try_compile "$LINENO"; then :
2572   ac_lo=$ac_mid; break
2573 else
2574   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2575                         if test $ac_mid -le $ac_hi; then
2576                           ac_lo= ac_hi=
2577                           break
2578                         fi
2579                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2580 fi
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582   done
2583 else
2584   ac_lo= ac_hi=
2585 fi
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 fi
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589 # Binary search between lo and hi bounds.
2590 while test "x$ac_lo" != "x$ac_hi"; do
2591   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h.  */
2594 $4
2595 int
2596 main ()
2597 {
2598 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2599 test_array [0] = 0
2600
2601   ;
2602   return 0;
2603 }
2604 _ACEOF
2605 if ac_fn_c_try_compile "$LINENO"; then :
2606   ac_hi=$ac_mid
2607 else
2608   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2609 fi
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 done
2612 case $ac_lo in #((
2613 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2614 '') ac_retval=1 ;;
2615 esac
2616   else
2617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h.  */
2619 $4
2620 static long int longval () { return $2; }
2621 static unsigned long int ulongval () { return $2; }
2622 #include <stdio.h>
2623 #include <stdlib.h>
2624 int
2625 main ()
2626 {
2627
2628   FILE *f = fopen ("conftest.val", "w");
2629   if (! f)
2630     return 1;
2631   if (($2) < 0)
2632     {
2633       long int i = longval ();
2634       if (i != ($2))
2635         return 1;
2636       fprintf (f, "%ld", i);
2637     }
2638   else
2639     {
2640       unsigned long int i = ulongval ();
2641       if (i != ($2))
2642         return 1;
2643       fprintf (f, "%lu", i);
2644     }
2645   /* Do not output a trailing newline, as this causes \r\n confusion
2646      on some platforms.  */
2647   return ferror (f) || fclose (f) != 0;
2648
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 if ac_fn_c_try_run "$LINENO"; then :
2654   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2655 else
2656   ac_retval=1
2657 fi
2658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2659   conftest.$ac_objext conftest.beam conftest.$ac_ext
2660 rm -f conftest.val
2661
2662   fi
2663   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664   as_fn_set_status $ac_retval
2665
2666 } # ac_fn_c_compute_int
2667
2668 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2669 # ----------------------------------------------------
2670 # Tries to find if the field MEMBER exists in type AGGR, after including
2671 # INCLUDES, setting cache variable VAR accordingly.
2672 ac_fn_c_check_member ()
2673 {
2674   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2676 $as_echo_n "checking for $2.$3... " >&6; }
2677 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2678   $as_echo_n "(cached) " >&6
2679 else
2680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h.  */
2682 $5
2683 int
2684 main ()
2685 {
2686 static $2 ac_aggr;
2687 if (ac_aggr.$3)
2688 return 0;
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 if ac_fn_c_try_compile "$LINENO"; then :
2694   eval "$4=yes"
2695 else
2696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h.  */
2698 $5
2699 int
2700 main ()
2701 {
2702 static $2 ac_aggr;
2703 if (sizeof ac_aggr.$3)
2704 return 0;
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 if ac_fn_c_try_compile "$LINENO"; then :
2710   eval "$4=yes"
2711 else
2712   eval "$4=no"
2713 fi
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 fi
2716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 fi
2718 eval ac_res=\$$4
2719                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2720 $as_echo "$ac_res" >&6; }
2721   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2722
2723 } # ac_fn_c_check_member
2724
2725 # ac_fn_c_check_decl LINENO SYMBOL VAR
2726 # ------------------------------------
2727 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2728 ac_fn_c_check_decl ()
2729 {
2730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2732 $as_echo_n "checking whether $2 is declared... " >&6; }
2733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2734   $as_echo_n "(cached) " >&6
2735 else
2736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h.  */
2738 $4
2739 int
2740 main ()
2741 {
2742 #ifndef $2
2743   (void) $2;
2744 #endif
2745
2746   ;
2747   return 0;
2748 }
2749 _ACEOF
2750 if ac_fn_c_try_compile "$LINENO"; then :
2751   eval "$3=yes"
2752 else
2753   eval "$3=no"
2754 fi
2755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 fi
2757 eval ac_res=\$$3
2758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2759 $as_echo "$ac_res" >&6; }
2760   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2761
2762 } # ac_fn_c_check_decl
2763
2764 # ac_fn_cxx_try_run LINENO
2765 # ------------------------
2766 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2767 # that executables *can* be run.
2768 ac_fn_cxx_try_run ()
2769 {
2770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771   if { { ac_try="$ac_link"
2772 case "(($ac_try" in
2773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774   *) ac_try_echo=$ac_try;;
2775 esac
2776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2777 $as_echo "$ac_try_echo"; } >&5
2778   (eval "$ac_link") 2>&5
2779   ac_status=$?
2780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2782   { { case "(($ac_try" in
2783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784   *) ac_try_echo=$ac_try;;
2785 esac
2786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2787 $as_echo "$ac_try_echo"; } >&5
2788   (eval "$ac_try") 2>&5
2789   ac_status=$?
2790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2791   test $ac_status = 0; }; }; then :
2792   ac_retval=0
2793 else
2794   $as_echo "$as_me: program exited with status $ac_status" >&5
2795        $as_echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2797
2798        ac_retval=$ac_status
2799 fi
2800   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2801   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2802   as_fn_set_status $ac_retval
2803
2804 } # ac_fn_cxx_try_run
2805 cat >config.log <<_ACEOF
2806 This file contains any messages produced by compilers while
2807 running configure, to aid debugging if configure makes a mistake.
2808
2809 It was created by $as_me, which was
2810 generated by GNU Autoconf 2.65.  Invocation command line was
2811
2812   $ $0 $@
2813
2814 _ACEOF
2815 exec 5>>config.log
2816 {
2817 cat <<_ASUNAME
2818 ## --------- ##
2819 ## Platform. ##
2820 ## --------- ##
2821
2822 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2823 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2824 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2825 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2826 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2827
2828 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2829 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2830
2831 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2832 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2833 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2834 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2835 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2836 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2837 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2838
2839 _ASUNAME
2840
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844   IFS=$as_save_IFS
2845   test -z "$as_dir" && as_dir=.
2846     $as_echo "PATH: $as_dir"
2847   done
2848 IFS=$as_save_IFS
2849
2850 } >&5
2851
2852 cat >&5 <<_ACEOF
2853
2854
2855 ## ----------- ##
2856 ## Core tests. ##
2857 ## ----------- ##
2858
2859 _ACEOF
2860
2861
2862 # Keep a trace of the command line.
2863 # Strip out --no-create and --no-recursion so they do not pile up.
2864 # Strip out --silent because we don't want to record it for future runs.
2865 # Also quote any args containing shell meta-characters.
2866 # Make two passes to allow for proper duplicate-argument suppression.
2867 ac_configure_args=
2868 ac_configure_args0=
2869 ac_configure_args1=
2870 ac_must_keep_next=false
2871 for ac_pass in 1 2
2872 do
2873   for ac_arg
2874   do
2875     case $ac_arg in
2876     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2877     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2878     | -silent | --silent | --silen | --sile | --sil)
2879       continue ;;
2880     *\'*)
2881       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2882     esac
2883     case $ac_pass in
2884     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2885     2)
2886       as_fn_append ac_configure_args1 " '$ac_arg'"
2887       if test $ac_must_keep_next = true; then
2888         ac_must_keep_next=false # Got value, back to normal.
2889       else
2890         case $ac_arg in
2891           *=* | --config-cache | -C | -disable-* | --disable-* \
2892           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2893           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2894           | -with-* | --with-* | -without-* | --without-* | --x)
2895             case "$ac_configure_args0 " in
2896               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2897             esac
2898             ;;
2899           -* ) ac_must_keep_next=true ;;
2900         esac
2901       fi
2902       as_fn_append ac_configure_args " '$ac_arg'"
2903       ;;
2904     esac
2905   done
2906 done
2907 { ac_configure_args0=; unset ac_configure_args0;}
2908 { ac_configure_args1=; unset ac_configure_args1;}
2909
2910 # When interrupted or exit'd, cleanup temporary files, and complete
2911 # config.log.  We remove comments because anyway the quotes in there
2912 # would cause problems or look ugly.
2913 # WARNING: Use '\'' to represent an apostrophe within the trap.
2914 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2915 trap 'exit_status=$?
2916   # Save into config.log some information that might help in debugging.
2917   {
2918     echo
2919
2920     cat <<\_ASBOX
2921 ## ---------------- ##
2922 ## Cache variables. ##
2923 ## ---------------- ##
2924 _ASBOX
2925     echo
2926     # The following way of writing the cache mishandles newlines in values,
2927 (
2928   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2929     eval ac_val=\$$ac_var
2930     case $ac_val in #(
2931     *${as_nl}*)
2932       case $ac_var in #(
2933       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2935       esac
2936       case $ac_var in #(
2937       _ | IFS | as_nl) ;; #(
2938       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2939       *) { eval $ac_var=; unset $ac_var;} ;;
2940       esac ;;
2941     esac
2942   done
2943   (set) 2>&1 |
2944     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2945     *${as_nl}ac_space=\ *)
2946       sed -n \
2947         "s/'\''/'\''\\\\'\'''\''/g;
2948           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2949       ;; #(
2950     *)
2951       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2952       ;;
2953     esac |
2954     sort
2955 )
2956     echo
2957
2958     cat <<\_ASBOX
2959 ## ----------------- ##
2960 ## Output variables. ##
2961 ## ----------------- ##
2962 _ASBOX
2963     echo
2964     for ac_var in $ac_subst_vars
2965     do
2966       eval ac_val=\$$ac_var
2967       case $ac_val in
2968       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2969       esac
2970       $as_echo "$ac_var='\''$ac_val'\''"
2971     done | sort
2972     echo
2973
2974     if test -n "$ac_subst_files"; then
2975       cat <<\_ASBOX
2976 ## ------------------- ##
2977 ## File substitutions. ##
2978 ## ------------------- ##
2979 _ASBOX
2980       echo
2981       for ac_var in $ac_subst_files
2982       do
2983         eval ac_val=\$$ac_var
2984         case $ac_val in
2985         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2986         esac
2987         $as_echo "$ac_var='\''$ac_val'\''"
2988       done | sort
2989       echo
2990     fi
2991
2992     if test -s confdefs.h; then
2993       cat <<\_ASBOX
2994 ## ----------- ##
2995 ## confdefs.h. ##
2996 ## ----------- ##
2997 _ASBOX
2998       echo
2999       cat confdefs.h
3000       echo
3001     fi
3002     test "$ac_signal" != 0 &&
3003       $as_echo "$as_me: caught signal $ac_signal"
3004     $as_echo "$as_me: exit $exit_status"
3005   } >&5
3006   rm -f core *.core core.conftest.* &&
3007     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3008     exit $exit_status
3009 ' 0
3010 for ac_signal in 1 2 13 15; do
3011   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3012 done
3013 ac_signal=0
3014
3015 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3016 rm -f -r conftest* confdefs.h
3017
3018 $as_echo "/* confdefs.h */" > confdefs.h
3019
3020 # Predefined preprocessor variables.
3021
3022 cat >>confdefs.h <<_ACEOF
3023 #define PACKAGE_NAME "$PACKAGE_NAME"
3024 _ACEOF
3025
3026 cat >>confdefs.h <<_ACEOF
3027 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3028 _ACEOF
3029
3030 cat >>confdefs.h <<_ACEOF
3031 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3032 _ACEOF
3033
3034 cat >>confdefs.h <<_ACEOF
3035 #define PACKAGE_STRING "$PACKAGE_STRING"
3036 _ACEOF
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3040 _ACEOF
3041
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_URL "$PACKAGE_URL"
3044 _ACEOF
3045
3046
3047 # Let the site file select an alternate cache file if it wants to.
3048 # Prefer an explicitly selected file to automatically selected ones.
3049 ac_site_file1=NONE
3050 ac_site_file2=NONE
3051 if test -n "$CONFIG_SITE"; then
3052   ac_site_file1=$CONFIG_SITE
3053 elif test "x$prefix" != xNONE; then
3054   ac_site_file1=$prefix/share/config.site
3055   ac_site_file2=$prefix/etc/config.site
3056 else
3057   ac_site_file1=$ac_default_prefix/share/config.site
3058   ac_site_file2=$ac_default_prefix/etc/config.site
3059 fi
3060 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3061 do
3062   test "x$ac_site_file" = xNONE && continue
3063   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3064     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3065 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3066     sed 's/^/| /' "$ac_site_file" >&5
3067     . "$ac_site_file"
3068   fi
3069 done
3070
3071 if test -r "$cache_file"; then
3072   # Some versions of bash will fail to source /dev/null (special files
3073   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3074   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3075     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3076 $as_echo "$as_me: loading cache $cache_file" >&6;}
3077     case $cache_file in
3078       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3079       *)                      . "./$cache_file";;
3080     esac
3081   fi
3082 else
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3084 $as_echo "$as_me: creating cache $cache_file" >&6;}
3085   >$cache_file
3086 fi
3087
3088 as_fn_append ac_header_list " stdlib.h"
3089 as_fn_append ac_header_list " unistd.h"
3090 as_fn_append ac_header_list " sys/param.h"
3091 # Check that the precious variables saved in the cache have kept the same
3092 # value.
3093 ac_cache_corrupted=false
3094 for ac_var in $ac_precious_vars; do
3095   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3096   eval ac_new_set=\$ac_env_${ac_var}_set
3097   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3098   eval ac_new_val=\$ac_env_${ac_var}_value
3099   case $ac_old_set,$ac_new_set in
3100     set,)
3101       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3102 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3103       ac_cache_corrupted=: ;;
3104     ,set)
3105       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3106 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3107       ac_cache_corrupted=: ;;
3108     ,);;
3109     *)
3110       if test "x$ac_old_val" != "x$ac_new_val"; then
3111         # differences in whitespace do not lead to failure.
3112         ac_old_val_w=`echo x $ac_old_val`
3113         ac_new_val_w=`echo x $ac_new_val`
3114         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3115           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3116 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3117           ac_cache_corrupted=:
3118         else
3119           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3120 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3121           eval $ac_var=\$ac_old_val
3122         fi
3123         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3124 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3125         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3126 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3127       fi;;
3128   esac
3129   # Pass precious variables to config.status.
3130   if test "$ac_new_set" = set; then
3131     case $ac_new_val in
3132     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3133     *) ac_arg=$ac_var=$ac_new_val ;;
3134     esac
3135     case " $ac_configure_args " in
3136       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3137       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3138     esac
3139   fi
3140 done
3141 if $ac_cache_corrupted; then
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3145 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3146   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3147 fi
3148 ## -------------------- ##
3149 ## Main body of script. ##
3150 ## -------------------- ##
3151
3152 ac_ext=c
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157
3158
3159 BUILD_DIR=`pwd`
3160 cd ..
3161 TOP_DIR=`pwd`
3162 cd ${BUILD_DIR}
3163
3164
3165 ac_aux_dir=
3166 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3167   for ac_t in install-sh install.sh shtool; do
3168     if test -f "$ac_dir/$ac_t"; then
3169       ac_aux_dir=$ac_dir
3170       ac_install_sh="$ac_aux_dir/$ac_t -c"
3171       break 2
3172     fi
3173   done
3174 done
3175 if test -z "$ac_aux_dir"; then
3176   as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3177 fi
3178
3179 # These three variables are undocumented and unsupported,
3180 # and are intended to be withdrawn in a future Autoconf release.
3181 # They can cause serious problems if a builder's source tree is in a directory
3182 # whose full name contains unusual characters.
3183 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3184 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3185 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3186
3187
3188 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3189
3190
3191 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3192 WIN32MAINDIR=${BUILD_DIR}
3193 WIN32TOPDIR=${TOP_DIR}
3194
3195
3196
3197
3198 for ac_prog in true
3199 do
3200   # Extract the first word of "$ac_prog", so it can be a program name with args.
3201 set dummy $ac_prog; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3205   $as_echo_n "(cached) " >&6
3206 else
3207   case $TRUEPRG in
3208   [\\/]* | ?:[\\/]*)
3209   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3210   ;;
3211   *)
3212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215   IFS=$as_save_IFS
3216   test -z "$as_dir" && as_dir=.
3217     for ac_exec_ext in '' $ac_executable_extensions; do
3218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221     break 2
3222   fi
3223 done
3224   done
3225 IFS=$as_save_IFS
3226
3227   ;;
3228 esac
3229 fi
3230 TRUEPRG=$ac_cv_path_TRUEPRG
3231 if test -n "$TRUEPRG"; then
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3233 $as_echo "$TRUEPRG" >&6; }
3234 else
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239
3240   test -n "$TRUEPRG" && break
3241 done
3242 test -n "$TRUEPRG" || TRUEPRG=":"
3243
3244 for ac_prog in false
3245 do
3246   # Extract the first word of "$ac_prog", so it can be a program name with args.
3247 set dummy $ac_prog; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3251   $as_echo_n "(cached) " >&6
3252 else
3253   case $FALSEPRG in
3254   [\\/]* | ?:[\\/]*)
3255   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3256   ;;
3257   *)
3258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3260 do
3261   IFS=$as_save_IFS
3262   test -z "$as_dir" && as_dir=.
3263     for ac_exec_ext in '' $ac_executable_extensions; do
3264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267     break 2
3268   fi
3269 done
3270   done
3271 IFS=$as_save_IFS
3272
3273   ;;
3274 esac
3275 fi
3276 FALSEPRG=$ac_cv_path_FALSEPRG
3277 if test -n "$FALSEPRG"; then
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3279 $as_echo "$FALSEPRG" >&6; }
3280 else
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285
3286   test -n "$FALSEPRG" && break
3287 done
3288 test -n "$FALSEPRG" || FALSEPRG=":"
3289
3290
3291
3292 post_host=
3293 if test "x$BACULA" != x; then
3294    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3295 fi
3296 BACULA=${BACULA:-Bacula}
3297 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3298 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3299 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3300
3301 LIBBAC_LT_CURRENT=`sed -n -e 's/^.*LIBBAC_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3302 LIBBAC_LT_REVISION=`sed -n -e 's/^.*LIBBAC_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3303 LIBBAC_LT_AGE=`sed -n -e 's/^.*LIBBAC_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3304 LIBBACCFG_LT_CURRENT=`sed -n -e 's/^.*LIBBACCFG_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3305 LIBBACCFG_LT_REVISION=`sed -n -e 's/^.*LIBBACCFG_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3306 LIBBACCFG_LT_AGE=`sed -n -e 's/^.*LIBBACCFG_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3307 LIBBACPY_LT_CURRENT=`sed -n -e 's/^.*LIBBACPY_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3308 LIBBACPY_LT_REVISION=`sed -n -e 's/^.*LIBBACPY_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3309 LIBBACPY_LT_AGE=`sed -n -e 's/^.*LIBBACPY_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3310
3311
3312 LIBBACSQL_LT_CURRENT=`sed -n -e 's/^.*LIBBACSQL_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3313 LIBBACSQL_LT_REVISION=`sed -n -e 's/^.*LIBBACSQL_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3314 LIBBACSQL_LT_AGE=`sed -n -e 's/^.*LIBBACSQL_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3315
3316 LIBBACFIND_LT_CURRENT=`sed -n -e 's/^.*LIBBACFIND_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3317 LIBBACFIND_LT_REVISION=`sed -n -e 's/^.*LIBBACFIND_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3318 LIBBACFIND_LT_AGE=`sed -n -e 's/^.*LIBBACFIND_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
3319
3320 echo "configuring for ${BACULA} $VERSION ($DATE)"
3321
3322
3323
3324 ac_ext=c
3325 ac_cpp='$CPP $CPPFLAGS'
3326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329 if test -n "$ac_tool_prefix"; then
3330   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if test "${ac_cv_prog_CC+set}" = set; then :
3335   $as_echo_n "(cached) " >&6
3336 else
3337   if test -n "$CC"; then
3338   ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3342 do
3343   IFS=$as_save_IFS
3344   test -z "$as_dir" && as_dir=.
3345     for ac_exec_ext in '' $ac_executable_extensions; do
3346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3347     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349     break 2
3350   fi
3351 done
3352   done
3353 IFS=$as_save_IFS
3354
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 fi
3365
3366
3367 fi
3368 if test -z "$ac_cv_prog_CC"; then
3369   ac_ct_CC=$CC
3370   # Extract the first word of "gcc", so it can be a program name with args.
3371 set dummy gcc; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3375   $as_echo_n "(cached) " >&6
3376 else
3377   if test -n "$ac_ct_CC"; then
3378   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383   IFS=$as_save_IFS
3384   test -z "$as_dir" && as_dir=.
3385     for ac_exec_ext in '' $ac_executable_extensions; do
3386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387     ac_cv_prog_ac_ct_CC="gcc"
3388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389     break 2
3390   fi
3391 done
3392   done
3393 IFS=$as_save_IFS
3394
3395 fi
3396 fi
3397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3398 if test -n "$ac_ct_CC"; then
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3400 $as_echo "$ac_ct_CC" >&6; }
3401 else
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 fi
3405
3406   if test "x$ac_ct_CC" = x; then
3407     CC=""
3408   else
3409     case $cross_compiling:$ac_tool_warned in
3410 yes:)
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3413 ac_tool_warned=yes ;;
3414 esac
3415     CC=$ac_ct_CC
3416   fi
3417 else
3418   CC="$ac_cv_prog_CC"
3419 fi
3420
3421 if test -z "$CC"; then
3422           if test -n "$ac_tool_prefix"; then
3423     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3424 set dummy ${ac_tool_prefix}cc; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if test "${ac_cv_prog_CC+set}" = set; then :
3428   $as_echo_n "(cached) " >&6
3429 else
3430   if test -n "$CC"; then
3431   ac_cv_prog_CC="$CC" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3435 do
3436   IFS=$as_save_IFS
3437   test -z "$as_dir" && as_dir=.
3438     for ac_exec_ext in '' $ac_executable_extensions; do
3439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440     ac_cv_prog_CC="${ac_tool_prefix}cc"
3441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442     break 2
3443   fi
3444 done
3445   done
3446 IFS=$as_save_IFS
3447
3448 fi
3449 fi
3450 CC=$ac_cv_prog_CC
3451 if test -n "$CC"; then
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3453 $as_echo "$CC" >&6; }
3454 else
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3457 fi
3458
3459
3460   fi
3461 fi
3462 if test -z "$CC"; then
3463   # Extract the first word of "cc", so it can be a program name with args.
3464 set dummy cc; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if test "${ac_cv_prog_CC+set}" = set; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   if test -n "$CC"; then
3471   ac_cv_prog_CC="$CC" # Let the user override the test.
3472 else
3473   ac_prog_rejected=no
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3476 do
3477   IFS=$as_save_IFS
3478   test -z "$as_dir" && as_dir=.
3479     for ac_exec_ext in '' $ac_executable_extensions; do
3480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3482        ac_prog_rejected=yes
3483        continue
3484      fi
3485     ac_cv_prog_CC="cc"
3486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487     break 2
3488   fi
3489 done
3490   done
3491 IFS=$as_save_IFS
3492
3493 if test $ac_prog_rejected = yes; then
3494   # We found a bogon in the path, so make sure we never use it.
3495   set dummy $ac_cv_prog_CC
3496   shift
3497   if test $# != 0; then
3498     # We chose a different compiler from the bogus one.
3499     # However, it has the same basename, so the bogon will be chosen
3500     # first if we set CC to just the basename; use the full file name.
3501     shift
3502     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3503   fi
3504 fi
3505 fi
3506 fi
3507 CC=$ac_cv_prog_CC
3508 if test -n "$CC"; then
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3510 $as_echo "$CC" >&6; }
3511 else
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3514 fi
3515
3516
3517 fi
3518 if test -z "$CC"; then
3519   if test -n "$ac_tool_prefix"; then
3520   for ac_prog in cl.exe
3521   do
3522     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if test "${ac_cv_prog_CC+set}" = set; then :
3527   $as_echo_n "(cached) " >&6
3528 else
3529   if test -n "$CC"; then
3530   ac_cv_prog_CC="$CC" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535   IFS=$as_save_IFS
3536   test -z "$as_dir" && as_dir=.
3537     for ac_exec_ext in '' $ac_executable_extensions; do
3538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541     break 2
3542   fi
3543 done
3544   done
3545 IFS=$as_save_IFS
3546
3547 fi
3548 fi
3549 CC=$ac_cv_prog_CC
3550 if test -n "$CC"; then
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3552 $as_echo "$CC" >&6; }
3553 else
3554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 fi
3557
3558
3559     test -n "$CC" && break
3560   done
3561 fi
3562 if test -z "$CC"; then
3563   ac_ct_CC=$CC
3564   for ac_prog in cl.exe
3565 do
3566   # Extract the first word of "$ac_prog", so it can be a program name with args.
3567 set dummy $ac_prog; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   if test -n "$ac_ct_CC"; then
3574   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579   IFS=$as_save_IFS
3580   test -z "$as_dir" && as_dir=.
3581     for ac_exec_ext in '' $ac_executable_extensions; do
3582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583     ac_cv_prog_ac_ct_CC="$ac_prog"
3584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585     break 2
3586   fi
3587 done
3588   done
3589 IFS=$as_save_IFS
3590
3591 fi
3592 fi
3593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3594 if test -n "$ac_ct_CC"; then
3595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3596 $as_echo "$ac_ct_CC" >&6; }
3597 else
3598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3600 fi
3601
3602
3603   test -n "$ac_ct_CC" && break
3604 done
3605
3606   if test "x$ac_ct_CC" = x; then
3607     CC=""
3608   else
3609     case $cross_compiling:$ac_tool_warned in
3610 yes:)
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3613 ac_tool_warned=yes ;;
3614 esac
3615     CC=$ac_ct_CC
3616   fi
3617 fi
3618
3619 fi
3620
3621
3622 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error "no acceptable C compiler found in \$PATH
3625 See \`config.log' for more details." "$LINENO" 5; }
3626
3627 # Provide some information about the compiler.
3628 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3629 set X $ac_compile
3630 ac_compiler=$2
3631 for ac_option in --version -v -V -qversion; do
3632   { { ac_try="$ac_compiler $ac_option >&5"
3633 case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3640   ac_status=$?
3641   if test -s conftest.err; then
3642     sed '10a\
3643 ... rest of stderr output deleted ...
3644          10q' conftest.err >conftest.er1
3645     cat conftest.er1 >&5
3646   fi
3647   rm -f conftest.er1 conftest.err
3648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649   test $ac_status = 0; }
3650 done
3651
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h.  */
3654
3655 int
3656 main ()
3657 {
3658
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 ac_clean_files_save=$ac_clean_files
3664 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3665 # Try to create an executable without -o first, disregard a.out.
3666 # It will help us diagnose broken compilers, and finding out an intuition
3667 # of exeext.
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3669 $as_echo_n "checking whether the C compiler works... " >&6; }
3670 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3671
3672 # The possible output files:
3673 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3674
3675 ac_rmfiles=
3676 for ac_file in $ac_files
3677 do
3678   case $ac_file in
3679     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3680     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3681   esac
3682 done
3683 rm -f $ac_rmfiles
3684
3685 if { { ac_try="$ac_link_default"
3686 case "(($ac_try" in
3687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688   *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692   (eval "$ac_link_default") 2>&5
3693   ac_status=$?
3694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695   test $ac_status = 0; }; then :
3696   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3697 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3698 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3699 # so that the user can short-circuit this test for compilers unknown to
3700 # Autoconf.
3701 for ac_file in $ac_files ''
3702 do
3703   test -f "$ac_file" || continue
3704   case $ac_file in
3705     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3706         ;;
3707     [ab].out )
3708         # We found the default executable, but exeext='' is most
3709         # certainly right.
3710         break;;
3711     *.* )
3712         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3713         then :; else
3714            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3715         fi
3716         # We set ac_cv_exeext here because the later test for it is not
3717         # safe: cross compilers may not add the suffix if given an `-o'
3718         # argument, so we may need to know it at that point already.
3719         # Even if this section looks crufty: it has the advantage of
3720         # actually working.
3721         break;;
3722     * )
3723         break;;
3724   esac
3725 done
3726 test "$ac_cv_exeext" = no && ac_cv_exeext=
3727
3728 else
3729   ac_file=''
3730 fi
3731 if test -z "$ac_file"; then :
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 $as_echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739 { as_fn_set_status 77
3740 as_fn_error "C compiler cannot create executables
3741 See \`config.log' for more details." "$LINENO" 5; }; }
3742 else
3743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3744 $as_echo "yes" >&6; }
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3747 $as_echo_n "checking for C compiler default output file name... " >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3749 $as_echo "$ac_file" >&6; }
3750 ac_exeext=$ac_cv_exeext
3751
3752 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3753 ac_clean_files=$ac_clean_files_save
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3755 $as_echo_n "checking for suffix of executables... " >&6; }
3756 if { { ac_try="$ac_link"
3757 case "(($ac_try" in
3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759   *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763   (eval "$ac_link") 2>&5
3764   ac_status=$?
3765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766   test $ac_status = 0; }; then :
3767   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3768 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3769 # work properly (i.e., refer to `conftest.exe'), while it won't with
3770 # `rm'.
3771 for ac_file in conftest.exe conftest conftest.*; do
3772   test -f "$ac_file" || continue
3773   case $ac_file in
3774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3775     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776           break;;
3777     * ) break;;
3778   esac
3779 done
3780 else
3781   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 as_fn_error "cannot compute suffix of executables: cannot compile and link
3784 See \`config.log' for more details." "$LINENO" 5; }
3785 fi
3786 rm -f conftest conftest$ac_cv_exeext
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3788 $as_echo "$ac_cv_exeext" >&6; }
3789
3790 rm -f conftest.$ac_ext
3791 EXEEXT=$ac_cv_exeext
3792 ac_exeext=$EXEEXT
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h.  */
3795 #include <stdio.h>
3796 int
3797 main ()
3798 {
3799 FILE *f = fopen ("conftest.out", "w");
3800  return ferror (f) || fclose (f) != 0;
3801
3802   ;
3803   return 0;
3804 }
3805 _ACEOF
3806 ac_clean_files="$ac_clean_files conftest.out"
3807 # Check that the compiler produces executables we can run.  If not, either
3808 # the compiler is broken, or we cross compile.
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3810 $as_echo_n "checking whether we are cross compiling... " >&6; }
3811 if test "$cross_compiling" != yes; then
3812   { { ac_try="$ac_link"
3813 case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819   (eval "$ac_link") 2>&5
3820   ac_status=$?
3821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822   test $ac_status = 0; }
3823   if { ac_try='./conftest$ac_cv_exeext'
3824   { { case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830   (eval "$ac_try") 2>&5
3831   ac_status=$?
3832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833   test $ac_status = 0; }; }; then
3834     cross_compiling=no
3835   else
3836     if test "$cross_compiling" = maybe; then
3837         cross_compiling=yes
3838     else
3839         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error "cannot run C compiled programs.
3842 If you meant to cross compile, use \`--host'.
3843 See \`config.log' for more details." "$LINENO" 5; }
3844     fi
3845   fi
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3848 $as_echo "$cross_compiling" >&6; }
3849
3850 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3851 ac_clean_files=$ac_clean_files_save
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3853 $as_echo_n "checking for suffix of object files... " >&6; }
3854 if test "${ac_cv_objext+set}" = set; then :
3855   $as_echo_n "(cached) " >&6
3856 else
3857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h.  */
3859
3860 int
3861 main ()
3862 {
3863
3864   ;
3865   return 0;
3866 }
3867 _ACEOF
3868 rm -f conftest.o conftest.obj
3869 if { { ac_try="$ac_compile"
3870 case "(($ac_try" in
3871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872   *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876   (eval "$ac_compile") 2>&5
3877   ac_status=$?
3878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879   test $ac_status = 0; }; then :
3880   for ac_file in conftest.o conftest.obj conftest.*; do
3881   test -f "$ac_file" || continue;
3882   case $ac_file in
3883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3884     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3885        break;;
3886   esac
3887 done
3888 else
3889   $as_echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error "cannot compute suffix of object files: cannot compile
3895 See \`config.log' for more details." "$LINENO" 5; }
3896 fi
3897 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3900 $as_echo "$ac_cv_objext" >&6; }
3901 OBJEXT=$ac_cv_objext
3902 ac_objext=$OBJEXT
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3904 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3905 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914 #ifndef __GNUC__
3915        choke me
3916 #endif
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923   ac_compiler_gnu=yes
3924 else
3925   ac_compiler_gnu=no
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3929
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3932 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3933 if test $ac_compiler_gnu = yes; then
3934   GCC=yes
3935 else
3936   GCC=
3937 fi
3938 ac_test_CFLAGS=${CFLAGS+set}
3939 ac_save_CFLAGS=$CFLAGS
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3942 if test "${ac_cv_prog_cc_g+set}" = set; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   ac_save_c_werror_flag=$ac_c_werror_flag
3946    ac_c_werror_flag=yes
3947    ac_cv_prog_cc_g=no
3948    CFLAGS="-g"
3949    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h.  */
3951
3952 int
3953 main ()
3954 {
3955
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 if ac_fn_c_try_compile "$LINENO"; then :
3961   ac_cv_prog_cc_g=yes
3962 else
3963   CFLAGS=""
3964       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h.  */
3966
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976
3977 else
3978   ac_c_werror_flag=$ac_save_c_werror_flag
3979          CFLAGS="-g"
3980          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h.  */
3982
3983 int
3984 main ()
3985 {
3986
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992   ac_cv_prog_cc_g=yes
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 fi
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 fi
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999    ac_c_werror_flag=$ac_save_c_werror_flag
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4002 $as_echo "$ac_cv_prog_cc_g" >&6; }
4003 if test "$ac_test_CFLAGS" = set; then
4004   CFLAGS=$ac_save_CFLAGS
4005 elif test $ac_cv_prog_cc_g = yes; then
4006   if test "$GCC" = yes; then
4007     CFLAGS="-g -O2"
4008   else
4009     CFLAGS="-g"
4010   fi
4011 else
4012   if test "$GCC" = yes; then
4013     CFLAGS="-O2"
4014   else
4015     CFLAGS=
4016   fi
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4019 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4020 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023   ac_cv_prog_cc_c89=no
4024 ac_save_CC=$CC
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h.  */
4027 #include <stdarg.h>
4028 #include <stdio.h>
4029 #include <sys/types.h>
4030 #include <sys/stat.h>
4031 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4032 struct buf { int x; };
4033 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4034 static char *e (p, i)
4035      char **p;
4036      int i;
4037 {
4038   return p[i];
4039 }
4040 static char *f (char * (*g) (char **, int), char **p, ...)
4041 {
4042   char *s;
4043   va_list v;
4044   va_start (v,p);
4045   s = g (p, va_arg (v,int));
4046   va_end (v);
4047   return s;
4048 }
4049
4050 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4051    function prototypes and stuff, but not '\xHH' hex character constants.
4052    These don't provoke an error unfortunately, instead are silently treated
4053    as 'x'.  The following induces an error, until -std is added to get
4054    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4055    array size at least.  It's necessary to write '\x00'==0 to get something
4056    that's true only with -std.  */
4057 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4058
4059 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4060    inside strings and character constants.  */
4061 #define FOO(x) 'x'
4062 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4063
4064 int test (int i, double x);
4065 struct s1 {int (*f) (int a);};
4066 struct s2 {int (*f) (double a);};
4067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4068 int argc;
4069 char **argv;
4070 int
4071 main ()
4072 {
4073 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4079         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4080 do
4081   CC="$ac_save_CC $ac_arg"
4082   if ac_fn_c_try_compile "$LINENO"; then :
4083   ac_cv_prog_cc_c89=$ac_arg
4084 fi
4085 rm -f core conftest.err conftest.$ac_objext
4086   test "x$ac_cv_prog_cc_c89" != "xno" && break
4087 done
4088 rm -f conftest.$ac_ext
4089 CC=$ac_save_CC
4090
4091 fi
4092 # AC_CACHE_VAL
4093 case "x$ac_cv_prog_cc_c89" in
4094   x)
4095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4096 $as_echo "none needed" >&6; } ;;
4097   xno)
4098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4099 $as_echo "unsupported" >&6; } ;;
4100   *)
4101     CC="$CC $ac_cv_prog_cc_c89"
4102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4103 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4104 esac
4105 if test "x$ac_cv_prog_cc_c89" != xno; then :
4106
4107 fi
4108
4109 ac_ext=c
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114
4115 ac_ext=cpp
4116 ac_cpp='$CXXCPP $CPPFLAGS'
4117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4120 if test -z "$CXX"; then
4121   if test -n "$CCC"; then
4122     CXX=$CCC
4123   else
4124     if test -n "$ac_tool_prefix"; then
4125   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4126   do
4127     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if test "${ac_cv_prog_CXX+set}" = set; then :
4132   $as_echo_n "(cached) " >&6
4133 else
4134   if test -n "$CXX"; then
4135   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142     for ac_exec_ext in '' $ac_executable_extensions; do
4143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146     break 2
4147   fi
4148 done
4149   done
4150 IFS=$as_save_IFS
4151
4152 fi
4153 fi
4154 CXX=$ac_cv_prog_CXX
4155 if test -n "$CXX"; then
4156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4157 $as_echo "$CXX" >&6; }
4158 else
4159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163
4164     test -n "$CXX" && break
4165   done
4166 fi
4167 if test -z "$CXX"; then
4168   ac_ct_CXX=$CXX
4169   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4170 do
4171   # Extract the first word of "$ac_prog", so it can be a program name with args.
4172 set dummy $ac_prog; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4176   $as_echo_n "(cached) " >&6
4177 else
4178   if test -n "$ac_ct_CXX"; then
4179   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186     for ac_exec_ext in '' $ac_executable_extensions; do
4187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188     ac_cv_prog_ac_ct_CXX="$ac_prog"
4189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190     break 2
4191   fi
4192 done
4193   done
4194 IFS=$as_save_IFS
4195
4196 fi
4197 fi
4198 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4199 if test -n "$ac_ct_CXX"; then
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4201 $as_echo "$ac_ct_CXX" >&6; }
4202 else
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206
4207
4208   test -n "$ac_ct_CXX" && break
4209 done
4210
4211   if test "x$ac_ct_CXX" = x; then
4212     CXX="g++"
4213   else
4214     case $cross_compiling:$ac_tool_warned in
4215 yes:)
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4218 ac_tool_warned=yes ;;
4219 esac
4220     CXX=$ac_ct_CXX
4221   fi
4222 fi
4223
4224   fi
4225 fi
4226 # Provide some information about the compiler.
4227 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4228 set X $ac_compile
4229 ac_compiler=$2
4230 for ac_option in --version -v -V -qversion; do
4231   { { ac_try="$ac_compiler $ac_option >&5"
4232 case "(($ac_try" in
4233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234   *) ac_try_echo=$ac_try;;
4235 esac
4236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4237 $as_echo "$ac_try_echo"; } >&5
4238   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4239   ac_status=$?
4240   if test -s conftest.err; then
4241     sed '10a\
4242 ... rest of stderr output deleted ...
4243          10q' conftest.err >conftest.er1
4244     cat conftest.er1 >&5
4245   fi
4246   rm -f conftest.er1 conftest.err
4247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248   test $ac_status = 0; }
4249 done
4250
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4252 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4253 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4254   $as_echo_n "(cached) " >&6
4255 else
4256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h.  */
4258
4259 int
4260 main ()
4261 {
4262 #ifndef __GNUC__
4263        choke me
4264 #endif
4265
4266   ;
4267   return 0;
4268 }
4269 _ACEOF
4270 if ac_fn_cxx_try_compile "$LINENO"; then :
4271   ac_compiler_gnu=yes
4272 else
4273   ac_compiler_gnu=no
4274 fi
4275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4277
4278 fi
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4280 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4281 if test $ac_compiler_gnu = yes; then
4282   GXX=yes
4283 else
4284   GXX=
4285 fi
4286 ac_test_CXXFLAGS=${CXXFLAGS+set}
4287 ac_save_CXXFLAGS=$CXXFLAGS
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4289 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4290 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4291   $as_echo_n "(cached) " >&6
4292 else
4293   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4294    ac_cxx_werror_flag=yes
4295    ac_cv_prog_cxx_g=no
4296    CXXFLAGS="-g"
4297    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h.  */
4299
4300 int
4301 main ()
4302 {
4303
4304   ;
4305   return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_cxx_try_compile "$LINENO"; then :
4309   ac_cv_prog_cxx_g=yes
4310 else
4311   CXXFLAGS=""
4312       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h.  */
4314
4315 int
4316 main ()
4317 {
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 if ac_fn_cxx_try_compile "$LINENO"; then :
4324
4325 else
4326   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4327          CXXFLAGS="-g"
4328          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h.  */
4330
4331 int
4332 main ()
4333 {
4334
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 if ac_fn_cxx_try_compile "$LINENO"; then :
4340   ac_cv_prog_cxx_g=yes
4341 fi
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 fi
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 fi
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4348 fi
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4350 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4351 if test "$ac_test_CXXFLAGS" = set; then
4352   CXXFLAGS=$ac_save_CXXFLAGS
4353 elif test $ac_cv_prog_cxx_g = yes; then
4354   if test "$GXX" = yes; then
4355     CXXFLAGS="-g -O2"
4356   else
4357     CXXFLAGS="-g"
4358   fi
4359 else
4360   if test "$GXX" = yes; then
4361     CXXFLAGS="-O2"
4362   else
4363     CXXFLAGS=
4364   fi
4365 fi
4366 ac_ext=c
4367 ac_cpp='$CPP $CPPFLAGS'
4368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371
4372 if test "x$CC" != xcc; then
4373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4374 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4375 else
4376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4377 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4378 fi
4379 set dummy $CC; ac_cc=`$as_echo "$2" |
4380                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4381 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h.  */
4386
4387 int
4388 main ()
4389 {
4390
4391   ;
4392   return 0;
4393 }
4394 _ACEOF
4395 # Make sure it works both with $CC and with simple cc.
4396 # We do the test twice because some compilers refuse to overwrite an
4397 # existing .o file with -o, though they will create one.
4398 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4399 rm -f conftest2.*
4400 if { { case "(($ac_try" in
4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402   *) ac_try_echo=$ac_try;;
4403 esac
4404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405 $as_echo "$ac_try_echo"; } >&5
4406   (eval "$ac_try") 2>&5
4407   ac_status=$?
4408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409   test $ac_status = 0; } &&
4410    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412   *) ac_try_echo=$ac_try;;
4413 esac
4414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4415 $as_echo "$ac_try_echo"; } >&5
4416   (eval "$ac_try") 2>&5
4417   ac_status=$?
4418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419   test $ac_status = 0; };
4420 then
4421   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4422   if test "x$CC" != xcc; then
4423     # Test first that cc exists at all.
4424     if { ac_try='cc -c conftest.$ac_ext >&5'
4425   { { case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431   (eval "$ac_try") 2>&5
4432   ac_status=$?
4433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434   test $ac_status = 0; }; }; then
4435       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4436       rm -f conftest2.*
4437       if { { case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443   (eval "$ac_try") 2>&5
4444   ac_status=$?
4445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446   test $ac_status = 0; } &&
4447          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452 $as_echo "$ac_try_echo"; } >&5
4453   (eval "$ac_try") 2>&5
4454   ac_status=$?
4455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456   test $ac_status = 0; };
4457       then
4458         # cc works too.
4459         :
4460       else
4461         # cc exists but doesn't like -o.
4462         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4463       fi
4464     fi
4465   fi
4466 else
4467   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4468 fi
4469 rm -f core conftest*
4470
4471 fi
4472 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4474 $as_echo "yes" >&6; }
4475 else
4476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4478
4479 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4480
4481 fi
4482
4483 ac_ext=c
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4489 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4490 # On Suns, sometimes $CPP names a directory.
4491 if test -n "$CPP" && test -d "$CPP"; then
4492   CPP=
4493 fi
4494 if test -z "$CPP"; then
4495   if test "${ac_cv_prog_CPP+set}" = set; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498       # Double quotes because CPP needs to be expanded
4499     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4500     do
4501       ac_preproc_ok=false
4502 for ac_c_preproc_warn_flag in '' yes
4503 do
4504   # Use a header file that comes with gcc, so configuring glibc
4505   # with a fresh cross-compiler works.
4506   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4507   # <limits.h> exists even on freestanding compilers.
4508   # On the NeXT, cc -E runs the code through the compiler's parser,
4509   # not just through cpp. "Syntax error" is here to catch this case.
4510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h.  */
4512 #ifdef __STDC__
4513 # include <limits.h>
4514 #else
4515 # include <assert.h>
4516 #endif
4517                      Syntax error
4518 _ACEOF
4519 if ac_fn_c_try_cpp "$LINENO"; then :
4520
4521 else
4522   # Broken: fails on valid input.
4523 continue
4524 fi
4525 rm -f conftest.err conftest.$ac_ext
4526
4527   # OK, works on sane cases.  Now check whether nonexistent headers
4528   # can be detected and how.
4529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h.  */
4531 #include <ac_nonexistent.h>
4532 _ACEOF
4533 if ac_fn_c_try_cpp "$LINENO"; then :
4534   # Broken: success on invalid input.
4535 continue
4536 else
4537   # Passes both tests.
4538 ac_preproc_ok=:
4539 break
4540 fi
4541 rm -f conftest.err conftest.$ac_ext
4542
4543 done
4544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4545 rm -f conftest.err conftest.$ac_ext
4546 if $ac_preproc_ok; then :
4547   break
4548 fi
4549
4550     done
4551     ac_cv_prog_CPP=$CPP
4552
4553 fi
4554   CPP=$ac_cv_prog_CPP
4555 else
4556   ac_cv_prog_CPP=$CPP
4557 fi
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4559 $as_echo "$CPP" >&6; }
4560 ac_preproc_ok=false
4561 for ac_c_preproc_warn_flag in '' yes
4562 do
4563   # Use a header file that comes with gcc, so configuring glibc
4564   # with a fresh cross-compiler works.
4565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4566   # <limits.h> exists even on freestanding compilers.
4567   # On the NeXT, cc -E runs the code through the compiler's parser,
4568   # not just through cpp. "Syntax error" is here to catch this case.
4569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h.  */
4571 #ifdef __STDC__
4572 # include <limits.h>
4573 #else
4574 # include <assert.h>
4575 #endif
4576                      Syntax error
4577 _ACEOF
4578 if ac_fn_c_try_cpp "$LINENO"; then :
4579
4580 else
4581   # Broken: fails on valid input.
4582 continue
4583 fi
4584 rm -f conftest.err conftest.$ac_ext
4585
4586   # OK, works on sane cases.  Now check whether nonexistent headers
4587   # can be detected and how.
4588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h.  */
4590 #include <ac_nonexistent.h>
4591 _ACEOF
4592 if ac_fn_c_try_cpp "$LINENO"; then :
4593   # Broken: success on invalid input.
4594 continue
4595 else
4596   # Passes both tests.
4597 ac_preproc_ok=:
4598 break
4599 fi
4600 rm -f conftest.err conftest.$ac_ext
4601
4602 done
4603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4604 rm -f conftest.err conftest.$ac_ext
4605 if $ac_preproc_ok; then :
4606
4607 else
4608   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4610 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4611 See \`config.log' for more details." "$LINENO" 5; }
4612 fi
4613
4614 ac_ext=c
4615 ac_cpp='$CPP $CPPFLAGS'
4616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619
4620
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4622 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4623 if test "${ac_cv_path_GREP+set}" = set; then :
4624   $as_echo_n "(cached) " >&6
4625 else
4626   if test -z "$GREP"; then
4627   ac_path_GREP_found=false
4628   # Loop through the user's path and test for each of PROGNAME-LIST
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634     for ac_prog in grep ggrep; do
4635     for ac_exec_ext in '' $ac_executable_extensions; do
4636       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4637       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4638 # Check for GNU ac_path_GREP and select it if it is found.
4639   # Check for GNU $ac_path_GREP
4640 case `"$ac_path_GREP" --version 2>&1` in
4641 *GNU*)
4642   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4643 *)
4644   ac_count=0
4645   $as_echo_n 0123456789 >"conftest.in"
4646   while :
4647   do
4648     cat "conftest.in" "conftest.in" >"conftest.tmp"
4649     mv "conftest.tmp" "conftest.in"
4650     cp "conftest.in" "conftest.nl"
4651     $as_echo 'GREP' >> "conftest.nl"
4652     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654     as_fn_arith $ac_count + 1 && ac_count=$as_val
4655     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4656       # Best one so far, save it but keep looking for a better one
4657       ac_cv_path_GREP="$ac_path_GREP"
4658       ac_path_GREP_max=$ac_count
4659     fi
4660     # 10*(2^10) chars as input seems more than enough
4661     test $ac_count -gt 10 && break
4662   done
4663   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4665
4666       $ac_path_GREP_found && break 3
4667     done
4668   done
4669   done
4670 IFS=$as_save_IFS
4671   if test -z "$ac_cv_path_GREP"; then
4672     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673   fi
4674 else
4675   ac_cv_path_GREP=$GREP
4676 fi
4677
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4680 $as_echo "$ac_cv_path_GREP" >&6; }
4681  GREP="$ac_cv_path_GREP"
4682
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4685 $as_echo_n "checking for egrep... " >&6; }
4686 if test "${ac_cv_path_EGREP+set}" = set; then :
4687   $as_echo_n "(cached) " >&6
4688 else
4689   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4690    then ac_cv_path_EGREP="$GREP -E"
4691    else
4692      if test -z "$EGREP"; then
4693   ac_path_EGREP_found=false
4694   # Loop through the user's path and test for each of PROGNAME-LIST
4695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4697 do
4698   IFS=$as_save_IFS
4699   test -z "$as_dir" && as_dir=.
4700     for ac_prog in egrep; do
4701     for ac_exec_ext in '' $ac_executable_extensions; do
4702       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4703       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4704 # Check for GNU ac_path_EGREP and select it if it is found.
4705   # Check for GNU $ac_path_EGREP
4706 case `"$ac_path_EGREP" --version 2>&1` in
4707 *GNU*)
4708   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4709 *)
4710   ac_count=0
4711   $as_echo_n 0123456789 >"conftest.in"
4712   while :
4713   do
4714     cat "conftest.in" "conftest.in" >"conftest.tmp"
4715     mv "conftest.tmp" "conftest.in"
4716     cp "conftest.in" "conftest.nl"
4717     $as_echo 'EGREP' >> "conftest.nl"
4718     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4719     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4720     as_fn_arith $ac_count + 1 && ac_count=$as_val
4721     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4722       # Best one so far, save it but keep looking for a better one
4723       ac_cv_path_EGREP="$ac_path_EGREP"
4724       ac_path_EGREP_max=$ac_count
4725     fi
4726     # 10*(2^10) chars as input seems more than enough
4727     test $ac_count -gt 10 && break
4728   done
4729   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730 esac
4731
4732       $ac_path_EGREP_found && break 3
4733     done
4734   done
4735   done
4736 IFS=$as_save_IFS
4737   if test -z "$ac_cv_path_EGREP"; then
4738     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4739   fi
4740 else
4741   ac_cv_path_EGREP=$EGREP
4742 fi
4743
4744    fi
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4747 $as_echo "$ac_cv_path_EGREP" >&6; }
4748  EGREP="$ac_cv_path_EGREP"
4749
4750
4751 if test $ac_cv_c_compiler_gnu = yes; then
4752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4753 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4754 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757     ac_pattern="Autoconf.*'x'"
4758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h.  */
4760 #include <sgtty.h>
4761 Autoconf TIOCGETP
4762 _ACEOF
4763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4764   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4765   ac_cv_prog_gcc_traditional=yes
4766 else
4767   ac_cv_prog_gcc_traditional=no
4768 fi
4769 rm -f conftest*
4770
4771
4772   if test $ac_cv_prog_gcc_traditional = no; then
4773     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h.  */
4775 #include <termio.h>
4776 Autoconf TCGETA
4777 _ACEOF
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4780   ac_cv_prog_gcc_traditional=yes
4781 fi
4782 rm -f conftest*
4783
4784   fi
4785 fi
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4787 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4788   if test $ac_cv_prog_gcc_traditional = yes; then
4789     CC="$CC -traditional"
4790   fi
4791 fi
4792
4793 BASECC=`basename $CC`
4794 have_gcc=no
4795 if test "x$BASECC" = xgcc; then
4796    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4797
4798    have_gcc=yes
4799 fi
4800 # Extract the first word of "$CXX", so it can be a program name with args.
4801 set dummy $CXX; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if test "${ac_cv_path_CXX+set}" = set; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   case $CXX in
4808   [\\/]* | ?:[\\/]*)
4809   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4810   ;;
4811   *)
4812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815   IFS=$as_save_IFS
4816   test -z "$as_dir" && as_dir=.
4817     for ac_exec_ext in '' $ac_executable_extensions; do
4818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821     break 2
4822   fi
4823 done
4824   done
4825 IFS=$as_save_IFS
4826
4827   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4828   ;;
4829 esac
4830 fi
4831 CXX=$ac_cv_path_CXX
4832 if test -n "$CXX"; then
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4834 $as_echo "$CXX" >&6; }
4835 else
4836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4838 fi
4839
4840
4841 if test ! -e $CXX; then
4842    as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4843 fi
4844
4845 # Find a good install program.  We prefer a C program (faster),
4846 # so one script is as good as another.  But avoid the broken or
4847 # incompatible versions:
4848 # SysV /etc/install, /usr/sbin/install
4849 # SunOS /usr/etc/install
4850 # IRIX /sbin/install
4851 # AIX /bin/install
4852 # AmigaOS /C/install, which installs bootblocks on floppy discs
4853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4856 # OS/2's system install, which has a completely different semantic
4857 # ./install, which can be erroneously created by make from ./install.sh.
4858 # Reject install programs that cannot install multiple files.
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4860 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4861 if test -z "$INSTALL"; then
4862 if test "${ac_cv_path_install+set}" = set; then :
4863   $as_echo_n "(cached) " >&6
4864 else
4865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870     # Account for people who put trailing slashes in PATH elements.
4871 case $as_dir/ in #((
4872   ./ | .// | /[cC]/* | \
4873   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4874   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4875   /usr/ucb/* ) ;;
4876   *)
4877     # OSF1 and SCO ODT 3.0 have their own names for install.
4878     # Don't use installbsd from OSF since it installs stuff as root
4879     # by default.
4880     for ac_prog in ginstall scoinst install; do
4881       for ac_exec_ext in '' $ac_executable_extensions; do
4882         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4883           if test $ac_prog = install &&
4884             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4885             # AIX install.  It has an incompatible calling convention.
4886             :
4887           elif test $ac_prog = install &&
4888             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4889             # program-specific install script used by HP pwplus--don't use.
4890             :
4891           else
4892             rm -rf conftest.one conftest.two conftest.dir
4893             echo one > conftest.one
4894             echo two > conftest.two
4895             mkdir conftest.dir
4896             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4897               test -s conftest.one && test -s conftest.two &&
4898               test -s conftest.dir/conftest.one &&
4899               test -s conftest.dir/conftest.two
4900             then
4901               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4902               break 3
4903             fi
4904           fi
4905         fi
4906       done
4907     done
4908     ;;
4909 esac
4910
4911   done
4912 IFS=$as_save_IFS
4913
4914 rm -rf conftest.one conftest.two conftest.dir
4915
4916 fi
4917   if test "${ac_cv_path_install+set}" = set; then
4918     INSTALL=$ac_cv_path_install
4919   else
4920     # As a last resort, use the slow shell script.  Don't cache a
4921     # value for INSTALL within a source directory, because that will
4922     # break other packages using the cache if that directory is
4923     # removed, or if the value is a relative name.
4924     INSTALL=$ac_install_sh
4925   fi
4926 fi
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4928 $as_echo "$INSTALL" >&6; }
4929
4930 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4931 # It thinks the first close brace ends the variable substitution.
4932 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4933
4934 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4935
4936 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4937
4938 # Extract the first word of "mv", so it can be a program name with args.
4939 set dummy mv; ac_word=$2
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 $as_echo_n "checking for $ac_word... " >&6; }
4942 if test "${ac_cv_path_MV+set}" = set; then :
4943   $as_echo_n "(cached) " >&6
4944 else
4945   case $MV in
4946   [\\/]* | ?:[\\/]*)
4947   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4948   ;;
4949   *)
4950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955     for ac_exec_ext in '' $ac_executable_extensions; do
4956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959     break 2
4960   fi
4961 done
4962   done
4963 IFS=$as_save_IFS
4964
4965   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4966   ;;
4967 esac
4968 fi
4969 MV=$ac_cv_path_MV
4970 if test -n "$MV"; then
4971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4972 $as_echo "$MV" >&6; }
4973 else
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977
4978
4979 # Extract the first word of "rm", so it can be a program name with args.
4980 set dummy rm; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if test "${ac_cv_path_REMOVE+set}" = set; then :
4984   $as_echo_n "(cached) " >&6
4985 else
4986   case $REMOVE in
4987   [\\/]* | ?:[\\/]*)
4988   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4989   ;;
4990   *)
4991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996     for ac_exec_ext in '' $ac_executable_extensions; do
4997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000     break 2
5001   fi
5002 done
5003   done
5004 IFS=$as_save_IFS
5005
5006   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5007   ;;
5008 esac
5009 fi
5010 REMOVE=$ac_cv_path_REMOVE
5011 if test -n "$REMOVE"; then
5012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5013 $as_echo "$REMOVE" >&6; }
5014 else
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5017 fi
5018
5019
5020 # Extract the first word of "cp", so it can be a program name with args.
5021 set dummy cp; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if test "${ac_cv_path_CP+set}" = set; then :
5025   $as_echo_n "(cached) " >&6
5026 else
5027   case $CP in
5028   [\\/]* | ?:[\\/]*)
5029   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5030   ;;
5031   *)
5032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037     for ac_exec_ext in '' $ac_executable_extensions; do
5038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044   done
5045 IFS=$as_save_IFS
5046
5047   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5048   ;;
5049 esac
5050 fi
5051 CP=$ac_cv_path_CP
5052 if test -n "$CP"; then
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5054 $as_echo "$CP" >&6; }
5055 else
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5058 fi
5059
5060
5061 # Extract the first word of "sed", so it can be a program name with args.
5062 set dummy sed; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if test "${ac_cv_path_SED+set}" = set; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   case $SED in
5069   [\\/]* | ?:[\\/]*)
5070   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5071   ;;
5072   *)
5073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078     for ac_exec_ext in '' $ac_executable_extensions; do
5079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085   done
5086 IFS=$as_save_IFS
5087
5088   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5089   ;;
5090 esac
5091 fi
5092 SED=$ac_cv_path_SED
5093 if test -n "$SED"; then
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5095 $as_echo "$SED" >&6; }
5096 else
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5099 fi
5100
5101
5102 # Extract the first word of "echo", so it can be a program name with args.
5103 set dummy echo; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if test "${ac_cv_path_ECHO+set}" = set; then :
5107   $as_echo_n "(cached) " >&6
5108 else
5109   case $ECHO in
5110   [\\/]* | ?:[\\/]*)
5111   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5112   ;;
5113   *)
5114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117   IFS=$as_save_IFS
5118   test -z "$as_dir" && as_dir=.
5119     for ac_exec_ext in '' $ac_executable_extensions; do
5120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123     break 2
5124   fi
5125 done
5126   done
5127 IFS=$as_save_IFS
5128
5129   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5130   ;;
5131 esac
5132 fi
5133 ECHO=$ac_cv_path_ECHO
5134 if test -n "$ECHO"; then
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5136 $as_echo "$ECHO" >&6; }
5137 else
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142
5143 # Extract the first word of "cmp", so it can be a program name with args.
5144 set dummy cmp; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if test "${ac_cv_path_CMP+set}" = set; then :
5148   $as_echo_n "(cached) " >&6
5149 else
5150   case $CMP in
5151   [\\/]* | ?:[\\/]*)
5152   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5153   ;;
5154   *)
5155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158   IFS=$as_save_IFS
5159   test -z "$as_dir" && as_dir=.
5160     for ac_exec_ext in '' $ac_executable_extensions; do
5161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164     break 2
5165   fi
5166 done
5167   done
5168 IFS=$as_save_IFS
5169
5170   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5171   ;;
5172 esac
5173 fi
5174 CMP=$ac_cv_path_CMP
5175 if test -n "$CMP"; then
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5177 $as_echo "$CMP" >&6; }
5178 else
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182
5183
5184 # Extract the first word of "tbl", so it can be a program name with args.
5185 set dummy tbl; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if test "${ac_cv_path_TBL+set}" = set; then :
5189   $as_echo_n "(cached) " >&6
5190 else
5191   case $TBL in
5192   [\\/]* | ?:[\\/]*)
5193   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5194   ;;
5195   *)
5196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201     for ac_exec_ext in '' $ac_executable_extensions; do
5202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208   done
5209 IFS=$as_save_IFS
5210
5211   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5212   ;;
5213 esac
5214 fi
5215 TBL=$ac_cv_path_TBL
5216 if test -n "$TBL"; then
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5218 $as_echo "$TBL" >&6; }
5219 else
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 fi
5223
5224
5225 # Extract the first word of "ar", so it can be a program name with args.
5226 set dummy ar; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if test "${ac_cv_path_AR+set}" = set; then :
5230   $as_echo_n "(cached) " >&6
5231 else
5232   case $AR in
5233   [\\/]* | ?:[\\/]*)
5234   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5235   ;;
5236   *)
5237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240   IFS=$as_save_IFS
5241   test -z "$as_dir" && as_dir=.
5242     for ac_exec_ext in '' $ac_executable_extensions; do
5243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246     break 2
5247   fi
5248 done
5249   done
5250 IFS=$as_save_IFS
5251
5252   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5253   ;;
5254 esac
5255 fi
5256 AR=$ac_cv_path_AR
5257 if test -n "$AR"; then
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5259 $as_echo "$AR" >&6; }
5260 else
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 fi
5264
5265
5266 # Extract the first word of "openssl", so it can be a program name with args.
5267 set dummy openssl; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   case $OPENSSL in
5274   [\\/]* | ?:[\\/]*)
5275   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5276   ;;
5277   *)
5278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281   IFS=$as_save_IFS
5282   test -z "$as_dir" && as_dir=.
5283     for ac_exec_ext in '' $ac_executable_extensions; do
5284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287     break 2
5288   fi
5289 done
5290   done
5291 IFS=$as_save_IFS
5292
5293   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5294   ;;
5295 esac
5296 fi
5297 OPENSSL=$ac_cv_path_OPENSSL
5298 if test -n "$OPENSSL"; then
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5300 $as_echo "$OPENSSL" >&6; }
5301 else
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5304 fi
5305
5306
5307 # Extract the first word of "mtx", so it can be a program name with args.
5308 set dummy mtx; ac_word=$2
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310 $as_echo_n "checking for $ac_word... " >&6; }
5311 if test "${ac_cv_path_MTX+set}" = set; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   case $MTX in
5315   [\\/]* | ?:[\\/]*)
5316   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5317   ;;
5318   *)
5319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322   IFS=$as_save_IFS
5323   test -z "$as_dir" && as_dir=.
5324     for ac_exec_ext in '' $ac_executable_extensions; do
5325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328     break 2
5329   fi
5330 done
5331   done
5332 IFS=$as_save_IFS
5333
5334   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5335   ;;
5336 esac
5337 fi
5338 MTX=$ac_cv_path_MTX
5339 if test -n "$MTX"; then
5340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5341 $as_echo "$MTX" >&6; }
5342 else
5343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5345 fi
5346
5347
5348 # Extract the first word of "dd", so it can be a program name with args.
5349 set dummy dd; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if test "${ac_cv_path_DD+set}" = set; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   case $DD in
5356   [\\/]* | ?:[\\/]*)
5357   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5358   ;;
5359   *)
5360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_exec_ext in '' $ac_executable_extensions; do
5366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372   done
5373 IFS=$as_save_IFS
5374
5375   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5376   ;;
5377 esac
5378 fi
5379 DD=$ac_cv_path_DD
5380 if test -n "$DD"; then
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5382 $as_echo "$DD" >&6; }
5383 else
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387
5388
5389 # Extract the first word of "mkisofs", so it can be a program name with args.
5390 set dummy mkisofs; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5394   $as_echo_n "(cached) " >&6
5395 else
5396   case $MKISOFS in
5397   [\\/]* | ?:[\\/]*)
5398   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5399   ;;
5400   *)
5401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5403 do
5404   IFS=$as_save_IFS
5405   test -z "$as_dir" && as_dir=.
5406     for ac_exec_ext in '' $ac_executable_extensions; do
5407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410     break 2
5411   fi
5412 done
5413   done
5414 IFS=$as_save_IFS
5415
5416   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5417   ;;
5418 esac
5419 fi
5420 MKISOFS=$ac_cv_path_MKISOFS
5421 if test -n "$MKISOFS"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5423 $as_echo "$MKISOFS" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429
5430 # Extract the first word of "python", so it can be a program name with args.
5431 set dummy python; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_path_PYTHON+set}" = set; then :
5435   $as_echo_n "(cached) " >&6
5436 else
5437   case $PYTHON in
5438   [\\/]* | ?:[\\/]*)
5439   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5440   ;;
5441   *)
5442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447     for ac_exec_ext in '' $ac_executable_extensions; do
5448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454   done
5455 IFS=$as_save_IFS
5456
5457   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5458   ;;
5459 esac
5460 fi
5461 PYTHON=$ac_cv_path_PYTHON
5462 if test -n "$PYTHON"; then
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5464 $as_echo "$PYTHON" >&6; }
5465 else
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470
5471 # Extract the first word of "growisofs", so it can be a program name with args.
5472 set dummy growisofs; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   case $GROWISOFS in
5479   [\\/]* | ?:[\\/]*)
5480   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5481   ;;
5482   *)
5483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488     for ac_exec_ext in '' $ac_executable_extensions; do
5489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495   done
5496 IFS=$as_save_IFS
5497
5498   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5499   ;;
5500 esac
5501 fi
5502 GROWISOFS=$ac_cv_path_GROWISOFS
5503 if test -n "$GROWISOFS"; then
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5505 $as_echo "$GROWISOFS" >&6; }
5506 else
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511
5512 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5513 set dummy dvd+rw-mediainfo; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   case $DVDRWMEDIAINFO in
5520   [\\/]* | ?:[\\/]*)
5521   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5522   ;;
5523   *)
5524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527   IFS=$as_save_IFS
5528   test -z "$as_dir" && as_dir=.
5529     for ac_exec_ext in '' $ac_executable_extensions; do
5530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533     break 2
5534   fi
5535 done
5536   done
5537 IFS=$as_save_IFS
5538
5539   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5540   ;;
5541 esac
5542 fi
5543 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5544 if test -n "$DVDRWMEDIAINFO"; then
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5546 $as_echo "$DVDRWMEDIAINFO" >&6; }
5547 else
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551
5552
5553 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5554 set dummy dvd+rw-format; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5558   $as_echo_n "(cached) " >&6
5559 else
5560   case $DVDRWFORMAT in
5561   [\\/]* | ?:[\\/]*)
5562   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5563   ;;
5564   *)
5565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568   IFS=$as_save_IFS
5569   test -z "$as_dir" && as_dir=.
5570     for ac_exec_ext in '' $ac_executable_extensions; do
5571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574     break 2
5575   fi
5576 done
5577   done
5578 IFS=$as_save_IFS
5579
5580   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5581   ;;
5582 esac
5583 fi
5584 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5585 if test -n "$DVDRWFORMAT"; then
5586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5587 $as_echo "$DVDRWFORMAT" >&6; }
5588 else
5589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5591 fi
5592
5593
5594 # Extract the first word of "pkg-config", so it can be a program name with args.
5595 set dummy pkg-config; ac_word=$2
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5599   $as_echo_n "(cached) " >&6
5600 else
5601   case $PKGCONFIG in
5602   [\\/]* | ?:[\\/]*)
5603   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5604   ;;
5605   *)
5606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609   IFS=$as_save_IFS
5610   test -z "$as_dir" && as_dir=.
5611     for ac_exec_ext in '' $ac_executable_extensions; do
5612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615     break 2
5616   fi
5617 done
5618   done
5619 IFS=$as_save_IFS
5620
5621   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5622   ;;
5623 esac
5624 fi
5625 PKGCONFIG=$ac_cv_path_PKGCONFIG
5626 if test -n "$PKGCONFIG"; then
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5628 $as_echo "$PKGCONFIG" >&6; }
5629 else
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634
5635 # Extract the first word of "qmake", so it can be a program name with args.
5636 set dummy qmake; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if test "${ac_cv_path_QMAKE+set}" = set; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642   case $QMAKE in
5643   [\\/]* | ?:[\\/]*)
5644   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5645   ;;
5646   *)
5647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650   IFS=$as_save_IFS
5651   test -z "$as_dir" && as_dir=.
5652     for ac_exec_ext in '' $ac_executable_extensions; do
5653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656     break 2
5657   fi
5658 done
5659   done
5660 IFS=$as_save_IFS
5661
5662   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5663   ;;
5664 esac
5665 fi
5666 QMAKE=$ac_cv_path_QMAKE
5667 if test -n "$QMAKE"; then
5668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5669 $as_echo "$QMAKE" >&6; }
5670 else
5671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674
5675
5676 # Extract the first word of "gmake", so it can be a program name with args.
5677 set dummy gmake; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if test "${ac_cv_path_GMAKE+set}" = set; then :
5681   $as_echo_n "(cached) " >&6
5682 else
5683   case $GMAKE in
5684   [\\/]* | ?:[\\/]*)
5685   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5686   ;;
5687   *)
5688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691   IFS=$as_save_IFS
5692   test -z "$as_dir" && as_dir=.
5693     for ac_exec_ext in '' $ac_executable_extensions; do
5694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697     break 2
5698   fi
5699 done
5700   done
5701 IFS=$as_save_IFS
5702
5703   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5704   ;;
5705 esac
5706 fi
5707 GMAKE=$ac_cv_path_GMAKE
5708 if test -n "$GMAKE"; then
5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5710 $as_echo "$GMAKE" >&6; }
5711 else
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5714 fi
5715
5716
5717
5718 if test "x$WXCONFIG" = x; then
5719    WXCONFIG=wx-config
5720 fi
5721 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5722 set dummy ${WXCONFIG}; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   case $WXCONFIG in
5729   [\\/]* | ?:[\\/]*)
5730   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5731   ;;
5732   *)
5733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738     for ac_exec_ext in '' $ac_executable_extensions; do
5739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745   done
5746 IFS=$as_save_IFS
5747
5748   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5749   ;;
5750 esac
5751 fi
5752 WXCONFIG=$ac_cv_path_WXCONFIG
5753 if test -n "$WXCONFIG"; then
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5755 $as_echo "$WXCONFIG" >&6; }
5756 else
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5759 fi
5760
5761
5762
5763 # Extract the first word of "cdrecord", so it can be a program name with args.
5764 set dummy cdrecord; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5768   $as_echo_n "(cached) " >&6
5769 else
5770   case $CDRECORD in
5771   [\\/]* | ?:[\\/]*)
5772   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5773   ;;
5774   *)
5775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780     for ac_exec_ext in '' $ac_executable_extensions; do
5781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787   done
5788 IFS=$as_save_IFS
5789
5790   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5791   ;;
5792 esac
5793 fi
5794 CDRECORD=$ac_cv_path_CDRECORD
5795 if test -n "$CDRECORD"; then
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5797 $as_echo "$CDRECORD" >&6; }
5798 else
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803
5804 # Extract the first word of "pidof", so it can be a program name with args.
5805 set dummy pidof; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if test "${ac_cv_path_PIDOF+set}" = set; then :
5809   $as_echo_n "(cached) " >&6
5810 else
5811   case $PIDOF in
5812   [\\/]* | ?:[\\/]*)
5813   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5814   ;;
5815   *)
5816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821     for ac_exec_ext in '' $ac_executable_extensions; do
5822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828   done
5829 IFS=$as_save_IFS
5830
5831   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5832   ;;
5833 esac
5834 fi
5835 PIDOF=$ac_cv_path_PIDOF
5836 if test -n "$PIDOF"; then
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5838 $as_echo "$PIDOF" >&6; }
5839 else
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843
5844
5845 for ac_prog in gawk mawk nawk awk
5846 do
5847   # Extract the first word of "$ac_prog", so it can be a program name with args.
5848 set dummy $ac_prog; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_AWK+set}" = set; then :
5852   $as_echo_n "(cached) " >&6
5853 else
5854   if test -n "$AWK"; then
5855   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862     for ac_exec_ext in '' $ac_executable_extensions; do
5863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864     ac_cv_prog_AWK="$ac_prog"
5865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869   done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 AWK=$ac_cv_prog_AWK
5875 if test -n "$AWK"; then
5876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5877 $as_echo "$AWK" >&6; }
5878 else
5879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882
5883
5884   test -n "$AWK" && break
5885 done
5886
5887 # Some AWK programs fail, so test it and warn the user
5888 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5889       { if ((prog == $2) || (("(" prog ")") == $2) ||
5890       (("" prog "") == $2) ||
5891       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5892 else
5893   as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5894    The regex engine of $AWK is too broken to be used you
5895    might want to install GNU AWK.
5896    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5897 fi
5898 THE_AWK=$AWK
5899 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5900 set dummy $THE_AWK; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if test "${ac_cv_path_AWK+set}" = set; then :
5904   $as_echo_n "(cached) " >&6
5905 else
5906   case $AWK in
5907   [\\/]* | ?:[\\/]*)
5908   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5909   ;;
5910   *)
5911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916     for ac_exec_ext in '' $ac_executable_extensions; do
5917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923   done
5924 IFS=$as_save_IFS
5925
5926   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5927   ;;
5928 esac
5929 fi
5930 AWK=$ac_cv_path_AWK
5931 if test -n "$AWK"; then
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5933 $as_echo "$AWK" >&6; }
5934 else
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 fi
5938
5939
5940
5941
5942 test -n "$ARFLAG" || ARFLAGS="cr"
5943
5944
5945 MAKE_SHELL=/bin/sh
5946
5947
5948
5949
5950
5951
5952
5953 use_libtool=yes
5954 # Check whether --enable-libtool was given.
5955 if test "${enable_libtool+set}" = set; then :
5956   enableval=$enable_libtool;
5957        if test x$enableval = xno; then
5958           use_libtool=no
5959        fi
5960
5961
5962 fi
5963
5964 case `pwd` in
5965   *\ * | *\     *)
5966     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5967 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5968 esac
5969
5970
5971
5972 macro_version='2.2.6'
5973 macro_revision='1.3012'
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987 ltmain="$ac_aux_dir/ltmain.sh"
5988
5989 # Make sure we can run config.sub.
5990 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5991   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5994 $as_echo_n "checking build system type... " >&6; }
5995 if test "${ac_cv_build+set}" = set; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   ac_build_alias=$build_alias
5999 test "x$ac_build_alias" = x &&
6000   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6001 test "x$ac_build_alias" = x &&
6002   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6003 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6004   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6005
6006 fi
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6008 $as_echo "$ac_cv_build" >&6; }
6009 case $ac_cv_build in
6010 *-*-*) ;;
6011 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6012 esac
6013 build=$ac_cv_build
6014 ac_save_IFS=$IFS; IFS='-'
6015 set x $ac_cv_build
6016 shift
6017 build_cpu=$1
6018 build_vendor=$2
6019 shift; shift
6020 # Remember, the first character of IFS is used to create $*,
6021 # except with old shells:
6022 build_os=$*
6023 IFS=$ac_save_IFS
6024 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6025
6026
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6028 $as_echo_n "checking host system type... " >&6; }
6029 if test "${ac_cv_host+set}" = set; then :
6030   $as_echo_n "(cached) " >&6
6031 else
6032   if test "x$host_alias" = x; then
6033   ac_cv_host=$ac_cv_build
6034 else
6035   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6036     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6037 fi
6038
6039 fi
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6041 $as_echo "$ac_cv_host" >&6; }
6042 case $ac_cv_host in
6043 *-*-*) ;;
6044 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6045 esac
6046 host=$ac_cv_host
6047 ac_save_IFS=$IFS; IFS='-'
6048 set x $ac_cv_host
6049 shift
6050 host_cpu=$1
6051 host_vendor=$2
6052 shift; shift
6053 # Remember, the first character of IFS is used to create $*,
6054 # except with old shells:
6055 host_os=$*
6056 IFS=$ac_save_IFS
6057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6058
6059
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6061 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6062 if test "${ac_cv_path_SED+set}" = set; then :
6063   $as_echo_n "(cached) " >&6
6064 else
6065             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6066      for ac_i in 1 2 3 4 5 6 7; do
6067        ac_script="$ac_script$as_nl$ac_script"
6068      done
6069      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6070      { ac_script=; unset ac_script;}
6071      if test -z "$SED"; then
6072   ac_path_SED_found=false
6073   # Loop through the user's path and test for each of PROGNAME-LIST
6074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079     for ac_prog in sed gsed; do
6080     for ac_exec_ext in '' $ac_executable_extensions; do
6081       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6082       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6083 # Check for GNU ac_path_SED and select it if it is found.
6084   # Check for GNU $ac_path_SED
6085 case `"$ac_path_SED" --version 2>&1` in
6086 *GNU*)
6087   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6088 *)
6089   ac_count=0
6090   $as_echo_n 0123456789 >"conftest.in"
6091   while :
6092   do
6093     cat "conftest.in" "conftest.in" >"conftest.tmp"
6094     mv "conftest.tmp" "conftest.in"
6095     cp "conftest.in" "conftest.nl"
6096     $as_echo '' >> "conftest.nl"
6097     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6098     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6099     as_fn_arith $ac_count + 1 && ac_count=$as_val
6100     if test $ac_count -gt ${ac_path_SED_max-0}; then
6101       # Best one so far, save it but keep looking for a better one
6102       ac_cv_path_SED="$ac_path_SED"
6103       ac_path_SED_max=$ac_count
6104     fi
6105     # 10*(2^10) chars as input seems more than enough
6106     test $ac_count -gt 10 && break
6107   done
6108   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6109 esac
6110
6111       $ac_path_SED_found && break 3
6112     done
6113   done
6114   done
6115 IFS=$as_save_IFS
6116   if test -z "$ac_cv_path_SED"; then
6117     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6118   fi
6119 else
6120   ac_cv_path_SED=$SED
6121 fi
6122
6123 fi
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6125 $as_echo "$ac_cv_path_SED" >&6; }
6126  SED="$ac_cv_path_SED"
6127   rm -f conftest.sed
6128
6129 test -z "$SED" && SED=sed
6130 Xsed="$SED -e 1s/^X//"
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6143 $as_echo_n "checking for fgrep... " >&6; }
6144 if test "${ac_cv_path_FGREP+set}" = set; then :
6145   $as_echo_n "(cached) " >&6
6146 else
6147   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6148    then ac_cv_path_FGREP="$GREP -F"
6149    else
6150      if test -z "$FGREP"; then
6151   ac_path_FGREP_found=false
6152   # Loop through the user's path and test for each of PROGNAME-LIST
6153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6155 do
6156   IFS=$as_save_IFS
6157   test -z "$as_dir" && as_dir=.
6158     for ac_prog in fgrep; do
6159     for ac_exec_ext in '' $ac_executable_extensions; do
6160       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6161       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6162 # Check for GNU ac_path_FGREP and select it if it is found.
6163   # Check for GNU $ac_path_FGREP
6164 case `"$ac_path_FGREP" --version 2>&1` in
6165 *GNU*)
6166   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6167 *)
6168   ac_count=0
6169   $as_echo_n 0123456789 >"conftest.in"
6170   while :
6171   do
6172     cat "conftest.in" "conftest.in" >"conftest.tmp"
6173     mv "conftest.tmp" "conftest.in"
6174     cp "conftest.in" "conftest.nl"
6175     $as_echo 'FGREP' >> "conftest.nl"
6176     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6177     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6178     as_fn_arith $ac_count + 1 && ac_count=$as_val
6179     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6180       # Best one so far, save it but keep looking for a better one
6181       ac_cv_path_FGREP="$ac_path_FGREP"
6182       ac_path_FGREP_max=$ac_count
6183     fi
6184     # 10*(2^10) chars as input seems more than enough
6185     test $ac_count -gt 10 && break
6186   done
6187   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6188 esac
6189
6190       $ac_path_FGREP_found && break 3
6191     done
6192   done
6193   done
6194 IFS=$as_save_IFS
6195   if test -z "$ac_cv_path_FGREP"; then
6196     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6197   fi
6198 else
6199   ac_cv_path_FGREP=$FGREP
6200 fi
6201
6202    fi
6203 fi
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6205 $as_echo "$ac_cv_path_FGREP" >&6; }
6206  FGREP="$ac_cv_path_FGREP"
6207
6208
6209 test -z "$GREP" && GREP=grep
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229 # Check whether --with-gnu-ld was given.
6230 if test "${with_gnu_ld+set}" = set; then :
6231   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6232 else
6233   with_gnu_ld=no
6234 fi
6235
6236 ac_prog=ld
6237 if test "$GCC" = yes; then
6238   # Check if gcc -print-prog-name=ld gives a path.
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6240 $as_echo_n "checking for ld used by $CC... " >&6; }
6241   case $host in
6242   *-*-mingw*)
6243     # gcc leaves a trailing carriage return which upsets mingw
6244     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6245   *)
6246     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6247   esac
6248   case $ac_prog in
6249     # Accept absolute paths.
6250     [\\/]* | ?:[\\/]*)
6251       re_direlt='/[^/][^/]*/\.\./'
6252       # Canonicalize the pathname of ld
6253       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6254       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6255         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6256       done
6257       test -z "$LD" && LD="$ac_prog"
6258       ;;
6259   "")
6260     # If it fails, then pretend we aren't using GCC.
6261     ac_prog=ld
6262     ;;
6263   *)
6264     # If it is relative, then search for the first ld in PATH.
6265     with_gnu_ld=unknown
6266     ;;
6267   esac
6268 elif test "$with_gnu_ld" = yes; then
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6270 $as_echo_n "checking for GNU ld... " >&6; }
6271 else
6272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6273 $as_echo_n "checking for non-GNU ld... " >&6; }
6274 fi
6275 if test "${lt_cv_path_LD+set}" = set; then :
6276   $as_echo_n "(cached) " >&6
6277 else
6278   if test -z "$LD"; then
6279   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6280   for ac_dir in $PATH; do
6281     IFS="$lt_save_ifs"
6282     test -z "$ac_dir" && ac_dir=.
6283     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6284       lt_cv_path_LD="$ac_dir/$ac_prog"
6285       # Check to see if the program is GNU ld.  I'd rather use --version,
6286       # but apparently some variants of GNU ld only accept -v.
6287       # Break only if it was the GNU/non-GNU ld that we prefer.
6288       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6289       *GNU* | *'with BFD'*)
6290         test "$with_gnu_ld" != no && break
6291         ;;
6292       *)
6293         test "$with_gnu_ld" != yes && break
6294         ;;
6295       esac
6296     fi
6297   done
6298   IFS="$lt_save_ifs"
6299 else
6300   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6301 fi
6302 fi
6303
6304 LD="$lt_cv_path_LD"
6305 if test -n "$LD"; then
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6307 $as_echo "$LD" >&6; }
6308 else
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6314 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6315 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6316   $as_echo_n "(cached) " >&6
6317 else
6318   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6319 case `$LD -v 2>&1 </dev/null` in
6320 *GNU* | *'with BFD'*)
6321   lt_cv_prog_gnu_ld=yes
6322   ;;
6323 *)
6324   lt_cv_prog_gnu_ld=no
6325   ;;
6326 esac
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6329 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6330 with_gnu_ld=$lt_cv_prog_gnu_ld
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6341 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6342 if test "${lt_cv_path_NM+set}" = set; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345   if test -n "$NM"; then
6346   # Let the user override the test.
6347   lt_cv_path_NM="$NM"
6348 else
6349   lt_nm_to_check="${ac_tool_prefix}nm"
6350   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6351     lt_nm_to_check="$lt_nm_to_check nm"
6352   fi
6353   for lt_tmp_nm in $lt_nm_to_check; do
6354     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6355     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6356       IFS="$lt_save_ifs"
6357       test -z "$ac_dir" && ac_dir=.
6358       tmp_nm="$ac_dir/$lt_tmp_nm"
6359       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6360         # Check to see if the nm accepts a BSD-compat flag.
6361         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6362         #   nm: unknown option "B" ignored
6363         # Tru64's nm complains that /dev/null is an invalid object file
6364         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6365         */dev/null* | *'Invalid file or object type'*)
6366           lt_cv_path_NM="$tmp_nm -B"
6367           break
6368           ;;
6369         *)
6370           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6371           */dev/null*)
6372             lt_cv_path_NM="$tmp_nm -p"
6373             break
6374             ;;
6375           *)
6376             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6377             continue # so that we can try to find one that supports BSD flags
6378             ;;
6379           esac
6380           ;;
6381         esac
6382       fi
6383     done
6384     IFS="$lt_save_ifs"
6385   done
6386   : ${lt_cv_path_NM=no}
6387 fi
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6390 $as_echo "$lt_cv_path_NM" >&6; }
6391 if test "$lt_cv_path_NM" != "no"; then
6392   NM="$lt_cv_path_NM"
6393 else
6394   # Didn't find any BSD compatible name lister, look for dumpbin.
6395   if test -n "$ac_tool_prefix"; then
6396   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6397   do
6398     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   if test -n "$DUMPBIN"; then
6406   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411   IFS=$as_save_IFS
6412   test -z "$as_dir" && as_dir=.
6413     for ac_exec_ext in '' $ac_executable_extensions; do
6414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417     break 2
6418   fi
6419 done
6420   done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 DUMPBIN=$ac_cv_prog_DUMPBIN
6426 if test -n "$DUMPBIN"; then
6427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6428 $as_echo "$DUMPBIN" >&6; }
6429 else
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435     test -n "$DUMPBIN" && break
6436   done
6437 fi
6438 if test -z "$DUMPBIN"; then
6439   ac_ct_DUMPBIN=$DUMPBIN
6440   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6441 do
6442   # Extract the first word of "$ac_prog", so it can be a program name with args.
6443 set dummy $ac_prog; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6447   $as_echo_n "(cached) " >&6
6448 else
6449   if test -n "$ac_ct_DUMPBIN"; then
6450   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455   IFS=$as_save_IFS
6456   test -z "$as_dir" && as_dir=.
6457     for ac_exec_ext in '' $ac_executable_extensions; do
6458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461     break 2
6462   fi
6463 done
6464   done
6465 IFS=$as_save_IFS
6466
6467 fi
6468 fi
6469 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6470 if test -n "$ac_ct_DUMPBIN"; then
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6472 $as_echo "$ac_ct_DUMPBIN" >&6; }
6473 else
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6476 fi
6477
6478
6479   test -n "$ac_ct_DUMPBIN" && break
6480 done
6481
6482   if test "x$ac_ct_DUMPBIN" = x; then
6483     DUMPBIN=":"
6484   else
6485     case $cross_compiling:$ac_tool_warned in
6486 yes:)
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6490 esac
6491     DUMPBIN=$ac_ct_DUMPBIN
6492   fi
6493 fi
6494
6495
6496   if test "$DUMPBIN" != ":"; then
6497     NM="$DUMPBIN"
6498   fi
6499 fi
6500 test -z "$NM" && NM=nm
6501
6502
6503
6504
6505
6506
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6508 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6509 if test "${lt_cv_nm_interface+set}" = set; then :
6510   $as_echo_n "(cached) " >&6
6511 else
6512   lt_cv_nm_interface="BSD nm"
6513   echo "int some_variable = 0;" > conftest.$ac_ext
6514   (eval echo "\"\$as_me:6514: $ac_compile\"" >&5)
6515   (eval "$ac_compile" 2>conftest.err)
6516   cat conftest.err >&5
6517   (eval echo "\"\$as_me:6517: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6518   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6519   cat conftest.err >&5
6520   (eval echo "\"\$as_me:6520: output\"" >&5)
6521   cat conftest.out >&5
6522   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6523     lt_cv_nm_interface="MS dumpbin"
6524   fi
6525   rm -f conftest*
6526 fi
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6528 $as_echo "$lt_cv_nm_interface" >&6; }
6529
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6531 $as_echo_n "checking whether ln -s works... " >&6; }
6532 LN_S=$as_ln_s
6533 if test "$LN_S" = "ln -s"; then
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6535 $as_echo "yes" >&6; }
6536 else
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6538 $as_echo "no, using $LN_S" >&6; }
6539 fi
6540
6541 # find the maximum length of command line arguments
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6543 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6544 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6545   $as_echo_n "(cached) " >&6
6546 else
6547     i=0
6548   teststring="ABCD"
6549
6550   case $build_os in
6551   msdosdjgpp*)
6552     # On DJGPP, this test can blow up pretty badly due to problems in libc
6553     # (any single argument exceeding 2000 bytes causes a buffer overrun
6554     # during glob expansion).  Even if it were fixed, the result of this
6555     # check would be larger than it should be.
6556     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6557     ;;
6558
6559   gnu*)
6560     # Under GNU Hurd, this test is not required because there is
6561     # no limit to the length of command line arguments.
6562     # Libtool will interpret -1 as no limit whatsoever
6563     lt_cv_sys_max_cmd_len=-1;
6564     ;;
6565
6566   cygwin* | mingw* | cegcc*)
6567     # On Win9x/ME, this test blows up -- it succeeds, but takes
6568     # about 5 minutes as the teststring grows exponentially.
6569     # Worse, since 9x/ME are not pre-emptively multitasking,
6570     # you end up with a "frozen" computer, even though with patience
6571     # the test eventually succeeds (with a max line length of 256k).
6572     # Instead, let's just punt: use the minimum linelength reported by
6573     # all of the supported platforms: 8192 (on NT/2K/XP).
6574     lt_cv_sys_max_cmd_len=8192;
6575     ;;
6576
6577   amigaos*)
6578     # On AmigaOS with pdksh, this test takes hours, literally.
6579     # So we just punt and use a minimum line length of 8192.
6580     lt_cv_sys_max_cmd_len=8192;
6581     ;;
6582
6583   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6584     # This has been around since 386BSD, at least.  Likely further.
6585     if test -x /sbin/sysctl; then
6586       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6587     elif test -x /usr/sbin/sysctl; then
6588       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6589     else
6590       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6591     fi
6592     # And add a safety zone
6593     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6594     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6595     ;;
6596
6597   interix*)
6598     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6599     lt_cv_sys_max_cmd_len=196608
6600     ;;
6601
6602   osf*)
6603     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6604     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6605     # nice to cause kernel panics so lets avoid the loop below.
6606     # First set a reasonable default.
6607     lt_cv_sys_max_cmd_len=16384
6608     #
6609     if test -x /sbin/sysconfig; then
6610       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6611         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6612       esac
6613     fi
6614     ;;
6615   sco3.2v5*)
6616     lt_cv_sys_max_cmd_len=102400
6617     ;;
6618   sysv5* | sco5v6* | sysv4.2uw2*)
6619     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6620     if test -n "$kargmax"; then
6621       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6622     else
6623       lt_cv_sys_max_cmd_len=32768
6624     fi
6625     ;;
6626   *)
6627     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6628     if test -n "$lt_cv_sys_max_cmd_len"; then
6629       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6630       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6631     else
6632       # Make teststring a little bigger before we do anything with it.
6633       # a 1K string should be a reasonable start.
6634       for i in 1 2 3 4 5 6 7 8 ; do
6635         teststring=$teststring$teststring
6636       done
6637       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6638       # If test is not a shell built-in, we'll probably end up computing a
6639       # maximum length that is only half of the actual maximum length, but
6640       # we can't tell.
6641       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6642                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6643               test $i != 17 # 1/2 MB should be enough
6644       do
6645         i=`expr $i + 1`
6646         teststring=$teststring$teststring
6647       done
6648       # Only check the string length outside the loop.
6649       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6650       teststring=
6651       # Add a significant safety factor because C++ compilers can tack on
6652       # massive amounts of additional arguments before passing them to the
6653       # linker.  It appears as though 1/2 is a usable value.
6654       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6655     fi
6656     ;;
6657   esac
6658
6659 fi
6660
6661 if test -n $lt_cv_sys_max_cmd_len ; then
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6663 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6664 else
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6666 $as_echo "none" >&6; }
6667 fi
6668 max_cmd_len=$lt_cv_sys_max_cmd_len
6669
6670
6671
6672
6673
6674
6675 : ${CP="cp -f"}
6676 : ${MV="mv -f"}
6677 : ${RM="rm -f"}
6678
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6680 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6681 # Try some XSI features
6682 xsi_shell=no
6683 ( _lt_dummy="a/b/c"
6684   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6685       = c,a/b,, \
6686     && eval 'test $(( 1 + 1 )) -eq 2 \
6687     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6688   && xsi_shell=yes
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6690 $as_echo "$xsi_shell" >&6; }
6691
6692
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6694 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6695 lt_shell_append=no
6696 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6697     >/dev/null 2>&1 \
6698   && lt_shell_append=yes
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6700 $as_echo "$lt_shell_append" >&6; }
6701
6702
6703 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6704   lt_unset=unset
6705 else
6706   lt_unset=false
6707 fi
6708
6709
6710
6711
6712
6713 # test EBCDIC or ASCII
6714 case `echo X|tr X '\101'` in
6715  A) # ASCII based system
6716     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6717   lt_SP2NL='tr \040 \012'
6718   lt_NL2SP='tr \015\012 \040\040'
6719   ;;
6720  *) # EBCDIC based system
6721   lt_SP2NL='tr \100 \n'
6722   lt_NL2SP='tr \r\n \100\100'
6723   ;;
6724 esac
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6735 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6736 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6737   $as_echo_n "(cached) " >&6
6738 else
6739   lt_cv_ld_reload_flag='-r'
6740 fi
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6742 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6743 reload_flag=$lt_cv_ld_reload_flag
6744 case $reload_flag in
6745 "" | " "*) ;;
6746 *) reload_flag=" $reload_flag" ;;
6747 esac
6748 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6749 case $host_os in
6750   darwin*)
6751     if test "$GCC" = yes; then
6752       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6753     else
6754       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6755     fi
6756     ;;
6757 esac
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767 if test -n "$ac_tool_prefix"; then
6768   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6773   $as_echo_n "(cached) " >&6
6774 else
6775   if test -n "$OBJDUMP"; then
6776   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781   IFS=$as_save_IFS
6782   test -z "$as_dir" && as_dir=.
6783     for ac_exec_ext in '' $ac_executable_extensions; do
6784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787     break 2
6788   fi
6789 done
6790   done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 OBJDUMP=$ac_cv_prog_OBJDUMP
6796 if test -n "$OBJDUMP"; then
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6798 $as_echo "$OBJDUMP" >&6; }
6799 else
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803
6804
6805 fi
6806 if test -z "$ac_cv_prog_OBJDUMP"; then
6807   ac_ct_OBJDUMP=$OBJDUMP
6808   # Extract the first word of "objdump", so it can be a program name with args.
6809 set dummy objdump; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   if test -n "$ac_ct_OBJDUMP"; then
6816   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823     for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830   done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6836 if test -n "$ac_ct_OBJDUMP"; then
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6838 $as_echo "$ac_ct_OBJDUMP" >&6; }
6839 else
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844   if test "x$ac_ct_OBJDUMP" = x; then
6845     OBJDUMP="false"
6846   else
6847     case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853     OBJDUMP=$ac_ct_OBJDUMP
6854   fi
6855 else
6856   OBJDUMP="$ac_cv_prog_OBJDUMP"
6857 fi
6858
6859 test -z "$OBJDUMP" && OBJDUMP=objdump
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6870 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6871 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6872   $as_echo_n "(cached) " >&6
6873 else
6874   lt_cv_file_magic_cmd='$MAGIC_CMD'
6875 lt_cv_file_magic_test_file=
6876 lt_cv_deplibs_check_method='unknown'
6877 # Need to set the preceding variable on all platforms that support
6878 # interlibrary dependencies.
6879 # 'none' -- dependencies not supported.
6880 # `unknown' -- same as none, but documents that we really don't know.
6881 # 'pass_all' -- all dependencies passed with no checks.
6882 # 'test_compile' -- check by making test program.
6883 # 'file_magic [[regex]]' -- check by looking for files in library path
6884 # which responds to the $file_magic_cmd with a given extended regex.
6885 # If you have `file' or equivalent on your system and you're not sure
6886 # whether `pass_all' will *always* work, you probably want this one.
6887
6888 case $host_os in
6889 aix[4-9]*)
6890   lt_cv_deplibs_check_method=pass_all
6891   ;;
6892
6893 beos*)
6894   lt_cv_deplibs_check_method=pass_all
6895   ;;
6896
6897 bsdi[45]*)
6898   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6899   lt_cv_file_magic_cmd='/usr/bin/file -L'
6900   lt_cv_file_magic_test_file=/shlib/libc.so
6901   ;;
6902
6903 cygwin*)
6904   # func_win32_libid is a shell function defined in ltmain.sh
6905   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6906   lt_cv_file_magic_cmd='func_win32_libid'
6907   ;;
6908
6909 mingw* | pw32*)
6910   # Base MSYS/MinGW do not provide the 'file' command needed by
6911   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6912   # unless we find 'file', for example because we are cross-compiling.
6913   if ( file / ) >/dev/null 2>&1; then
6914     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6915     lt_cv_file_magic_cmd='func_win32_libid'
6916   else
6917     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6918     lt_cv_file_magic_cmd='$OBJDUMP -f'
6919   fi
6920   ;;
6921
6922 cegcc)
6923   # use the weaker test based on 'objdump'. See mingw*.
6924   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6925   lt_cv_file_magic_cmd='$OBJDUMP -f'
6926   ;;
6927
6928 darwin* | rhapsody*)
6929   lt_cv_deplibs_check_method=pass_all
6930   ;;
6931
6932 freebsd* | dragonfly*)
6933   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6934     case $host_cpu in
6935     i*86 )
6936       # Not sure whether the presence of OpenBSD here was a mistake.
6937       # Let's accept both of them until this is cleared up.
6938       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6939       lt_cv_file_magic_cmd=/usr/bin/file
6940       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6941       ;;
6942     esac
6943   else
6944     lt_cv_deplibs_check_method=pass_all
6945   fi
6946   ;;
6947
6948 gnu*)
6949   lt_cv_deplibs_check_method=pass_all
6950   ;;
6951
6952 hpux10.20* | hpux11*)
6953   lt_cv_file_magic_cmd=/usr/bin/file
6954   case $host_cpu in
6955   ia64*)
6956     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6957     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6958     ;;
6959   hppa*64*)
6960     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]'
6961     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6962     ;;
6963   *)
6964     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6965     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6966     ;;
6967   esac
6968   ;;
6969
6970 interix[3-9]*)
6971   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6972   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6973   ;;
6974
6975 irix5* | irix6* | nonstopux*)
6976   case $LD in
6977   *-32|*"-32 ") libmagic=32-bit;;
6978   *-n32|*"-n32 ") libmagic=N32;;
6979   *-64|*"-64 ") libmagic=64-bit;;
6980   *) libmagic=never-match;;
6981   esac
6982   lt_cv_deplibs_check_method=pass_all
6983   ;;
6984
6985 # This must be Linux ELF.
6986 linux* | k*bsd*-gnu)
6987   lt_cv_deplibs_check_method=pass_all
6988   ;;
6989
6990 netbsd*)
6991   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6992     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6993   else
6994     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6995   fi
6996   ;;
6997
6998 newos6*)
6999   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7000   lt_cv_file_magic_cmd=/usr/bin/file
7001   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7002   ;;
7003
7004 *nto* | *qnx*)
7005   lt_cv_deplibs_check_method=pass_all
7006   ;;
7007
7008 openbsd*)
7009   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7010     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7011   else
7012     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7013   fi
7014   ;;
7015
7016 osf3* | osf4* | osf5*)
7017   lt_cv_deplibs_check_method=pass_all
7018   ;;
7019
7020 rdos*)
7021   lt_cv_deplibs_check_method=pass_all
7022   ;;
7023
7024 solaris*)
7025   lt_cv_deplibs_check_method=pass_all
7026   ;;
7027
7028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7029   lt_cv_deplibs_check_method=pass_all
7030   ;;
7031
7032 sysv4 | sysv4.3*)
7033   case $host_vendor in
7034   motorola)
7035     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]'
7036     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7037     ;;
7038   ncr)
7039     lt_cv_deplibs_check_method=pass_all
7040     ;;
7041   sequent)
7042     lt_cv_file_magic_cmd='/bin/file'
7043     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7044     ;;
7045   sni)
7046     lt_cv_file_magic_cmd='/bin/file'
7047     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7048     lt_cv_file_magic_test_file=/lib/libc.so
7049     ;;
7050   siemens)
7051     lt_cv_deplibs_check_method=pass_all
7052     ;;
7053   pc)
7054     lt_cv_deplibs_check_method=pass_all
7055     ;;
7056   esac
7057   ;;
7058
7059 tpf*)
7060   lt_cv_deplibs_check_method=pass_all
7061   ;;
7062 esac
7063
7064 fi
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7066 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7067 file_magic_cmd=$lt_cv_file_magic_cmd
7068 deplibs_check_method=$lt_cv_deplibs_check_method
7069 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082 if test -n "$ac_tool_prefix"; then
7083   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7084 set dummy ${ac_tool_prefix}ar; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if test "${ac_cv_prog_AR+set}" = set; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   if test -n "$AR"; then
7091   ac_cv_prog_AR="$AR" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096   IFS=$as_save_IFS
7097   test -z "$as_dir" && as_dir=.
7098     for ac_exec_ext in '' $ac_executable_extensions; do
7099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100     ac_cv_prog_AR="${ac_tool_prefix}ar"
7101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102     break 2
7103   fi
7104 done
7105   done
7106 IFS=$as_save_IFS
7107
7108 fi
7109 fi
7110 AR=$ac_cv_prog_AR
7111 if test -n "$AR"; then
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7113 $as_echo "$AR" >&6; }
7114 else
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118
7119
7120 fi
7121 if test -z "$ac_cv_prog_AR"; then
7122   ac_ct_AR=$AR
7123   # Extract the first word of "ar", so it can be a program name with args.
7124 set dummy ar; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7128   $as_echo_n "(cached) " >&6
7129 else
7130   if test -n "$ac_ct_AR"; then
7131   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138     for ac_exec_ext in '' $ac_executable_extensions; do
7139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140     ac_cv_prog_ac_ct_AR="ar"
7141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145   done
7146 IFS=$as_save_IFS
7147
7148 fi
7149 fi
7150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7151 if test -n "$ac_ct_AR"; then
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7153 $as_echo "$ac_ct_AR" >&6; }
7154 else
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7157 fi
7158
7159   if test "x$ac_ct_AR" = x; then
7160     AR="false"
7161   else
7162     case $cross_compiling:$ac_tool_warned in
7163 yes:)
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7166 ac_tool_warned=yes ;;
7167 esac
7168     AR=$ac_ct_AR
7169   fi
7170 else
7171   AR="$ac_cv_prog_AR"
7172 fi
7173
7174 test -z "$AR" && AR=ar
7175 test -z "$AR_FLAGS" && AR_FLAGS=cru
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187 if test -n "$ac_tool_prefix"; then
7188   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}strip; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_STRIP+set}" = set; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$STRIP"; then
7196   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203     for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210   done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 STRIP=$ac_cv_prog_STRIP
7216 if test -n "$STRIP"; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7218 $as_echo "$STRIP" >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224
7225 fi
7226 if test -z "$ac_cv_prog_STRIP"; then
7227   ac_ct_STRIP=$STRIP
7228   # Extract the first word of "strip", so it can be a program name with args.
7229 set dummy strip; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   if test -n "$ac_ct_STRIP"; then
7236   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243     for ac_exec_ext in '' $ac_executable_extensions; do
7244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245     ac_cv_prog_ac_ct_STRIP="strip"
7246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250   done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7256 if test -n "$ac_ct_STRIP"; then
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7258 $as_echo "$ac_ct_STRIP" >&6; }
7259 else
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264   if test "x$ac_ct_STRIP" = x; then
7265     STRIP=":"
7266   else
7267     case $cross_compiling:$ac_tool_warned in
7268 yes:)
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7272 esac
7273     STRIP=$ac_ct_STRIP
7274   fi
7275 else
7276   STRIP="$ac_cv_prog_STRIP"
7277 fi
7278
7279 test -z "$STRIP" && STRIP=:
7280
7281
7282
7283
7284
7285
7286 if test -n "$ac_tool_prefix"; then
7287   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$RANLIB"; then
7295   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 RANLIB=$ac_cv_prog_RANLIB
7315 if test -n "$RANLIB"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7317 $as_echo "$RANLIB" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323
7324 fi
7325 if test -z "$ac_cv_prog_RANLIB"; then
7326   ac_ct_RANLIB=$RANLIB
7327   # Extract the first word of "ranlib", so it can be a program name with args.
7328 set dummy ranlib; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7332   $as_echo_n "(cached) " >&6
7333 else
7334   if test -n "$ac_ct_RANLIB"; then
7335   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342     for ac_exec_ext in '' $ac_executable_extensions; do
7343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344     ac_cv_prog_ac_ct_RANLIB="ranlib"
7345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349   done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7355 if test -n "$ac_ct_RANLIB"; then
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7357 $as_echo "$ac_ct_RANLIB" >&6; }
7358 else
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363   if test "x$ac_ct_RANLIB" = x; then
7364     RANLIB=":"
7365   else
7366     case $cross_compiling:$ac_tool_warned in
7367 yes:)
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7371 esac
7372     RANLIB=$ac_ct_RANLIB
7373   fi
7374 else
7375   RANLIB="$ac_cv_prog_RANLIB"
7376 fi
7377
7378 test -z "$RANLIB" && RANLIB=:
7379
7380
7381
7382
7383
7384
7385 # Determine commands to create old-style static archives.
7386 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7387 old_postinstall_cmds='chmod 644 $oldlib'
7388 old_postuninstall_cmds=
7389
7390 if test -n "$RANLIB"; then
7391   case $host_os in
7392   openbsd*)
7393     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7394     ;;
7395   *)
7396     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7397     ;;
7398   esac
7399   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7400 fi
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435 # If no C compiler was specified, use CC.
7436 LTCC=${LTCC-"$CC"}
7437
7438 # If no C compiler flags were specified, use CFLAGS.
7439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7440
7441 # Allow CC to be a program name with arguments.
7442 compiler=$CC
7443
7444
7445 # Check for command to grab the raw symbol name followed by C symbol from nm.
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7447 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7448 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7449   $as_echo_n "(cached) " >&6
7450 else
7451
7452 # These are sane defaults that work on at least a few old systems.
7453 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7454
7455 # Character class describing NM global symbol codes.
7456 symcode='[BCDEGRST]'
7457
7458 # Regexp to match symbols that can be accessed directly from C.
7459 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7460
7461 # Define system-specific variables.
7462 case $host_os in
7463 aix*)
7464   symcode='[BCDT]'
7465   ;;
7466 cygwin* | mingw* | pw32* | cegcc*)
7467   symcode='[ABCDGISTW]'
7468   ;;
7469 hpux*)
7470   if test "$host_cpu" = ia64; then
7471     symcode='[ABCDEGRST]'
7472   fi
7473   ;;
7474 irix* | nonstopux*)
7475   symcode='[BCDEGRST]'
7476   ;;
7477 osf*)
7478   symcode='[BCDEGQRST]'
7479   ;;
7480 solaris*)
7481   symcode='[BDRT]'
7482   ;;
7483 sco3.2v5*)
7484   symcode='[DT]'
7485   ;;
7486 sysv4.2uw2*)
7487   symcode='[DT]'
7488   ;;
7489 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7490   symcode='[ABDT]'
7491   ;;
7492 sysv4)
7493   symcode='[DFNSTU]'
7494   ;;
7495 esac
7496
7497 # If we're using GNU nm, then use its standard symbol codes.
7498 case `$NM -V 2>&1` in
7499 *GNU* | *'with BFD'*)
7500   symcode='[ABCDGIRSTW]' ;;
7501 esac
7502
7503 # Transform an extracted symbol line into a proper C declaration.
7504 # Some systems (esp. on ia64) link data and code symbols differently,
7505 # so use this general approach.
7506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7507
7508 # Transform an extracted symbol line into symbol name and symbol address
7509 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7510 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'"
7511
7512 # Handle CRLF in mingw tool chain
7513 opt_cr=
7514 case $build_os in
7515 mingw*)
7516   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7517   ;;
7518 esac
7519
7520 # Try without a prefix underscore, then with it.
7521 for ac_symprfx in "" "_"; do
7522
7523   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7524   symxfrm="\\1 $ac_symprfx\\2 \\2"
7525
7526   # Write the raw and C identifiers.
7527   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7528     # Fake it for dumpbin and say T for any non-static function
7529     # and D for any global variable.
7530     # Also find C++ and __fastcall symbols from MSVC++,
7531     # which start with @ or ?.
7532     lt_cv_sys_global_symbol_pipe="$AWK '"\
7533 "     {last_section=section; section=\$ 3};"\
7534 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7535 "     \$ 0!~/External *\|/{next};"\
7536 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7537 "     {if(hide[section]) next};"\
7538 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7539 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7540 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7541 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7542 "     ' prfx=^$ac_symprfx"
7543   else
7544     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7545   fi
7546
7547   # Check to see that the pipe works correctly.
7548   pipe_works=no
7549
7550   rm -f conftest*
7551   cat > conftest.$ac_ext <<_LT_EOF
7552 #ifdef __cplusplus
7553 extern "C" {
7554 #endif
7555 char nm_test_var;
7556 void nm_test_func(void);
7557 void nm_test_func(void){}
7558 #ifdef __cplusplus
7559 }
7560 #endif
7561 int main(){nm_test_var='a';nm_test_func();return(0);}
7562 _LT_EOF
7563
7564   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7565   (eval $ac_compile) 2>&5
7566   ac_status=$?
7567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7568   test $ac_status = 0; }; then
7569     # Now try to grab the symbols.
7570     nlist=conftest.nm
7571     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7572   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7573   ac_status=$?
7574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7575   test $ac_status = 0; } && test -s "$nlist"; then
7576       # Try sorting and uniquifying the output.
7577       if sort "$nlist" | uniq > "$nlist"T; then
7578         mv -f "$nlist"T "$nlist"
7579       else
7580         rm -f "$nlist"T
7581       fi
7582
7583       # Make sure that we snagged all the symbols we need.
7584       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7585         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7586           cat <<_LT_EOF > conftest.$ac_ext
7587 #ifdef __cplusplus
7588 extern "C" {
7589 #endif
7590
7591 _LT_EOF
7592           # Now generate the symbol file.
7593           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7594
7595           cat <<_LT_EOF >> conftest.$ac_ext
7596
7597 /* The mapping between symbol names and symbols.  */
7598 const struct {
7599   const char *name;
7600   void       *address;
7601 }
7602 lt__PROGRAM__LTX_preloaded_symbols[] =
7603 {
7604   { "@PROGRAM@", (void *) 0 },
7605 _LT_EOF
7606           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7607           cat <<\_LT_EOF >> conftest.$ac_ext
7608   {0, (void *) 0}
7609 };
7610
7611 /* This works around a problem in FreeBSD linker */
7612 #ifdef FREEBSD_WORKAROUND
7613 static const void *lt_preloaded_setup() {
7614   return lt__PROGRAM__LTX_preloaded_symbols;
7615 }
7616 #endif
7617
7618 #ifdef __cplusplus
7619 }
7620 #endif
7621 _LT_EOF
7622           # Now try linking the two files.
7623           mv conftest.$ac_objext conftstm.$ac_objext
7624           lt_save_LIBS="$LIBS"
7625           lt_save_CFLAGS="$CFLAGS"
7626           LIBS="conftstm.$ac_objext"
7627           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7628           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7629   (eval $ac_link) 2>&5
7630   ac_status=$?
7631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7632   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7633             pipe_works=yes
7634           fi
7635           LIBS="$lt_save_LIBS"
7636           CFLAGS="$lt_save_CFLAGS"
7637         else
7638           echo "cannot find nm_test_func in $nlist" >&5
7639         fi
7640       else
7641         echo "cannot find nm_test_var in $nlist" >&5
7642       fi
7643     else
7644       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7645     fi
7646   else
7647     echo "$progname: failed program was:" >&5
7648     cat conftest.$ac_ext >&5
7649   fi
7650   rm -rf conftest* conftst*
7651
7652   # Do not use the global_symbol_pipe unless it works.
7653   if test "$pipe_works" = yes; then
7654     break
7655   else
7656     lt_cv_sys_global_symbol_pipe=
7657   fi
7658 done
7659
7660 fi
7661
7662 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7663   lt_cv_sys_global_symbol_to_cdecl=
7664 fi
7665 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7667 $as_echo "failed" >&6; }
7668 else
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7670 $as_echo "ok" >&6; }
7671 fi
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694 # Check whether --enable-libtool-lock was given.
7695 if test "${enable_libtool_lock+set}" = set; then :
7696   enableval=$enable_libtool_lock;
7697 fi
7698
7699 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7700
7701 # Some flags need to be propagated to the compiler or linker for good
7702 # libtool support.
7703 case $host in
7704 ia64-*-hpux*)
7705   # Find out which ABI we are using.
7706   echo 'int i;' > conftest.$ac_ext
7707   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7708   (eval $ac_compile) 2>&5
7709   ac_status=$?
7710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7711   test $ac_status = 0; }; then
7712     case `/usr/bin/file conftest.$ac_objext` in
7713       *ELF-32*)
7714         HPUX_IA64_MODE="32"
7715         ;;
7716       *ELF-64*)
7717         HPUX_IA64_MODE="64"
7718         ;;
7719     esac
7720   fi
7721   rm -rf conftest*
7722   ;;
7723 *-*-irix6*)
7724   # Find out which ABI we are using.
7725   echo '#line 7725 "configure"' > conftest.$ac_ext
7726   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7727   (eval $ac_compile) 2>&5
7728   ac_status=$?
7729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730   test $ac_status = 0; }; then
7731     if test "$lt_cv_prog_gnu_ld" = yes; then
7732       case `/usr/bin/file conftest.$ac_objext` in
7733         *32-bit*)
7734           LD="${LD-ld} -melf32bsmip"
7735           ;;
7736         *N32*)
7737           LD="${LD-ld} -melf32bmipn32"
7738           ;;
7739         *64-bit*)
7740           LD="${LD-ld} -melf64bmip"
7741         ;;
7742       esac
7743     else
7744       case `/usr/bin/file conftest.$ac_objext` in
7745         *32-bit*)
7746           LD="${LD-ld} -32"
7747           ;;
7748         *N32*)
7749           LD="${LD-ld} -n32"
7750           ;;
7751         *64-bit*)
7752           LD="${LD-ld} -64"
7753           ;;
7754       esac
7755     fi
7756   fi
7757   rm -rf conftest*
7758   ;;
7759
7760 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7761 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7762   # Find out which ABI we are using.
7763   echo 'int i;' > conftest.$ac_ext
7764   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7765   (eval $ac_compile) 2>&5
7766   ac_status=$?
7767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7768   test $ac_status = 0; }; then
7769     case `/usr/bin/file conftest.o` in
7770       *32-bit*)
7771         case $host in
7772           x86_64-*kfreebsd*-gnu)
7773             LD="${LD-ld} -m elf_i386_fbsd"
7774             ;;
7775           x86_64-*linux*)
7776             LD="${LD-ld} -m elf_i386"
7777             ;;
7778           ppc64-*linux*|powerpc64-*linux*)
7779             LD="${LD-ld} -m elf32ppclinux"
7780             ;;
7781           s390x-*linux*)
7782             LD="${LD-ld} -m elf_s390"
7783             ;;
7784           sparc64-*linux*)
7785             LD="${LD-ld} -m elf32_sparc"
7786             ;;
7787         esac
7788         ;;
7789       *64-bit*)
7790         case $host in
7791           x86_64-*kfreebsd*-gnu)
7792             LD="${LD-ld} -m elf_x86_64_fbsd"
7793             ;;
7794           x86_64-*linux*)
7795             LD="${LD-ld} -m elf_x86_64"
7796             ;;
7797           ppc*-*linux*|powerpc*-*linux*)
7798             LD="${LD-ld} -m elf64ppc"
7799             ;;
7800           s390*-*linux*|s390*-*tpf*)
7801             LD="${LD-ld} -m elf64_s390"
7802             ;;
7803           sparc*-*linux*)
7804             LD="${LD-ld} -m elf64_sparc"
7805             ;;
7806         esac
7807         ;;
7808     esac
7809   fi
7810   rm -rf conftest*
7811   ;;
7812
7813 *-*-sco3.2v5*)
7814   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7815   SAVE_CFLAGS="$CFLAGS"
7816   CFLAGS="$CFLAGS -belf"
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7818 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7819 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7820   $as_echo_n "(cached) " >&6
7821 else
7822   ac_ext=c
7823 ac_cpp='$CPP $CPPFLAGS'
7824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827
7828      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h.  */
7830
7831 int
7832 main ()
7833 {
7834
7835   ;
7836   return 0;
7837 }
7838 _ACEOF
7839 if ac_fn_c_try_link "$LINENO"; then :
7840   lt_cv_cc_needs_belf=yes
7841 else
7842   lt_cv_cc_needs_belf=no
7843 fi
7844 rm -f core conftest.err conftest.$ac_objext \
7845     conftest$ac_exeext conftest.$ac_ext
7846      ac_ext=c
7847 ac_cpp='$CPP $CPPFLAGS'
7848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851
7852 fi
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7854 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7855   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7856     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7857     CFLAGS="$SAVE_CFLAGS"
7858   fi
7859   ;;
7860 sparc*-*solaris*)
7861   # Find out which ABI we are using.
7862   echo 'int i;' > conftest.$ac_ext
7863   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7864   (eval $ac_compile) 2>&5
7865   ac_status=$?
7866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7867   test $ac_status = 0; }; then
7868     case `/usr/bin/file conftest.o` in
7869     *64-bit*)
7870       case $lt_cv_prog_gnu_ld in
7871       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7872       *)
7873         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7874           LD="${LD-ld} -64"
7875         fi
7876         ;;
7877       esac
7878       ;;
7879     esac
7880   fi
7881   rm -rf conftest*
7882   ;;
7883 esac
7884
7885 need_locks="$enable_libtool_lock"
7886
7887
7888   case $host_os in
7889     rhapsody* | darwin*)
7890     if test -n "$ac_tool_prefix"; then
7891   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7892 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894 $as_echo_n "checking for $ac_word... " >&6; }
7895 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7896   $as_echo_n "(cached) " >&6
7897 else
7898   if test -n "$DSYMUTIL"; then
7899   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7900 else
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7903 do
7904   IFS=$as_save_IFS
7905   test -z "$as_dir" && as_dir=.
7906     for ac_exec_ext in '' $ac_executable_extensions; do
7907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910     break 2
7911   fi
7912 done
7913   done
7914 IFS=$as_save_IFS
7915
7916 fi
7917 fi
7918 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7919 if test -n "$DSYMUTIL"; then
7920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7921 $as_echo "$DSYMUTIL" >&6; }
7922 else
7923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7925 fi
7926
7927
7928 fi
7929 if test -z "$ac_cv_prog_DSYMUTIL"; then
7930   ac_ct_DSYMUTIL=$DSYMUTIL
7931   # Extract the first word of "dsymutil", so it can be a program name with args.
7932 set dummy dsymutil; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7936   $as_echo_n "(cached) " >&6
7937 else
7938   if test -n "$ac_ct_DSYMUTIL"; then
7939   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944   IFS=$as_save_IFS
7945   test -z "$as_dir" && as_dir=.
7946     for ac_exec_ext in '' $ac_executable_extensions; do
7947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950     break 2
7951   fi
7952 done
7953   done
7954 IFS=$as_save_IFS
7955
7956 fi
7957 fi
7958 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7959 if test -n "$ac_ct_DSYMUTIL"; then
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7961 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7962 else
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966
7967   if test "x$ac_ct_DSYMUTIL" = x; then
7968     DSYMUTIL=":"
7969   else
7970     case $cross_compiling:$ac_tool_warned in
7971 yes:)
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7974 ac_tool_warned=yes ;;
7975 esac
7976     DSYMUTIL=$ac_ct_DSYMUTIL
7977   fi
7978 else
7979   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7980 fi
7981
7982     if test -n "$ac_tool_prefix"; then
7983   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7984 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7988   $as_echo_n "(cached) " >&6
7989 else
7990   if test -n "$NMEDIT"; then
7991   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7992 else
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996   IFS=$as_save_IFS
7997   test -z "$as_dir" && as_dir=.
7998     for ac_exec_ext in '' $ac_executable_extensions; do
7999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8000     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002     break 2
8003   fi
8004 done
8005   done
8006 IFS=$as_save_IFS
8007
8008 fi
8009 fi
8010 NMEDIT=$ac_cv_prog_NMEDIT
8011 if test -n "$NMEDIT"; then
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8013 $as_echo "$NMEDIT" >&6; }
8014 else
8015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8017 fi
8018
8019
8020 fi
8021 if test -z "$ac_cv_prog_NMEDIT"; then
8022   ac_ct_NMEDIT=$NMEDIT
8023   # Extract the first word of "nmedit", so it can be a program name with args.
8024 set dummy nmedit; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8028   $as_echo_n "(cached) " >&6
8029 else
8030   if test -n "$ac_ct_NMEDIT"; then
8031   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036   IFS=$as_save_IFS
8037   test -z "$as_dir" && as_dir=.
8038     for ac_exec_ext in '' $ac_executable_extensions; do
8039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042     break 2
8043   fi
8044 done
8045   done
8046 IFS=$as_save_IFS
8047
8048 fi
8049 fi
8050 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8051 if test -n "$ac_ct_NMEDIT"; then
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8053 $as_echo "$ac_ct_NMEDIT" >&6; }
8054 else
8055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8057 fi
8058
8059   if test "x$ac_ct_NMEDIT" = x; then
8060     NMEDIT=":"
8061   else
8062     case $cross_compiling:$ac_tool_warned in
8063 yes:)
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8066 ac_tool_warned=yes ;;
8067 esac
8068     NMEDIT=$ac_ct_NMEDIT
8069   fi
8070 else
8071   NMEDIT="$ac_cv_prog_NMEDIT"
8072 fi
8073
8074     if test -n "$ac_tool_prefix"; then
8075   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8076 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if test "${ac_cv_prog_LIPO+set}" = set; then :
8080   $as_echo_n "(cached) " >&6
8081 else
8082   if test -n "$LIPO"; then
8083   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088   IFS=$as_save_IFS
8089   test -z "$as_dir" && as_dir=.
8090     for ac_exec_ext in '' $ac_executable_extensions; do
8091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8092     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094     break 2
8095   fi
8096 done
8097   done
8098 IFS=$as_save_IFS
8099
8100 fi
8101 fi
8102 LIPO=$ac_cv_prog_LIPO
8103 if test -n "$LIPO"; then
8104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8105 $as_echo "$LIPO" >&6; }
8106 else
8107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8109 fi
8110
8111
8112 fi
8113 if test -z "$ac_cv_prog_LIPO"; then
8114   ac_ct_LIPO=$LIPO
8115   # Extract the first word of "lipo", so it can be a program name with args.
8116 set dummy lipo; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8120   $as_echo_n "(cached) " >&6
8121 else
8122   if test -n "$ac_ct_LIPO"; then
8123   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128   IFS=$as_save_IFS
8129   test -z "$as_dir" && as_dir=.
8130     for ac_exec_ext in '' $ac_executable_extensions; do
8131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132     ac_cv_prog_ac_ct_LIPO="lipo"
8133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134     break 2
8135   fi
8136 done
8137   done
8138 IFS=$as_save_IFS
8139
8140 fi
8141 fi
8142 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8143 if test -n "$ac_ct_LIPO"; then
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8145 $as_echo "$ac_ct_LIPO" >&6; }
8146 else
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8149 fi
8150
8151   if test "x$ac_ct_LIPO" = x; then
8152     LIPO=":"
8153   else
8154     case $cross_compiling:$ac_tool_warned in
8155 yes:)
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8158 ac_tool_warned=yes ;;
8159 esac
8160     LIPO=$ac_ct_LIPO
8161   fi
8162 else
8163   LIPO="$ac_cv_prog_LIPO"
8164 fi
8165
8166     if test -n "$ac_tool_prefix"; then
8167   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8168 set dummy ${ac_tool_prefix}otool; ac_word=$2
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170 $as_echo_n "checking for $ac_word... " >&6; }
8171 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8172   $as_echo_n "(cached) " >&6
8173 else
8174   if test -n "$OTOOL"; then
8175   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8179 do
8180   IFS=$as_save_IFS
8181   test -z "$as_dir" && as_dir=.
8182     for ac_exec_ext in '' $ac_executable_extensions; do
8183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8184     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186     break 2
8187   fi
8188 done
8189   done
8190 IFS=$as_save_IFS
8191
8192 fi
8193 fi
8194 OTOOL=$ac_cv_prog_OTOOL
8195 if test -n "$OTOOL"; then
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8197 $as_echo "$OTOOL" >&6; }
8198 else
8199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8201 fi
8202
8203
8204 fi
8205 if test -z "$ac_cv_prog_OTOOL"; then
8206   ac_ct_OTOOL=$OTOOL
8207   # Extract the first word of "otool", so it can be a program name with args.
8208 set dummy otool; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8212   $as_echo_n "(cached) " >&6
8213 else
8214   if test -n "$ac_ct_OTOOL"; then
8215   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8219 do
8220   IFS=$as_save_IFS
8221   test -z "$as_dir" && as_dir=.
8222     for ac_exec_ext in '' $ac_executable_extensions; do
8223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224     ac_cv_prog_ac_ct_OTOOL="otool"
8225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226     break 2
8227   fi
8228 done
8229   done
8230 IFS=$as_save_IFS
8231
8232 fi
8233 fi
8234 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8235 if test -n "$ac_ct_OTOOL"; then
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8237 $as_echo "$ac_ct_OTOOL" >&6; }
8238 else
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 fi
8242
8243   if test "x$ac_ct_OTOOL" = x; then
8244     OTOOL=":"
8245   else
8246     case $cross_compiling:$ac_tool_warned in
8247 yes:)
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8250 ac_tool_warned=yes ;;
8251 esac
8252     OTOOL=$ac_ct_OTOOL
8253   fi
8254 else
8255   OTOOL="$ac_cv_prog_OTOOL"
8256 fi
8257
8258     if test -n "$ac_tool_prefix"; then
8259   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8260 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8264   $as_echo_n "(cached) " >&6
8265 else
8266   if test -n "$OTOOL64"; then
8267   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272   IFS=$as_save_IFS
8273   test -z "$as_dir" && as_dir=.
8274     for ac_exec_ext in '' $ac_executable_extensions; do
8275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8276     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278     break 2
8279   fi
8280 done
8281   done
8282 IFS=$as_save_IFS
8283
8284 fi
8285 fi
8286 OTOOL64=$ac_cv_prog_OTOOL64
8287 if test -n "$OTOOL64"; then
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8289 $as_echo "$OTOOL64" >&6; }
8290 else
8291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8293 fi
8294
8295
8296 fi
8297 if test -z "$ac_cv_prog_OTOOL64"; then
8298   ac_ct_OTOOL64=$OTOOL64
8299   # Extract the first word of "otool64", so it can be a program name with args.
8300 set dummy otool64; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   if test -n "$ac_ct_OTOOL64"; then
8307   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312   IFS=$as_save_IFS
8313   test -z "$as_dir" && as_dir=.
8314     for ac_exec_ext in '' $ac_executable_extensions; do
8315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8316     ac_cv_prog_ac_ct_OTOOL64="otool64"
8317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318     break 2
8319   fi
8320 done
8321   done
8322 IFS=$as_save_IFS
8323
8324 fi
8325 fi
8326 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8327 if test -n "$ac_ct_OTOOL64"; then
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8329 $as_echo "$ac_ct_OTOOL64" >&6; }
8330 else
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 fi
8334
8335   if test "x$ac_ct_OTOOL64" = x; then
8336     OTOOL64=":"
8337   else
8338     case $cross_compiling:$ac_tool_warned in
8339 yes:)
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8342 ac_tool_warned=yes ;;
8343 esac
8344     OTOOL64=$ac_ct_OTOOL64
8345   fi
8346 else
8347   OTOOL64="$ac_cv_prog_OTOOL64"
8348 fi
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8377 $as_echo_n "checking for -single_module linker flag... " >&6; }
8378 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8379   $as_echo_n "(cached) " >&6
8380 else
8381   lt_cv_apple_cc_single_mod=no
8382       if test -z "${LT_MULTI_MODULE}"; then
8383         # By default we will add the -single_module flag. You can override
8384         # by either setting the environment variable LT_MULTI_MODULE
8385         # non-empty at configure time, or by adding -multi_module to the
8386         # link flags.
8387         rm -rf libconftest.dylib*
8388         echo "int foo(void){return 1;}" > conftest.c
8389         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8390 -dynamiclib -Wl,-single_module conftest.c" >&5
8391         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8392           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8393         _lt_result=$?
8394         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8395           lt_cv_apple_cc_single_mod=yes
8396         else
8397           cat conftest.err >&5
8398         fi
8399         rm -rf libconftest.dylib*
8400         rm -f conftest.*
8401       fi
8402 fi
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8404 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8406 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8407 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8408   $as_echo_n "(cached) " >&6
8409 else
8410   lt_cv_ld_exported_symbols_list=no
8411       save_LDFLAGS=$LDFLAGS
8412       echo "_main" > conftest.sym
8413       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8414       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h.  */
8416
8417 int
8418 main ()
8419 {
8420
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 if ac_fn_c_try_link "$LINENO"; then :
8426   lt_cv_ld_exported_symbols_list=yes
8427 else
8428   lt_cv_ld_exported_symbols_list=no
8429 fi
8430 rm -f core conftest.err conftest.$ac_objext \
8431     conftest$ac_exeext conftest.$ac_ext
8432         LDFLAGS="$save_LDFLAGS"
8433
8434 fi
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8436 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8437     case $host_os in
8438     rhapsody* | darwin1.[012])
8439       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8440     darwin1.*)
8441       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8442     darwin*) # darwin 5.x on
8443       # if running on 10.5 or later, the deployment target defaults
8444       # to the OS version, if on x86, and 10.4, the deployment
8445       # target defaults to 10.4. Don't you love it?
8446       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8447         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8448           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8449         10.[012]*)
8450           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8451         10.*)
8452           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8453       esac
8454     ;;
8455   esac
8456     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8457       _lt_dar_single_mod='$single_module'
8458     fi
8459     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8460       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8461     else
8462       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8463     fi
8464     if test "$DSYMUTIL" != ":"; then
8465       _lt_dsymutil='~$DSYMUTIL $lib || :'
8466     else
8467       _lt_dsymutil=
8468     fi
8469     ;;
8470   esac
8471
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8473 $as_echo_n "checking for ANSI C header files... " >&6; }
8474 if test "${ac_cv_header_stdc+set}" = set; then :
8475   $as_echo_n "(cached) " >&6
8476 else
8477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h.  */
8479 #include <stdlib.h>
8480 #include <stdarg.h>
8481 #include <string.h>
8482 #include <float.h>
8483
8484 int
8485 main ()
8486 {
8487
8488   ;
8489   return 0;
8490 }
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493   ac_cv_header_stdc=yes
8494 else
8495   ac_cv_header_stdc=no
8496 fi
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498
8499 if test $ac_cv_header_stdc = yes; then
8500   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h.  */
8503 #include <string.h>
8504
8505 _ACEOF
8506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8507   $EGREP "memchr" >/dev/null 2>&1; then :
8508
8509 else
8510   ac_cv_header_stdc=no
8511 fi
8512 rm -f conftest*
8513
8514 fi
8515
8516 if test $ac_cv_header_stdc = yes; then
8517   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h.  */
8520 #include <stdlib.h>
8521
8522 _ACEOF
8523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8524   $EGREP "free" >/dev/null 2>&1; then :
8525
8526 else
8527   ac_cv_header_stdc=no
8528 fi
8529 rm -f conftest*
8530
8531 fi
8532
8533 if test $ac_cv_header_stdc = yes; then
8534   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8535   if test "$cross_compiling" = yes; then :
8536   :
8537 else
8538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h.  */
8540 #include <ctype.h>
8541 #include <stdlib.h>
8542 #if ((' ' & 0x0FF) == 0x020)
8543 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8544 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8545 #else
8546 # define ISLOWER(c) \
8547                    (('a' <= (c) && (c) <= 'i') \
8548                      || ('j' <= (c) && (c) <= 'r') \
8549                      || ('s' <= (c) && (c) <= 'z'))
8550 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8551 #endif
8552
8553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8554 int
8555 main ()
8556 {
8557   int i;
8558   for (i = 0; i < 256; i++)
8559     if (XOR (islower (i), ISLOWER (i))
8560         || toupper (i) != TOUPPER (i))
8561       return 2;
8562   return 0;
8563 }
8564 _ACEOF
8565 if ac_fn_c_try_run "$LINENO"; then :
8566
8567 else
8568   ac_cv_header_stdc=no
8569 fi
8570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8571   conftest.$ac_objext conftest.beam conftest.$ac_ext
8572 fi
8573
8574 fi
8575 fi
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8577 $as_echo "$ac_cv_header_stdc" >&6; }
8578 if test $ac_cv_header_stdc = yes; then
8579
8580 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8581
8582 fi
8583
8584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8585 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8586                   inttypes.h stdint.h unistd.h
8587 do :
8588   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8589 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8590 "
8591 eval as_val=\$$as_ac_Header
8592    if test "x$as_val" = x""yes; then :
8593   cat >>confdefs.h <<_ACEOF
8594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8595 _ACEOF
8596
8597 fi
8598
8599 done
8600
8601
8602 for ac_header in dlfcn.h
8603 do :
8604   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8605 "
8606 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8607   cat >>confdefs.h <<_ACEOF
8608 #define HAVE_DLFCN_H 1
8609 _ACEOF
8610
8611 fi
8612
8613 done
8614
8615
8616
8617 ac_ext=cpp
8618 ac_cpp='$CXXCPP $CPPFLAGS'
8619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8622 if test -z "$CXX"; then
8623   if test -n "$CCC"; then
8624     CXX=$CCC
8625   else
8626     if test -n "$ac_tool_prefix"; then
8627   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8628   do
8629     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if test "${ac_cv_prog_CXX+set}" = set; then :
8634   $as_echo_n "(cached) " >&6
8635 else
8636   if test -n "$CXX"; then
8637   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8641 do
8642   IFS=$as_save_IFS
8643   test -z "$as_dir" && as_dir=.
8644     for ac_exec_ext in '' $ac_executable_extensions; do
8645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8646     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648     break 2
8649   fi
8650 done
8651   done
8652 IFS=$as_save_IFS
8653
8654 fi
8655 fi
8656 CXX=$ac_cv_prog_CXX
8657 if test -n "$CXX"; then
8658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8659 $as_echo "$CXX" >&6; }
8660 else
8661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8663 fi
8664
8665
8666     test -n "$CXX" && break
8667   done
8668 fi
8669 if test -z "$CXX"; then
8670   ac_ct_CXX=$CXX
8671   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8672 do
8673   # Extract the first word of "$ac_prog", so it can be a program name with args.
8674 set dummy $ac_prog; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8678   $as_echo_n "(cached) " >&6
8679 else
8680   if test -n "$ac_ct_CXX"; then
8681   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686   IFS=$as_save_IFS
8687   test -z "$as_dir" && as_dir=.
8688     for ac_exec_ext in '' $ac_executable_extensions; do
8689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8690     ac_cv_prog_ac_ct_CXX="$ac_prog"
8691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692     break 2
8693   fi
8694 done
8695   done
8696 IFS=$as_save_IFS
8697
8698 fi
8699 fi
8700 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8701 if test -n "$ac_ct_CXX"; then
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8703 $as_echo "$ac_ct_CXX" >&6; }
8704 else
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8707 fi
8708
8709
8710   test -n "$ac_ct_CXX" && break
8711 done
8712
8713   if test "x$ac_ct_CXX" = x; then
8714     CXX="g++"
8715   else
8716     case $cross_compiling:$ac_tool_warned in
8717 yes:)
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8720 ac_tool_warned=yes ;;
8721 esac
8722     CXX=$ac_ct_CXX
8723   fi
8724 fi
8725
8726   fi
8727 fi
8728 # Provide some information about the compiler.
8729 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8730 set X $ac_compile
8731 ac_compiler=$2
8732 for ac_option in --version -v -V -qversion; do
8733   { { ac_try="$ac_compiler $ac_option >&5"
8734 case "(($ac_try" in
8735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736   *) ac_try_echo=$ac_try;;
8737 esac
8738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8739 $as_echo "$ac_try_echo"; } >&5
8740   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8741   ac_status=$?
8742   if test -s conftest.err; then
8743     sed '10a\
8744 ... rest of stderr output deleted ...
8745          10q' conftest.err >conftest.er1
8746     cat conftest.er1 >&5
8747   fi
8748   rm -f conftest.er1 conftest.err
8749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8750   test $ac_status = 0; }
8751 done
8752
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8754 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8755 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8756   $as_echo_n "(cached) " >&6
8757 else
8758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h.  */
8760
8761 int
8762 main ()
8763 {
8764 #ifndef __GNUC__
8765        choke me
8766 #endif
8767
8768   ;
8769   return 0;
8770 }
8771 _ACEOF
8772 if ac_fn_cxx_try_compile "$LINENO"; then :
8773   ac_compiler_gnu=yes
8774 else
8775   ac_compiler_gnu=no
8776 fi
8777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8778 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8779
8780 fi
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8782 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8783 if test $ac_compiler_gnu = yes; then
8784   GXX=yes
8785 else
8786   GXX=
8787 fi
8788 ac_test_CXXFLAGS=${CXXFLAGS+set}
8789 ac_save_CXXFLAGS=$CXXFLAGS
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8791 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8792 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8796    ac_cxx_werror_flag=yes
8797    ac_cv_prog_cxx_g=no
8798    CXXFLAGS="-g"
8799    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h.  */
8801
8802 int
8803 main ()
8804 {
8805
8806   ;
8807   return 0;
8808 }
8809 _ACEOF
8810 if ac_fn_cxx_try_compile "$LINENO"; then :
8811   ac_cv_prog_cxx_g=yes
8812 else
8813   CXXFLAGS=""
8814       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h.  */
8816
8817 int
8818 main ()
8819 {
8820
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 if ac_fn_cxx_try_compile "$LINENO"; then :
8826
8827 else
8828   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8829          CXXFLAGS="-g"
8830          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h.  */
8832
8833 int
8834 main ()
8835 {
8836
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 if ac_fn_cxx_try_compile "$LINENO"; then :
8842   ac_cv_prog_cxx_g=yes
8843 fi
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 fi
8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8852 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8853 if test "$ac_test_CXXFLAGS" = set; then
8854   CXXFLAGS=$ac_save_CXXFLAGS
8855 elif test $ac_cv_prog_cxx_g = yes; then
8856   if test "$GXX" = yes; then
8857     CXXFLAGS="-g -O2"
8858   else
8859     CXXFLAGS="-g"
8860   fi
8861 else
8862   if test "$GXX" = yes; then
8863     CXXFLAGS="-O2"
8864   else
8865     CXXFLAGS=
8866   fi
8867 fi
8868 ac_ext=c
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8873
8874 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8875     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8876     (test "X$CXX" != "Xg++"))) ; then
8877   ac_ext=cpp
8878 ac_cpp='$CXXCPP $CPPFLAGS'
8879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8883 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8884 if test -z "$CXXCPP"; then
8885   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8886   $as_echo_n "(cached) " >&6
8887 else
8888       # Double quotes because CXXCPP needs to be expanded
8889     for CXXCPP in "$CXX -E" "/lib/cpp"
8890     do
8891       ac_preproc_ok=false
8892 for ac_cxx_preproc_warn_flag in '' yes
8893 do
8894   # Use a header file that comes with gcc, so configuring glibc
8895   # with a fresh cross-compiler works.
8896   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8897   # <limits.h> exists even on freestanding compilers.
8898   # On the NeXT, cc -E runs the code through the compiler's parser,
8899   # not just through cpp. "Syntax error" is here to catch this case.
8900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h.  */
8902 #ifdef __STDC__
8903 # include <limits.h>
8904 #else
8905 # include <assert.h>
8906 #endif
8907                      Syntax error
8908 _ACEOF
8909 if ac_fn_cxx_try_cpp "$LINENO"; then :
8910
8911 else
8912   # Broken: fails on valid input.
8913 continue
8914 fi
8915 rm -f conftest.err conftest.$ac_ext
8916
8917   # OK, works on sane cases.  Now check whether nonexistent headers
8918   # can be detected and how.
8919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h.  */
8921 #include <ac_nonexistent.h>
8922 _ACEOF
8923 if ac_fn_cxx_try_cpp "$LINENO"; then :
8924   # Broken: success on invalid input.
8925 continue
8926 else
8927   # Passes both tests.
8928 ac_preproc_ok=:
8929 break
8930 fi
8931 rm -f conftest.err conftest.$ac_ext
8932
8933 done
8934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8935 rm -f conftest.err conftest.$ac_ext
8936 if $ac_preproc_ok; then :
8937   break
8938 fi
8939
8940     done
8941     ac_cv_prog_CXXCPP=$CXXCPP
8942
8943 fi
8944   CXXCPP=$ac_cv_prog_CXXCPP
8945 else
8946   ac_cv_prog_CXXCPP=$CXXCPP
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8949 $as_echo "$CXXCPP" >&6; }
8950 ac_preproc_ok=false
8951 for ac_cxx_preproc_warn_flag in '' yes
8952 do
8953   # Use a header file that comes with gcc, so configuring glibc
8954   # with a fresh cross-compiler works.
8955   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8956   # <limits.h> exists even on freestanding compilers.
8957   # On the NeXT, cc -E runs the code through the compiler's parser,
8958   # not just through cpp. "Syntax error" is here to catch this case.
8959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h.  */
8961 #ifdef __STDC__
8962 # include <limits.h>
8963 #else
8964 # include <assert.h>
8965 #endif
8966                      Syntax error
8967 _ACEOF
8968 if ac_fn_cxx_try_cpp "$LINENO"; then :
8969
8970 else
8971   # Broken: fails on valid input.
8972 continue
8973 fi
8974 rm -f conftest.err conftest.$ac_ext
8975
8976   # OK, works on sane cases.  Now check whether nonexistent headers
8977   # can be detected and how.
8978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h.  */
8980 #include <ac_nonexistent.h>
8981 _ACEOF
8982 if ac_fn_cxx_try_cpp "$LINENO"; then :
8983   # Broken: success on invalid input.
8984 continue
8985 else
8986   # Passes both tests.
8987 ac_preproc_ok=:
8988 break
8989 fi
8990 rm -f conftest.err conftest.$ac_ext
8991
8992 done
8993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8994 rm -f conftest.err conftest.$ac_ext
8995 if $ac_preproc_ok; then :
8996
8997 else
8998   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9000 _lt_caught_CXX_error=yes; }
9001 fi
9002
9003 ac_ext=c
9004 ac_cpp='$CPP $CPPFLAGS'
9005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008
9009 else
9010   _lt_caught_CXX_error=yes
9011 fi
9012
9013
9014
9015
9016
9017 # Set options
9018 # Check whether --enable-shared was given.
9019 if test "${enable_shared+set}" = set; then :
9020   enableval=$enable_shared; p=${PACKAGE-default}
9021     case $enableval in
9022     yes) enable_shared=yes ;;
9023     no) enable_shared=no ;;
9024     *)
9025       enable_shared=no
9026       # Look at the argument we got.  We use all the common list separators.
9027       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9028       for pkg in $enableval; do
9029         IFS="$lt_save_ifs"
9030         if test "X$pkg" = "X$p"; then
9031           enable_shared=yes
9032         fi
9033       done
9034       IFS="$lt_save_ifs"
9035       ;;
9036     esac
9037 else
9038   enable_shared=yes
9039 fi
9040
9041
9042
9043
9044
9045
9046
9047 # Check whether --enable-static was given.
9048 if test "${enable_static+set}" = set; then :
9049   enableval=$enable_static; p=${PACKAGE-default}
9050     case $enableval in
9051     yes) enable_static=yes ;;
9052     no) enable_static=no ;;
9053     *)
9054      enable_static=no
9055       # Look at the argument we got.  We use all the common list separators.
9056       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9057       for pkg in $enableval; do
9058         IFS="$lt_save_ifs"
9059         if test "X$pkg" = "X$p"; then
9060           enable_static=yes
9061         fi
9062       done
9063       IFS="$lt_save_ifs"
9064       ;;
9065     esac
9066 else
9067   enable_static=no
9068 fi
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079         enable_dlopen=no
9080
9081
9082   enable_win32_dll=no
9083
9084
9085
9086
9087
9088 # Check whether --with-pic was given.
9089 if test "${with_pic+set}" = set; then :
9090   withval=$with_pic; pic_mode="$withval"
9091 else
9092   pic_mode=default
9093 fi
9094
9095
9096 test -z "$pic_mode" && pic_mode=default
9097
9098
9099
9100
9101
9102
9103
9104   # Check whether --enable-fast-install was given.
9105 if test "${enable_fast_install+set}" = set; then :
9106   enableval=$enable_fast_install; p=${PACKAGE-default}
9107     case $enableval in
9108     yes) enable_fast_install=yes ;;
9109     no) enable_fast_install=no ;;
9110     *)
9111       enable_fast_install=no
9112       # Look at the argument we got.  We use all the common list separators.
9113       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9114       for pkg in $enableval; do
9115         IFS="$lt_save_ifs"
9116         if test "X$pkg" = "X$p"; then
9117           enable_fast_install=yes
9118         fi
9119       done
9120       IFS="$lt_save_ifs"
9121       ;;
9122     esac
9123 else
9124   enable_fast_install=yes
9125 fi
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137 # This can be used to rebuild libtool when needed
9138 LIBTOOL_DEPS="$ltmain"
9139
9140 # Always use our own libtool.
9141 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167 test -z "$LN_S" && LN_S="ln -s"
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182 if test -n "${ZSH_VERSION+set}" ; then
9183    setopt NO_GLOB_SUBST
9184 fi
9185
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9187 $as_echo_n "checking for objdir... " >&6; }
9188 if test "${lt_cv_objdir+set}" = set; then :
9189   $as_echo_n "(cached) " >&6
9190 else
9191   rm -f .libs 2>/dev/null
9192 mkdir .libs 2>/dev/null
9193 if test -d .libs; then
9194   lt_cv_objdir=.libs
9195 else
9196   # MS-DOS does not allow filenames that begin with a dot.
9197   lt_cv_objdir=_libs
9198 fi
9199 rmdir .libs 2>/dev/null
9200 fi
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9202 $as_echo "$lt_cv_objdir" >&6; }
9203 objdir=$lt_cv_objdir
9204
9205
9206
9207
9208
9209 cat >>confdefs.h <<_ACEOF
9210 #define LT_OBJDIR "$lt_cv_objdir/"
9211 _ACEOF
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229 case $host_os in
9230 aix3*)
9231   # AIX sometimes has problems with the GCC collect2 program.  For some
9232   # reason, if we set the COLLECT_NAMES environment variable, the problems
9233   # vanish in a puff of smoke.
9234   if test "X${COLLECT_NAMES+set}" != Xset; then
9235     COLLECT_NAMES=
9236     export COLLECT_NAMES
9237   fi
9238   ;;
9239 esac
9240
9241 # Sed substitution that helps us do robust quoting.  It backslashifies
9242 # metacharacters that are still active within double-quoted strings.
9243 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9244
9245 # Same as above, but do not quote variable references.
9246 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9247
9248 # Sed substitution to delay expansion of an escaped shell variable in a
9249 # double_quote_subst'ed string.
9250 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9251
9252 # Sed substitution to delay expansion of an escaped single quote.
9253 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9254
9255 # Sed substitution to avoid accidental globbing in evaled expressions
9256 no_glob_subst='s/\*/\\\*/g'
9257
9258 # Global variables:
9259 ofile=libtool
9260 can_build_shared=yes
9261
9262 # All known linkers require a `.a' archive for static linking (except MSVC,
9263 # which needs '.lib').
9264 libext=a
9265
9266 with_gnu_ld="$lt_cv_prog_gnu_ld"
9267
9268 old_CC="$CC"
9269 old_CFLAGS="$CFLAGS"
9270
9271 # Set sane defaults for various variables
9272 test -z "$CC" && CC=cc
9273 test -z "$LTCC" && LTCC=$CC
9274 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9275 test -z "$LD" && LD=ld
9276 test -z "$ac_objext" && ac_objext=o
9277
9278 for cc_temp in $compiler""; do
9279   case $cc_temp in
9280     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9281     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9282     \-*) ;;
9283     *) break;;
9284   esac
9285 done
9286 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9287
9288
9289 # Only perform the check for file, if the check method requires it
9290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9291 case $deplibs_check_method in
9292 file_magic*)
9293   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9295 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9296 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9297   $as_echo_n "(cached) " >&6
9298 else
9299   case $MAGIC_CMD in
9300 [\\/*] |  ?:[\\/]*)
9301   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9302   ;;
9303 *)
9304   lt_save_MAGIC_CMD="$MAGIC_CMD"
9305   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9306   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9307   for ac_dir in $ac_dummy; do
9308     IFS="$lt_save_ifs"
9309     test -z "$ac_dir" && ac_dir=.
9310     if test -f $ac_dir/${ac_tool_prefix}file; then
9311       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9312       if test -n "$file_magic_test_file"; then
9313         case $deplibs_check_method in
9314         "file_magic "*)
9315           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9316           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9317           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9318             $EGREP "$file_magic_regex" > /dev/null; then
9319             :
9320           else
9321             cat <<_LT_EOF 1>&2
9322
9323 *** Warning: the command libtool uses to detect shared libraries,
9324 *** $file_magic_cmd, produces output that libtool cannot recognize.
9325 *** The result is that libtool may fail to recognize shared libraries
9326 *** as such.  This will affect the creation of libtool libraries that
9327 *** depend on shared libraries, but programs linked with such libtool
9328 *** libraries will work regardless of this problem.  Nevertheless, you
9329 *** may want to report the problem to your system manager and/or to
9330 *** bug-libtool@gnu.org
9331
9332 _LT_EOF
9333           fi ;;
9334         esac
9335       fi
9336       break
9337     fi
9338   done
9339   IFS="$lt_save_ifs"
9340   MAGIC_CMD="$lt_save_MAGIC_CMD"
9341   ;;
9342 esac
9343 fi
9344
9345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9346 if test -n "$MAGIC_CMD"; then
9347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9348 $as_echo "$MAGIC_CMD" >&6; }
9349 else
9350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9352 fi
9353
9354
9355
9356
9357
9358 if test -z "$lt_cv_path_MAGIC_CMD"; then
9359   if test -n "$ac_tool_prefix"; then
9360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9361 $as_echo_n "checking for file... " >&6; }
9362 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9363   $as_echo_n "(cached) " >&6
9364 else
9365   case $MAGIC_CMD in
9366 [\\/*] |  ?:[\\/]*)
9367   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9368   ;;
9369 *)
9370   lt_save_MAGIC_CMD="$MAGIC_CMD"
9371   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9372   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9373   for ac_dir in $ac_dummy; do
9374     IFS="$lt_save_ifs"
9375     test -z "$ac_dir" && ac_dir=.
9376     if test -f $ac_dir/file; then
9377       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9378       if test -n "$file_magic_test_file"; then
9379         case $deplibs_check_method in
9380         "file_magic "*)
9381           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9382           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9383           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9384             $EGREP "$file_magic_regex" > /dev/null; then
9385             :
9386           else
9387             cat <<_LT_EOF 1>&2
9388
9389 *** Warning: the command libtool uses to detect shared libraries,
9390 *** $file_magic_cmd, produces output that libtool cannot recognize.
9391 *** The result is that libtool may fail to recognize shared libraries
9392 *** as such.  This will affect the creation of libtool libraries that
9393 *** depend on shared libraries, but programs linked with such libtool
9394 *** libraries will work regardless of this problem.  Nevertheless, you
9395 *** may want to report the problem to your system manager and/or to
9396 *** bug-libtool@gnu.org
9397
9398 _LT_EOF
9399           fi ;;
9400         esac
9401       fi
9402       break
9403     fi
9404   done
9405   IFS="$lt_save_ifs"
9406   MAGIC_CMD="$lt_save_MAGIC_CMD"
9407   ;;
9408 esac
9409 fi
9410
9411 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9412 if test -n "$MAGIC_CMD"; then
9413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9414 $as_echo "$MAGIC_CMD" >&6; }
9415 else
9416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 $as_echo "no" >&6; }
9418 fi
9419
9420
9421   else
9422     MAGIC_CMD=:
9423   fi
9424 fi
9425
9426   fi
9427   ;;
9428 esac
9429
9430 # Use C for the default configuration in the libtool script
9431
9432 lt_save_CC="$CC"
9433 ac_ext=c
9434 ac_cpp='$CPP $CPPFLAGS'
9435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9438
9439
9440 # Source file extension for C test sources.
9441 ac_ext=c
9442
9443 # Object file extension for compiled C test sources.
9444 objext=o
9445 objext=$objext
9446
9447 # Code to be used in simple compile tests
9448 lt_simple_compile_test_code="int some_variable = 0;"
9449
9450 # Code to be used in simple link tests
9451 lt_simple_link_test_code='int main(){return(0);}'
9452
9453
9454
9455
9456
9457
9458
9459 # If no C compiler was specified, use CC.
9460 LTCC=${LTCC-"$CC"}
9461
9462 # If no C compiler flags were specified, use CFLAGS.
9463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9464
9465 # Allow CC to be a program name with arguments.
9466 compiler=$CC
9467
9468 # Save the default compiler, since it gets overwritten when the other
9469 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9470 compiler_DEFAULT=$CC
9471
9472 # save warnings/boilerplate of simple test code
9473 ac_outfile=conftest.$ac_objext
9474 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9476 _lt_compiler_boilerplate=`cat conftest.err`
9477 $RM conftest*
9478
9479 ac_outfile=conftest.$ac_objext
9480 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9482 _lt_linker_boilerplate=`cat conftest.err`
9483 $RM -r conftest*
9484
9485
9486 ## CAVEAT EMPTOR:
9487 ## There is no encapsulation within the following macros, do not change
9488 ## the running order or otherwise move them around unless you know exactly
9489 ## what you are doing...
9490 if test -n "$compiler"; then
9491
9492 lt_prog_compiler_no_builtin_flag=
9493
9494 if test "$GCC" = yes; then
9495   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9496
9497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9498 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9499 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9500   $as_echo_n "(cached) " >&6
9501 else
9502   lt_cv_prog_compiler_rtti_exceptions=no
9503    ac_outfile=conftest.$ac_objext
9504    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9505    lt_compiler_flag="-fno-rtti -fno-exceptions"
9506    # Insert the option either (1) after the last *FLAGS variable, or
9507    # (2) before a word containing "conftest.", or (3) at the end.
9508    # Note that $ac_compile itself does not contain backslashes and begins
9509    # with a dollar sign (not a hyphen), so the echo should work correctly.
9510    # The option is referenced via a variable to avoid confusing sed.
9511    lt_compile=`echo "$ac_compile" | $SED \
9512    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9513    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9514    -e 's:$: $lt_compiler_flag:'`
9515    (eval echo "\"\$as_me:9515: $lt_compile\"" >&5)
9516    (eval "$lt_compile" 2>conftest.err)
9517    ac_status=$?
9518    cat conftest.err >&5
9519    echo "$as_me:9519: \$? = $ac_status" >&5
9520    if (exit $ac_status) && test -s "$ac_outfile"; then
9521      # The compiler can only warn and ignore the option if not recognized
9522      # So say no if there are warnings other than the usual output.
9523      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9524      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9525      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9526        lt_cv_prog_compiler_rtti_exceptions=yes
9527      fi
9528    fi
9529    $RM conftest*
9530
9531 fi
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9533 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9534
9535 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9536     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9537 else
9538     :
9539 fi
9540
9541 fi
9542
9543
9544
9545
9546
9547
9548   lt_prog_compiler_wl=
9549 lt_prog_compiler_pic=
9550 lt_prog_compiler_static=
9551
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9553 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9554
9555   if test "$GCC" = yes; then
9556     lt_prog_compiler_wl='-Wl,'
9557     lt_prog_compiler_static='-static'
9558
9559     case $host_os in
9560       aix*)
9561       # All AIX code is PIC.
9562       if test "$host_cpu" = ia64; then
9563         # AIX 5 now supports IA64 processor
9564         lt_prog_compiler_static='-Bstatic'
9565       fi
9566       ;;
9567
9568     amigaos*)
9569       case $host_cpu in
9570       powerpc)
9571             # see comment about AmigaOS4 .so support
9572             lt_prog_compiler_pic='-fPIC'
9573         ;;
9574       m68k)
9575             # FIXME: we need at least 68020 code to build shared libraries, but
9576             # adding the `-m68020' flag to GCC prevents building anything better,
9577             # like `-m68040'.
9578             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9579         ;;
9580       esac
9581       ;;
9582
9583     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9584       # PIC is the default for these OSes.
9585       ;;
9586
9587     mingw* | cygwin* | pw32* | os2* | cegcc*)
9588       # This hack is so that the source file can tell whether it is being
9589       # built for inclusion in a dll (and should export symbols for example).
9590       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9591       # (--disable-auto-import) libraries
9592       lt_prog_compiler_pic='-DDLL_EXPORT'
9593       ;;
9594
9595     darwin* | rhapsody*)
9596       # PIC is the default on this platform
9597       # Common symbols not allowed in MH_DYLIB files
9598       lt_prog_compiler_pic='-fno-common'
9599       ;;
9600
9601     hpux*)
9602       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9603       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9604       # sets the default TLS model and affects inlining.
9605       case $host_cpu in
9606       hppa*64*)
9607         # +Z the default
9608         ;;
9609       *)
9610         lt_prog_compiler_pic='-fPIC'
9611         ;;
9612       esac
9613       ;;
9614
9615     interix[3-9]*)
9616       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9617       # Instead, we relocate shared libraries at runtime.
9618       ;;
9619
9620     msdosdjgpp*)
9621       # Just because we use GCC doesn't mean we suddenly get shared libraries
9622       # on systems that don't support them.
9623       lt_prog_compiler_can_build_shared=no
9624       enable_shared=no
9625       ;;
9626
9627     *nto* | *qnx*)
9628       # QNX uses GNU C++, but need to define -shared option too, otherwise
9629       # it will coredump.
9630       lt_prog_compiler_pic='-fPIC -shared'
9631       ;;
9632
9633     sysv4*MP*)
9634       if test -d /usr/nec; then
9635         lt_prog_compiler_pic=-Kconform_pic
9636       fi
9637       ;;
9638
9639     *)
9640       lt_prog_compiler_pic='-fPIC'
9641       ;;
9642     esac
9643   else
9644     # PORTME Check for flag to pass linker flags through the system compiler.
9645     case $host_os in
9646     aix*)
9647       lt_prog_compiler_wl='-Wl,'
9648       if test "$host_cpu" = ia64; then
9649         # AIX 5 now supports IA64 processor
9650         lt_prog_compiler_static='-Bstatic'
9651       else
9652         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9653       fi
9654       ;;
9655
9656     mingw* | cygwin* | pw32* | os2* | cegcc*)
9657       # This hack is so that the source file can tell whether it is being
9658       # built for inclusion in a dll (and should export symbols for example).
9659       lt_prog_compiler_pic='-DDLL_EXPORT'
9660       ;;
9661
9662     hpux9* | hpux10* | hpux11*)
9663       lt_prog_compiler_wl='-Wl,'
9664       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9665       # not for PA HP-UX.
9666       case $host_cpu in
9667       hppa*64*|ia64*)
9668         # +Z the default
9669         ;;
9670       *)
9671         lt_prog_compiler_pic='+Z'
9672         ;;
9673       esac
9674       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9675       lt_prog_compiler_static='${wl}-a ${wl}archive'
9676       ;;
9677
9678     irix5* | irix6* | nonstopux*)
9679       lt_prog_compiler_wl='-Wl,'
9680       # PIC (with -KPIC) is the default.
9681       lt_prog_compiler_static='-non_shared'
9682       ;;
9683
9684     linux* | k*bsd*-gnu)
9685       case $cc_basename in
9686       # old Intel for x86_64 which still supported -KPIC.
9687       ecc*)
9688         lt_prog_compiler_wl='-Wl,'
9689         lt_prog_compiler_pic='-KPIC'
9690         lt_prog_compiler_static='-static'
9691         ;;
9692       # icc used to be incompatible with GCC.
9693       # ICC 10 doesn't accept -KPIC any more.
9694       icc* | ifort*)
9695         lt_prog_compiler_wl='-Wl,'
9696         lt_prog_compiler_pic='-fPIC'
9697         lt_prog_compiler_static='-static'
9698         ;;
9699       # Lahey Fortran 8.1.
9700       lf95*)
9701         lt_prog_compiler_wl='-Wl,'
9702         lt_prog_compiler_pic='--shared'
9703         lt_prog_compiler_static='--static'
9704         ;;
9705       pgcc* | pgf77* | pgf90* | pgf95*)
9706         # Portland Group compilers (*not* the Pentium gcc compiler,
9707         # which looks to be a dead project)
9708         lt_prog_compiler_wl='-Wl,'
9709         lt_prog_compiler_pic='-fpic'
9710         lt_prog_compiler_static='-Bstatic'
9711         ;;
9712       ccc*)
9713         lt_prog_compiler_wl='-Wl,'
9714         # All Alpha code is PIC.
9715         lt_prog_compiler_static='-non_shared'
9716         ;;
9717       xl*)
9718         # IBM XL C 8.0/Fortran 10.1 on PPC
9719         lt_prog_compiler_wl='-Wl,'
9720         lt_prog_compiler_pic='-qpic'
9721         lt_prog_compiler_static='-qstaticlink'
9722         ;;
9723       *)
9724         case `$CC -V 2>&1 | sed 5q` in
9725         *Sun\ C*)
9726           # Sun C 5.9
9727           lt_prog_compiler_pic='-KPIC'
9728           lt_prog_compiler_static='-Bstatic'
9729           lt_prog_compiler_wl='-Wl,'
9730           ;;
9731         *Sun\ F*)
9732           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9733           lt_prog_compiler_pic='-KPIC'
9734           lt_prog_compiler_static='-Bstatic'
9735           lt_prog_compiler_wl=''
9736           ;;
9737         esac
9738         ;;
9739       esac
9740       ;;
9741
9742     newsos6)
9743       lt_prog_compiler_pic='-KPIC'
9744       lt_prog_compiler_static='-Bstatic'
9745       ;;
9746
9747     *nto* | *qnx*)
9748       # QNX uses GNU C++, but need to define -shared option too, otherwise
9749       # it will coredump.
9750       lt_prog_compiler_pic='-fPIC -shared'
9751       ;;
9752
9753     osf3* | osf4* | osf5*)
9754       lt_prog_compiler_wl='-Wl,'
9755       # All OSF/1 code is PIC.
9756       lt_prog_compiler_static='-non_shared'
9757       ;;
9758
9759     rdos*)
9760       lt_prog_compiler_static='-non_shared'
9761       ;;
9762
9763     solaris*)
9764       lt_prog_compiler_pic='-KPIC'
9765       lt_prog_compiler_static='-Bstatic'
9766       case $cc_basename in
9767       f77* | f90* | f95*)
9768         lt_prog_compiler_wl='-Qoption ld ';;
9769       *)
9770         lt_prog_compiler_wl='-Wl,';;
9771       esac
9772       ;;
9773
9774     sunos4*)
9775       lt_prog_compiler_wl='-Qoption ld '
9776       lt_prog_compiler_pic='-PIC'
9777       lt_prog_compiler_static='-Bstatic'
9778       ;;
9779
9780     sysv4 | sysv4.2uw2* | sysv4.3*)
9781       lt_prog_compiler_wl='-Wl,'
9782       lt_prog_compiler_pic='-KPIC'
9783       lt_prog_compiler_static='-Bstatic'
9784       ;;
9785
9786     sysv4*MP*)
9787       if test -d /usr/nec ;then
9788         lt_prog_compiler_pic='-Kconform_pic'
9789         lt_prog_compiler_static='-Bstatic'
9790       fi
9791       ;;
9792
9793     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9794       lt_prog_compiler_wl='-Wl,'
9795       lt_prog_compiler_pic='-KPIC'
9796       lt_prog_compiler_static='-Bstatic'
9797       ;;
9798
9799     unicos*)
9800       lt_prog_compiler_wl='-Wl,'
9801       lt_prog_compiler_can_build_shared=no
9802       ;;
9803
9804     uts4*)
9805       lt_prog_compiler_pic='-pic'
9806       lt_prog_compiler_static='-Bstatic'
9807       ;;
9808
9809     *)
9810       lt_prog_compiler_can_build_shared=no
9811       ;;
9812     esac
9813   fi
9814
9815 case $host_os in
9816   # For platforms which do not support PIC, -DPIC is meaningless:
9817   *djgpp*)
9818     lt_prog_compiler_pic=
9819     ;;
9820   *)
9821     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9822     ;;
9823 esac
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9825 $as_echo "$lt_prog_compiler_pic" >&6; }
9826
9827
9828
9829
9830
9831
9832 #
9833 # Check to make sure the PIC flag actually works.
9834 #
9835 if test -n "$lt_prog_compiler_pic"; then
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9837 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9838 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9839   $as_echo_n "(cached) " >&6
9840 else
9841   lt_cv_prog_compiler_pic_works=no
9842    ac_outfile=conftest.$ac_objext
9843    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9844    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9845    # Insert the option either (1) after the last *FLAGS variable, or
9846    # (2) before a word containing "conftest.", or (3) at the end.
9847    # Note that $ac_compile itself does not contain backslashes and begins
9848    # with a dollar sign (not a hyphen), so the echo should work correctly.
9849    # The option is referenced via a variable to avoid confusing sed.
9850    lt_compile=`echo "$ac_compile" | $SED \
9851    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9852    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9853    -e 's:$: $lt_compiler_flag:'`
9854    (eval echo "\"\$as_me:9854: $lt_compile\"" >&5)
9855    (eval "$lt_compile" 2>conftest.err)
9856    ac_status=$?
9857    cat conftest.err >&5
9858    echo "$as_me:9858: \$? = $ac_status" >&5
9859    if (exit $ac_status) && test -s "$ac_outfile"; then
9860      # The compiler can only warn and ignore the option if not recognized
9861      # So say no if there are warnings other than the usual output.
9862      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9863      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9864      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9865        lt_cv_prog_compiler_pic_works=yes
9866      fi
9867    fi
9868    $RM conftest*
9869
9870 fi
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9872 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9873
9874 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9875     case $lt_prog_compiler_pic in
9876      "" | " "*) ;;
9877      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9878      esac
9879 else
9880     lt_prog_compiler_pic=
9881      lt_prog_compiler_can_build_shared=no
9882 fi
9883
9884 fi
9885
9886
9887
9888
9889
9890
9891 #
9892 # Check to make sure the static flag actually works.
9893 #
9894 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9896 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9897 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9898   $as_echo_n "(cached) " >&6
9899 else
9900   lt_cv_prog_compiler_static_works=no
9901    save_LDFLAGS="$LDFLAGS"
9902    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9903    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9904    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9905      # The linker can only warn and ignore the option if not recognized
9906      # So say no if there are warnings
9907      if test -s conftest.err; then
9908        # Append any errors to the config.log.
9909        cat conftest.err 1>&5
9910        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9911        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9912        if diff conftest.exp conftest.er2 >/dev/null; then
9913          lt_cv_prog_compiler_static_works=yes
9914        fi
9915      else
9916        lt_cv_prog_compiler_static_works=yes
9917      fi
9918    fi
9919    $RM -r conftest*
9920    LDFLAGS="$save_LDFLAGS"
9921
9922 fi
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9924 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9925
9926 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9927     :
9928 else
9929     lt_prog_compiler_static=
9930 fi
9931
9932
9933
9934
9935
9936
9937
9938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9939 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9940 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9941   $as_echo_n "(cached) " >&6
9942 else
9943   lt_cv_prog_compiler_c_o=no
9944    $RM -r conftest 2>/dev/null
9945    mkdir conftest
9946    cd conftest
9947    mkdir out
9948    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9949
9950    lt_compiler_flag="-o out/conftest2.$ac_objext"
9951    # Insert the option either (1) after the last *FLAGS variable, or
9952    # (2) before a word containing "conftest.", or (3) at the end.
9953    # Note that $ac_compile itself does not contain backslashes and begins
9954    # with a dollar sign (not a hyphen), so the echo should work correctly.
9955    lt_compile=`echo "$ac_compile" | $SED \
9956    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9957    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9958    -e 's:$: $lt_compiler_flag:'`
9959    (eval echo "\"\$as_me:9959: $lt_compile\"" >&5)
9960    (eval "$lt_compile" 2>out/conftest.err)
9961    ac_status=$?
9962    cat out/conftest.err >&5
9963    echo "$as_me:9963: \$? = $ac_status" >&5
9964    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9965    then
9966      # The compiler can only warn and ignore the option if not recognized
9967      # So say no if there are warnings
9968      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9969      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9970      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9971        lt_cv_prog_compiler_c_o=yes
9972      fi
9973    fi
9974    chmod u+w . 2>&5
9975    $RM conftest*
9976    # SGI C++ compiler will create directory out/ii_files/ for
9977    # template instantiation
9978    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9979    $RM out/* && rmdir out
9980    cd ..
9981    $RM -r conftest
9982    $RM conftest*
9983
9984 fi
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9986 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9987
9988
9989
9990
9991
9992
9993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9994 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9995 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9996   $as_echo_n "(cached) " >&6
9997 else
9998   lt_cv_prog_compiler_c_o=no
9999    $RM -r conftest 2>/dev/null
10000    mkdir conftest
10001    cd conftest
10002    mkdir out
10003    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10004
10005    lt_compiler_flag="-o out/conftest2.$ac_objext"
10006    # Insert the option either (1) after the last *FLAGS variable, or
10007    # (2) before a word containing "conftest.", or (3) at the end.
10008    # Note that $ac_compile itself does not contain backslashes and begins
10009    # with a dollar sign (not a hyphen), so the echo should work correctly.
10010    lt_compile=`echo "$ac_compile" | $SED \
10011    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10012    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10013    -e 's:$: $lt_compiler_flag:'`
10014    (eval echo "\"\$as_me:10014: $lt_compile\"" >&5)
10015    (eval "$lt_compile" 2>out/conftest.err)
10016    ac_status=$?
10017    cat out/conftest.err >&5
10018    echo "$as_me:10018: \$? = $ac_status" >&5
10019    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10020    then
10021      # The compiler can only warn and ignore the option if not recognized
10022      # So say no if there are warnings
10023      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10024      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10025      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10026        lt_cv_prog_compiler_c_o=yes
10027      fi
10028    fi
10029    chmod u+w . 2>&5
10030    $RM conftest*
10031    # SGI C++ compiler will create directory out/ii_files/ for
10032    # template instantiation
10033    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10034    $RM out/* && rmdir out
10035    cd ..
10036    $RM -r conftest
10037    $RM conftest*
10038
10039 fi
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10041 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10042
10043
10044
10045
10046 hard_links="nottested"
10047 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10048   # do not overwrite the value of need_locks provided by the user
10049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10050 $as_echo_n "checking if we can lock with hard links... " >&6; }
10051   hard_links=yes
10052   $RM conftest*
10053   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10054   touch conftest.a
10055   ln conftest.a conftest.b 2>&5 || hard_links=no
10056   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10058 $as_echo "$hard_links" >&6; }
10059   if test "$hard_links" = no; then
10060     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10061 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10062     need_locks=warn
10063   fi
10064 else
10065   need_locks=no
10066 fi
10067
10068
10069
10070
10071
10072
10073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10074 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10075
10076   runpath_var=
10077   allow_undefined_flag=
10078   always_export_symbols=no
10079   archive_cmds=
10080   archive_expsym_cmds=
10081   compiler_needs_object=no
10082   enable_shared_with_static_runtimes=no
10083   export_dynamic_flag_spec=
10084   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10085   hardcode_automatic=no
10086   hardcode_direct=no
10087   hardcode_direct_absolute=no
10088   hardcode_libdir_flag_spec=
10089   hardcode_libdir_flag_spec_ld=
10090   hardcode_libdir_separator=
10091   hardcode_minus_L=no
10092   hardcode_shlibpath_var=unsupported
10093   inherit_rpath=no
10094   link_all_deplibs=unknown
10095   module_cmds=
10096   module_expsym_cmds=
10097   old_archive_from_new_cmds=
10098   old_archive_from_expsyms_cmds=
10099   thread_safe_flag_spec=
10100   whole_archive_flag_spec=
10101   # include_expsyms should be a list of space-separated symbols to be *always*
10102   # included in the symbol list
10103   include_expsyms=
10104   # exclude_expsyms can be an extended regexp of symbols to exclude
10105   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10106   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10107   # as well as any symbol that contains `d'.
10108   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10109   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10110   # platforms (ab)use it in PIC code, but their linkers get confused if
10111   # the symbol is explicitly referenced.  Since portable code cannot
10112   # rely on this symbol name, it's probably fine to never include it in
10113   # preloaded symbol tables.
10114   # Exclude shared library initialization/finalization symbols.
10115   extract_expsyms_cmds=
10116
10117   case $host_os in
10118   cygwin* | mingw* | pw32* | cegcc*)
10119     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10120     # When not using gcc, we currently assume that we are using
10121     # Microsoft Visual C++.
10122     if test "$GCC" != yes; then
10123       with_gnu_ld=no
10124     fi
10125     ;;
10126   interix*)
10127     # we just hope/assume this is gcc and not c89 (= MSVC++)
10128     with_gnu_ld=yes
10129     ;;
10130   openbsd*)
10131     with_gnu_ld=no
10132     ;;
10133   esac
10134
10135   ld_shlibs=yes
10136   if test "$with_gnu_ld" = yes; then
10137     # If archive_cmds runs LD, not CC, wlarc should be empty
10138     wlarc='${wl}'
10139
10140     # Set some defaults for GNU ld with shared library support. These
10141     # are reset later if shared libraries are not supported. Putting them
10142     # here allows them to be overridden if necessary.
10143     runpath_var=LD_RUN_PATH
10144     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10145     export_dynamic_flag_spec='${wl}--export-dynamic'
10146     # ancient GNU ld didn't support --whole-archive et. al.
10147     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10148       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10149     else
10150       whole_archive_flag_spec=
10151     fi
10152     supports_anon_versioning=no
10153     case `$LD -v 2>&1` in
10154       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10155       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10156       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10157       *\ 2.11.*) ;; # other 2.11 versions
10158       *) supports_anon_versioning=yes ;;
10159     esac
10160
10161     # See if GNU ld supports shared libraries.
10162     case $host_os in
10163     aix[3-9]*)
10164       # On AIX/PPC, the GNU linker is very broken
10165       if test "$host_cpu" != ia64; then
10166         ld_shlibs=no
10167         cat <<_LT_EOF 1>&2
10168
10169 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10170 *** to be unable to reliably create shared libraries on AIX.
10171 *** Therefore, libtool is disabling shared libraries support.  If you
10172 *** really care for shared libraries, you may want to modify your PATH
10173 *** so that a non-GNU linker is found, and then restart.
10174
10175 _LT_EOF
10176       fi
10177       ;;
10178
10179     amigaos*)
10180       case $host_cpu in
10181       powerpc)
10182             # see comment about AmigaOS4 .so support
10183             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10184             archive_expsym_cmds=''
10185         ;;
10186       m68k)
10187             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)'
10188             hardcode_libdir_flag_spec='-L$libdir'
10189             hardcode_minus_L=yes
10190         ;;
10191       esac
10192       ;;
10193
10194     beos*)
10195       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10196         allow_undefined_flag=unsupported
10197         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10198         # support --undefined.  This deserves some investigation.  FIXME
10199         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10200       else
10201         ld_shlibs=no
10202       fi
10203       ;;
10204
10205     cygwin* | mingw* | pw32* | cegcc*)
10206       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10207       # as there is no search path for DLLs.
10208       hardcode_libdir_flag_spec='-L$libdir'
10209       allow_undefined_flag=unsupported
10210       always_export_symbols=no
10211       enable_shared_with_static_runtimes=yes
10212       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10213
10214       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10215         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10216         # If the export-symbols file already is a .def file (1st line
10217         # is EXPORTS), use it as is; otherwise, prepend...
10218         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10219           cp $export_symbols $output_objdir/$soname.def;
10220         else
10221           echo EXPORTS > $output_objdir/$soname.def;
10222           cat $export_symbols >> $output_objdir/$soname.def;
10223         fi~
10224         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10225       else
10226         ld_shlibs=no
10227       fi
10228       ;;
10229
10230     interix[3-9]*)
10231       hardcode_direct=no
10232       hardcode_shlibpath_var=no
10233       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10234       export_dynamic_flag_spec='${wl}-E'
10235       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10236       # Instead, shared libraries are loaded at an image base (0x10000000 by
10237       # default) and relocated if they conflict, which is a slow very memory
10238       # consuming and fragmenting process.  To avoid this, we pick a random,
10239       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10240       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10241       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10242       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'
10243       ;;
10244
10245     gnu* | linux* | tpf* | k*bsd*-gnu)
10246       tmp_diet=no
10247       if test "$host_os" = linux-dietlibc; then
10248         case $cc_basename in
10249           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10250         esac
10251       fi
10252       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10253          && test "$tmp_diet" = no
10254       then
10255         tmp_addflag=
10256         tmp_sharedflag='-shared'
10257         case $cc_basename,$host_cpu in
10258         pgcc*)                          # Portland Group C compiler
10259           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'
10260           tmp_addflag=' $pic_flag'
10261           ;;
10262         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10263           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'
10264           tmp_addflag=' $pic_flag -Mnomain' ;;
10265         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10266           tmp_addflag=' -i_dynamic' ;;
10267         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10268           tmp_addflag=' -i_dynamic -nofor_main' ;;
10269         ifc* | ifort*)                  # Intel Fortran compiler
10270           tmp_addflag=' -nofor_main' ;;
10271         lf95*)                          # Lahey Fortran 8.1
10272           whole_archive_flag_spec=
10273           tmp_sharedflag='--shared' ;;
10274         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10275           tmp_sharedflag='-qmkshrobj'
10276           tmp_addflag= ;;
10277         esac
10278         case `$CC -V 2>&1 | sed 5q` in
10279         *Sun\ C*)                       # Sun C 5.9
10280           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'
10281           compiler_needs_object=yes
10282           tmp_sharedflag='-G' ;;
10283         *Sun\ F*)                       # Sun Fortran 8.3
10284           tmp_sharedflag='-G' ;;
10285         esac
10286         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10287
10288         if test "x$supports_anon_versioning" = xyes; then
10289           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10290             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10291             echo "local: *; };" >> $output_objdir/$libname.ver~
10292             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10293         fi
10294
10295         case $cc_basename in
10296         xlf*)
10297           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10298           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10299           hardcode_libdir_flag_spec=
10300           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10301           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10302           if test "x$supports_anon_versioning" = xyes; then
10303             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10304               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10305               echo "local: *; };" >> $output_objdir/$libname.ver~
10306               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10307           fi
10308           ;;
10309         esac
10310       else
10311         ld_shlibs=no
10312       fi
10313       ;;
10314
10315     netbsd*)
10316       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10317         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10318         wlarc=
10319       else
10320         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10321         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10322       fi
10323       ;;
10324
10325     solaris*)
10326       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10327         ld_shlibs=no
10328         cat <<_LT_EOF 1>&2
10329
10330 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10331 *** create shared libraries on Solaris systems.  Therefore, libtool
10332 *** is disabling shared libraries support.  We urge you to upgrade GNU
10333 *** binutils to release 2.9.1 or newer.  Another option is to modify
10334 *** your PATH or compiler configuration so that the native linker is
10335 *** used, and then restart.
10336
10337 _LT_EOF
10338       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10339         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10340         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10341       else
10342         ld_shlibs=no
10343       fi
10344       ;;
10345
10346     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10347       case `$LD -v 2>&1` in
10348         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10349         ld_shlibs=no
10350         cat <<_LT_EOF 1>&2
10351
10352 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10353 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10354 *** is disabling shared libraries support.  We urge you to upgrade GNU
10355 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10356 *** your PATH or compiler configuration so that the native linker is
10357 *** used, and then restart.
10358
10359 _LT_EOF
10360         ;;
10361         *)
10362           # For security reasons, it is highly recommended that you always
10363           # use absolute paths for naming shared libraries, and exclude the
10364           # DT_RUNPATH tag from executables and libraries.  But doing so
10365           # requires that you compile everything twice, which is a pain.
10366           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10367             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10368             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10369             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10370           else
10371             ld_shlibs=no
10372           fi
10373         ;;
10374       esac
10375       ;;
10376
10377     sunos4*)
10378       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10379       wlarc=
10380       hardcode_direct=yes
10381       hardcode_shlibpath_var=no
10382       ;;
10383
10384     *)
10385       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10386         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10387         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10388       else
10389         ld_shlibs=no
10390       fi
10391       ;;
10392     esac
10393
10394     if test "$ld_shlibs" = no; then
10395       runpath_var=
10396       hardcode_libdir_flag_spec=
10397       export_dynamic_flag_spec=
10398       whole_archive_flag_spec=
10399     fi
10400   else
10401     # PORTME fill in a description of your system's linker (not GNU ld)
10402     case $host_os in
10403     aix3*)
10404       allow_undefined_flag=unsupported
10405       always_export_symbols=yes
10406       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'
10407       # Note: this linker hardcodes the directories in LIBPATH if there
10408       # are no directories specified by -L.
10409       hardcode_minus_L=yes
10410       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10411         # Neither direct hardcoding nor static linking is supported with a
10412         # broken collect2.
10413         hardcode_direct=unsupported
10414       fi
10415       ;;
10416
10417     aix[4-9]*)
10418       if test "$host_cpu" = ia64; then
10419         # On IA64, the linker does run time linking by default, so we don't
10420         # have to do anything special.
10421         aix_use_runtimelinking=no
10422         exp_sym_flag='-Bexport'
10423         no_entry_flag=""
10424       else
10425         # If we're using GNU nm, then we don't want the "-C" option.
10426         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10427         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10428           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'
10429         else
10430           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'
10431         fi
10432         aix_use_runtimelinking=no
10433
10434         # Test if we are trying to use run time linking or normal
10435         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10436         # need to do runtime linking.
10437         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10438           for ld_flag in $LDFLAGS; do
10439           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10440             aix_use_runtimelinking=yes
10441             break
10442           fi
10443           done
10444           ;;
10445         esac
10446
10447         exp_sym_flag='-bexport'
10448         no_entry_flag='-bnoentry'
10449       fi
10450
10451       # When large executables or shared objects are built, AIX ld can
10452       # have problems creating the table of contents.  If linking a library
10453       # or program results in "error TOC overflow" add -mminimal-toc to
10454       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10455       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10456
10457       archive_cmds=''
10458       hardcode_direct=yes
10459       hardcode_direct_absolute=yes
10460       hardcode_libdir_separator=':'
10461       link_all_deplibs=yes
10462       file_list_spec='${wl}-f,'
10463
10464       if test "$GCC" = yes; then
10465         case $host_os in aix4.[012]|aix4.[012].*)
10466         # We only want to do this on AIX 4.2 and lower, the check
10467         # below for broken collect2 doesn't work under 4.3+
10468           collect2name=`${CC} -print-prog-name=collect2`
10469           if test -f "$collect2name" &&
10470            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10471           then
10472           # We have reworked collect2
10473           :
10474           else
10475           # We have old collect2
10476           hardcode_direct=unsupported
10477           # It fails to find uninstalled libraries when the uninstalled
10478           # path is not listed in the libpath.  Setting hardcode_minus_L
10479           # to unsupported forces relinking
10480           hardcode_minus_L=yes
10481           hardcode_libdir_flag_spec='-L$libdir'
10482           hardcode_libdir_separator=
10483           fi
10484           ;;
10485         esac
10486         shared_flag='-shared'
10487         if test "$aix_use_runtimelinking" = yes; then
10488           shared_flag="$shared_flag "'${wl}-G'
10489         fi
10490       else
10491         # not using gcc
10492         if test "$host_cpu" = ia64; then
10493         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10494         # chokes on -Wl,-G. The following line is correct:
10495           shared_flag='-G'
10496         else
10497           if test "$aix_use_runtimelinking" = yes; then
10498             shared_flag='${wl}-G'
10499           else
10500             shared_flag='${wl}-bM:SRE'
10501           fi
10502         fi
10503       fi
10504
10505       export_dynamic_flag_spec='${wl}-bexpall'
10506       # It seems that -bexpall does not export symbols beginning with
10507       # underscore (_), so it is better to generate a list of symbols to export.
10508       always_export_symbols=yes
10509       if test "$aix_use_runtimelinking" = yes; then
10510         # Warning - without using the other runtime loading flags (-brtl),
10511         # -berok will link without error, but may produce a broken library.
10512         allow_undefined_flag='-berok'
10513         # Determine the default libpath from the value encoded in an
10514         # empty executable.
10515         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h.  */
10517
10518 int
10519 main ()
10520 {
10521
10522   ;
10523   return 0;
10524 }
10525 _ACEOF
10526 if ac_fn_c_try_link "$LINENO"; then :
10527
10528 lt_aix_libpath_sed='
10529     /Import File Strings/,/^$/ {
10530         /^0/ {
10531             s/^0  *\(.*\)$/\1/
10532             p
10533         }
10534     }'
10535 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10536 # Check for a 64-bit object if we didn't find anything.
10537 if test -z "$aix_libpath"; then
10538   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10539 fi
10540 fi
10541 rm -f core conftest.err conftest.$ac_objext \
10542     conftest$ac_exeext conftest.$ac_ext
10543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10544
10545         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10546         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"
10547       else
10548         if test "$host_cpu" = ia64; then
10549           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10550           allow_undefined_flag="-z nodefs"
10551           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"
10552         else
10553          # Determine the default libpath from the value encoded in an
10554          # empty executable.
10555          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h.  */
10557
10558 int
10559 main ()
10560 {
10561
10562   ;
10563   return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567
10568 lt_aix_libpath_sed='
10569     /Import File Strings/,/^$/ {
10570         /^0/ {
10571             s/^0  *\(.*\)$/\1/
10572             p
10573         }
10574     }'
10575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10576 # Check for a 64-bit object if we didn't find anything.
10577 if test -z "$aix_libpath"; then
10578   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10579 fi
10580 fi
10581 rm -f core conftest.err conftest.$ac_objext \
10582     conftest$ac_exeext conftest.$ac_ext
10583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10584
10585          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10586           # Warning - without using the other run time loading flags,
10587           # -berok will link without error, but may produce a broken library.
10588           no_undefined_flag=' ${wl}-bernotok'
10589           allow_undefined_flag=' ${wl}-berok'
10590           # Exported symbols can be pulled into shared objects from archives
10591           whole_archive_flag_spec='$convenience'
10592           archive_cmds_need_lc=yes
10593           # This is similar to how AIX traditionally builds its shared libraries.
10594           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'
10595         fi
10596       fi
10597       ;;
10598
10599     amigaos*)
10600       case $host_cpu in
10601       powerpc)
10602             # see comment about AmigaOS4 .so support
10603             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10604             archive_expsym_cmds=''
10605         ;;
10606       m68k)
10607             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)'
10608             hardcode_libdir_flag_spec='-L$libdir'
10609             hardcode_minus_L=yes
10610         ;;
10611       esac
10612       ;;
10613
10614     bsdi[45]*)
10615       export_dynamic_flag_spec=-rdynamic
10616       ;;
10617
10618     cygwin* | mingw* | pw32* | cegcc*)
10619       # When not using gcc, we currently assume that we are using
10620       # Microsoft Visual C++.
10621       # hardcode_libdir_flag_spec is actually meaningless, as there is
10622       # no search path for DLLs.
10623       hardcode_libdir_flag_spec=' '
10624       allow_undefined_flag=unsupported
10625       # Tell ltmain to make .lib files, not .a files.
10626       libext=lib
10627       # Tell ltmain to make .dll files, not .so files.
10628       shrext_cmds=".dll"
10629       # FIXME: Setting linknames here is a bad hack.
10630       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10631       # The linker will automatically build a .lib file if we build a DLL.
10632       old_archive_from_new_cmds='true'
10633       # FIXME: Should let the user specify the lib program.
10634       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10635       fix_srcfile_path='`cygpath -w "$srcfile"`'
10636       enable_shared_with_static_runtimes=yes
10637       ;;
10638
10639     darwin* | rhapsody*)
10640
10641
10642   archive_cmds_need_lc=no
10643   hardcode_direct=no
10644   hardcode_automatic=yes
10645   hardcode_shlibpath_var=unsupported
10646   whole_archive_flag_spec=''
10647   link_all_deplibs=yes
10648   allow_undefined_flag="$_lt_dar_allow_undefined"
10649   case $cc_basename in
10650      ifort*) _lt_dar_can_shared=yes ;;
10651      *) _lt_dar_can_shared=$GCC ;;
10652   esac
10653   if test "$_lt_dar_can_shared" = "yes"; then
10654     output_verbose_link_cmd=echo
10655     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10656     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10657     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}"
10658     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}"
10659
10660   else
10661   ld_shlibs=no
10662   fi
10663
10664       ;;
10665
10666     dgux*)
10667       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10668       hardcode_libdir_flag_spec='-L$libdir'
10669       hardcode_shlibpath_var=no
10670       ;;
10671
10672     freebsd1*)
10673       ld_shlibs=no
10674       ;;
10675
10676     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10677     # support.  Future versions do this automatically, but an explicit c++rt0.o
10678     # does not break anything, and helps significantly (at the cost of a little
10679     # extra space).
10680     freebsd2.2*)
10681       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10682       hardcode_libdir_flag_spec='-R$libdir'
10683       hardcode_direct=yes
10684       hardcode_shlibpath_var=no
10685       ;;
10686
10687     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10688     freebsd2*)
10689       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10690       hardcode_direct=yes
10691       hardcode_minus_L=yes
10692       hardcode_shlibpath_var=no
10693       ;;
10694
10695     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10696     freebsd* | dragonfly*)
10697       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10698       hardcode_libdir_flag_spec='-R$libdir'
10699       hardcode_direct=yes
10700       hardcode_shlibpath_var=no
10701       ;;
10702
10703     hpux9*)
10704       if test "$GCC" = yes; then
10705         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'
10706       else
10707         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'
10708       fi
10709       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10710       hardcode_libdir_separator=:
10711       hardcode_direct=yes
10712
10713       # hardcode_minus_L: Not really in the search PATH,
10714       # but as the default location of the library.
10715       hardcode_minus_L=yes
10716       export_dynamic_flag_spec='${wl}-E'
10717       ;;
10718
10719     hpux10*)
10720       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10721         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10722       else
10723         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10724       fi
10725       if test "$with_gnu_ld" = no; then
10726         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10727         hardcode_libdir_flag_spec_ld='+b $libdir'
10728         hardcode_libdir_separator=:
10729         hardcode_direct=yes
10730         hardcode_direct_absolute=yes
10731         export_dynamic_flag_spec='${wl}-E'
10732         # hardcode_minus_L: Not really in the search PATH,
10733         # but as the default location of the library.
10734         hardcode_minus_L=yes
10735       fi
10736       ;;
10737
10738     hpux11*)
10739       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10740         case $host_cpu in
10741         hppa*64*)
10742           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10743           ;;
10744         ia64*)
10745           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10746           ;;
10747         *)
10748           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10749           ;;
10750         esac
10751       else
10752         case $host_cpu in
10753         hppa*64*)
10754           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10755           ;;
10756         ia64*)
10757           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10758           ;;
10759         *)
10760           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10761           ;;
10762         esac
10763       fi
10764       if test "$with_gnu_ld" = no; then
10765         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10766         hardcode_libdir_separator=:
10767
10768         case $host_cpu in
10769         hppa*64*|ia64*)
10770           hardcode_direct=no
10771           hardcode_shlibpath_var=no
10772           ;;
10773         *)
10774           hardcode_direct=yes
10775           hardcode_direct_absolute=yes
10776           export_dynamic_flag_spec='${wl}-E'
10777
10778           # hardcode_minus_L: Not really in the search PATH,
10779           # but as the default location of the library.
10780           hardcode_minus_L=yes
10781           ;;
10782         esac
10783       fi
10784       ;;
10785
10786     irix5* | irix6* | nonstopux*)
10787       if test "$GCC" = yes; then
10788         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'
10789         # Try to use the -exported_symbol ld option, if it does not
10790         # work, assume that -exports_file does not work either and
10791         # implicitly export all symbols.
10792         save_LDFLAGS="$LDFLAGS"
10793         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10794         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h.  */
10796 int foo(void) {}
10797 _ACEOF
10798 if ac_fn_c_try_link "$LINENO"; then :
10799   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'
10800
10801 fi
10802 rm -f core conftest.err conftest.$ac_objext \
10803     conftest$ac_exeext conftest.$ac_ext
10804         LDFLAGS="$save_LDFLAGS"
10805       else
10806         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'
10807         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'
10808       fi
10809       archive_cmds_need_lc='no'
10810       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10811       hardcode_libdir_separator=:
10812       inherit_rpath=yes
10813       link_all_deplibs=yes
10814       ;;
10815
10816     netbsd*)
10817       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10818         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10819       else
10820         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10821       fi
10822       hardcode_libdir_flag_spec='-R$libdir'
10823       hardcode_direct=yes
10824       hardcode_shlibpath_var=no
10825       ;;
10826
10827     newsos6)
10828       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829       hardcode_direct=yes
10830       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10831       hardcode_libdir_separator=:
10832       hardcode_shlibpath_var=no
10833       ;;
10834
10835     *nto* | *qnx*)
10836       ;;
10837
10838     openbsd*)
10839       if test -f /usr/libexec/ld.so; then
10840         hardcode_direct=yes
10841         hardcode_shlibpath_var=no
10842         hardcode_direct_absolute=yes
10843         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10844           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10845           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10846           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10847           export_dynamic_flag_spec='${wl}-E'
10848         else
10849           case $host_os in
10850            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10851              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10852              hardcode_libdir_flag_spec='-R$libdir'
10853              ;;
10854            *)
10855              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10856              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10857              ;;
10858           esac
10859         fi
10860       else
10861         ld_shlibs=no
10862       fi
10863       ;;
10864
10865     os2*)
10866       hardcode_libdir_flag_spec='-L$libdir'
10867       hardcode_minus_L=yes
10868       allow_undefined_flag=unsupported
10869       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'
10870       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10871       ;;
10872
10873     osf3*)
10874       if test "$GCC" = yes; then
10875         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10876         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'
10877       else
10878         allow_undefined_flag=' -expect_unresolved \*'
10879         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'
10880       fi
10881       archive_cmds_need_lc='no'
10882       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10883       hardcode_libdir_separator=:
10884       ;;
10885
10886     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10887       if test "$GCC" = yes; then
10888         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10889         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'
10890         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10891       else
10892         allow_undefined_flag=' -expect_unresolved \*'
10893         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'
10894         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~
10895         $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'
10896
10897         # Both c and cxx compiler support -rpath directly
10898         hardcode_libdir_flag_spec='-rpath $libdir'
10899       fi
10900       archive_cmds_need_lc='no'
10901       hardcode_libdir_separator=:
10902       ;;
10903
10904     solaris*)
10905       no_undefined_flag=' -z defs'
10906       if test "$GCC" = yes; then
10907         wlarc='${wl}'
10908         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10909         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10910           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10911       else
10912         case `$CC -V 2>&1` in
10913         *"Compilers 5.0"*)
10914           wlarc=''
10915           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10918           ;;
10919         *)
10920           wlarc='${wl}'
10921           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10922           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10923           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10924           ;;
10925         esac
10926       fi
10927       hardcode_libdir_flag_spec='-R$libdir'
10928       hardcode_shlibpath_var=no
10929       case $host_os in
10930       solaris2.[0-5] | solaris2.[0-5].*) ;;
10931       *)
10932         # The compiler driver will combine and reorder linker options,
10933         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10934         # but is careful enough not to reorder.
10935         # Supported since Solaris 2.6 (maybe 2.5.1?)
10936         if test "$GCC" = yes; then
10937           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10938         else
10939           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10940         fi
10941         ;;
10942       esac
10943       link_all_deplibs=yes
10944       ;;
10945
10946     sunos4*)
10947       if test "x$host_vendor" = xsequent; then
10948         # Use $CC to link under sequent, because it throws in some extra .o
10949         # files that make .init and .fini sections work.
10950         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10951       else
10952         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10953       fi
10954       hardcode_libdir_flag_spec='-L$libdir'
10955       hardcode_direct=yes
10956       hardcode_minus_L=yes
10957       hardcode_shlibpath_var=no
10958       ;;
10959
10960     sysv4)
10961       case $host_vendor in
10962         sni)
10963           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964           hardcode_direct=yes # is this really true???
10965         ;;
10966         siemens)
10967           ## LD is ld it makes a PLAMLIB
10968           ## CC just makes a GrossModule.
10969           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10970           reload_cmds='$CC -r -o $output$reload_objs'
10971           hardcode_direct=no
10972         ;;
10973         motorola)
10974           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10976         ;;
10977       esac
10978       runpath_var='LD_RUN_PATH'
10979       hardcode_shlibpath_var=no
10980       ;;
10981
10982     sysv4.3*)
10983       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984       hardcode_shlibpath_var=no
10985       export_dynamic_flag_spec='-Bexport'
10986       ;;
10987
10988     sysv4*MP*)
10989       if test -d /usr/nec; then
10990         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991         hardcode_shlibpath_var=no
10992         runpath_var=LD_RUN_PATH
10993         hardcode_runpath_var=yes
10994         ld_shlibs=yes
10995       fi
10996       ;;
10997
10998     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10999       no_undefined_flag='${wl}-z,text'
11000       archive_cmds_need_lc=no
11001       hardcode_shlibpath_var=no
11002       runpath_var='LD_RUN_PATH'
11003
11004       if test "$GCC" = yes; then
11005         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007       else
11008         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010       fi
11011       ;;
11012
11013     sysv5* | sco3.2v5* | sco5v6*)
11014       # Note: We can NOT use -z defs as we might desire, because we do not
11015       # link with -lc, and that would cause any symbols used from libc to
11016       # always be unresolved, which means just about no library would
11017       # ever link correctly.  If we're not using GNU ld we use -z text
11018       # though, which does catch some bad symbols but isn't as heavy-handed
11019       # as -z defs.
11020       no_undefined_flag='${wl}-z,text'
11021       allow_undefined_flag='${wl}-z,nodefs'
11022       archive_cmds_need_lc=no
11023       hardcode_shlibpath_var=no
11024       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11025       hardcode_libdir_separator=':'
11026       link_all_deplibs=yes
11027       export_dynamic_flag_spec='${wl}-Bexport'
11028       runpath_var='LD_RUN_PATH'
11029
11030       if test "$GCC" = yes; then
11031         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033       else
11034         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036       fi
11037       ;;
11038
11039     uts4*)
11040       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11041       hardcode_libdir_flag_spec='-L$libdir'
11042       hardcode_shlibpath_var=no
11043       ;;
11044
11045     *)
11046       ld_shlibs=no
11047       ;;
11048     esac
11049
11050     if test x$host_vendor = xsni; then
11051       case $host in
11052       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11053         export_dynamic_flag_spec='${wl}-Blargedynsym'
11054         ;;
11055       esac
11056     fi
11057   fi
11058
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11060 $as_echo "$ld_shlibs" >&6; }
11061 test "$ld_shlibs" = no && can_build_shared=no
11062
11063 with_gnu_ld=$with_gnu_ld
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079 #
11080 # Do we need to explicitly link libc?
11081 #
11082 case "x$archive_cmds_need_lc" in
11083 x|xyes)
11084   # Assume -lc should be added
11085   archive_cmds_need_lc=yes
11086
11087   if test "$enable_shared" = yes && test "$GCC" = yes; then
11088     case $archive_cmds in
11089     *'~'*)
11090       # FIXME: we may have to deal with multi-command sequences.
11091       ;;
11092     '$CC '*)
11093       # Test whether the compiler implicitly links with -lc since on some
11094       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11095       # to ld, don't add -lc before -lgcc.
11096       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11097 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11098       $RM conftest*
11099       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11100
11101       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11102   (eval $ac_compile) 2>&5
11103   ac_status=$?
11104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11105   test $ac_status = 0; } 2>conftest.err; then
11106         soname=conftest
11107         lib=conftest
11108         libobjs=conftest.$ac_objext
11109         deplibs=
11110         wl=$lt_prog_compiler_wl
11111         pic_flag=$lt_prog_compiler_pic
11112         compiler_flags=-v
11113         linker_flags=-v
11114         verstring=
11115         output_objdir=.
11116         libname=conftest
11117         lt_save_allow_undefined_flag=$allow_undefined_flag
11118         allow_undefined_flag=
11119         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11120   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11121   ac_status=$?
11122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11123   test $ac_status = 0; }
11124         then
11125           archive_cmds_need_lc=no
11126         else
11127           archive_cmds_need_lc=yes
11128         fi
11129         allow_undefined_flag=$lt_save_allow_undefined_flag
11130       else
11131         cat conftest.err 1>&5
11132       fi
11133       $RM conftest*
11134       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11135 $as_echo "$archive_cmds_need_lc" >&6; }
11136       ;;
11137     esac
11138   fi
11139   ;;
11140 esac
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11299 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11300
11301 if test "$GCC" = yes; then
11302   case $host_os in
11303     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11304     *) lt_awk_arg="/^libraries:/" ;;
11305   esac
11306   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11307   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11308     # if the path contains ";" then we assume it to be the separator
11309     # otherwise default to the standard path separator (i.e. ":") - it is
11310     # assumed that no part of a normal pathname contains ";" but that should
11311     # okay in the real world where ";" in dirpaths is itself problematic.
11312     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11313   else
11314     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11315   fi
11316   # Ok, now we have the path, separated by spaces, we can step through it
11317   # and add multilib dir if necessary.
11318   lt_tmp_lt_search_path_spec=
11319   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11320   for lt_sys_path in $lt_search_path_spec; do
11321     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11322       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11323     else
11324       test -d "$lt_sys_path" && \
11325         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11326     fi
11327   done
11328   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11329 BEGIN {RS=" "; FS="/|\n";} {
11330   lt_foo="";
11331   lt_count=0;
11332   for (lt_i = NF; lt_i > 0; lt_i--) {
11333     if ($lt_i != "" && $lt_i != ".") {
11334       if ($lt_i == "..") {
11335         lt_count++;
11336       } else {
11337         if (lt_count == 0) {
11338           lt_foo="/" $lt_i lt_foo;
11339         } else {
11340           lt_count--;
11341         }
11342       }
11343     }
11344   }
11345   if (lt_foo != "") { lt_freq[lt_foo]++; }
11346   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11347 }'`
11348   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11349 else
11350   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11351 fi
11352 library_names_spec=
11353 libname_spec='lib$name'
11354 soname_spec=
11355 shrext_cmds=".so"
11356 postinstall_cmds=
11357 postuninstall_cmds=
11358 finish_cmds=
11359 finish_eval=
11360 shlibpath_var=
11361 shlibpath_overrides_runpath=unknown
11362 version_type=none
11363 dynamic_linker="$host_os ld.so"
11364 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11365 need_lib_prefix=unknown
11366 hardcode_into_libs=no
11367
11368 # when you set need_version to no, make sure it does not cause -set_version
11369 # flags to be left without arguments
11370 need_version=unknown
11371
11372 case $host_os in
11373 aix3*)
11374   version_type=linux
11375   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11376   shlibpath_var=LIBPATH
11377
11378   # AIX 3 has no versioning support, so we append a major version to the name.
11379   soname_spec='${libname}${release}${shared_ext}$major'
11380   ;;
11381
11382 aix[4-9]*)
11383   version_type=linux
11384   need_lib_prefix=no
11385   need_version=no
11386   hardcode_into_libs=yes
11387   if test "$host_cpu" = ia64; then
11388     # AIX 5 supports IA64
11389     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11390     shlibpath_var=LD_LIBRARY_PATH
11391   else
11392     # With GCC up to 2.95.x, collect2 would create an import file
11393     # for dependence libraries.  The import file would start with
11394     # the line `#! .'.  This would cause the generated library to
11395     # depend on `.', always an invalid library.  This was fixed in
11396     # development snapshots of GCC prior to 3.0.
11397     case $host_os in
11398       aix4 | aix4.[01] | aix4.[01].*)
11399       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11400            echo ' yes '
11401            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11402         :
11403       else
11404         can_build_shared=no
11405       fi
11406       ;;
11407     esac
11408     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11409     # soname into executable. Probably we can add versioning support to
11410     # collect2, so additional links can be useful in future.
11411     if test "$aix_use_runtimelinking" = yes; then
11412       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11413       # instead of lib<name>.a to let people know that these are not
11414       # typical AIX shared libraries.
11415       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11416     else
11417       # We preserve .a as extension for shared libraries through AIX4.2
11418       # and later when we are not doing run time linking.
11419       library_names_spec='${libname}${release}.a $libname.a'
11420       soname_spec='${libname}${release}${shared_ext}$major'
11421     fi
11422     shlibpath_var=LIBPATH
11423   fi
11424   ;;
11425
11426 amigaos*)
11427   case $host_cpu in
11428   powerpc)
11429     # Since July 2007 AmigaOS4 officially supports .so libraries.
11430     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432     ;;
11433   m68k)
11434     library_names_spec='$libname.ixlibrary $libname.a'
11435     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11436     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'
11437     ;;
11438   esac
11439   ;;
11440
11441 beos*)
11442   library_names_spec='${libname}${shared_ext}'
11443   dynamic_linker="$host_os ld.so"
11444   shlibpath_var=LIBRARY_PATH
11445   ;;
11446
11447 bsdi[45]*)
11448   version_type=linux
11449   need_version=no
11450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451   soname_spec='${libname}${release}${shared_ext}$major'
11452   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11453   shlibpath_var=LD_LIBRARY_PATH
11454   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11455   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11456   # the default ld.so.conf also contains /usr/contrib/lib and
11457   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11458   # libtool to hard-code these into programs
11459   ;;
11460
11461 cygwin* | mingw* | pw32* | cegcc*)
11462   version_type=windows
11463   shrext_cmds=".dll"
11464   need_version=no
11465   need_lib_prefix=no
11466
11467   case $GCC,$host_os in
11468   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11469     library_names_spec='$libname.dll.a'
11470     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11471     postinstall_cmds='base_file=`basename \${file}`~
11472       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11473       dldir=$destdir/`dirname \$dlpath`~
11474       test -d \$dldir || mkdir -p \$dldir~
11475       $install_prog $dir/$dlname \$dldir/$dlname~
11476       chmod a+x \$dldir/$dlname~
11477       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11478         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11479       fi'
11480     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11481       dlpath=$dir/\$dldll~
11482        $RM \$dlpath'
11483     shlibpath_overrides_runpath=yes
11484
11485     case $host_os in
11486     cygwin*)
11487       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11488       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11489       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11490       ;;
11491     mingw* | cegcc*)
11492       # MinGW DLLs use traditional 'lib' prefix
11493       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11494       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11495       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11496         # It is most probably a Windows format PATH printed by
11497         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11498         # path with ; separators, and with drive letters. We can handle the
11499         # drive letters (cygwin fileutils understands them), so leave them,
11500         # especially as we might pass files found there to a mingw objdump,
11501         # which wouldn't understand a cygwinified path. Ahh.
11502         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11503       else
11504         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11505       fi
11506       ;;
11507     pw32*)
11508       # pw32 DLLs use 'pw' prefix rather than 'lib'
11509       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11510       ;;
11511     esac
11512     ;;
11513
11514   *)
11515     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11516     ;;
11517   esac
11518   dynamic_linker='Win32 ld.exe'
11519   # FIXME: first we should search . and the directory the executable is in
11520   shlibpath_var=PATH
11521   ;;
11522
11523 darwin* | rhapsody*)
11524   dynamic_linker="$host_os dyld"
11525   version_type=darwin
11526   need_lib_prefix=no
11527   need_version=no
11528   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11529   soname_spec='${libname}${release}${major}$shared_ext'
11530   shlibpath_overrides_runpath=yes
11531   shlibpath_var=DYLD_LIBRARY_PATH
11532   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11533
11534   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11535   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11536   ;;
11537
11538 dgux*)
11539   version_type=linux
11540   need_lib_prefix=no
11541   need_version=no
11542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11543   soname_spec='${libname}${release}${shared_ext}$major'
11544   shlibpath_var=LD_LIBRARY_PATH
11545   ;;
11546
11547 freebsd1*)
11548   dynamic_linker=no
11549   ;;
11550
11551 freebsd* | dragonfly*)
11552   # DragonFly does not have aout.  When/if they implement a new
11553   # versioning mechanism, adjust this.
11554   if test -x /usr/bin/objformat; then
11555     objformat=`/usr/bin/objformat`
11556   else
11557     case $host_os in
11558     freebsd[123]*) objformat=aout ;;
11559     *) objformat=elf ;;
11560     esac
11561   fi
11562   version_type=freebsd-$objformat
11563   case $version_type in
11564     freebsd-elf*)
11565       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11566       need_version=no
11567       need_lib_prefix=no
11568       ;;
11569     freebsd-*)
11570       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11571       need_version=yes
11572       ;;
11573   esac
11574   shlibpath_var=LD_LIBRARY_PATH
11575   case $host_os in
11576   freebsd2*)
11577     shlibpath_overrides_runpath=yes
11578     ;;
11579   freebsd3.[01]* | freebsdelf3.[01]*)
11580     shlibpath_overrides_runpath=yes
11581     hardcode_into_libs=yes
11582     ;;
11583   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11584   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11585     shlibpath_overrides_runpath=no
11586     hardcode_into_libs=yes
11587     ;;
11588   *) # from 4.6 on, and DragonFly
11589     shlibpath_overrides_runpath=yes
11590     hardcode_into_libs=yes
11591     ;;
11592   esac
11593   ;;
11594
11595 gnu*)
11596   version_type=linux
11597   need_lib_prefix=no
11598   need_version=no
11599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11600   soname_spec='${libname}${release}${shared_ext}$major'
11601   shlibpath_var=LD_LIBRARY_PATH
11602   hardcode_into_libs=yes
11603   ;;
11604
11605 hpux9* | hpux10* | hpux11*)
11606   # Give a soname corresponding to the major version so that dld.sl refuses to
11607   # link against other versions.
11608   version_type=sunos
11609   need_lib_prefix=no
11610   need_version=no
11611   case $host_cpu in
11612   ia64*)
11613     shrext_cmds='.so'
11614     hardcode_into_libs=yes
11615     dynamic_linker="$host_os dld.so"
11616     shlibpath_var=LD_LIBRARY_PATH
11617     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619     soname_spec='${libname}${release}${shared_ext}$major'
11620     if test "X$HPUX_IA64_MODE" = X32; then
11621       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11622     else
11623       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11624     fi
11625     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626     ;;
11627   hppa*64*)
11628     shrext_cmds='.sl'
11629     hardcode_into_libs=yes
11630     dynamic_linker="$host_os dld.sl"
11631     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11632     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634     soname_spec='${libname}${release}${shared_ext}$major'
11635     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11637     ;;
11638   *)
11639     shrext_cmds='.sl'
11640     dynamic_linker="$host_os dld.sl"
11641     shlibpath_var=SHLIB_PATH
11642     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11643     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644     soname_spec='${libname}${release}${shared_ext}$major'
11645     ;;
11646   esac
11647   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11648   postinstall_cmds='chmod 555 $lib'
11649   ;;
11650
11651 interix[3-9]*)
11652   version_type=linux
11653   need_lib_prefix=no
11654   need_version=no
11655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11656   soname_spec='${libname}${release}${shared_ext}$major'
11657   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11658   shlibpath_var=LD_LIBRARY_PATH
11659   shlibpath_overrides_runpath=no
11660   hardcode_into_libs=yes
11661   ;;
11662
11663 irix5* | irix6* | nonstopux*)
11664   case $host_os in
11665     nonstopux*) version_type=nonstopux ;;
11666     *)
11667         if test "$lt_cv_prog_gnu_ld" = yes; then
11668                 version_type=linux
11669         else
11670                 version_type=irix
11671         fi ;;
11672   esac
11673   need_lib_prefix=no
11674   need_version=no
11675   soname_spec='${libname}${release}${shared_ext}$major'
11676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11677   case $host_os in
11678   irix5* | nonstopux*)
11679     libsuff= shlibsuff=
11680     ;;
11681   *)
11682     case $LD in # libtool.m4 will add one of these switches to LD
11683     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11684       libsuff= shlibsuff= libmagic=32-bit;;
11685     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11686       libsuff=32 shlibsuff=N32 libmagic=N32;;
11687     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11688       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11689     *) libsuff= shlibsuff= libmagic=never-match;;
11690     esac
11691     ;;
11692   esac
11693   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11694   shlibpath_overrides_runpath=no
11695   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11696   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11697   hardcode_into_libs=yes
11698   ;;
11699
11700 # No shared lib support for Linux oldld, aout, or coff.
11701 linux*oldld* | linux*aout* | linux*coff*)
11702   dynamic_linker=no
11703   ;;
11704
11705 # This must be Linux ELF.
11706 linux* | k*bsd*-gnu)
11707   version_type=linux
11708   need_lib_prefix=no
11709   need_version=no
11710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11711   soname_spec='${libname}${release}${shared_ext}$major'
11712   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11713   shlibpath_var=LD_LIBRARY_PATH
11714   shlibpath_overrides_runpath=no
11715   # Some binutils ld are patched to set DT_RUNPATH
11716   save_LDFLAGS=$LDFLAGS
11717   save_libdir=$libdir
11718   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11719        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h.  */
11722
11723 int
11724 main ()
11725 {
11726
11727   ;
11728   return 0;
11729 }
11730 _ACEOF
11731 if ac_fn_c_try_link "$LINENO"; then :
11732   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11733   shlibpath_overrides_runpath=yes
11734 fi
11735 fi
11736 rm -f core conftest.err conftest.$ac_objext \
11737     conftest$ac_exeext conftest.$ac_ext
11738   LDFLAGS=$save_LDFLAGS
11739   libdir=$save_libdir
11740
11741   # This implies no fast_install, which is unacceptable.
11742   # Some rework will be needed to allow for fast_install
11743   # before this can be enabled.
11744   hardcode_into_libs=yes
11745
11746   # Append ld.so.conf contents to the search path
11747   if test -f /etc/ld.so.conf; then
11748     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' ' '`
11749     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11750   fi
11751
11752   # We used to test for /lib/ld.so.1 and disable shared libraries on
11753   # powerpc, because MkLinux only supported shared libraries with the
11754   # GNU dynamic linker.  Since this was broken with cross compilers,
11755   # most powerpc-linux boxes support dynamic linking these days and
11756   # people can always --disable-shared, the test was removed, and we
11757   # assume the GNU/Linux dynamic linker is in use.
11758   dynamic_linker='GNU/Linux ld.so'
11759   ;;
11760
11761 netbsd*)
11762   version_type=sunos
11763   need_lib_prefix=no
11764   need_version=no
11765   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11767     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11768     dynamic_linker='NetBSD (a.out) ld.so'
11769   else
11770     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11771     soname_spec='${libname}${release}${shared_ext}$major'
11772     dynamic_linker='NetBSD ld.elf_so'
11773   fi
11774   shlibpath_var=LD_LIBRARY_PATH
11775   shlibpath_overrides_runpath=yes
11776   hardcode_into_libs=yes
11777   ;;
11778
11779 newsos6)
11780   version_type=linux
11781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782   shlibpath_var=LD_LIBRARY_PATH
11783   shlibpath_overrides_runpath=yes
11784   ;;
11785
11786 *nto* | *qnx*)
11787   version_type=qnx
11788   need_lib_prefix=no
11789   need_version=no
11790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791   soname_spec='${libname}${release}${shared_ext}$major'
11792   shlibpath_var=LD_LIBRARY_PATH
11793   shlibpath_overrides_runpath=no
11794   hardcode_into_libs=yes
11795   dynamic_linker='ldqnx.so'
11796   ;;
11797
11798 openbsd*)
11799   version_type=sunos
11800   sys_lib_dlsearch_path_spec="/usr/lib"
11801   need_lib_prefix=no
11802   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11803   case $host_os in
11804     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11805     *)                          need_version=no  ;;
11806   esac
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11808   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11809   shlibpath_var=LD_LIBRARY_PATH
11810   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11811     case $host_os in
11812       openbsd2.[89] | openbsd2.[89].*)
11813         shlibpath_overrides_runpath=no
11814         ;;
11815       *)
11816         shlibpath_overrides_runpath=yes
11817         ;;
11818       esac
11819   else
11820     shlibpath_overrides_runpath=yes
11821   fi
11822   ;;
11823
11824 os2*)
11825   libname_spec='$name'
11826   shrext_cmds=".dll"
11827   need_lib_prefix=no
11828   library_names_spec='$libname${shared_ext} $libname.a'
11829   dynamic_linker='OS/2 ld.exe'
11830   shlibpath_var=LIBPATH
11831   ;;
11832
11833 osf3* | osf4* | osf5*)
11834   version_type=osf
11835   need_lib_prefix=no
11836   need_version=no
11837   soname_spec='${libname}${release}${shared_ext}$major'
11838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839   shlibpath_var=LD_LIBRARY_PATH
11840   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11841   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11842   ;;
11843
11844 rdos*)
11845   dynamic_linker=no
11846   ;;
11847
11848 solaris*)
11849   version_type=linux
11850   need_lib_prefix=no
11851   need_version=no
11852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853   soname_spec='${libname}${release}${shared_ext}$major'
11854   shlibpath_var=LD_LIBRARY_PATH
11855   shlibpath_overrides_runpath=yes
11856   hardcode_into_libs=yes
11857   # ldd complains unless libraries are executable
11858   postinstall_cmds='chmod +x $lib'
11859   ;;
11860
11861 sunos4*)
11862   version_type=sunos
11863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11864   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11865   shlibpath_var=LD_LIBRARY_PATH
11866   shlibpath_overrides_runpath=yes
11867   if test "$with_gnu_ld" = yes; then
11868     need_lib_prefix=no
11869   fi
11870   need_version=yes
11871   ;;
11872
11873 sysv4 | sysv4.3*)
11874   version_type=linux
11875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876   soname_spec='${libname}${release}${shared_ext}$major'
11877   shlibpath_var=LD_LIBRARY_PATH
11878   case $host_vendor in
11879     sni)
11880       shlibpath_overrides_runpath=no
11881       need_lib_prefix=no
11882       runpath_var=LD_RUN_PATH
11883       ;;
11884     siemens)
11885       need_lib_prefix=no
11886       ;;
11887     motorola)
11888       need_lib_prefix=no
11889       need_version=no
11890       shlibpath_overrides_runpath=no
11891       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11892       ;;
11893   esac
11894   ;;
11895
11896 sysv4*MP*)
11897   if test -d /usr/nec ;then
11898     version_type=linux
11899     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11900     soname_spec='$libname${shared_ext}.$major'
11901     shlibpath_var=LD_LIBRARY_PATH
11902   fi
11903   ;;
11904
11905 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11906   version_type=freebsd-elf
11907   need_lib_prefix=no
11908   need_version=no
11909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11910   soname_spec='${libname}${release}${shared_ext}$major'
11911   shlibpath_var=LD_LIBRARY_PATH
11912   shlibpath_overrides_runpath=yes
11913   hardcode_into_libs=yes
11914   if test "$with_gnu_ld" = yes; then
11915     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11916   else
11917     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11918     case $host_os in
11919       sco3.2v5*)
11920         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11921         ;;
11922     esac
11923   fi
11924   sys_lib_dlsearch_path_spec='/usr/lib'
11925   ;;
11926
11927 tpf*)
11928   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11929   version_type=linux
11930   need_lib_prefix=no
11931   need_version=no
11932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11933   shlibpath_var=LD_LIBRARY_PATH
11934   shlibpath_overrides_runpath=no
11935   hardcode_into_libs=yes
11936   ;;
11937
11938 uts4*)
11939   version_type=linux
11940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11941   soname_spec='${libname}${release}${shared_ext}$major'
11942   shlibpath_var=LD_LIBRARY_PATH
11943   ;;
11944
11945 *)
11946   dynamic_linker=no
11947   ;;
11948 esac
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11950 $as_echo "$dynamic_linker" >&6; }
11951 test "$dynamic_linker" = no && can_build_shared=no
11952
11953 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11954 if test "$GCC" = yes; then
11955   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11956 fi
11957
11958 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11959   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11960 fi
11961 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11962   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11963 fi
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12052 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12053 hardcode_action=
12054 if test -n "$hardcode_libdir_flag_spec" ||
12055    test -n "$runpath_var" ||
12056    test "X$hardcode_automatic" = "Xyes" ; then
12057
12058   # We can hardcode non-existent directories.
12059   if test "$hardcode_direct" != no &&
12060      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12061      # have to relink, otherwise we might link with an installed library
12062      # when we should be linking with a yet-to-be-installed one
12063      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12064      test "$hardcode_minus_L" != no; then
12065     # Linking always hardcodes the temporary library directory.
12066     hardcode_action=relink
12067   else
12068     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12069     hardcode_action=immediate
12070   fi
12071 else
12072   # We cannot hardcode anything, or else we can only hardcode existing
12073   # directories.
12074   hardcode_action=unsupported
12075 fi
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12077 $as_echo "$hardcode_action" >&6; }
12078
12079 if test "$hardcode_action" = relink ||
12080    test "$inherit_rpath" = yes; then
12081   # Fast installation is not supported
12082   enable_fast_install=no
12083 elif test "$shlibpath_overrides_runpath" = yes ||
12084      test "$enable_shared" = no; then
12085   # Fast installation is not necessary
12086   enable_fast_install=needless
12087 fi
12088
12089
12090
12091
12092
12093
12094   if test "x$enable_dlopen" != xyes; then
12095   enable_dlopen=unknown
12096   enable_dlopen_self=unknown
12097   enable_dlopen_self_static=unknown
12098 else
12099   lt_cv_dlopen=no
12100   lt_cv_dlopen_libs=
12101
12102   case $host_os in
12103   beos*)
12104     lt_cv_dlopen="load_add_on"
12105     lt_cv_dlopen_libs=
12106     lt_cv_dlopen_self=yes
12107     ;;
12108
12109   mingw* | pw32* | cegcc*)
12110     lt_cv_dlopen="LoadLibrary"
12111     lt_cv_dlopen_libs=
12112     ;;
12113
12114   cygwin*)
12115     lt_cv_dlopen="dlopen"
12116     lt_cv_dlopen_libs=
12117     ;;
12118
12119   darwin*)
12120   # if libdl is installed we need to link against it
12121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12122 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12123 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12124   $as_echo_n "(cached) " >&6
12125 else
12126   ac_check_lib_save_LIBS=$LIBS
12127 LIBS="-ldl  $LIBS"
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h.  */
12130
12131 /* Override any GCC internal prototype to avoid an error.
12132    Use char because int might match the return type of a GCC
12133    builtin and then its argument prototype would still apply.  */
12134 #ifdef __cplusplus
12135 extern "C"
12136 #endif
12137 char dlopen ();
12138 int
12139 main ()
12140 {
12141 return dlopen ();
12142   ;
12143   return 0;
12144 }
12145 _ACEOF
12146 if ac_fn_c_try_link "$LINENO"; then :
12147   ac_cv_lib_dl_dlopen=yes
12148 else
12149   ac_cv_lib_dl_dlopen=no
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext \
12152     conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12154 fi
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12156 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12157 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12158   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12159 else
12160
12161     lt_cv_dlopen="dyld"
12162     lt_cv_dlopen_libs=
12163     lt_cv_dlopen_self=yes
12164
12165 fi
12166
12167     ;;
12168
12169   *)
12170     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12171 if test "x$ac_cv_func_shl_load" = x""yes; then :
12172   lt_cv_dlopen="shl_load"
12173 else
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12175 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12176 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12177   $as_echo_n "(cached) " >&6
12178 else
12179   ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-ldld  $LIBS"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h.  */
12183
12184 /* Override any GCC internal prototype to avoid an error.
12185    Use char because int might match the return type of a GCC
12186    builtin and then its argument prototype would still apply.  */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 char shl_load ();
12191 int
12192 main ()
12193 {
12194 return shl_load ();
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 if ac_fn_c_try_link "$LINENO"; then :
12200   ac_cv_lib_dld_shl_load=yes
12201 else
12202   ac_cv_lib_dld_shl_load=no
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext \
12205     conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12207 fi
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12209 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12210 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12211   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12212 else
12213   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12214 if test "x$ac_cv_func_dlopen" = x""yes; then :
12215   lt_cv_dlopen="dlopen"
12216 else
12217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12218 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12219 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12220   $as_echo_n "(cached) " >&6
12221 else
12222   ac_check_lib_save_LIBS=$LIBS
12223 LIBS="-ldl  $LIBS"
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h.  */
12226
12227 /* Override any GCC internal prototype to avoid an error.
12228    Use char because int might match the return type of a GCC
12229    builtin and then its argument prototype would still apply.  */
12230 #ifdef __cplusplus
12231 extern "C"
12232 #endif
12233 char dlopen ();
12234 int
12235 main ()
12236 {
12237 return dlopen ();
12238   ;
12239   return 0;
12240 }
12241 _ACEOF
12242 if ac_fn_c_try_link "$LINENO"; then :
12243   ac_cv_lib_dl_dlopen=yes
12244 else
12245   ac_cv_lib_dl_dlopen=no
12246 fi
12247 rm -f core conftest.err conftest.$ac_objext \
12248     conftest$ac_exeext conftest.$ac_ext
12249 LIBS=$ac_check_lib_save_LIBS
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12252 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12253 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12254   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12255 else
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12257 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12258 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12259   $as_echo_n "(cached) " >&6
12260 else
12261   ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-lsvld  $LIBS"
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h.  */
12265
12266 /* Override any GCC internal prototype to avoid an error.
12267    Use char because int might match the return type of a GCC
12268    builtin and then its argument prototype would still apply.  */
12269 #ifdef __cplusplus
12270 extern "C"
12271 #endif
12272 char dlopen ();
12273 int
12274 main ()
12275 {
12276 return dlopen ();
12277   ;
12278   return 0;
12279 }
12280 _ACEOF
12281 if ac_fn_c_try_link "$LINENO"; then :
12282   ac_cv_lib_svld_dlopen=yes
12283 else
12284   ac_cv_lib_svld_dlopen=no
12285 fi
12286 rm -f core conftest.err conftest.$ac_objext \
12287     conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12289 fi
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12291 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12292 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12293   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12294 else
12295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12296 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12297 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12298   $as_echo_n "(cached) " >&6
12299 else
12300   ac_check_lib_save_LIBS=$LIBS
12301 LIBS="-ldld  $LIBS"
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h.  */
12304
12305 /* Override any GCC internal prototype to avoid an error.
12306    Use char because int might match the return type of a GCC
12307    builtin and then its argument prototype would still apply.  */
12308 #ifdef __cplusplus
12309 extern "C"
12310 #endif
12311 char dld_link ();
12312 int
12313 main ()
12314 {
12315 return dld_link ();
12316   ;
12317   return 0;
12318 }
12319 _ACEOF
12320 if ac_fn_c_try_link "$LINENO"; then :
12321   ac_cv_lib_dld_dld_link=yes
12322 else
12323   ac_cv_lib_dld_dld_link=no
12324 fi
12325 rm -f core conftest.err conftest.$ac_objext \
12326     conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12328 fi
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12330 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12331 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12332   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12333 fi
12334
12335
12336 fi
12337
12338
12339 fi
12340
12341
12342 fi
12343
12344
12345 fi
12346
12347
12348 fi
12349
12350     ;;
12351   esac
12352
12353   if test "x$lt_cv_dlopen" != xno; then
12354     enable_dlopen=yes
12355   else
12356     enable_dlopen=no
12357   fi
12358
12359   case $lt_cv_dlopen in
12360   dlopen)
12361     save_CPPFLAGS="$CPPFLAGS"
12362     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12363
12364     save_LDFLAGS="$LDFLAGS"
12365     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12366
12367     save_LIBS="$LIBS"
12368     LIBS="$lt_cv_dlopen_libs $LIBS"
12369
12370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12371 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12372 if test "${lt_cv_dlopen_self+set}" = set; then :
12373   $as_echo_n "(cached) " >&6
12374 else
12375           if test "$cross_compiling" = yes; then :
12376   lt_cv_dlopen_self=cross
12377 else
12378   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12379   lt_status=$lt_dlunknown
12380   cat > conftest.$ac_ext <<_LT_EOF
12381 #line 12381 "configure"
12382 #include "confdefs.h"
12383
12384 #if HAVE_DLFCN_H
12385 #include <dlfcn.h>
12386 #endif
12387
12388 #include <stdio.h>
12389
12390 #ifdef RTLD_GLOBAL
12391 #  define LT_DLGLOBAL           RTLD_GLOBAL
12392 #else
12393 #  ifdef DL_GLOBAL
12394 #    define LT_DLGLOBAL         DL_GLOBAL
12395 #  else
12396 #    define LT_DLGLOBAL         0
12397 #  endif
12398 #endif
12399
12400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12401    find out it does not work in some platform. */
12402 #ifndef LT_DLLAZY_OR_NOW
12403 #  ifdef RTLD_LAZY
12404 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12405 #  else
12406 #    ifdef DL_LAZY
12407 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12408 #    else
12409 #      ifdef RTLD_NOW
12410 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12411 #      else
12412 #        ifdef DL_NOW
12413 #          define LT_DLLAZY_OR_NOW      DL_NOW
12414 #        else
12415 #          define LT_DLLAZY_OR_NOW      0
12416 #        endif
12417 #      endif
12418 #    endif
12419 #  endif
12420 #endif
12421
12422 void fnord() { int i=42;}
12423 int main ()
12424 {
12425   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12426   int status = $lt_dlunknown;
12427
12428   if (self)
12429     {
12430       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12431       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12432       /* dlclose (self); */
12433     }
12434   else
12435     puts (dlerror ());
12436
12437   return status;
12438 }
12439 _LT_EOF
12440   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12441   (eval $ac_link) 2>&5
12442   ac_status=$?
12443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12445     (./conftest; exit; ) >&5 2>/dev/null
12446     lt_status=$?
12447     case x$lt_status in
12448       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12449       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12450       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12451     esac
12452   else :
12453     # compilation failed
12454     lt_cv_dlopen_self=no
12455   fi
12456 fi
12457 rm -fr conftest*
12458
12459
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12462 $as_echo "$lt_cv_dlopen_self" >&6; }
12463
12464     if test "x$lt_cv_dlopen_self" = xyes; then
12465       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12466       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12467 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12468 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12469   $as_echo_n "(cached) " >&6
12470 else
12471           if test "$cross_compiling" = yes; then :
12472   lt_cv_dlopen_self_static=cross
12473 else
12474   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12475   lt_status=$lt_dlunknown
12476   cat > conftest.$ac_ext <<_LT_EOF
12477 #line 12477 "configure"
12478 #include "confdefs.h"
12479
12480 #if HAVE_DLFCN_H
12481 #include <dlfcn.h>
12482 #endif
12483
12484 #include <stdio.h>
12485
12486 #ifdef RTLD_GLOBAL
12487 #  define LT_DLGLOBAL           RTLD_GLOBAL
12488 #else
12489 #  ifdef DL_GLOBAL
12490 #    define LT_DLGLOBAL         DL_GLOBAL
12491 #  else
12492 #    define LT_DLGLOBAL         0
12493 #  endif
12494 #endif
12495
12496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12497    find out it does not work in some platform. */
12498 #ifndef LT_DLLAZY_OR_NOW
12499 #  ifdef RTLD_LAZY
12500 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12501 #  else
12502 #    ifdef DL_LAZY
12503 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12504 #    else
12505 #      ifdef RTLD_NOW
12506 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12507 #      else
12508 #        ifdef DL_NOW
12509 #          define LT_DLLAZY_OR_NOW      DL_NOW
12510 #        else
12511 #          define LT_DLLAZY_OR_NOW      0
12512 #        endif
12513 #      endif
12514 #    endif
12515 #  endif
12516 #endif
12517
12518 void fnord() { int i=42;}
12519 int main ()
12520 {
12521   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12522   int status = $lt_dlunknown;
12523
12524   if (self)
12525     {
12526       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12527       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12528       /* dlclose (self); */
12529     }
12530   else
12531     puts (dlerror ());
12532
12533   return status;
12534 }
12535 _LT_EOF
12536   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12537   (eval $ac_link) 2>&5
12538   ac_status=$?
12539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12540   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12541     (./conftest; exit; ) >&5 2>/dev/null
12542     lt_status=$?
12543     case x$lt_status in
12544       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12545       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12546       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12547     esac
12548   else :
12549     # compilation failed
12550     lt_cv_dlopen_self_static=no
12551   fi
12552 fi
12553 rm -fr conftest*
12554
12555
12556 fi
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12558 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12559     fi
12560
12561     CPPFLAGS="$save_CPPFLAGS"
12562     LDFLAGS="$save_LDFLAGS"
12563     LIBS="$save_LIBS"
12564     ;;
12565   esac
12566
12567   case $lt_cv_dlopen_self in
12568   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12569   *) enable_dlopen_self=unknown ;;
12570   esac
12571
12572   case $lt_cv_dlopen_self_static in
12573   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12574   *) enable_dlopen_self_static=unknown ;;
12575   esac
12576 fi
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594 striplib=
12595 old_striplib=
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12597 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12598 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12599   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12600   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12602 $as_echo "yes" >&6; }
12603 else
12604 # FIXME - insert some real tests, host_os isn't really good enough
12605   case $host_os in
12606   darwin*)
12607     if test -n "$STRIP" ; then
12608       striplib="$STRIP -x"
12609       old_striplib="$STRIP -S"
12610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12611 $as_echo "yes" >&6; }
12612     else
12613       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12615     fi
12616     ;;
12617   *)
12618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12620     ;;
12621   esac
12622 fi
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635   # Report which library types will actually be built
12636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12637 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12639 $as_echo "$can_build_shared" >&6; }
12640
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12642 $as_echo_n "checking whether to build shared libraries... " >&6; }
12643   test "$can_build_shared" = "no" && enable_shared=no
12644
12645   # On AIX, shared libraries and static libraries use the same namespace, and
12646   # are all built from PIC.
12647   case $host_os in
12648   aix3*)
12649     test "$enable_shared" = yes && enable_static=no
12650     if test -n "$RANLIB"; then
12651       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12652       postinstall_cmds='$RANLIB $lib'
12653     fi
12654     ;;
12655
12656   aix[4-9]*)
12657     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12658       test "$enable_shared" = yes && enable_static=no
12659     fi
12660     ;;
12661   esac
12662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12663 $as_echo "$enable_shared" >&6; }
12664
12665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12666 $as_echo_n "checking whether to build static libraries... " >&6; }
12667   # Make sure either enable_shared or enable_static is yes.
12668   test "$enable_shared" = yes || enable_static=yes
12669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12670 $as_echo "$enable_static" >&6; }
12671
12672
12673
12674
12675 fi
12676 ac_ext=c
12677 ac_cpp='$CPP $CPPFLAGS'
12678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12681
12682 CC="$lt_save_CC"
12683
12684
12685 ac_ext=cpp
12686 ac_cpp='$CXXCPP $CPPFLAGS'
12687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12690
12691 archive_cmds_need_lc_CXX=no
12692 allow_undefined_flag_CXX=
12693 always_export_symbols_CXX=no
12694 archive_expsym_cmds_CXX=
12695 compiler_needs_object_CXX=no
12696 export_dynamic_flag_spec_CXX=
12697 hardcode_direct_CXX=no
12698 hardcode_direct_absolute_CXX=no
12699 hardcode_libdir_flag_spec_CXX=
12700 hardcode_libdir_flag_spec_ld_CXX=
12701 hardcode_libdir_separator_CXX=
12702 hardcode_minus_L_CXX=no
12703 hardcode_shlibpath_var_CXX=unsupported
12704 hardcode_automatic_CXX=no
12705 inherit_rpath_CXX=no
12706 module_cmds_CXX=
12707 module_expsym_cmds_CXX=
12708 link_all_deplibs_CXX=unknown
12709 old_archive_cmds_CXX=$old_archive_cmds
12710 no_undefined_flag_CXX=
12711 whole_archive_flag_spec_CXX=
12712 enable_shared_with_static_runtimes_CXX=no
12713
12714 # Source file extension for C++ test sources.
12715 ac_ext=cpp
12716
12717 # Object file extension for compiled C++ test sources.
12718 objext=o
12719 objext_CXX=$objext
12720
12721 # No sense in running all these tests if we already determined that
12722 # the CXX compiler isn't working.  Some variables (like enable_shared)
12723 # are currently assumed to apply to all compilers on this platform,
12724 # and will be corrupted by setting them based on a non-working compiler.
12725 if test "$_lt_caught_CXX_error" != yes; then
12726   # Code to be used in simple compile tests
12727   lt_simple_compile_test_code="int some_variable = 0;"
12728
12729   # Code to be used in simple link tests
12730   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12731
12732   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12733
12734
12735
12736
12737
12738
12739 # If no C compiler was specified, use CC.
12740 LTCC=${LTCC-"$CC"}
12741
12742 # If no C compiler flags were specified, use CFLAGS.
12743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12744
12745 # Allow CC to be a program name with arguments.
12746 compiler=$CC
12747
12748
12749   # save warnings/boilerplate of simple test code
12750   ac_outfile=conftest.$ac_objext
12751 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12752 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12753 _lt_compiler_boilerplate=`cat conftest.err`
12754 $RM conftest*
12755
12756   ac_outfile=conftest.$ac_objext
12757 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12758 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12759 _lt_linker_boilerplate=`cat conftest.err`
12760 $RM -r conftest*
12761
12762
12763   # Allow CC to be a program name with arguments.
12764   lt_save_CC=$CC
12765   lt_save_LD=$LD
12766   lt_save_GCC=$GCC
12767   GCC=$GXX
12768   lt_save_with_gnu_ld=$with_gnu_ld
12769   lt_save_path_LD=$lt_cv_path_LD
12770   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12771     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12772   else
12773     $as_unset lt_cv_prog_gnu_ld
12774   fi
12775   if test -n "${lt_cv_path_LDCXX+set}"; then
12776     lt_cv_path_LD=$lt_cv_path_LDCXX
12777   else
12778     $as_unset lt_cv_path_LD
12779   fi
12780   test -z "${LDCXX+set}" || LD=$LDCXX
12781   CC=${CXX-"c++"}
12782   compiler=$CC
12783   compiler_CXX=$CC
12784   for cc_temp in $compiler""; do
12785   case $cc_temp in
12786     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12787     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12788     \-*) ;;
12789     *) break;;
12790   esac
12791 done
12792 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12793
12794
12795   if test -n "$compiler"; then
12796     # We don't want -fno-exception when compiling C++ code, so set the
12797     # no_builtin_flag separately
12798     if test "$GXX" = yes; then
12799       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12800     else
12801       lt_prog_compiler_no_builtin_flag_CXX=
12802     fi
12803
12804     if test "$GXX" = yes; then
12805       # Set up default GNU C++ configuration
12806
12807
12808
12809 # Check whether --with-gnu-ld was given.
12810 if test "${with_gnu_ld+set}" = set; then :
12811   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12812 else
12813   with_gnu_ld=no
12814 fi
12815
12816 ac_prog=ld
12817 if test "$GCC" = yes; then
12818   # Check if gcc -print-prog-name=ld gives a path.
12819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12820 $as_echo_n "checking for ld used by $CC... " >&6; }
12821   case $host in
12822   *-*-mingw*)
12823     # gcc leaves a trailing carriage return which upsets mingw
12824     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12825   *)
12826     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12827   esac
12828   case $ac_prog in
12829     # Accept absolute paths.
12830     [\\/]* | ?:[\\/]*)
12831       re_direlt='/[^/][^/]*/\.\./'
12832       # Canonicalize the pathname of ld
12833       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12834       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12835         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12836       done
12837       test -z "$LD" && LD="$ac_prog"
12838       ;;
12839   "")
12840     # If it fails, then pretend we aren't using GCC.
12841     ac_prog=ld
12842     ;;
12843   *)
12844     # If it is relative, then search for the first ld in PATH.
12845     with_gnu_ld=unknown
12846     ;;
12847   esac
12848 elif test "$with_gnu_ld" = yes; then
12849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12850 $as_echo_n "checking for GNU ld... " >&6; }
12851 else
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12853 $as_echo_n "checking for non-GNU ld... " >&6; }
12854 fi
12855 if test "${lt_cv_path_LD+set}" = set; then :
12856   $as_echo_n "(cached) " >&6
12857 else
12858   if test -z "$LD"; then
12859   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12860   for ac_dir in $PATH; do
12861     IFS="$lt_save_ifs"
12862     test -z "$ac_dir" && ac_dir=.
12863     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12864       lt_cv_path_LD="$ac_dir/$ac_prog"
12865       # Check to see if the program is GNU ld.  I'd rather use --version,
12866       # but apparently some variants of GNU ld only accept -v.
12867       # Break only if it was the GNU/non-GNU ld that we prefer.
12868       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12869       *GNU* | *'with BFD'*)
12870         test "$with_gnu_ld" != no && break
12871         ;;
12872       *)
12873         test "$with_gnu_ld" != yes && break
12874         ;;
12875       esac
12876     fi
12877   done
12878   IFS="$lt_save_ifs"
12879 else
12880   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12881 fi
12882 fi
12883
12884 LD="$lt_cv_path_LD"
12885 if test -n "$LD"; then
12886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12887 $as_echo "$LD" >&6; }
12888 else
12889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891 fi
12892 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12894 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12895 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12896   $as_echo_n "(cached) " >&6
12897 else
12898   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12899 case `$LD -v 2>&1 </dev/null` in
12900 *GNU* | *'with BFD'*)
12901   lt_cv_prog_gnu_ld=yes
12902   ;;
12903 *)
12904   lt_cv_prog_gnu_ld=no
12905   ;;
12906 esac
12907 fi
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12909 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12910 with_gnu_ld=$lt_cv_prog_gnu_ld
12911
12912
12913
12914
12915
12916
12917
12918       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12919       # archiving commands below assume that GNU ld is being used.
12920       if test "$with_gnu_ld" = yes; then
12921         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12922         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'
12923
12924         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12925         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12926
12927         # If archive_cmds runs LD, not CC, wlarc should be empty
12928         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12929         #     investigate it a little bit more. (MM)
12930         wlarc='${wl}'
12931
12932         # ancient GNU ld didn't support --whole-archive et. al.
12933         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12934           $GREP 'no-whole-archive' > /dev/null; then
12935           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12936         else
12937           whole_archive_flag_spec_CXX=
12938         fi
12939       else
12940         with_gnu_ld=no
12941         wlarc=
12942
12943         # A generic and very simple default shared library creation
12944         # command for GNU C++ for the case where it uses the native
12945         # linker, instead of GNU ld.  If possible, this setting should
12946         # overridden to take advantage of the native linker features on
12947         # the platform it is being used on.
12948         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12949       fi
12950
12951       # Commands to make compiler produce verbose output that lists
12952       # what "hidden" libraries, object files and flags are used when
12953       # linking a shared library.
12954       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12955
12956     else
12957       GXX=no
12958       with_gnu_ld=no
12959       wlarc=
12960     fi
12961
12962     # PORTME: fill in a description of your system's C++ link characteristics
12963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12964 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12965     ld_shlibs_CXX=yes
12966     case $host_os in
12967       aix3*)
12968         # FIXME: insert proper C++ library support
12969         ld_shlibs_CXX=no
12970         ;;
12971       aix[4-9]*)
12972         if test "$host_cpu" = ia64; then
12973           # On IA64, the linker does run time linking by default, so we don't
12974           # have to do anything special.
12975           aix_use_runtimelinking=no
12976           exp_sym_flag='-Bexport'
12977           no_entry_flag=""
12978         else
12979           aix_use_runtimelinking=no
12980
12981           # Test if we are trying to use run time linking or normal
12982           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12983           # need to do runtime linking.
12984           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12985             for ld_flag in $LDFLAGS; do
12986               case $ld_flag in
12987               *-brtl*)
12988                 aix_use_runtimelinking=yes
12989                 break
12990                 ;;
12991               esac
12992             done
12993             ;;
12994           esac
12995
12996           exp_sym_flag='-bexport'
12997           no_entry_flag='-bnoentry'
12998         fi
12999
13000         # When large executables or shared objects are built, AIX ld can
13001         # have problems creating the table of contents.  If linking a library
13002         # or program results in "error TOC overflow" add -mminimal-toc to
13003         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13004         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13005
13006         archive_cmds_CXX=''
13007         hardcode_direct_CXX=yes
13008         hardcode_direct_absolute_CXX=yes
13009         hardcode_libdir_separator_CXX=':'
13010         link_all_deplibs_CXX=yes
13011         file_list_spec_CXX='${wl}-f,'
13012
13013         if test "$GXX" = yes; then
13014           case $host_os in aix4.[012]|aix4.[012].*)
13015           # We only want to do this on AIX 4.2 and lower, the check
13016           # below for broken collect2 doesn't work under 4.3+
13017           collect2name=`${CC} -print-prog-name=collect2`
13018           if test -f "$collect2name" &&
13019              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13020           then
13021             # We have reworked collect2
13022             :
13023           else
13024             # We have old collect2
13025             hardcode_direct_CXX=unsupported
13026             # It fails to find uninstalled libraries when the uninstalled
13027             # path is not listed in the libpath.  Setting hardcode_minus_L
13028             # to unsupported forces relinking
13029             hardcode_minus_L_CXX=yes
13030             hardcode_libdir_flag_spec_CXX='-L$libdir'
13031             hardcode_libdir_separator_CXX=
13032           fi
13033           esac
13034           shared_flag='-shared'
13035           if test "$aix_use_runtimelinking" = yes; then
13036             shared_flag="$shared_flag "'${wl}-G'
13037           fi
13038         else
13039           # not using gcc
13040           if test "$host_cpu" = ia64; then
13041           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13042           # chokes on -Wl,-G. The following line is correct:
13043           shared_flag='-G'
13044           else
13045             if test "$aix_use_runtimelinking" = yes; then
13046               shared_flag='${wl}-G'
13047             else
13048               shared_flag='${wl}-bM:SRE'
13049             fi
13050           fi
13051         fi
13052
13053         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13054         # It seems that -bexpall does not export symbols beginning with
13055         # underscore (_), so it is better to generate a list of symbols to
13056         # export.
13057         always_export_symbols_CXX=yes
13058         if test "$aix_use_runtimelinking" = yes; then
13059           # Warning - without using the other runtime loading flags (-brtl),
13060           # -berok will link without error, but may produce a broken library.
13061           allow_undefined_flag_CXX='-berok'
13062           # Determine the default libpath from the value encoded in an empty
13063           # executable.
13064           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h.  */
13066
13067 int
13068 main ()
13069 {
13070
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 if ac_fn_cxx_try_link "$LINENO"; then :
13076
13077 lt_aix_libpath_sed='
13078     /Import File Strings/,/^$/ {
13079         /^0/ {
13080             s/^0  *\(.*\)$/\1/
13081             p
13082         }
13083     }'
13084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13085 # Check for a 64-bit object if we didn't find anything.
13086 if test -z "$aix_libpath"; then
13087   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13088 fi
13089 fi
13090 rm -f core conftest.err conftest.$ac_objext \
13091     conftest$ac_exeext conftest.$ac_ext
13092 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13093
13094           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13095
13096           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"
13097         else
13098           if test "$host_cpu" = ia64; then
13099             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13100             allow_undefined_flag_CXX="-z nodefs"
13101             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"
13102           else
13103             # Determine the default libpath from the value encoded in an
13104             # empty executable.
13105             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h.  */
13107
13108 int
13109 main ()
13110 {
13111
13112   ;
13113   return 0;
13114 }
13115 _ACEOF
13116 if ac_fn_cxx_try_link "$LINENO"; then :
13117
13118 lt_aix_libpath_sed='
13119     /Import File Strings/,/^$/ {
13120         /^0/ {
13121             s/^0  *\(.*\)$/\1/
13122             p
13123         }
13124     }'
13125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13126 # Check for a 64-bit object if we didn't find anything.
13127 if test -z "$aix_libpath"; then
13128   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13129 fi
13130 fi
13131 rm -f core conftest.err conftest.$ac_objext \
13132     conftest$ac_exeext conftest.$ac_ext
13133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13134
13135             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13136             # Warning - without using the other run time loading flags,
13137             # -berok will link without error, but may produce a broken library.
13138             no_undefined_flag_CXX=' ${wl}-bernotok'
13139             allow_undefined_flag_CXX=' ${wl}-berok'
13140             # Exported symbols can be pulled into shared objects from archives
13141             whole_archive_flag_spec_CXX='$convenience'
13142             archive_cmds_need_lc_CXX=yes
13143             # This is similar to how AIX traditionally builds its shared
13144             # libraries.
13145             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'
13146           fi
13147         fi
13148         ;;
13149
13150       beos*)
13151         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13152           allow_undefined_flag_CXX=unsupported
13153           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13154           # support --undefined.  This deserves some investigation.  FIXME
13155           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13156         else
13157           ld_shlibs_CXX=no
13158         fi
13159         ;;
13160
13161       chorus*)
13162         case $cc_basename in
13163           *)
13164           # FIXME: insert proper C++ library support
13165           ld_shlibs_CXX=no
13166           ;;
13167         esac
13168         ;;
13169
13170       cygwin* | mingw* | pw32* | cegcc*)
13171         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13172         # as there is no search path for DLLs.
13173         hardcode_libdir_flag_spec_CXX='-L$libdir'
13174         allow_undefined_flag_CXX=unsupported
13175         always_export_symbols_CXX=no
13176         enable_shared_with_static_runtimes_CXX=yes
13177
13178         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13179           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'
13180           # If the export-symbols file already is a .def file (1st line
13181           # is EXPORTS), use it as is; otherwise, prepend...
13182           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13183             cp $export_symbols $output_objdir/$soname.def;
13184           else
13185             echo EXPORTS > $output_objdir/$soname.def;
13186             cat $export_symbols >> $output_objdir/$soname.def;
13187           fi~
13188           $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'
13189         else
13190           ld_shlibs_CXX=no
13191         fi
13192         ;;
13193       darwin* | rhapsody*)
13194
13195
13196   archive_cmds_need_lc_CXX=no
13197   hardcode_direct_CXX=no
13198   hardcode_automatic_CXX=yes
13199   hardcode_shlibpath_var_CXX=unsupported
13200   whole_archive_flag_spec_CXX=''
13201   link_all_deplibs_CXX=yes
13202   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13203   case $cc_basename in
13204      ifort*) _lt_dar_can_shared=yes ;;
13205      *) _lt_dar_can_shared=$GCC ;;
13206   esac
13207   if test "$_lt_dar_can_shared" = "yes"; then
13208     output_verbose_link_cmd=echo
13209     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}"
13210     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13211     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}"
13212     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}"
13213        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13214       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}"
13215       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}"
13216     fi
13217
13218   else
13219   ld_shlibs_CXX=no
13220   fi
13221
13222         ;;
13223
13224       dgux*)
13225         case $cc_basename in
13226           ec++*)
13227             # FIXME: insert proper C++ library support
13228             ld_shlibs_CXX=no
13229             ;;
13230           ghcx*)
13231             # Green Hills C++ Compiler
13232             # FIXME: insert proper C++ library support
13233             ld_shlibs_CXX=no
13234             ;;
13235           *)
13236             # FIXME: insert proper C++ library support
13237             ld_shlibs_CXX=no
13238             ;;
13239         esac
13240         ;;
13241
13242       freebsd[12]*)
13243         # C++ shared libraries reported to be fairly broken before
13244         # switch to ELF
13245         ld_shlibs_CXX=no
13246         ;;
13247
13248       freebsd-elf*)
13249         archive_cmds_need_lc_CXX=no
13250         ;;
13251
13252       freebsd* | dragonfly*)
13253         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13254         # conventions
13255         ld_shlibs_CXX=yes
13256         ;;
13257
13258       gnu*)
13259         ;;
13260
13261       hpux9*)
13262         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13263         hardcode_libdir_separator_CXX=:
13264         export_dynamic_flag_spec_CXX='${wl}-E'
13265         hardcode_direct_CXX=yes
13266         hardcode_minus_L_CXX=yes # Not in the search PATH,
13267                                              # but as the default
13268                                              # location of the library.
13269
13270         case $cc_basename in
13271           CC*)
13272             # FIXME: insert proper C++ library support
13273             ld_shlibs_CXX=no
13274             ;;
13275           aCC*)
13276             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'
13277             # Commands to make compiler produce verbose output that lists
13278             # what "hidden" libraries, object files and flags are used when
13279             # linking a shared library.
13280             #
13281             # There doesn't appear to be a way to prevent this compiler from
13282             # explicitly linking system object files so we need to strip them
13283             # from the output so that they don't get included in the library
13284             # dependencies.
13285             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'
13286             ;;
13287           *)
13288             if test "$GXX" = yes; then
13289               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'
13290             else
13291               # FIXME: insert proper C++ library support
13292               ld_shlibs_CXX=no
13293             fi
13294             ;;
13295         esac
13296         ;;
13297
13298       hpux10*|hpux11*)
13299         if test $with_gnu_ld = no; then
13300           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13301           hardcode_libdir_separator_CXX=:
13302
13303           case $host_cpu in
13304             hppa*64*|ia64*)
13305               ;;
13306             *)
13307               export_dynamic_flag_spec_CXX='${wl}-E'
13308               ;;
13309           esac
13310         fi
13311         case $host_cpu in
13312           hppa*64*|ia64*)
13313             hardcode_direct_CXX=no
13314             hardcode_shlibpath_var_CXX=no
13315             ;;
13316           *)
13317             hardcode_direct_CXX=yes
13318             hardcode_direct_absolute_CXX=yes
13319             hardcode_minus_L_CXX=yes # Not in the search PATH,
13320                                                  # but as the default
13321                                                  # location of the library.
13322             ;;
13323         esac
13324
13325         case $cc_basename in
13326           CC*)
13327             # FIXME: insert proper C++ library support
13328             ld_shlibs_CXX=no
13329             ;;
13330           aCC*)
13331             case $host_cpu in
13332               hppa*64*)
13333                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13334                 ;;
13335               ia64*)
13336                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13337                 ;;
13338               *)
13339                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13340                 ;;
13341             esac
13342             # Commands to make compiler produce verbose output that lists
13343             # what "hidden" libraries, object files and flags are used when
13344             # linking a shared library.
13345             #
13346             # There doesn't appear to be a way to prevent this compiler from
13347             # explicitly linking system object files so we need to strip them
13348             # from the output so that they don't get included in the library
13349             # dependencies.
13350             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'
13351             ;;
13352           *)
13353             if test "$GXX" = yes; then
13354               if test $with_gnu_ld = no; then
13355                 case $host_cpu in
13356                   hppa*64*)
13357                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13358                     ;;
13359                   ia64*)
13360                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13361                     ;;
13362                   *)
13363                     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'
13364                     ;;
13365                 esac
13366               fi
13367             else
13368               # FIXME: insert proper C++ library support
13369               ld_shlibs_CXX=no
13370             fi
13371             ;;
13372         esac
13373         ;;
13374
13375       interix[3-9]*)
13376         hardcode_direct_CXX=no
13377         hardcode_shlibpath_var_CXX=no
13378         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13379         export_dynamic_flag_spec_CXX='${wl}-E'
13380         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13381         # Instead, shared libraries are loaded at an image base (0x10000000 by
13382         # default) and relocated if they conflict, which is a slow very memory
13383         # consuming and fragmenting process.  To avoid this, we pick a random,
13384         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13385         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13386         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'
13387         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'
13388         ;;
13389       irix5* | irix6*)
13390         case $cc_basename in
13391           CC*)
13392             # SGI C++
13393             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'
13394
13395             # Archives containing C++ object files must be created using
13396             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13397             # necessary to make sure instantiated templates are included
13398             # in the archive.
13399             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13400             ;;
13401           *)
13402             if test "$GXX" = yes; then
13403               if test "$with_gnu_ld" = no; then
13404                 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'
13405               else
13406                 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'
13407               fi
13408             fi
13409             link_all_deplibs_CXX=yes
13410             ;;
13411         esac
13412         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13413         hardcode_libdir_separator_CXX=:
13414         inherit_rpath_CXX=yes
13415         ;;
13416
13417       linux* | k*bsd*-gnu)
13418         case $cc_basename in
13419           KCC*)
13420             # Kuck and Associates, Inc. (KAI) C++ Compiler
13421
13422             # KCC will only create a shared library if the output file
13423             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13424             # to its proper name (with version) after linking.
13425             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'
13426             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'
13427             # Commands to make compiler produce verbose output that lists
13428             # what "hidden" libraries, object files and flags are used when
13429             # linking a shared library.
13430             #
13431             # There doesn't appear to be a way to prevent this compiler from
13432             # explicitly linking system object files so we need to strip them
13433             # from the output so that they don't get included in the library
13434             # dependencies.
13435             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'
13436
13437             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13438             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13439
13440             # Archives containing C++ object files must be created using
13441             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13442             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13443             ;;
13444           icpc* | ecpc* )
13445             # Intel C++
13446             with_gnu_ld=yes
13447             # version 8.0 and above of icpc choke on multiply defined symbols
13448             # if we add $predep_objects and $postdep_objects, however 7.1 and
13449             # earlier do not add the objects themselves.
13450             case `$CC -V 2>&1` in
13451               *"Version 7."*)
13452                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13453                 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'
13454                 ;;
13455               *)  # Version 8.0 or newer
13456                 tmp_idyn=
13457                 case $host_cpu in
13458                   ia64*) tmp_idyn=' -i_dynamic';;
13459                 esac
13460                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13461                 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'
13462                 ;;
13463             esac
13464             archive_cmds_need_lc_CXX=no
13465             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13466             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13467             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13468             ;;
13469           pgCC* | pgcpp*)
13470             # Portland Group C++ compiler
13471             case `$CC -V` in
13472             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13473               prelink_cmds_CXX='tpldir=Template.dir~
13474                 rm -rf $tpldir~
13475                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13476                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13477               old_archive_cmds_CXX='tpldir=Template.dir~
13478                 rm -rf $tpldir~
13479                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13480                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13481                 $RANLIB $oldlib'
13482               archive_cmds_CXX='tpldir=Template.dir~
13483                 rm -rf $tpldir~
13484                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13485                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13486               archive_expsym_cmds_CXX='tpldir=Template.dir~
13487                 rm -rf $tpldir~
13488                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13489                 $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'
13490               ;;
13491             *) # Version 6 will use weak symbols
13492               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13493               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'
13494               ;;
13495             esac
13496
13497             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13498             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13499             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'
13500             ;;
13501           cxx*)
13502             # Compaq C++
13503             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13504             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'
13505
13506             runpath_var=LD_RUN_PATH
13507             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13508             hardcode_libdir_separator_CXX=:
13509
13510             # Commands to make compiler produce verbose output that lists
13511             # what "hidden" libraries, object files and flags are used when
13512             # linking a shared library.
13513             #
13514             # There doesn't appear to be a way to prevent this compiler from
13515             # explicitly linking system object files so we need to strip them
13516             # from the output so that they don't get included in the library
13517             # dependencies.
13518             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'
13519             ;;
13520           xl*)
13521             # IBM XL 8.0 on PPC, with GNU ld
13522             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13523             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13524             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13525             if test "x$supports_anon_versioning" = xyes; then
13526               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13527                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13528                 echo "local: *; };" >> $output_objdir/$libname.ver~
13529                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13530             fi
13531             ;;
13532           *)
13533             case `$CC -V 2>&1 | sed 5q` in
13534             *Sun\ C*)
13535               # Sun C++ 5.9
13536               no_undefined_flag_CXX=' -zdefs'
13537               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13538               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'
13539               hardcode_libdir_flag_spec_CXX='-R$libdir'
13540               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'
13541               compiler_needs_object_CXX=yes
13542
13543               # Not sure whether something based on
13544               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13545               # would be better.
13546               output_verbose_link_cmd='echo'
13547
13548               # Archives containing C++ object files must be created using
13549               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13550               # necessary to make sure instantiated templates are included
13551               # in the archive.
13552               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13553               ;;
13554             esac
13555             ;;
13556         esac
13557         ;;
13558
13559       lynxos*)
13560         # FIXME: insert proper C++ library support
13561         ld_shlibs_CXX=no
13562         ;;
13563
13564       m88k*)
13565         # FIXME: insert proper C++ library support
13566         ld_shlibs_CXX=no
13567         ;;
13568
13569       mvs*)
13570         case $cc_basename in
13571           cxx*)
13572             # FIXME: insert proper C++ library support
13573             ld_shlibs_CXX=no
13574             ;;
13575           *)
13576             # FIXME: insert proper C++ library support
13577             ld_shlibs_CXX=no
13578             ;;
13579         esac
13580         ;;
13581
13582       netbsd*)
13583         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13584           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13585           wlarc=
13586           hardcode_libdir_flag_spec_CXX='-R$libdir'
13587           hardcode_direct_CXX=yes
13588           hardcode_shlibpath_var_CXX=no
13589         fi
13590         # Workaround some broken pre-1.5 toolchains
13591         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13592         ;;
13593
13594       *nto* | *qnx*)
13595         ld_shlibs_CXX=yes
13596         ;;
13597
13598       openbsd2*)
13599         # C++ shared libraries are fairly broken
13600         ld_shlibs_CXX=no
13601         ;;
13602
13603       openbsd*)
13604         if test -f /usr/libexec/ld.so; then
13605           hardcode_direct_CXX=yes
13606           hardcode_shlibpath_var_CXX=no
13607           hardcode_direct_absolute_CXX=yes
13608           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13609           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13610           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13611             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13612             export_dynamic_flag_spec_CXX='${wl}-E'
13613             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13614           fi
13615           output_verbose_link_cmd=echo
13616         else
13617           ld_shlibs_CXX=no
13618         fi
13619         ;;
13620
13621       osf3* | osf4* | osf5*)
13622         case $cc_basename in
13623           KCC*)
13624             # Kuck and Associates, Inc. (KAI) C++ Compiler
13625
13626             # KCC will only create a shared library if the output file
13627             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13628             # to its proper name (with version) after linking.
13629             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'
13630
13631             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13632             hardcode_libdir_separator_CXX=:
13633
13634             # Archives containing C++ object files must be created using
13635             # the KAI C++ compiler.
13636             case $host in
13637               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13638               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13639             esac
13640             ;;
13641           RCC*)
13642             # Rational C++ 2.4.1
13643             # FIXME: insert proper C++ library support
13644             ld_shlibs_CXX=no
13645             ;;
13646           cxx*)
13647             case $host in
13648               osf3*)
13649                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13650                 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'
13651                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13652                 ;;
13653               *)
13654                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13655                 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'
13656                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13657                   echo "-hidden">> $lib.exp~
13658                   $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~
13659                   $RM $lib.exp'
13660                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13661                 ;;
13662             esac
13663
13664             hardcode_libdir_separator_CXX=:
13665
13666             # Commands to make compiler produce verbose output that lists
13667             # what "hidden" libraries, object files and flags are used when
13668             # linking a shared library.
13669             #
13670             # There doesn't appear to be a way to prevent this compiler from
13671             # explicitly linking system object files so we need to strip them
13672             # from the output so that they don't get included in the library
13673             # dependencies.
13674             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'
13675             ;;
13676           *)
13677             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13678               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13679               case $host in
13680                 osf3*)
13681                   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'
13682                   ;;
13683                 *)
13684                   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'
13685                   ;;
13686               esac
13687
13688               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13689               hardcode_libdir_separator_CXX=:
13690
13691               # Commands to make compiler produce verbose output that lists
13692               # what "hidden" libraries, object files and flags are used when
13693               # linking a shared library.
13694               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13695
13696             else
13697               # FIXME: insert proper C++ library support
13698               ld_shlibs_CXX=no
13699             fi
13700             ;;
13701         esac
13702         ;;
13703
13704       psos*)
13705         # FIXME: insert proper C++ library support
13706         ld_shlibs_CXX=no
13707         ;;
13708
13709       sunos4*)
13710         case $cc_basename in
13711           CC*)
13712             # Sun C++ 4.x
13713             # FIXME: insert proper C++ library support
13714             ld_shlibs_CXX=no
13715             ;;
13716           lcc*)
13717             # Lucid
13718             # FIXME: insert proper C++ library support
13719             ld_shlibs_CXX=no
13720             ;;
13721           *)
13722             # FIXME: insert proper C++ library support
13723             ld_shlibs_CXX=no
13724             ;;
13725         esac
13726         ;;
13727
13728       solaris*)
13729         case $cc_basename in
13730           CC*)
13731             # Sun C++ 4.2, 5.x and Centerline C++
13732             archive_cmds_need_lc_CXX=yes
13733             no_undefined_flag_CXX=' -zdefs'
13734             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13735             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13736               $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'
13737
13738             hardcode_libdir_flag_spec_CXX='-R$libdir'
13739             hardcode_shlibpath_var_CXX=no
13740             case $host_os in
13741               solaris2.[0-5] | solaris2.[0-5].*) ;;
13742               *)
13743                 # The compiler driver will combine and reorder linker options,
13744                 # but understands `-z linker_flag'.
13745                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13746                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13747                 ;;
13748             esac
13749             link_all_deplibs_CXX=yes
13750
13751             output_verbose_link_cmd='echo'
13752
13753             # Archives containing C++ object files must be created using
13754             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13755             # necessary to make sure instantiated templates are included
13756             # in the archive.
13757             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13758             ;;
13759           gcx*)
13760             # Green Hills C++ Compiler
13761             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13762
13763             # The C++ compiler must be used to create the archive.
13764             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13765             ;;
13766           *)
13767             # GNU C++ compiler with Solaris linker
13768             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13769               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13770               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13771                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13772                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13773                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13774
13775                 # Commands to make compiler produce verbose output that lists
13776                 # what "hidden" libraries, object files and flags are used when
13777                 # linking a shared library.
13778                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13779               else
13780                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13781                 # platform.
13782                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13783                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13784                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13785
13786                 # Commands to make compiler produce verbose output that lists
13787                 # what "hidden" libraries, object files and flags are used when
13788                 # linking a shared library.
13789                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13790               fi
13791
13792               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13793               case $host_os in
13794                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13795                 *)
13796                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13797                   ;;
13798               esac
13799             fi
13800             ;;
13801         esac
13802         ;;
13803
13804     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13805       no_undefined_flag_CXX='${wl}-z,text'
13806       archive_cmds_need_lc_CXX=no
13807       hardcode_shlibpath_var_CXX=no
13808       runpath_var='LD_RUN_PATH'
13809
13810       case $cc_basename in
13811         CC*)
13812           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13813           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13814           ;;
13815         *)
13816           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13817           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13818           ;;
13819       esac
13820       ;;
13821
13822       sysv5* | sco3.2v5* | sco5v6*)
13823         # Note: We can NOT use -z defs as we might desire, because we do not
13824         # link with -lc, and that would cause any symbols used from libc to
13825         # always be unresolved, which means just about no library would
13826         # ever link correctly.  If we're not using GNU ld we use -z text
13827         # though, which does catch some bad symbols but isn't as heavy-handed
13828         # as -z defs.
13829         no_undefined_flag_CXX='${wl}-z,text'
13830         allow_undefined_flag_CXX='${wl}-z,nodefs'
13831         archive_cmds_need_lc_CXX=no
13832         hardcode_shlibpath_var_CXX=no
13833         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13834         hardcode_libdir_separator_CXX=':'
13835         link_all_deplibs_CXX=yes
13836         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13837         runpath_var='LD_RUN_PATH'
13838
13839         case $cc_basename in
13840           CC*)
13841             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843             ;;
13844           *)
13845             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13847             ;;
13848         esac
13849       ;;
13850
13851       tandem*)
13852         case $cc_basename in
13853           NCC*)
13854             # NonStop-UX NCC 3.20
13855             # FIXME: insert proper C++ library support
13856             ld_shlibs_CXX=no
13857             ;;
13858           *)
13859             # FIXME: insert proper C++ library support
13860             ld_shlibs_CXX=no
13861             ;;
13862         esac
13863         ;;
13864
13865       vxworks*)
13866         # FIXME: insert proper C++ library support
13867         ld_shlibs_CXX=no
13868         ;;
13869
13870       *)
13871         # FIXME: insert proper C++ library support
13872         ld_shlibs_CXX=no
13873         ;;
13874     esac
13875
13876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13877 $as_echo "$ld_shlibs_CXX" >&6; }
13878     test "$ld_shlibs_CXX" = no && can_build_shared=no
13879
13880     GCC_CXX="$GXX"
13881     LD_CXX="$LD"
13882
13883     ## CAVEAT EMPTOR:
13884     ## There is no encapsulation within the following macros, do not change
13885     ## the running order or otherwise move them around unless you know exactly
13886     ## what you are doing...
13887     # Dependencies to place before and after the object being linked:
13888 predep_objects_CXX=
13889 postdep_objects_CXX=
13890 predeps_CXX=
13891 postdeps_CXX=
13892 compiler_lib_search_path_CXX=
13893
13894 cat > conftest.$ac_ext <<_LT_EOF
13895 class Foo
13896 {
13897 public:
13898   Foo (void) { a = 0; }
13899 private:
13900   int a;
13901 };
13902 _LT_EOF
13903
13904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13905   (eval $ac_compile) 2>&5
13906   ac_status=$?
13907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13908   test $ac_status = 0; }; then
13909   # Parse the compiler output and extract the necessary
13910   # objects, libraries and library flags.
13911
13912   # Sentinel used to keep track of whether or not we are before
13913   # the conftest object file.
13914   pre_test_object_deps_done=no
13915
13916   for p in `eval "$output_verbose_link_cmd"`; do
13917     case $p in
13918
13919     -L* | -R* | -l*)
13920        # Some compilers place space between "-{L,R}" and the path.
13921        # Remove the space.
13922        if test $p = "-L" ||
13923           test $p = "-R"; then
13924          prev=$p
13925          continue
13926        else
13927          prev=
13928        fi
13929
13930        if test "$pre_test_object_deps_done" = no; then
13931          case $p in
13932          -L* | -R*)
13933            # Internal compiler library paths should come after those
13934            # provided the user.  The postdeps already come after the
13935            # user supplied libs so there is no need to process them.
13936            if test -z "$compiler_lib_search_path_CXX"; then
13937              compiler_lib_search_path_CXX="${prev}${p}"
13938            else
13939              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13940            fi
13941            ;;
13942          # The "-l" case would never come before the object being
13943          # linked, so don't bother handling this case.
13944          esac
13945        else
13946          if test -z "$postdeps_CXX"; then
13947            postdeps_CXX="${prev}${p}"
13948          else
13949            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13950          fi
13951        fi
13952        ;;
13953
13954     *.$objext)
13955        # This assumes that the test object file only shows up
13956        # once in the compiler output.
13957        if test "$p" = "conftest.$objext"; then
13958          pre_test_object_deps_done=yes
13959          continue
13960        fi
13961
13962        if test "$pre_test_object_deps_done" = no; then
13963          if test -z "$predep_objects_CXX"; then
13964            predep_objects_CXX="$p"
13965          else
13966            predep_objects_CXX="$predep_objects_CXX $p"
13967          fi
13968        else
13969          if test -z "$postdep_objects_CXX"; then
13970            postdep_objects_CXX="$p"
13971          else
13972            postdep_objects_CXX="$postdep_objects_CXX $p"
13973          fi
13974        fi
13975        ;;
13976
13977     *) ;; # Ignore the rest.
13978
13979     esac
13980   done
13981
13982   # Clean up.
13983   rm -f a.out a.exe
13984 else
13985   echo "libtool.m4: error: problem compiling CXX test program"
13986 fi
13987
13988 $RM -f confest.$objext
13989
13990 # PORTME: override above test on systems where it is broken
13991 case $host_os in
13992 interix[3-9]*)
13993   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13994   # hack all around it, let's just trust "g++" to DTRT.
13995   predep_objects_CXX=
13996   postdep_objects_CXX=
13997   postdeps_CXX=
13998   ;;
13999
14000 linux*)
14001   case `$CC -V 2>&1 | sed 5q` in
14002   *Sun\ C*)
14003     # Sun C++ 5.9
14004
14005     # The more standards-conforming stlport4 library is
14006     # incompatible with the Cstd library. Avoid specifying
14007     # it if it's in CXXFLAGS. Ignore libCrun as
14008     # -library=stlport4 depends on it.
14009     case " $CXX $CXXFLAGS " in
14010     *" -library=stlport4 "*)
14011       solaris_use_stlport4=yes
14012       ;;
14013     esac
14014
14015     if test "$solaris_use_stlport4" != yes; then
14016       postdeps_CXX='-library=Cstd -library=Crun'
14017     fi
14018     ;;
14019   esac
14020   ;;
14021
14022 solaris*)
14023   case $cc_basename in
14024   CC*)
14025     # The more standards-conforming stlport4 library is
14026     # incompatible with the Cstd library. Avoid specifying
14027     # it if it's in CXXFLAGS. Ignore libCrun as
14028     # -library=stlport4 depends on it.
14029     case " $CXX $CXXFLAGS " in
14030     *" -library=stlport4 "*)
14031       solaris_use_stlport4=yes
14032       ;;
14033     esac
14034
14035     # Adding this requires a known-good setup of shared libraries for
14036     # Sun compiler versions before 5.6, else PIC objects from an old
14037     # archive will be linked into the output, leading to subtle bugs.
14038     if test "$solaris_use_stlport4" != yes; then
14039       postdeps_CXX='-library=Cstd -library=Crun'
14040     fi
14041     ;;
14042   esac
14043   ;;
14044 esac
14045
14046
14047 case " $postdeps_CXX " in
14048 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14049 esac
14050  compiler_lib_search_dirs_CXX=
14051 if test -n "${compiler_lib_search_path_CXX}"; then
14052  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14053 fi
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085     lt_prog_compiler_wl_CXX=
14086 lt_prog_compiler_pic_CXX=
14087 lt_prog_compiler_static_CXX=
14088
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14090 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14091
14092   # C++ specific cases for pic, static, wl, etc.
14093   if test "$GXX" = yes; then
14094     lt_prog_compiler_wl_CXX='-Wl,'
14095     lt_prog_compiler_static_CXX='-static'
14096
14097     case $host_os in
14098     aix*)
14099       # All AIX code is PIC.
14100       if test "$host_cpu" = ia64; then
14101         # AIX 5 now supports IA64 processor
14102         lt_prog_compiler_static_CXX='-Bstatic'
14103       fi
14104       ;;
14105
14106     amigaos*)
14107       case $host_cpu in
14108       powerpc)
14109             # see comment about AmigaOS4 .so support
14110             lt_prog_compiler_pic_CXX='-fPIC'
14111         ;;
14112       m68k)
14113             # FIXME: we need at least 68020 code to build shared libraries, but
14114             # adding the `-m68020' flag to GCC prevents building anything better,
14115             # like `-m68040'.
14116             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14117         ;;
14118       esac
14119       ;;
14120
14121     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14122       # PIC is the default for these OSes.
14123       ;;
14124     mingw* | cygwin* | os2* | pw32* | cegcc*)
14125       # This hack is so that the source file can tell whether it is being
14126       # built for inclusion in a dll (and should export symbols for example).
14127       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14128       # (--disable-auto-import) libraries
14129       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14130       ;;
14131     darwin* | rhapsody*)
14132       # PIC is the default on this platform
14133       # Common symbols not allowed in MH_DYLIB files
14134       lt_prog_compiler_pic_CXX='-fno-common'
14135       ;;
14136     *djgpp*)
14137       # DJGPP does not support shared libraries at all
14138       lt_prog_compiler_pic_CXX=
14139       ;;
14140     interix[3-9]*)
14141       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14142       # Instead, we relocate shared libraries at runtime.
14143       ;;
14144     sysv4*MP*)
14145       if test -d /usr/nec; then
14146         lt_prog_compiler_pic_CXX=-Kconform_pic
14147       fi
14148       ;;
14149     hpux*)
14150       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14151       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14152       # sets the default TLS model and affects inlining.
14153       case $host_cpu in
14154       hppa*64*)
14155         ;;
14156       *)
14157         lt_prog_compiler_pic_CXX='-fPIC'
14158         ;;
14159       esac
14160       ;;
14161     *qnx* | *nto*)
14162       # QNX uses GNU C++, but need to define -shared option too, otherwise
14163       # it will coredump.
14164       lt_prog_compiler_pic_CXX='-fPIC -shared'
14165       ;;
14166     *)
14167       lt_prog_compiler_pic_CXX='-fPIC'
14168       ;;
14169     esac
14170   else
14171     case $host_os in
14172       aix[4-9]*)
14173         # All AIX code is PIC.
14174         if test "$host_cpu" = ia64; then
14175           # AIX 5 now supports IA64 processor
14176           lt_prog_compiler_static_CXX='-Bstatic'
14177         else
14178           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14179         fi
14180         ;;
14181       chorus*)
14182         case $cc_basename in
14183         cxch68*)
14184           # Green Hills C++ Compiler
14185           # _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"
14186           ;;
14187         esac
14188         ;;
14189       dgux*)
14190         case $cc_basename in
14191           ec++*)
14192             lt_prog_compiler_pic_CXX='-KPIC'
14193             ;;
14194           ghcx*)
14195             # Green Hills C++ Compiler
14196             lt_prog_compiler_pic_CXX='-pic'
14197             ;;
14198           *)
14199             ;;
14200         esac
14201         ;;
14202       freebsd* | dragonfly*)
14203         # FreeBSD uses GNU C++
14204         ;;
14205       hpux9* | hpux10* | hpux11*)
14206         case $cc_basename in
14207           CC*)
14208             lt_prog_compiler_wl_CXX='-Wl,'
14209             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14210             if test "$host_cpu" != ia64; then
14211               lt_prog_compiler_pic_CXX='+Z'
14212             fi
14213             ;;
14214           aCC*)
14215             lt_prog_compiler_wl_CXX='-Wl,'
14216             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14217             case $host_cpu in
14218             hppa*64*|ia64*)
14219               # +Z the default
14220               ;;
14221             *)
14222               lt_prog_compiler_pic_CXX='+Z'
14223               ;;
14224             esac
14225             ;;
14226           *)
14227             ;;
14228         esac
14229         ;;
14230       interix*)
14231         # This is c89, which is MS Visual C++ (no shared libs)
14232         # Anyone wants to do a port?
14233         ;;
14234       irix5* | irix6* | nonstopux*)
14235         case $cc_basename in
14236           CC*)
14237             lt_prog_compiler_wl_CXX='-Wl,'
14238             lt_prog_compiler_static_CXX='-non_shared'
14239             # CC pic flag -KPIC is the default.
14240             ;;
14241           *)
14242             ;;
14243         esac
14244         ;;
14245       linux* | k*bsd*-gnu)
14246         case $cc_basename in
14247           KCC*)
14248             # KAI C++ Compiler
14249             lt_prog_compiler_wl_CXX='--backend -Wl,'
14250             lt_prog_compiler_pic_CXX='-fPIC'
14251             ;;
14252           ecpc* )
14253             # old Intel C++ for x86_64 which still supported -KPIC.
14254             lt_prog_compiler_wl_CXX='-Wl,'
14255             lt_prog_compiler_pic_CXX='-KPIC'
14256             lt_prog_compiler_static_CXX='-static'
14257             ;;
14258           icpc* )
14259             # Intel C++, used to be incompatible with GCC.
14260             # ICC 10 doesn't accept -KPIC any more.
14261             lt_prog_compiler_wl_CXX='-Wl,'
14262             lt_prog_compiler_pic_CXX='-fPIC'
14263             lt_prog_compiler_static_CXX='-static'
14264             ;;
14265           pgCC* | pgcpp*)
14266             # Portland Group C++ compiler
14267             lt_prog_compiler_wl_CXX='-Wl,'
14268             lt_prog_compiler_pic_CXX='-fpic'
14269             lt_prog_compiler_static_CXX='-Bstatic'
14270             ;;
14271           cxx*)
14272             # Compaq C++
14273             # Make sure the PIC flag is empty.  It appears that all Alpha
14274             # Linux and Compaq Tru64 Unix objects are PIC.
14275             lt_prog_compiler_pic_CXX=
14276             lt_prog_compiler_static_CXX='-non_shared'
14277             ;;
14278           xlc* | xlC*)
14279             # IBM XL 8.0 on PPC
14280             lt_prog_compiler_wl_CXX='-Wl,'
14281             lt_prog_compiler_pic_CXX='-qpic'
14282             lt_prog_compiler_static_CXX='-qstaticlink'
14283             ;;
14284           *)
14285             case `$CC -V 2>&1 | sed 5q` in
14286             *Sun\ C*)
14287               # Sun C++ 5.9
14288               lt_prog_compiler_pic_CXX='-KPIC'
14289               lt_prog_compiler_static_CXX='-Bstatic'
14290               lt_prog_compiler_wl_CXX='-Qoption ld '
14291               ;;
14292             esac
14293             ;;
14294         esac
14295         ;;
14296       lynxos*)
14297         ;;
14298       m88k*)
14299         ;;
14300       mvs*)
14301         case $cc_basename in
14302           cxx*)
14303             lt_prog_compiler_pic_CXX='-W c,exportall'
14304             ;;
14305           *)
14306             ;;
14307         esac
14308         ;;
14309       netbsd*)
14310         ;;
14311       *qnx* | *nto*)
14312         # QNX uses GNU C++, but need to define -shared option too, otherwise
14313         # it will coredump.
14314         lt_prog_compiler_pic_CXX='-fPIC -shared'
14315         ;;
14316       osf3* | osf4* | osf5*)
14317         case $cc_basename in
14318           KCC*)
14319             lt_prog_compiler_wl_CXX='--backend -Wl,'
14320             ;;
14321           RCC*)
14322             # Rational C++ 2.4.1
14323             lt_prog_compiler_pic_CXX='-pic'
14324             ;;
14325           cxx*)
14326             # Digital/Compaq C++
14327             lt_prog_compiler_wl_CXX='-Wl,'
14328             # Make sure the PIC flag is empty.  It appears that all Alpha
14329             # Linux and Compaq Tru64 Unix objects are PIC.
14330             lt_prog_compiler_pic_CXX=
14331             lt_prog_compiler_static_CXX='-non_shared'
14332             ;;
14333           *)
14334             ;;
14335         esac
14336         ;;
14337       psos*)
14338         ;;
14339       solaris*)
14340         case $cc_basename in
14341           CC*)
14342             # Sun C++ 4.2, 5.x and Centerline C++
14343             lt_prog_compiler_pic_CXX='-KPIC'
14344             lt_prog_compiler_static_CXX='-Bstatic'
14345             lt_prog_compiler_wl_CXX='-Qoption ld '
14346             ;;
14347           gcx*)
14348             # Green Hills C++ Compiler
14349             lt_prog_compiler_pic_CXX='-PIC'
14350             ;;
14351           *)
14352             ;;
14353         esac
14354         ;;
14355       sunos4*)
14356         case $cc_basename in
14357           CC*)
14358             # Sun C++ 4.x
14359             lt_prog_compiler_pic_CXX='-pic'
14360             lt_prog_compiler_static_CXX='-Bstatic'
14361             ;;
14362           lcc*)
14363             # Lucid
14364             lt_prog_compiler_pic_CXX='-pic'
14365             ;;
14366           *)
14367             ;;
14368         esac
14369         ;;
14370       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14371         case $cc_basename in
14372           CC*)
14373             lt_prog_compiler_wl_CXX='-Wl,'
14374             lt_prog_compiler_pic_CXX='-KPIC'
14375             lt_prog_compiler_static_CXX='-Bstatic'
14376             ;;
14377         esac
14378         ;;
14379       tandem*)
14380         case $cc_basename in
14381           NCC*)
14382             # NonStop-UX NCC 3.20
14383             lt_prog_compiler_pic_CXX='-KPIC'
14384             ;;
14385           *)
14386             ;;
14387         esac
14388         ;;
14389       vxworks*)
14390         ;;
14391       *)
14392         lt_prog_compiler_can_build_shared_CXX=no
14393         ;;
14394     esac
14395   fi
14396
14397 case $host_os in
14398   # For platforms which do not support PIC, -DPIC is meaningless:
14399   *djgpp*)
14400     lt_prog_compiler_pic_CXX=
14401     ;;
14402   *)
14403     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14404     ;;
14405 esac
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14407 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14408
14409
14410
14411 #
14412 # Check to make sure the PIC flag actually works.
14413 #
14414 if test -n "$lt_prog_compiler_pic_CXX"; then
14415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14416 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14417 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14418   $as_echo_n "(cached) " >&6
14419 else
14420   lt_cv_prog_compiler_pic_works_CXX=no
14421    ac_outfile=conftest.$ac_objext
14422    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14423    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14424    # Insert the option either (1) after the last *FLAGS variable, or
14425    # (2) before a word containing "conftest.", or (3) at the end.
14426    # Note that $ac_compile itself does not contain backslashes and begins
14427    # with a dollar sign (not a hyphen), so the echo should work correctly.
14428    # The option is referenced via a variable to avoid confusing sed.
14429    lt_compile=`echo "$ac_compile" | $SED \
14430    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14432    -e 's:$: $lt_compiler_flag:'`
14433    (eval echo "\"\$as_me:14433: $lt_compile\"" >&5)
14434    (eval "$lt_compile" 2>conftest.err)
14435    ac_status=$?
14436    cat conftest.err >&5
14437    echo "$as_me:14437: \$? = $ac_status" >&5
14438    if (exit $ac_status) && test -s "$ac_outfile"; then
14439      # The compiler can only warn and ignore the option if not recognized
14440      # So say no if there are warnings other than the usual output.
14441      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14442      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14443      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14444        lt_cv_prog_compiler_pic_works_CXX=yes
14445      fi
14446    fi
14447    $RM conftest*
14448
14449 fi
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14451 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14452
14453 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14454     case $lt_prog_compiler_pic_CXX in
14455      "" | " "*) ;;
14456      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14457      esac
14458 else
14459     lt_prog_compiler_pic_CXX=
14460      lt_prog_compiler_can_build_shared_CXX=no
14461 fi
14462
14463 fi
14464
14465
14466
14467 #
14468 # Check to make sure the static flag actually works.
14469 #
14470 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14472 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14473 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14474   $as_echo_n "(cached) " >&6
14475 else
14476   lt_cv_prog_compiler_static_works_CXX=no
14477    save_LDFLAGS="$LDFLAGS"
14478    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14479    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14480    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14481      # The linker can only warn and ignore the option if not recognized
14482      # So say no if there are warnings
14483      if test -s conftest.err; then
14484        # Append any errors to the config.log.
14485        cat conftest.err 1>&5
14486        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14487        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14488        if diff conftest.exp conftest.er2 >/dev/null; then
14489          lt_cv_prog_compiler_static_works_CXX=yes
14490        fi
14491      else
14492        lt_cv_prog_compiler_static_works_CXX=yes
14493      fi
14494    fi
14495    $RM -r conftest*
14496    LDFLAGS="$save_LDFLAGS"
14497
14498 fi
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14500 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14501
14502 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14503     :
14504 else
14505     lt_prog_compiler_static_CXX=
14506 fi
14507
14508
14509
14510
14511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14512 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14513 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14514   $as_echo_n "(cached) " >&6
14515 else
14516   lt_cv_prog_compiler_c_o_CXX=no
14517    $RM -r conftest 2>/dev/null
14518    mkdir conftest
14519    cd conftest
14520    mkdir out
14521    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14522
14523    lt_compiler_flag="-o out/conftest2.$ac_objext"
14524    # Insert the option either (1) after the last *FLAGS variable, or
14525    # (2) before a word containing "conftest.", or (3) at the end.
14526    # Note that $ac_compile itself does not contain backslashes and begins
14527    # with a dollar sign (not a hyphen), so the echo should work correctly.
14528    lt_compile=`echo "$ac_compile" | $SED \
14529    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14530    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14531    -e 's:$: $lt_compiler_flag:'`
14532    (eval echo "\"\$as_me:14532: $lt_compile\"" >&5)
14533    (eval "$lt_compile" 2>out/conftest.err)
14534    ac_status=$?
14535    cat out/conftest.err >&5
14536    echo "$as_me:14536: \$? = $ac_status" >&5
14537    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14538    then
14539      # The compiler can only warn and ignore the option if not recognized
14540      # So say no if there are warnings
14541      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14542      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14543      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14544        lt_cv_prog_compiler_c_o_CXX=yes
14545      fi
14546    fi
14547    chmod u+w . 2>&5
14548    $RM conftest*
14549    # SGI C++ compiler will create directory out/ii_files/ for
14550    # template instantiation
14551    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14552    $RM out/* && rmdir out
14553    cd ..
14554    $RM -r conftest
14555    $RM conftest*
14556
14557 fi
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14559 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14560
14561
14562
14563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14564 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14565 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14566   $as_echo_n "(cached) " >&6
14567 else
14568   lt_cv_prog_compiler_c_o_CXX=no
14569    $RM -r conftest 2>/dev/null
14570    mkdir conftest
14571    cd conftest
14572    mkdir out
14573    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14574
14575    lt_compiler_flag="-o out/conftest2.$ac_objext"
14576    # Insert the option either (1) after the last *FLAGS variable, or
14577    # (2) before a word containing "conftest.", or (3) at the end.
14578    # Note that $ac_compile itself does not contain backslashes and begins
14579    # with a dollar sign (not a hyphen), so the echo should work correctly.
14580    lt_compile=`echo "$ac_compile" | $SED \
14581    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14582    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14583    -e 's:$: $lt_compiler_flag:'`
14584    (eval echo "\"\$as_me:14584: $lt_compile\"" >&5)
14585    (eval "$lt_compile" 2>out/conftest.err)
14586    ac_status=$?
14587    cat out/conftest.err >&5
14588    echo "$as_me:14588: \$? = $ac_status" >&5
14589    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14590    then
14591      # The compiler can only warn and ignore the option if not recognized
14592      # So say no if there are warnings
14593      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14594      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14595      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14596        lt_cv_prog_compiler_c_o_CXX=yes
14597      fi
14598    fi
14599    chmod u+w . 2>&5
14600    $RM conftest*
14601    # SGI C++ compiler will create directory out/ii_files/ for
14602    # template instantiation
14603    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14604    $RM out/* && rmdir out
14605    cd ..
14606    $RM -r conftest
14607    $RM conftest*
14608
14609 fi
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14611 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14612
14613
14614
14615
14616 hard_links="nottested"
14617 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14618   # do not overwrite the value of need_locks provided by the user
14619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14620 $as_echo_n "checking if we can lock with hard links... " >&6; }
14621   hard_links=yes
14622   $RM conftest*
14623   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14624   touch conftest.a
14625   ln conftest.a conftest.b 2>&5 || hard_links=no
14626   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14628 $as_echo "$hard_links" >&6; }
14629   if test "$hard_links" = no; then
14630     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14631 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14632     need_locks=warn
14633   fi
14634 else
14635   need_locks=no
14636 fi
14637
14638
14639
14640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14641 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14642
14643   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14644   case $host_os in
14645   aix[4-9]*)
14646     # If we're using GNU nm, then we don't want the "-C" option.
14647     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14648     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14649       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'
14650     else
14651       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'
14652     fi
14653     ;;
14654   pw32*)
14655     export_symbols_cmds_CXX="$ltdll_cmds"
14656   ;;
14657   cygwin* | mingw* | cegcc*)
14658     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'
14659   ;;
14660   *)
14661     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14662   ;;
14663   esac
14664   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14665
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14667 $as_echo "$ld_shlibs_CXX" >&6; }
14668 test "$ld_shlibs_CXX" = no && can_build_shared=no
14669
14670 with_gnu_ld_CXX=$with_gnu_ld
14671
14672
14673
14674
14675
14676
14677 #
14678 # Do we need to explicitly link libc?
14679 #
14680 case "x$archive_cmds_need_lc_CXX" in
14681 x|xyes)
14682   # Assume -lc should be added
14683   archive_cmds_need_lc_CXX=yes
14684
14685   if test "$enable_shared" = yes && test "$GCC" = yes; then
14686     case $archive_cmds_CXX in
14687     *'~'*)
14688       # FIXME: we may have to deal with multi-command sequences.
14689       ;;
14690     '$CC '*)
14691       # Test whether the compiler implicitly links with -lc since on some
14692       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14693       # to ld, don't add -lc before -lgcc.
14694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14696       $RM conftest*
14697       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14698
14699       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14700   (eval $ac_compile) 2>&5
14701   ac_status=$?
14702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14703   test $ac_status = 0; } 2>conftest.err; then
14704         soname=conftest
14705         lib=conftest
14706         libobjs=conftest.$ac_objext
14707         deplibs=
14708         wl=$lt_prog_compiler_wl_CXX
14709         pic_flag=$lt_prog_compiler_pic_CXX
14710         compiler_flags=-v
14711         linker_flags=-v
14712         verstring=
14713         output_objdir=.
14714         libname=conftest
14715         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14716         allow_undefined_flag_CXX=
14717         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14718   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14719   ac_status=$?
14720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14721   test $ac_status = 0; }
14722         then
14723           archive_cmds_need_lc_CXX=no
14724         else
14725           archive_cmds_need_lc_CXX=yes
14726         fi
14727         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14728       else
14729         cat conftest.err 1>&5
14730       fi
14731       $RM conftest*
14732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14733 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14734       ;;
14735     esac
14736   fi
14737   ;;
14738 esac
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14804 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14805
14806 library_names_spec=
14807 libname_spec='lib$name'
14808 soname_spec=
14809 shrext_cmds=".so"
14810 postinstall_cmds=
14811 postuninstall_cmds=
14812 finish_cmds=
14813 finish_eval=
14814 shlibpath_var=
14815 shlibpath_overrides_runpath=unknown
14816 version_type=none
14817 dynamic_linker="$host_os ld.so"
14818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14819 need_lib_prefix=unknown
14820 hardcode_into_libs=no
14821
14822 # when you set need_version to no, make sure it does not cause -set_version
14823 # flags to be left without arguments
14824 need_version=unknown
14825
14826 case $host_os in
14827 aix3*)
14828   version_type=linux
14829   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14830   shlibpath_var=LIBPATH
14831
14832   # AIX 3 has no versioning support, so we append a major version to the name.
14833   soname_spec='${libname}${release}${shared_ext}$major'
14834   ;;
14835
14836 aix[4-9]*)
14837   version_type=linux
14838   need_lib_prefix=no
14839   need_version=no
14840   hardcode_into_libs=yes
14841   if test "$host_cpu" = ia64; then
14842     # AIX 5 supports IA64
14843     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14844     shlibpath_var=LD_LIBRARY_PATH
14845   else
14846     # With GCC up to 2.95.x, collect2 would create an import file
14847     # for dependence libraries.  The import file would start with
14848     # the line `#! .'.  This would cause the generated library to
14849     # depend on `.', always an invalid library.  This was fixed in
14850     # development snapshots of GCC prior to 3.0.
14851     case $host_os in
14852       aix4 | aix4.[01] | aix4.[01].*)
14853       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14854            echo ' yes '
14855            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14856         :
14857       else
14858         can_build_shared=no
14859       fi
14860       ;;
14861     esac
14862     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14863     # soname into executable. Probably we can add versioning support to
14864     # collect2, so additional links can be useful in future.
14865     if test "$aix_use_runtimelinking" = yes; then
14866       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14867       # instead of lib<name>.a to let people know that these are not
14868       # typical AIX shared libraries.
14869       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870     else
14871       # We preserve .a as extension for shared libraries through AIX4.2
14872       # and later when we are not doing run time linking.
14873       library_names_spec='${libname}${release}.a $libname.a'
14874       soname_spec='${libname}${release}${shared_ext}$major'
14875     fi
14876     shlibpath_var=LIBPATH
14877   fi
14878   ;;
14879
14880 amigaos*)
14881   case $host_cpu in
14882   powerpc)
14883     # Since July 2007 AmigaOS4 officially supports .so libraries.
14884     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886     ;;
14887   m68k)
14888     library_names_spec='$libname.ixlibrary $libname.a'
14889     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14890     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'
14891     ;;
14892   esac
14893   ;;
14894
14895 beos*)
14896   library_names_spec='${libname}${shared_ext}'
14897   dynamic_linker="$host_os ld.so"
14898   shlibpath_var=LIBRARY_PATH
14899   ;;
14900
14901 bsdi[45]*)
14902   version_type=linux
14903   need_version=no
14904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905   soname_spec='${libname}${release}${shared_ext}$major'
14906   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14907   shlibpath_var=LD_LIBRARY_PATH
14908   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14909   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14910   # the default ld.so.conf also contains /usr/contrib/lib and
14911   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14912   # libtool to hard-code these into programs
14913   ;;
14914
14915 cygwin* | mingw* | pw32* | cegcc*)
14916   version_type=windows
14917   shrext_cmds=".dll"
14918   need_version=no
14919   need_lib_prefix=no
14920
14921   case $GCC,$host_os in
14922   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14923     library_names_spec='$libname.dll.a'
14924     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14925     postinstall_cmds='base_file=`basename \${file}`~
14926       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14927       dldir=$destdir/`dirname \$dlpath`~
14928       test -d \$dldir || mkdir -p \$dldir~
14929       $install_prog $dir/$dlname \$dldir/$dlname~
14930       chmod a+x \$dldir/$dlname~
14931       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14932         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14933       fi'
14934     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14935       dlpath=$dir/\$dldll~
14936        $RM \$dlpath'
14937     shlibpath_overrides_runpath=yes
14938
14939     case $host_os in
14940     cygwin*)
14941       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14942       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14943       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14944       ;;
14945     mingw* | cegcc*)
14946       # MinGW DLLs use traditional 'lib' prefix
14947       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14948       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14949       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14950         # It is most probably a Windows format PATH printed by
14951         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14952         # path with ; separators, and with drive letters. We can handle the
14953         # drive letters (cygwin fileutils understands them), so leave them,
14954         # especially as we might pass files found there to a mingw objdump,
14955         # which wouldn't understand a cygwinified path. Ahh.
14956         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14957       else
14958         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14959       fi
14960       ;;
14961     pw32*)
14962       # pw32 DLLs use 'pw' prefix rather than 'lib'
14963       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14964       ;;
14965     esac
14966     ;;
14967
14968   *)
14969     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14970     ;;
14971   esac
14972   dynamic_linker='Win32 ld.exe'
14973   # FIXME: first we should search . and the directory the executable is in
14974   shlibpath_var=PATH
14975   ;;
14976
14977 darwin* | rhapsody*)
14978   dynamic_linker="$host_os dyld"
14979   version_type=darwin
14980   need_lib_prefix=no
14981   need_version=no
14982   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14983   soname_spec='${libname}${release}${major}$shared_ext'
14984   shlibpath_overrides_runpath=yes
14985   shlibpath_var=DYLD_LIBRARY_PATH
14986   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14987
14988   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14989   ;;
14990
14991 dgux*)
14992   version_type=linux
14993   need_lib_prefix=no
14994   need_version=no
14995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14996   soname_spec='${libname}${release}${shared_ext}$major'
14997   shlibpath_var=LD_LIBRARY_PATH
14998   ;;
14999
15000 freebsd1*)
15001   dynamic_linker=no
15002   ;;
15003
15004 freebsd* | dragonfly*)
15005   # DragonFly does not have aout.  When/if they implement a new
15006   # versioning mechanism, adjust this.
15007   if test -x /usr/bin/objformat; then
15008     objformat=`/usr/bin/objformat`
15009   else
15010     case $host_os in
15011     freebsd[123]*) objformat=aout ;;
15012     *) objformat=elf ;;
15013     esac
15014   fi
15015   version_type=freebsd-$objformat
15016   case $version_type in
15017     freebsd-elf*)
15018       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15019       need_version=no
15020       need_lib_prefix=no
15021       ;;
15022     freebsd-*)
15023       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15024       need_version=yes
15025       ;;
15026   esac
15027   shlibpath_var=LD_LIBRARY_PATH
15028   case $host_os in
15029   freebsd2*)
15030     shlibpath_overrides_runpath=yes
15031     ;;
15032   freebsd3.[01]* | freebsdelf3.[01]*)
15033     shlibpath_overrides_runpath=yes
15034     hardcode_into_libs=yes
15035     ;;
15036   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15037   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15038     shlibpath_overrides_runpath=no
15039     hardcode_into_libs=yes
15040     ;;
15041   *) # from 4.6 on, and DragonFly
15042     shlibpath_overrides_runpath=yes
15043     hardcode_into_libs=yes
15044     ;;
15045   esac
15046   ;;
15047
15048 gnu*)
15049   version_type=linux
15050   need_lib_prefix=no
15051   need_version=no
15052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15053   soname_spec='${libname}${release}${shared_ext}$major'
15054   shlibpath_var=LD_LIBRARY_PATH
15055   hardcode_into_libs=yes
15056   ;;
15057
15058 hpux9* | hpux10* | hpux11*)
15059   # Give a soname corresponding to the major version so that dld.sl refuses to
15060   # link against other versions.
15061   version_type=sunos
15062   need_lib_prefix=no
15063   need_version=no
15064   case $host_cpu in
15065   ia64*)
15066     shrext_cmds='.so'
15067     hardcode_into_libs=yes
15068     dynamic_linker="$host_os dld.so"
15069     shlibpath_var=LD_LIBRARY_PATH
15070     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15072     soname_spec='${libname}${release}${shared_ext}$major'
15073     if test "X$HPUX_IA64_MODE" = X32; then
15074       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15075     else
15076       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15077     fi
15078     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15079     ;;
15080   hppa*64*)
15081     shrext_cmds='.sl'
15082     hardcode_into_libs=yes
15083     dynamic_linker="$host_os dld.sl"
15084     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087     soname_spec='${libname}${release}${shared_ext}$major'
15088     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15089     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15090     ;;
15091   *)
15092     shrext_cmds='.sl'
15093     dynamic_linker="$host_os dld.sl"
15094     shlibpath_var=SHLIB_PATH
15095     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097     soname_spec='${libname}${release}${shared_ext}$major'
15098     ;;
15099   esac
15100   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15101   postinstall_cmds='chmod 555 $lib'
15102   ;;
15103
15104 interix[3-9]*)
15105   version_type=linux
15106   need_lib_prefix=no
15107   need_version=no
15108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15109   soname_spec='${libname}${release}${shared_ext}$major'
15110   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15111   shlibpath_var=LD_LIBRARY_PATH
15112   shlibpath_overrides_runpath=no
15113   hardcode_into_libs=yes
15114   ;;
15115
15116 irix5* | irix6* | nonstopux*)
15117   case $host_os in
15118     nonstopux*) version_type=nonstopux ;;
15119     *)
15120         if test "$lt_cv_prog_gnu_ld" = yes; then
15121                 version_type=linux
15122         else
15123                 version_type=irix
15124         fi ;;
15125   esac
15126   need_lib_prefix=no
15127   need_version=no
15128   soname_spec='${libname}${release}${shared_ext}$major'
15129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15130   case $host_os in
15131   irix5* | nonstopux*)
15132     libsuff= shlibsuff=
15133     ;;
15134   *)
15135     case $LD in # libtool.m4 will add one of these switches to LD
15136     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15137       libsuff= shlibsuff= libmagic=32-bit;;
15138     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15139       libsuff=32 shlibsuff=N32 libmagic=N32;;
15140     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15141       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15142     *) libsuff= shlibsuff= libmagic=never-match;;
15143     esac
15144     ;;
15145   esac
15146   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15147   shlibpath_overrides_runpath=no
15148   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15149   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15150   hardcode_into_libs=yes
15151   ;;
15152
15153 # No shared lib support for Linux oldld, aout, or coff.
15154 linux*oldld* | linux*aout* | linux*coff*)
15155   dynamic_linker=no
15156   ;;
15157
15158 # This must be Linux ELF.
15159 linux* | k*bsd*-gnu)
15160   version_type=linux
15161   need_lib_prefix=no
15162   need_version=no
15163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15164   soname_spec='${libname}${release}${shared_ext}$major'
15165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15166   shlibpath_var=LD_LIBRARY_PATH
15167   shlibpath_overrides_runpath=no
15168   # Some binutils ld are patched to set DT_RUNPATH
15169   save_LDFLAGS=$LDFLAGS
15170   save_libdir=$libdir
15171   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15172        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h.  */
15175
15176 int
15177 main ()
15178 {
15179
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 if ac_fn_cxx_try_link "$LINENO"; then :
15185   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15186   shlibpath_overrides_runpath=yes
15187 fi
15188 fi
15189 rm -f core conftest.err conftest.$ac_objext \
15190     conftest$ac_exeext conftest.$ac_ext
15191   LDFLAGS=$save_LDFLAGS
15192   libdir=$save_libdir
15193
15194   # This implies no fast_install, which is unacceptable.
15195   # Some rework will be needed to allow for fast_install
15196   # before this can be enabled.
15197   hardcode_into_libs=yes
15198
15199   # Append ld.so.conf contents to the search path
15200   if test -f /etc/ld.so.conf; then
15201     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' ' '`
15202     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15203   fi
15204
15205   # We used to test for /lib/ld.so.1 and disable shared libraries on
15206   # powerpc, because MkLinux only supported shared libraries with the
15207   # GNU dynamic linker.  Since this was broken with cross compilers,
15208   # most powerpc-linux boxes support dynamic linking these days and
15209   # people can always --disable-shared, the test was removed, and we
15210   # assume the GNU/Linux dynamic linker is in use.
15211   dynamic_linker='GNU/Linux ld.so'
15212   ;;
15213
15214 netbsd*)
15215   version_type=sunos
15216   need_lib_prefix=no
15217   need_version=no
15218   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15220     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15221     dynamic_linker='NetBSD (a.out) ld.so'
15222   else
15223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15224     soname_spec='${libname}${release}${shared_ext}$major'
15225     dynamic_linker='NetBSD ld.elf_so'
15226   fi
15227   shlibpath_var=LD_LIBRARY_PATH
15228   shlibpath_overrides_runpath=yes
15229   hardcode_into_libs=yes
15230   ;;
15231
15232 newsos6)
15233   version_type=linux
15234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15235   shlibpath_var=LD_LIBRARY_PATH
15236   shlibpath_overrides_runpath=yes
15237   ;;
15238
15239 *nto* | *qnx*)
15240   version_type=qnx
15241   need_lib_prefix=no
15242   need_version=no
15243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244   soname_spec='${libname}${release}${shared_ext}$major'
15245   shlibpath_var=LD_LIBRARY_PATH
15246   shlibpath_overrides_runpath=no
15247   hardcode_into_libs=yes
15248   dynamic_linker='ldqnx.so'
15249   ;;
15250
15251 openbsd*)
15252   version_type=sunos
15253   sys_lib_dlsearch_path_spec="/usr/lib"
15254   need_lib_prefix=no
15255   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15256   case $host_os in
15257     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15258     *)                          need_version=no  ;;
15259   esac
15260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15262   shlibpath_var=LD_LIBRARY_PATH
15263   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15264     case $host_os in
15265       openbsd2.[89] | openbsd2.[89].*)
15266         shlibpath_overrides_runpath=no
15267         ;;
15268       *)
15269         shlibpath_overrides_runpath=yes
15270         ;;
15271       esac
15272   else
15273     shlibpath_overrides_runpath=yes
15274   fi
15275   ;;
15276
15277 os2*)
15278   libname_spec='$name'
15279   shrext_cmds=".dll"
15280   need_lib_prefix=no
15281   library_names_spec='$libname${shared_ext} $libname.a'
15282   dynamic_linker='OS/2 ld.exe'
15283   shlibpath_var=LIBPATH
15284   ;;
15285
15286 osf3* | osf4* | osf5*)
15287   version_type=osf
15288   need_lib_prefix=no
15289   need_version=no
15290   soname_spec='${libname}${release}${shared_ext}$major'
15291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292   shlibpath_var=LD_LIBRARY_PATH
15293   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15294   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15295   ;;
15296
15297 rdos*)
15298   dynamic_linker=no
15299   ;;
15300
15301 solaris*)
15302   version_type=linux
15303   need_lib_prefix=no
15304   need_version=no
15305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15306   soname_spec='${libname}${release}${shared_ext}$major'
15307   shlibpath_var=LD_LIBRARY_PATH
15308   shlibpath_overrides_runpath=yes
15309   hardcode_into_libs=yes
15310   # ldd complains unless libraries are executable
15311   postinstall_cmds='chmod +x $lib'
15312   ;;
15313
15314 sunos4*)
15315   version_type=sunos
15316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15317   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15318   shlibpath_var=LD_LIBRARY_PATH
15319   shlibpath_overrides_runpath=yes
15320   if test "$with_gnu_ld" = yes; then
15321     need_lib_prefix=no
15322   fi
15323   need_version=yes
15324   ;;
15325
15326 sysv4 | sysv4.3*)
15327   version_type=linux
15328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15329   soname_spec='${libname}${release}${shared_ext}$major'
15330   shlibpath_var=LD_LIBRARY_PATH
15331   case $host_vendor in
15332     sni)
15333       shlibpath_overrides_runpath=no
15334       need_lib_prefix=no
15335       runpath_var=LD_RUN_PATH
15336       ;;
15337     siemens)
15338       need_lib_prefix=no
15339       ;;
15340     motorola)
15341       need_lib_prefix=no
15342       need_version=no
15343       shlibpath_overrides_runpath=no
15344       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15345       ;;
15346   esac
15347   ;;
15348
15349 sysv4*MP*)
15350   if test -d /usr/nec ;then
15351     version_type=linux
15352     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15353     soname_spec='$libname${shared_ext}.$major'
15354     shlibpath_var=LD_LIBRARY_PATH
15355   fi
15356   ;;
15357
15358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15359   version_type=freebsd-elf
15360   need_lib_prefix=no
15361   need_version=no
15362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15363   soname_spec='${libname}${release}${shared_ext}$major'
15364   shlibpath_var=LD_LIBRARY_PATH
15365   shlibpath_overrides_runpath=yes
15366   hardcode_into_libs=yes
15367   if test "$with_gnu_ld" = yes; then
15368     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15369   else
15370     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15371     case $host_os in
15372       sco3.2v5*)
15373         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15374         ;;
15375     esac
15376   fi
15377   sys_lib_dlsearch_path_spec='/usr/lib'
15378   ;;
15379
15380 tpf*)
15381   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15382   version_type=linux
15383   need_lib_prefix=no
15384   need_version=no
15385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386   shlibpath_var=LD_LIBRARY_PATH
15387   shlibpath_overrides_runpath=no
15388   hardcode_into_libs=yes
15389   ;;
15390
15391 uts4*)
15392   version_type=linux
15393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394   soname_spec='${libname}${release}${shared_ext}$major'
15395   shlibpath_var=LD_LIBRARY_PATH
15396   ;;
15397
15398 *)
15399   dynamic_linker=no
15400   ;;
15401 esac
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15403 $as_echo "$dynamic_linker" >&6; }
15404 test "$dynamic_linker" = no && can_build_shared=no
15405
15406 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15407 if test "$GCC" = yes; then
15408   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15409 fi
15410
15411 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15412   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15413 fi
15414 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15415   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15416 fi
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15454 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15455 hardcode_action_CXX=
15456 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15457    test -n "$runpath_var_CXX" ||
15458    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15459
15460   # We can hardcode non-existent directories.
15461   if test "$hardcode_direct_CXX" != no &&
15462      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15463      # have to relink, otherwise we might link with an installed library
15464      # when we should be linking with a yet-to-be-installed one
15465      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15466      test "$hardcode_minus_L_CXX" != no; then
15467     # Linking always hardcodes the temporary library directory.
15468     hardcode_action_CXX=relink
15469   else
15470     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15471     hardcode_action_CXX=immediate
15472   fi
15473 else
15474   # We cannot hardcode anything, or else we can only hardcode existing
15475   # directories.
15476   hardcode_action_CXX=unsupported
15477 fi
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15479 $as_echo "$hardcode_action_CXX" >&6; }
15480
15481 if test "$hardcode_action_CXX" = relink ||
15482    test "$inherit_rpath_CXX" = yes; then
15483   # Fast installation is not supported
15484   enable_fast_install=no
15485 elif test "$shlibpath_overrides_runpath" = yes ||
15486      test "$enable_shared" = no; then
15487   # Fast installation is not necessary
15488   enable_fast_install=needless
15489 fi
15490
15491
15492
15493
15494
15495
15496
15497   fi # test -n "$compiler"
15498
15499   CC=$lt_save_CC
15500   LDCXX=$LD
15501   LD=$lt_save_LD
15502   GCC=$lt_save_GCC
15503   with_gnu_ld=$lt_save_with_gnu_ld
15504   lt_cv_path_LDCXX=$lt_cv_path_LD
15505   lt_cv_path_LD=$lt_save_path_LD
15506   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15507   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15508 fi # test "$_lt_caught_CXX_error" != yes
15509
15510 ac_ext=c
15511 ac_cpp='$CPP $CPPFLAGS'
15512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528         ac_config_commands="$ac_config_commands libtool"
15529
15530
15531
15532
15533 # Only expand once:
15534
15535
15536
15537
15538 if test x$use_libtool != xno; then
15539    DEFAULT_OBJECT_TYPE=".lo"
15540    DEFAULT_ARCHIVE_TYPE=".la"
15541    DEFAULT_SHARED_OBJECT_TYPE=".la"
15542    LIBTOOL="\$(LIBTOOL)"
15543    LIBTOOL_INSTALL_TARGET="libtool-install"
15544    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15545    LIBTOOL_CLEAN_TARGET="libtool-clean"
15546    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15547    FD_PLUGIN_DIR="src/plugins/fd"
15548    have_plugins=yes
15549 else
15550    DEFAULT_OBJECT_TYPE=".o"
15551    DEFAULT_ARCHIVE_TYPE=".a"
15552    DEFAULT_SHARED_OBJECT_TYPE=".so"
15553    LIBTOOL="# \$(LIBTOOL)"
15554    LIBTOOL_INSTALL_TARGET=""
15555    LIBTOOL_UNINSTALL_TARGET=""
15556    LIBTOOL_CLEAN_TARGET=""
15557    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15558    FD_PLUGIN_DIR=""
15559    have_plugins=no
15560 fi
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572 # Check whether --enable-includes was given.
15573 if test "${enable_includes+set}" = set; then :
15574   enableval=$enable_includes;
15575        if test x$enableval = xyes; then
15576           install_includes=yes
15577        fi
15578
15579
15580 fi
15581
15582
15583
15584 if test x$use_libtool != xno -a x$install_includes = xyes; then
15585    INCLUDE_INSTALL_TARGET="install-includes"
15586    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15587 else
15588    INCLUDE_INSTALL_TARGET=""
15589    INCLUDE_UNINSTALL_TARGET=""
15590 fi
15591
15592
15593
15594
15595
15596 case $host_os in
15597   *cygwin* ) CYGWIN=yes;;
15598          * ) CYGWIN=no;;
15599 esac
15600
15601 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15602 then
15603
15604
15605 if $TRUEPRG; then
15606   HAVE_SUN_OS_TRUE=
15607   HAVE_SUN_OS_FALSE='#'
15608 else
15609   HAVE_SUN_OS_TRUE='#'
15610   HAVE_SUN_OS_FALSE=
15611 fi
15612         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15613
15614 else
15615
15616
15617 if $FALSEPRG; then
15618   HAVE_SUN_OS_TRUE=
15619   HAVE_SUN_OS_FALSE='#'
15620 else
15621   HAVE_SUN_OS_TRUE='#'
15622   HAVE_SUN_OS_FALSE=
15623 fi
15624 fi
15625
15626 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15627 then
15628
15629
15630 if $TRUEPRG; then
15631   HAVE_OSF1_OS_TRUE=
15632   HAVE_OSF1_OS_FALSE='#'
15633 else
15634   HAVE_OSF1_OS_TRUE='#'
15635   HAVE_OSF1_OS_FALSE=
15636 fi
15637         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15638
15639 else
15640
15641
15642 if $FALSEPRG; then
15643   HAVE_OSF1_OS_TRUE=
15644   HAVE_OSF1_OS_FALSE='#'
15645 else
15646   HAVE_OSF1_OS_TRUE='#'
15647   HAVE_OSF1_OS_FALSE=
15648 fi
15649 fi
15650
15651 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15652 then
15653
15654
15655 if $TRUEPRG; then
15656   HAVE_AIX_OS_TRUE=
15657   HAVE_AIX_OS_FALSE='#'
15658 else
15659   HAVE_AIX_OS_TRUE='#'
15660   HAVE_AIX_OS_FALSE=
15661 fi
15662         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15663
15664 else
15665
15666
15667 if $FALSEPRG; then
15668   HAVE_AIX_OS_TRUE=
15669   HAVE_AIX_OS_FALSE='#'
15670 else
15671   HAVE_AIX_OS_TRUE='#'
15672   HAVE_AIX_OS_FALSE=
15673 fi
15674 fi
15675
15676 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15677 then
15678
15679
15680 if $TRUEPRG; then
15681   HAVE_HPUX_OS_TRUE=
15682   HAVE_HPUX_OS_FALSE='#'
15683 else
15684   HAVE_HPUX_OS_TRUE='#'
15685   HAVE_HPUX_OS_FALSE=
15686 fi
15687         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15688
15689 else
15690
15691
15692 if $FALSEPRG; then
15693   HAVE_HPUX_OS_TRUE=
15694   HAVE_HPUX_OS_FALSE='#'
15695 else
15696   HAVE_HPUX_OS_TRUE='#'
15697   HAVE_HPUX_OS_FALSE=
15698 fi
15699 fi
15700
15701 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15702 then
15703
15704
15705 if $TRUEPRG; then
15706   HAVE_LINUX_OS_TRUE=
15707   HAVE_LINUX_OS_FALSE='#'
15708 else
15709   HAVE_LINUX_OS_TRUE='#'
15710   HAVE_LINUX_OS_FALSE=
15711 fi
15712         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15713
15714 else
15715
15716
15717 if $FALSEPRG; then
15718   HAVE_LINUX_OS_TRUE=
15719   HAVE_LINUX_OS_FALSE='#'
15720 else
15721   HAVE_LINUX_OS_TRUE='#'
15722   HAVE_LINUX_OS_FALSE=
15723 fi
15724 fi
15725
15726 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15727 then
15728
15729
15730 if $TRUEPRG; then
15731   HAVE_FREEBSD_OS_TRUE=
15732   HAVE_FREEBSD_OS_FALSE='#'
15733 else
15734   HAVE_FREEBSD_OS_TRUE='#'
15735   HAVE_FREEBSD_OS_FALSE=
15736 fi
15737         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15738
15739 else
15740
15741
15742 if $FALSEPRG; then
15743   HAVE_FREEBSD_OS_TRUE=
15744   HAVE_FREEBSD_OS_FALSE='#'
15745 else
15746   HAVE_FREEBSD_OS_TRUE='#'
15747   HAVE_FREEBSD_OS_FALSE=
15748 fi
15749 fi
15750
15751 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15752 then
15753
15754
15755 if $TRUEPRG; then
15756   HAVE_NETBSD_OS_TRUE=
15757   HAVE_NETBSD_OS_FALSE='#'
15758 else
15759   HAVE_NETBSD_OS_TRUE='#'
15760   HAVE_NETBSD_OS_FALSE=
15761 fi
15762         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15763
15764 else
15765
15766
15767 if $FALSEPRG; then
15768   HAVE_NETBSD_OS_TRUE=
15769   HAVE_NETBSD_OS_FALSE='#'
15770 else
15771   HAVE_NETBSD_OS_TRUE='#'
15772   HAVE_NETBSD_OS_FALSE=
15773 fi
15774 fi
15775
15776 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15777 then
15778
15779
15780 if $TRUEPRG; then
15781   HAVE_OPENBSD_OS_TRUE=
15782   HAVE_OPENBSD_OS_FALSE='#'
15783 else
15784   HAVE_OPENBSD_OS_TRUE='#'
15785   HAVE_OPENBSD_OS_FALSE=
15786 fi
15787         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15788
15789 else
15790
15791
15792 if $FALSEPRG; then
15793   HAVE_OPENBSD_OS_TRUE=
15794   HAVE_OPENBSD_OS_FALSE='#'
15795 else
15796   HAVE_OPENBSD_OS_TRUE='#'
15797   HAVE_OPENBSD_OS_FALSE=
15798 fi
15799 fi
15800
15801 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15802 then
15803
15804
15805 if $TRUEPRG; then
15806   HAVE_BSDI_OS_TRUE=
15807   HAVE_BSDI_OS_FALSE='#'
15808 else
15809   HAVE_BSDI_OS_TRUE='#'
15810   HAVE_BSDI_OS_FALSE=
15811 fi
15812         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15813
15814 else
15815
15816
15817 if $FALSEPRG; then
15818   HAVE_BSDI_OS_TRUE=
15819   HAVE_BSDI_OS_FALSE='#'
15820 else
15821   HAVE_BSDI_OS_TRUE='#'
15822   HAVE_BSDI_OS_FALSE=
15823 fi
15824 fi
15825
15826 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15827 then
15828
15829
15830 if $TRUEPRG; then
15831   HAVE_SGI_OS_TRUE=
15832   HAVE_SGI_OS_FALSE='#'
15833 else
15834   HAVE_SGI_OS_TRUE='#'
15835   HAVE_SGI_OS_FALSE=
15836 fi
15837         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15838
15839 else
15840
15841
15842 if $FALSEPRG; then
15843   HAVE_SGI_OS_TRUE=
15844   HAVE_SGI_OS_FALSE='#'
15845 else
15846   HAVE_SGI_OS_TRUE='#'
15847   HAVE_SGI_OS_FALSE=
15848 fi
15849 fi
15850
15851 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15852 then
15853
15854
15855 if $TRUEPRG; then
15856   HAVE_IRIX_OS_TRUE=
15857   HAVE_IRIX_OS_FALSE='#'
15858 else
15859   HAVE_IRIX_OS_TRUE='#'
15860   HAVE_IRIX_OS_FALSE=
15861 fi
15862         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15863
15864 else
15865
15866
15867 if $FALSEPRG; then
15868   HAVE_IRIX_OS_TRUE=
15869   HAVE_IRIX_OS_FALSE='#'
15870 else
15871   HAVE_IRIX_OS_TRUE='#'
15872   HAVE_IRIX_OS_FALSE=
15873 fi
15874 fi
15875
15876 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15877 then
15878
15879
15880 if $TRUEPRG; then
15881   HAVE_DARWIN_OS_TRUE=
15882   HAVE_DARWIN_OS_FALSE='#'
15883 else
15884   HAVE_DARWIN_OS_TRUE='#'
15885   HAVE_DARWIN_OS_FALSE=
15886 fi
15887     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15888
15889 else
15890
15891
15892 if $FALSEPRG; then
15893   HAVE_DARWIN_OS_TRUE=
15894   HAVE_DARWIN_OS_FALSE='#'
15895 else
15896   HAVE_DARWIN_OS_TRUE='#'
15897   HAVE_DARWIN_OS_FALSE=
15898 fi
15899 fi
15900
15901
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15903 $as_echo_n "checking for Operating System Distribution... " >&6; }
15904 if test "x$DISTNAME" != "x"
15905 then
15906         echo "distname set to $DISTNAME"
15907 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15908 then
15909         DISTNAME=alpha
15910 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15911 then
15912         DISTNAME=aix
15913 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15914 then
15915         DISTNAME=hpux
15916 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15917 then
15918         DISTNAME=solaris
15919 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15920 then
15921         DISTNAME=freebsd
15922 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15923 then
15924         DISTNAME=netbsd
15925 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15926 then
15927         DISTNAME=openbsd
15928 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15929 then
15930         DISTNAME=irix
15931 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15932 then
15933         DISTNAME=bsdi
15934 elif test -f /etc/SuSE-release
15935 then
15936         DISTNAME=suse
15937 elif test -d /etc/SuSEconfig
15938 then
15939         DISTNAME=suse5
15940 elif test -f /etc/mandrake-release
15941 then
15942         DISTNAME=mandrake
15943 elif test -f /etc/whitebox-release
15944 then
15945        DISTNAME=redhat
15946 elif test -f /etc/redhat-release
15947 then
15948         DISTNAME=redhat
15949 elif test -f /etc/gentoo-release
15950 then
15951         DISTNAME=gentoo
15952 elif test -f /etc/debian_version
15953 then
15954         DISTNAME=debian
15955 elif test -f /etc/slackware-version
15956 then
15957         DISTNAME=slackware
15958 elif test x$host_vendor = xapple
15959 then
15960     DISTNAME=osx
15961 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15962 then
15963     DISTNAME=darwin
15964 elif test -f /etc/engarde-version
15965 then
15966         DISTNAME=engarde
15967 elif test "$CYGWIN" = yes
15968 then
15969         DISTNAME=cygwin
15970         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15971
15972 else
15973         DISTNAME=unknown
15974 fi
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15976 $as_echo "done" >&6; }
15977
15978
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15980 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15981 set x ${MAKE-make}
15982 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15983 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15984   $as_echo_n "(cached) " >&6
15985 else
15986   cat >conftest.make <<\_ACEOF
15987 SHELL = /bin/sh
15988 all:
15989         @echo '@@@%%%=$(MAKE)=@@@%%%'
15990 _ACEOF
15991 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15992 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15993   *@@@%%%=?*=@@@%%%*)
15994     eval ac_cv_prog_make_${ac_make}_set=yes;;
15995   *)
15996     eval ac_cv_prog_make_${ac_make}_set=no;;
15997 esac
15998 rm -f conftest.make
15999 fi
16000 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16002 $as_echo "yes" >&6; }
16003   SET_MAKE=
16004 else
16005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16006 $as_echo "no" >&6; }
16007   SET_MAKE="MAKE=${MAKE-make}"
16008 fi
16009
16010
16011
16012         MKINSTALLDIRS=
16013   if test -n "$ac_aux_dir"; then
16014     case "$ac_aux_dir" in
16015       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16016       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16017     esac
16018   fi
16019   if test -z "$MKINSTALLDIRS"; then
16020     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16021   fi
16022
16023
16024
16025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16026 $as_echo_n "checking whether NLS is requested... " >&6; }
16027     # Check whether --enable-nls was given.
16028 if test "${enable_nls+set}" = set; then :
16029   enableval=$enable_nls; USE_NLS=$enableval
16030 else
16031   USE_NLS=yes
16032 fi
16033
16034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16035 $as_echo "$USE_NLS" >&6; }
16036
16037
16038
16039
16040
16041
16042 # Prepare PATH_SEPARATOR.
16043 # The user is always right.
16044 if test "${PATH_SEPARATOR+set}" != set; then
16045   echo "#! /bin/sh" >conf$$.sh
16046   echo  "exit 0"   >>conf$$.sh
16047   chmod +x conf$$.sh
16048   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16049     PATH_SEPARATOR=';'
16050   else
16051     PATH_SEPARATOR=:
16052   fi
16053   rm -f conf$$.sh
16054 fi
16055
16056 # Find out how to test for executable files. Don't use a zero-byte file,
16057 # as systems may use methods other than mode bits to determine executability.
16058 cat >conf$$.file <<_ASEOF
16059 #! /bin/sh
16060 exit 0
16061 _ASEOF
16062 chmod +x conf$$.file
16063 if test -x conf$$.file >/dev/null 2>&1; then
16064   ac_executable_p="test -x"
16065 else
16066   ac_executable_p="test -f"
16067 fi
16068 rm -f conf$$.file
16069
16070 # Extract the first word of "msgfmt", so it can be a program name with args.
16071 set dummy msgfmt; ac_word=$2
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16073 $as_echo_n "checking for $ac_word... " >&6; }
16074 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16075   $as_echo_n "(cached) " >&6
16076 else
16077   case "$MSGFMT" in
16078   [\\/]* | ?:[\\/]*)
16079     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16080     ;;
16081   *)
16082     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16083     for ac_dir in $PATH; do
16084       IFS="$ac_save_IFS"
16085       test -z "$ac_dir" && ac_dir=.
16086       for ac_exec_ext in '' $ac_executable_extensions; do
16087         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16088           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16089           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16090      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16091             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16092             break 2
16093           fi
16094         fi
16095       done
16096     done
16097     IFS="$ac_save_IFS"
16098   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16099     ;;
16100 esac
16101 fi
16102 MSGFMT="$ac_cv_path_MSGFMT"
16103 if test "$MSGFMT" != ":"; then
16104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16105 $as_echo "$MSGFMT" >&6; }
16106 else
16107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16108 $as_echo "no" >&6; }
16109 fi
16110
16111   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16112 set dummy gmsgfmt; ac_word=$2
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114 $as_echo_n "checking for $ac_word... " >&6; }
16115 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16116   $as_echo_n "(cached) " >&6
16117 else
16118   case $GMSGFMT in
16119   [\\/]* | ?:[\\/]*)
16120   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16121   ;;
16122   *)
16123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16124 for as_dir in $PATH
16125 do
16126   IFS=$as_save_IFS
16127   test -z "$as_dir" && as_dir=.
16128     for ac_exec_ext in '' $ac_executable_extensions; do
16129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16130     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16132     break 2
16133   fi
16134 done
16135   done
16136 IFS=$as_save_IFS
16137
16138   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16139   ;;
16140 esac
16141 fi
16142 GMSGFMT=$ac_cv_path_GMSGFMT
16143 if test -n "$GMSGFMT"; then
16144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16145 $as_echo "$GMSGFMT" >&6; }
16146 else
16147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16148 $as_echo "no" >&6; }
16149 fi
16150
16151
16152
16153
16154 # Prepare PATH_SEPARATOR.
16155 # The user is always right.
16156 if test "${PATH_SEPARATOR+set}" != set; then
16157   echo "#! /bin/sh" >conf$$.sh
16158   echo  "exit 0"   >>conf$$.sh
16159   chmod +x conf$$.sh
16160   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16161     PATH_SEPARATOR=';'
16162   else
16163     PATH_SEPARATOR=:
16164   fi
16165   rm -f conf$$.sh
16166 fi
16167
16168 # Find out how to test for executable files. Don't use a zero-byte file,
16169 # as systems may use methods other than mode bits to determine executability.
16170 cat >conf$$.file <<_ASEOF
16171 #! /bin/sh
16172 exit 0
16173 _ASEOF
16174 chmod +x conf$$.file
16175 if test -x conf$$.file >/dev/null 2>&1; then
16176   ac_executable_p="test -x"
16177 else
16178   ac_executable_p="test -f"
16179 fi
16180 rm -f conf$$.file
16181
16182 # Extract the first word of "xgettext", so it can be a program name with args.
16183 set dummy xgettext; ac_word=$2
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16185 $as_echo_n "checking for $ac_word... " >&6; }
16186 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16187   $as_echo_n "(cached) " >&6
16188 else
16189   case "$XGETTEXT" in
16190   [\\/]* | ?:[\\/]*)
16191     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16192     ;;
16193   *)
16194     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16195     for ac_dir in $PATH; do
16196       IFS="$ac_save_IFS"
16197       test -z "$ac_dir" && ac_dir=.
16198       for ac_exec_ext in '' $ac_executable_extensions; do
16199         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16200           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16201           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16202      (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
16203             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16204             break 2
16205           fi
16206         fi
16207       done
16208     done
16209     IFS="$ac_save_IFS"
16210   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16211     ;;
16212 esac
16213 fi
16214 XGETTEXT="$ac_cv_path_XGETTEXT"
16215 if test "$XGETTEXT" != ":"; then
16216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16217 $as_echo "$XGETTEXT" >&6; }
16218 else
16219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16220 $as_echo "no" >&6; }
16221 fi
16222
16223     rm -f messages.po
16224
16225
16226 # Prepare PATH_SEPARATOR.
16227 # The user is always right.
16228 if test "${PATH_SEPARATOR+set}" != set; then
16229   echo "#! /bin/sh" >conf$$.sh
16230   echo  "exit 0"   >>conf$$.sh
16231   chmod +x conf$$.sh
16232   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16233     PATH_SEPARATOR=';'
16234   else
16235     PATH_SEPARATOR=:
16236   fi
16237   rm -f conf$$.sh
16238 fi
16239
16240 # Find out how to test for executable files. Don't use a zero-byte file,
16241 # as systems may use methods other than mode bits to determine executability.
16242 cat >conf$$.file <<_ASEOF
16243 #! /bin/sh
16244 exit 0
16245 _ASEOF
16246 chmod +x conf$$.file
16247 if test -x conf$$.file >/dev/null 2>&1; then
16248   ac_executable_p="test -x"
16249 else
16250   ac_executable_p="test -f"
16251 fi
16252 rm -f conf$$.file
16253
16254 # Extract the first word of "msgmerge", so it can be a program name with args.
16255 set dummy msgmerge; ac_word=$2
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16257 $as_echo_n "checking for $ac_word... " >&6; }
16258 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16259   $as_echo_n "(cached) " >&6
16260 else
16261   case "$MSGMERGE" in
16262   [\\/]* | ?:[\\/]*)
16263     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16264     ;;
16265   *)
16266     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16267     for ac_dir in $PATH; do
16268       IFS="$ac_save_IFS"
16269       test -z "$ac_dir" && ac_dir=.
16270       for ac_exec_ext in '' $ac_executable_extensions; do
16271         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16272           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16273           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16274             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16275             break 2
16276           fi
16277         fi
16278       done
16279     done
16280     IFS="$ac_save_IFS"
16281   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16282     ;;
16283 esac
16284 fi
16285 MSGMERGE="$ac_cv_path_MSGMERGE"
16286 if test "$MSGMERGE" != ":"; then
16287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16288 $as_echo "$MSGMERGE" >&6; }
16289 else
16290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16291 $as_echo "no" >&6; }
16292 fi
16293
16294
16295       if test "$GMSGFMT" != ":"; then
16296             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16297        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16298       : ;
16299     else
16300       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16301       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16302 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16303       GMSGFMT=":"
16304     fi
16305   fi
16306
16307       if test "$XGETTEXT" != ":"; then
16308             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16309        (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
16310       : ;
16311     else
16312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16313 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16314       XGETTEXT=":"
16315     fi
16316         rm -f messages.po
16317   fi
16318
16319   ac_config_commands="$ac_config_commands default-1"
16320
16321
16322
16323       if test "X$prefix" = "XNONE"; then
16324     acl_final_prefix="$ac_default_prefix"
16325   else
16326     acl_final_prefix="$prefix"
16327   fi
16328   if test "X$exec_prefix" = "XNONE"; then
16329     acl_final_exec_prefix='${prefix}'
16330   else
16331     acl_final_exec_prefix="$exec_prefix"
16332   fi
16333   acl_save_prefix="$prefix"
16334   prefix="$acl_final_prefix"
16335   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16336   prefix="$acl_save_prefix"
16337
16338
16339 # Check whether --with-gnu-ld was given.
16340 if test "${with_gnu_ld+set}" = set; then :
16341   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16342 else
16343   with_gnu_ld=no
16344 fi
16345
16346 # Prepare PATH_SEPARATOR.
16347 # The user is always right.
16348 if test "${PATH_SEPARATOR+set}" != set; then
16349   echo "#! /bin/sh" >conf$$.sh
16350   echo  "exit 0"   >>conf$$.sh
16351   chmod +x conf$$.sh
16352   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16353     PATH_SEPARATOR=';'
16354   else
16355     PATH_SEPARATOR=:
16356   fi
16357   rm -f conf$$.sh
16358 fi
16359 ac_prog=ld
16360 if test "$GCC" = yes; then
16361   # Check if gcc -print-prog-name=ld gives a path.
16362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16363 $as_echo_n "checking for ld used by GCC... " >&6; }
16364   case $host in
16365   *-*-mingw*)
16366     # gcc leaves a trailing carriage return which upsets mingw
16367     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16368   *)
16369     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16370   esac
16371   case $ac_prog in
16372     # Accept absolute paths.
16373     [\\/]* | [A-Za-z]:[\\/]*)
16374       re_direlt='/[^/][^/]*/\.\./'
16375       # Canonicalize the path of ld
16376       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16377       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16378         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16379       done
16380       test -z "$LD" && LD="$ac_prog"
16381       ;;
16382   "")
16383     # If it fails, then pretend we aren't using GCC.
16384     ac_prog=ld
16385     ;;
16386   *)
16387     # If it is relative, then search for the first ld in PATH.
16388     with_gnu_ld=unknown
16389     ;;
16390   esac
16391 elif test "$with_gnu_ld" = yes; then
16392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16393 $as_echo_n "checking for GNU ld... " >&6; }
16394 else
16395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16396 $as_echo_n "checking for non-GNU ld... " >&6; }
16397 fi
16398 if test "${acl_cv_path_LD+set}" = set; then :
16399   $as_echo_n "(cached) " >&6
16400 else
16401   if test -z "$LD"; then
16402   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16403   for ac_dir in $PATH; do
16404     test -z "$ac_dir" && ac_dir=.
16405     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16406       acl_cv_path_LD="$ac_dir/$ac_prog"
16407       # Check to see if the program is GNU ld.  I'd rather use --version,
16408       # but apparently some GNU ld's only accept -v.
16409       # Break only if it was the GNU/non-GNU ld that we prefer.
16410       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16411       *GNU* | *'with BFD'*)
16412         test "$with_gnu_ld" != no && break ;;
16413       *)
16414         test "$with_gnu_ld" != yes && break ;;
16415       esac
16416     fi
16417   done
16418   IFS="$ac_save_ifs"
16419 else
16420   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16421 fi
16422 fi
16423
16424 LD="$acl_cv_path_LD"
16425 if test -n "$LD"; then
16426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16427 $as_echo "$LD" >&6; }
16428 else
16429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16430 $as_echo "no" >&6; }
16431 fi
16432 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16434 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16435 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16436   $as_echo_n "(cached) " >&6
16437 else
16438   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16439 case `$LD -v 2>&1 </dev/null` in
16440 *GNU* | *'with BFD'*)
16441   acl_cv_prog_gnu_ld=yes ;;
16442 *)
16443   acl_cv_prog_gnu_ld=no ;;
16444 esac
16445 fi
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16447 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16448 with_gnu_ld=$acl_cv_prog_gnu_ld
16449
16450
16451
16452
16453                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16454 $as_echo_n "checking for shared library run path origin... " >&6; }
16455 if test "${acl_cv_rpath+set}" = set; then :
16456   $as_echo_n "(cached) " >&6
16457 else
16458
16459     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16460     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16461     . ./conftest.sh
16462     rm -f ./conftest.sh
16463     acl_cv_rpath=done
16464
16465 fi
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16467 $as_echo "$acl_cv_rpath" >&6; }
16468   wl="$acl_cv_wl"
16469   libext="$acl_cv_libext"
16470   shlibext="$acl_cv_shlibext"
16471   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16472   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16473   hardcode_direct="$acl_cv_hardcode_direct"
16474   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16475     # Check whether --enable-rpath was given.
16476 if test "${enable_rpath+set}" = set; then :
16477   enableval=$enable_rpath; :
16478 else
16479   enable_rpath=yes
16480 fi
16481
16482
16483
16484
16485
16486
16487
16488
16489     use_additional=yes
16490
16491   acl_save_prefix="$prefix"
16492   prefix="$acl_final_prefix"
16493   acl_save_exec_prefix="$exec_prefix"
16494   exec_prefix="$acl_final_exec_prefix"
16495
16496     eval additional_includedir=\"$includedir\"
16497     eval additional_libdir=\"$libdir\"
16498
16499   exec_prefix="$acl_save_exec_prefix"
16500   prefix="$acl_save_prefix"
16501
16502
16503 # Check whether --with-libiconv-prefix was given.
16504 if test "${with_libiconv_prefix+set}" = set; then :
16505   withval=$with_libiconv_prefix;
16506     if test "X$withval" = "Xno"; then
16507       use_additional=no
16508     else
16509       if test "X$withval" = "X"; then
16510
16511   acl_save_prefix="$prefix"
16512   prefix="$acl_final_prefix"
16513   acl_save_exec_prefix="$exec_prefix"
16514   exec_prefix="$acl_final_exec_prefix"
16515
16516           eval additional_includedir=\"$includedir\"
16517           eval additional_libdir=\"$libdir\"
16518
16519   exec_prefix="$acl_save_exec_prefix"
16520   prefix="$acl_save_prefix"
16521
16522       else
16523         additional_includedir="$withval/include"
16524         additional_libdir="$withval/lib"
16525       fi
16526     fi
16527
16528 fi
16529
16530       LIBICONV=
16531   LTLIBICONV=
16532   INCICONV=
16533   rpathdirs=
16534   ltrpathdirs=
16535   names_already_handled=
16536   names_next_round='iconv '
16537   while test -n "$names_next_round"; do
16538     names_this_round="$names_next_round"
16539     names_next_round=
16540     for name in $names_this_round; do
16541       already_handled=
16542       for n in $names_already_handled; do
16543         if test "$n" = "$name"; then
16544           already_handled=yes
16545           break
16546         fi
16547       done
16548       if test -z "$already_handled"; then
16549         names_already_handled="$names_already_handled $name"
16550                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16551         eval value=\"\$HAVE_LIB$uppername\"
16552         if test -n "$value"; then
16553           if test "$value" = yes; then
16554             eval value=\"\$LIB$uppername\"
16555             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16556             eval value=\"\$LTLIB$uppername\"
16557             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16558           else
16559                                     :
16560           fi
16561         else
16562                               found_dir=
16563           found_la=
16564           found_so=
16565           found_a=
16566           if test $use_additional = yes; then
16567             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16568               found_dir="$additional_libdir"
16569               found_so="$additional_libdir/lib$name.$shlibext"
16570               if test -f "$additional_libdir/lib$name.la"; then
16571                 found_la="$additional_libdir/lib$name.la"
16572               fi
16573             else
16574               if test -f "$additional_libdir/lib$name.$libext"; then
16575                 found_dir="$additional_libdir"
16576                 found_a="$additional_libdir/lib$name.$libext"
16577                 if test -f "$additional_libdir/lib$name.la"; then
16578                   found_la="$additional_libdir/lib$name.la"
16579                 fi
16580               fi
16581             fi
16582           fi
16583           if test "X$found_dir" = "X"; then
16584             for x in $LDFLAGS $LTLIBICONV; do
16585
16586   acl_save_prefix="$prefix"
16587   prefix="$acl_final_prefix"
16588   acl_save_exec_prefix="$exec_prefix"
16589   exec_prefix="$acl_final_exec_prefix"
16590   eval x=\"$x\"
16591   exec_prefix="$acl_save_exec_prefix"
16592   prefix="$acl_save_prefix"
16593
16594               case "$x" in
16595                 -L*)
16596                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16597                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16598                     found_dir="$dir"
16599                     found_so="$dir/lib$name.$shlibext"
16600                     if test -f "$dir/lib$name.la"; then
16601                       found_la="$dir/lib$name.la"
16602                     fi
16603                   else
16604                     if test -f "$dir/lib$name.$libext"; then
16605                       found_dir="$dir"
16606                       found_a="$dir/lib$name.$libext"
16607                       if test -f "$dir/lib$name.la"; then
16608                         found_la="$dir/lib$name.la"
16609                       fi
16610                     fi
16611                   fi
16612                   ;;
16613               esac
16614               if test "X$found_dir" != "X"; then
16615                 break
16616               fi
16617             done
16618           fi
16619           if test "X$found_dir" != "X"; then
16620                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16621             if test "X$found_so" != "X"; then
16622                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16623                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16624               else
16625                                                                                 haveit=
16626                 for x in $ltrpathdirs; do
16627                   if test "X$x" = "X$found_dir"; then
16628                     haveit=yes
16629                     break
16630                   fi
16631                 done
16632                 if test -z "$haveit"; then
16633                   ltrpathdirs="$ltrpathdirs $found_dir"
16634                 fi
16635                                 if test "$hardcode_direct" = yes; then
16636                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16637                 else
16638                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16639                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16640                                                             haveit=
16641                     for x in $rpathdirs; do
16642                       if test "X$x" = "X$found_dir"; then
16643                         haveit=yes
16644                         break
16645                       fi
16646                     done
16647                     if test -z "$haveit"; then
16648                       rpathdirs="$rpathdirs $found_dir"
16649                     fi
16650                   else
16651                                                                                 haveit=
16652                     for x in $LDFLAGS $LIBICONV; do
16653
16654   acl_save_prefix="$prefix"
16655   prefix="$acl_final_prefix"
16656   acl_save_exec_prefix="$exec_prefix"
16657   exec_prefix="$acl_final_exec_prefix"
16658   eval x=\"$x\"
16659   exec_prefix="$acl_save_exec_prefix"
16660   prefix="$acl_save_prefix"
16661
16662                       if test "X$x" = "X-L$found_dir"; then
16663                         haveit=yes
16664                         break
16665                       fi
16666                     done
16667                     if test -z "$haveit"; then
16668                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16669                     fi
16670                     if test "$hardcode_minus_L" != no; then
16671                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16672                     else
16673                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16674                     fi
16675                   fi
16676                 fi
16677               fi
16678             else
16679               if test "X$found_a" != "X"; then
16680                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16681               else
16682                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16683               fi
16684             fi
16685                         additional_includedir=
16686             case "$found_dir" in
16687               */lib | */lib/)
16688                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16689                 additional_includedir="$basedir/include"
16690                 ;;
16691             esac
16692             if test "X$additional_includedir" != "X"; then
16693                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16694                 haveit=
16695                 if test "X$additional_includedir" = "X/usr/local/include"; then
16696                   if test -n "$GCC"; then
16697                     case $host_os in
16698                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16699                     esac
16700                   fi
16701                 fi
16702                 if test -z "$haveit"; then
16703                   for x in $CPPFLAGS $INCICONV; do
16704
16705   acl_save_prefix="$prefix"
16706   prefix="$acl_final_prefix"
16707   acl_save_exec_prefix="$exec_prefix"
16708   exec_prefix="$acl_final_exec_prefix"
16709   eval x=\"$x\"
16710   exec_prefix="$acl_save_exec_prefix"
16711   prefix="$acl_save_prefix"
16712
16713                     if test "X$x" = "X-I$additional_includedir"; then
16714                       haveit=yes
16715                       break
16716                     fi
16717                   done
16718                   if test -z "$haveit"; then
16719                     if test -d "$additional_includedir"; then
16720                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16721                     fi
16722                   fi
16723                 fi
16724               fi
16725             fi
16726                         if test -n "$found_la"; then
16727                                                         save_libdir="$libdir"
16728               case "$found_la" in
16729                 */* | *\\*) . "$found_la" ;;
16730                 *) . "./$found_la" ;;
16731               esac
16732               libdir="$save_libdir"
16733                             for dep in $dependency_libs; do
16734                 case "$dep" in
16735                   -L*)
16736                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16737                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16738                       haveit=
16739                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16740                         if test -n "$GCC"; then
16741                           case $host_os in
16742                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16743                           esac
16744                         fi
16745                       fi
16746                       if test -z "$haveit"; then
16747                         haveit=
16748                         for x in $LDFLAGS $LIBICONV; do
16749
16750   acl_save_prefix="$prefix"
16751   prefix="$acl_final_prefix"
16752   acl_save_exec_prefix="$exec_prefix"
16753   exec_prefix="$acl_final_exec_prefix"
16754   eval x=\"$x\"
16755   exec_prefix="$acl_save_exec_prefix"
16756   prefix="$acl_save_prefix"
16757
16758                           if test "X$x" = "X-L$additional_libdir"; then
16759                             haveit=yes
16760                             break
16761                           fi
16762                         done
16763                         if test -z "$haveit"; then
16764                           if test -d "$additional_libdir"; then
16765                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16766                           fi
16767                         fi
16768                         haveit=
16769                         for x in $LDFLAGS $LTLIBICONV; do
16770
16771   acl_save_prefix="$prefix"
16772   prefix="$acl_final_prefix"
16773   acl_save_exec_prefix="$exec_prefix"
16774   exec_prefix="$acl_final_exec_prefix"
16775   eval x=\"$x\"
16776   exec_prefix="$acl_save_exec_prefix"
16777   prefix="$acl_save_prefix"
16778
16779                           if test "X$x" = "X-L$additional_libdir"; then
16780                             haveit=yes
16781                             break
16782                           fi
16783                         done
16784                         if test -z "$haveit"; then
16785                           if test -d "$additional_libdir"; then
16786                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16787                           fi
16788                         fi
16789                       fi
16790                     fi
16791                     ;;
16792                   -R*)
16793                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16794                     if test "$enable_rpath" != no; then
16795                                                                   haveit=
16796                       for x in $rpathdirs; do
16797                         if test "X$x" = "X$dir"; then
16798                           haveit=yes
16799                           break
16800                         fi
16801                       done
16802                       if test -z "$haveit"; then
16803                         rpathdirs="$rpathdirs $dir"
16804                       fi
16805                                                                   haveit=
16806                       for x in $ltrpathdirs; do
16807                         if test "X$x" = "X$dir"; then
16808                           haveit=yes
16809                           break
16810                         fi
16811                       done
16812                       if test -z "$haveit"; then
16813                         ltrpathdirs="$ltrpathdirs $dir"
16814                       fi
16815                     fi
16816                     ;;
16817                   -l*)
16818                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16819                     ;;
16820                   *.la)
16821                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16822                     ;;
16823                   *)
16824                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16825                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16826                     ;;
16827                 esac
16828               done
16829             fi
16830           else
16831                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16832             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16833           fi
16834         fi
16835       fi
16836     done
16837   done
16838   if test "X$rpathdirs" != "X"; then
16839     if test -n "$hardcode_libdir_separator"; then
16840                         alldirs=
16841       for found_dir in $rpathdirs; do
16842         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16843       done
16844             acl_save_libdir="$libdir"
16845       libdir="$alldirs"
16846       eval flag=\"$hardcode_libdir_flag_spec\"
16847       libdir="$acl_save_libdir"
16848       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16849     else
16850             for found_dir in $rpathdirs; do
16851         acl_save_libdir="$libdir"
16852         libdir="$found_dir"
16853         eval flag=\"$hardcode_libdir_flag_spec\"
16854         libdir="$acl_save_libdir"
16855         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16856       done
16857     fi
16858   fi
16859   if test "X$ltrpathdirs" != "X"; then
16860             for found_dir in $ltrpathdirs; do
16861       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16862     done
16863   fi
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16883 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16884 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16885   $as_echo_n "(cached) " >&6
16886 else
16887   gt_save_CPPFLAGS="$CPPFLAGS"
16888      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16889      gt_save_LIBS="$LIBS"
16890      LIBS="$LIBS -framework CoreFoundation"
16891      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h.  */
16893 #include <CFPreferences.h>
16894 int
16895 main ()
16896 {
16897 CFPreferencesCopyAppValue(NULL, NULL)
16898   ;
16899   return 0;
16900 }
16901 _ACEOF
16902 if ac_fn_c_try_link "$LINENO"; then :
16903   gt_cv_func_CFPreferencesCopyAppValue=yes
16904 else
16905   gt_cv_func_CFPreferencesCopyAppValue=no
16906 fi
16907 rm -f core conftest.err conftest.$ac_objext \
16908     conftest$ac_exeext conftest.$ac_ext
16909      CPPFLAGS="$gt_save_CPPFLAGS"
16910      LIBS="$gt_save_LIBS"
16911 fi
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16913 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16914   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16915
16916 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16917
16918   fi
16919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16920 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16921 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16922   $as_echo_n "(cached) " >&6
16923 else
16924   gt_save_CPPFLAGS="$CPPFLAGS"
16925      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16926      gt_save_LIBS="$LIBS"
16927      LIBS="$LIBS -framework CoreFoundation"
16928      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h.  */
16930 #include <CFLocale.h>
16931 int
16932 main ()
16933 {
16934 CFLocaleCopyCurrent();
16935   ;
16936   return 0;
16937 }
16938 _ACEOF
16939 if ac_fn_c_try_link "$LINENO"; then :
16940   gt_cv_func_CFLocaleCopyCurrent=yes
16941 else
16942   gt_cv_func_CFLocaleCopyCurrent=no
16943 fi
16944 rm -f core conftest.err conftest.$ac_objext \
16945     conftest$ac_exeext conftest.$ac_ext
16946      CPPFLAGS="$gt_save_CPPFLAGS"
16947      LIBS="$gt_save_LIBS"
16948 fi
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16950 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16951   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16952
16953 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16954
16955   fi
16956   INTL_MACOSX_LIBS=
16957   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16958     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16959   fi
16960
16961
16962
16963
16964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16965 $as_echo_n "checking whether NLS is requested... " >&6; }
16966     # Check whether --enable-nls was given.
16967 if test "${enable_nls+set}" = set; then :
16968   enableval=$enable_nls; USE_NLS=$enableval
16969 else
16970   USE_NLS=yes
16971 fi
16972
16973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16974 $as_echo "$USE_NLS" >&6; }
16975
16976
16977
16978
16979   LIBINTL=
16980   LTLIBINTL=
16981   POSUB=
16982
16983     if test "$USE_NLS" = "yes"; then
16984     gt_use_preinstalled_gnugettext=no
16985
16986
16987
16988
16989
16990
16991         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16992 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16993 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
16994   $as_echo_n "(cached) " >&6
16995 else
16996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h.  */
16998 #include <libintl.h>
16999 extern int _nl_msg_cat_cntr;
17000 extern int *_nl_domain_bindings;
17001 int
17002 main ()
17003 {
17004 bindtextdomain ("", "");
17005 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17006   ;
17007   return 0;
17008 }
17009 _ACEOF
17010 if ac_fn_c_try_link "$LINENO"; then :
17011   gt_cv_func_gnugettext1_libc=yes
17012 else
17013   gt_cv_func_gnugettext1_libc=no
17014 fi
17015 rm -f core conftest.err conftest.$ac_objext \
17016     conftest$ac_exeext conftest.$ac_ext
17017 fi
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17019 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17020
17021         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17022
17023
17024
17025
17026
17027           am_save_CPPFLAGS="$CPPFLAGS"
17028
17029   for element in $INCICONV; do
17030     haveit=
17031     for x in $CPPFLAGS; do
17032
17033   acl_save_prefix="$prefix"
17034   prefix="$acl_final_prefix"
17035   acl_save_exec_prefix="$exec_prefix"
17036   exec_prefix="$acl_final_exec_prefix"
17037   eval x=\"$x\"
17038   exec_prefix="$acl_save_exec_prefix"
17039   prefix="$acl_save_prefix"
17040
17041       if test "X$x" = "X$element"; then
17042         haveit=yes
17043         break
17044       fi
17045     done
17046     if test -z "$haveit"; then
17047       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17048     fi
17049   done
17050
17051
17052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17053 $as_echo_n "checking for iconv... " >&6; }
17054 if test "${am_cv_func_iconv+set}" = set; then :
17055   $as_echo_n "(cached) " >&6
17056 else
17057
17058     am_cv_func_iconv="no, consider installing GNU libiconv"
17059     am_cv_lib_iconv=no
17060     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h.  */
17062 #include <stdlib.h>
17063 #include <iconv.h>
17064 int
17065 main ()
17066 {
17067 iconv_t cd = iconv_open("","");
17068        iconv(cd,NULL,NULL,NULL,NULL);
17069        iconv_close(cd);
17070   ;
17071   return 0;
17072 }
17073 _ACEOF
17074 if ac_fn_c_try_link "$LINENO"; then :
17075   am_cv_func_iconv=yes
17076 fi
17077 rm -f core conftest.err conftest.$ac_objext \
17078     conftest$ac_exeext conftest.$ac_ext
17079     if test "$am_cv_func_iconv" != yes; then
17080       am_save_LIBS="$LIBS"
17081       LIBS="$LIBS $LIBICONV"
17082       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h.  */
17084 #include <stdlib.h>
17085 #include <iconv.h>
17086 int
17087 main ()
17088 {
17089 iconv_t cd = iconv_open("","");
17090          iconv(cd,NULL,NULL,NULL,NULL);
17091          iconv_close(cd);
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 if ac_fn_c_try_link "$LINENO"; then :
17097   am_cv_lib_iconv=yes
17098         am_cv_func_iconv=yes
17099 fi
17100 rm -f core conftest.err conftest.$ac_objext \
17101     conftest$ac_exeext conftest.$ac_ext
17102       LIBS="$am_save_LIBS"
17103     fi
17104
17105 fi
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17107 $as_echo "$am_cv_func_iconv" >&6; }
17108   if test "$am_cv_func_iconv" = yes; then
17109
17110 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17111
17112   fi
17113   if test "$am_cv_lib_iconv" = yes; then
17114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17115 $as_echo_n "checking how to link with libiconv... " >&6; }
17116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17117 $as_echo "$LIBICONV" >&6; }
17118   else
17119             CPPFLAGS="$am_save_CPPFLAGS"
17120     LIBICONV=
17121     LTLIBICONV=
17122   fi
17123
17124
17125
17126
17127
17128
17129     use_additional=yes
17130
17131   acl_save_prefix="$prefix"
17132   prefix="$acl_final_prefix"
17133   acl_save_exec_prefix="$exec_prefix"
17134   exec_prefix="$acl_final_exec_prefix"
17135
17136     eval additional_includedir=\"$includedir\"
17137     eval additional_libdir=\"$libdir\"
17138
17139   exec_prefix="$acl_save_exec_prefix"
17140   prefix="$acl_save_prefix"
17141
17142
17143 # Check whether --with-libintl-prefix was given.
17144 if test "${with_libintl_prefix+set}" = set; then :
17145   withval=$with_libintl_prefix;
17146     if test "X$withval" = "Xno"; then
17147       use_additional=no
17148     else
17149       if test "X$withval" = "X"; then
17150
17151   acl_save_prefix="$prefix"
17152   prefix="$acl_final_prefix"
17153   acl_save_exec_prefix="$exec_prefix"
17154   exec_prefix="$acl_final_exec_prefix"
17155
17156           eval additional_includedir=\"$includedir\"
17157           eval additional_libdir=\"$libdir\"
17158
17159   exec_prefix="$acl_save_exec_prefix"
17160   prefix="$acl_save_prefix"
17161
17162       else
17163         additional_includedir="$withval/include"
17164         additional_libdir="$withval/lib"
17165       fi
17166     fi
17167
17168 fi
17169
17170       LIBINTL=
17171   LTLIBINTL=
17172   INCINTL=
17173   rpathdirs=
17174   ltrpathdirs=
17175   names_already_handled=
17176   names_next_round='intl '
17177   while test -n "$names_next_round"; do
17178     names_this_round="$names_next_round"
17179     names_next_round=
17180     for name in $names_this_round; do
17181       already_handled=
17182       for n in $names_already_handled; do
17183         if test "$n" = "$name"; then
17184           already_handled=yes
17185           break
17186         fi
17187       done
17188       if test -z "$already_handled"; then
17189         names_already_handled="$names_already_handled $name"
17190                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17191         eval value=\"\$HAVE_LIB$uppername\"
17192         if test -n "$value"; then
17193           if test "$value" = yes; then
17194             eval value=\"\$LIB$uppername\"
17195             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17196             eval value=\"\$LTLIB$uppername\"
17197             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17198           else
17199                                     :
17200           fi
17201         else
17202                               found_dir=
17203           found_la=
17204           found_so=
17205           found_a=
17206           if test $use_additional = yes; then
17207             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17208               found_dir="$additional_libdir"
17209               found_so="$additional_libdir/lib$name.$shlibext"
17210               if test -f "$additional_libdir/lib$name.la"; then
17211                 found_la="$additional_libdir/lib$name.la"
17212               fi
17213             else
17214               if test -f "$additional_libdir/lib$name.$libext"; then
17215                 found_dir="$additional_libdir"
17216                 found_a="$additional_libdir/lib$name.$libext"
17217                 if test -f "$additional_libdir/lib$name.la"; then
17218                   found_la="$additional_libdir/lib$name.la"
17219                 fi
17220               fi
17221             fi
17222           fi
17223           if test "X$found_dir" = "X"; then
17224             for x in $LDFLAGS $LTLIBINTL; do
17225
17226   acl_save_prefix="$prefix"
17227   prefix="$acl_final_prefix"
17228   acl_save_exec_prefix="$exec_prefix"
17229   exec_prefix="$acl_final_exec_prefix"
17230   eval x=\"$x\"
17231   exec_prefix="$acl_save_exec_prefix"
17232   prefix="$acl_save_prefix"
17233
17234               case "$x" in
17235                 -L*)
17236                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17237                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17238                     found_dir="$dir"
17239                     found_so="$dir/lib$name.$shlibext"
17240                     if test -f "$dir/lib$name.la"; then
17241                       found_la="$dir/lib$name.la"
17242                     fi
17243                   else
17244                     if test -f "$dir/lib$name.$libext"; then
17245                       found_dir="$dir"
17246                       found_a="$dir/lib$name.$libext"
17247                       if test -f "$dir/lib$name.la"; then
17248                         found_la="$dir/lib$name.la"
17249                       fi
17250                     fi
17251                   fi
17252                   ;;
17253               esac
17254               if test "X$found_dir" != "X"; then
17255                 break
17256               fi
17257             done
17258           fi
17259           if test "X$found_dir" != "X"; then
17260                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17261             if test "X$found_so" != "X"; then
17262                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17263                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17264               else
17265                                                                                 haveit=
17266                 for x in $ltrpathdirs; do
17267                   if test "X$x" = "X$found_dir"; then
17268                     haveit=yes
17269                     break
17270                   fi
17271                 done
17272                 if test -z "$haveit"; then
17273                   ltrpathdirs="$ltrpathdirs $found_dir"
17274                 fi
17275                                 if test "$hardcode_direct" = yes; then
17276                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17277                 else
17278                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17279                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17280                                                             haveit=
17281                     for x in $rpathdirs; do
17282                       if test "X$x" = "X$found_dir"; then
17283                         haveit=yes
17284                         break
17285                       fi
17286                     done
17287                     if test -z "$haveit"; then
17288                       rpathdirs="$rpathdirs $found_dir"
17289                     fi
17290                   else
17291                                                                                 haveit=
17292                     for x in $LDFLAGS $LIBINTL; do
17293
17294   acl_save_prefix="$prefix"
17295   prefix="$acl_final_prefix"
17296   acl_save_exec_prefix="$exec_prefix"
17297   exec_prefix="$acl_final_exec_prefix"
17298   eval x=\"$x\"
17299   exec_prefix="$acl_save_exec_prefix"
17300   prefix="$acl_save_prefix"
17301
17302                       if test "X$x" = "X-L$found_dir"; then
17303                         haveit=yes
17304                         break
17305                       fi
17306                     done
17307                     if test -z "$haveit"; then
17308                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17309                     fi
17310                     if test "$hardcode_minus_L" != no; then
17311                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17312                     else
17313                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17314                     fi
17315                   fi
17316                 fi
17317               fi
17318             else
17319               if test "X$found_a" != "X"; then
17320                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17321               else
17322                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17323               fi
17324             fi
17325                         additional_includedir=
17326             case "$found_dir" in
17327               */lib | */lib/)
17328                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17329                 additional_includedir="$basedir/include"
17330                 ;;
17331             esac
17332             if test "X$additional_includedir" != "X"; then
17333                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17334                 haveit=
17335                 if test "X$additional_includedir" = "X/usr/local/include"; then
17336                   if test -n "$GCC"; then
17337                     case $host_os in
17338                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17339                     esac
17340                   fi
17341                 fi
17342                 if test -z "$haveit"; then
17343                   for x in $CPPFLAGS $INCINTL; do
17344
17345   acl_save_prefix="$prefix"
17346   prefix="$acl_final_prefix"
17347   acl_save_exec_prefix="$exec_prefix"
17348   exec_prefix="$acl_final_exec_prefix"
17349   eval x=\"$x\"
17350   exec_prefix="$acl_save_exec_prefix"
17351   prefix="$acl_save_prefix"
17352
17353                     if test "X$x" = "X-I$additional_includedir"; then
17354                       haveit=yes
17355                       break
17356                     fi
17357                   done
17358                   if test -z "$haveit"; then
17359                     if test -d "$additional_includedir"; then
17360                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17361                     fi
17362                   fi
17363                 fi
17364               fi
17365             fi
17366                         if test -n "$found_la"; then
17367                                                         save_libdir="$libdir"
17368               case "$found_la" in
17369                 */* | *\\*) . "$found_la" ;;
17370                 *) . "./$found_la" ;;
17371               esac
17372               libdir="$save_libdir"
17373                             for dep in $dependency_libs; do
17374                 case "$dep" in
17375                   -L*)
17376                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17377                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17378                       haveit=
17379                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17380                         if test -n "$GCC"; then
17381                           case $host_os in
17382                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17383                           esac
17384                         fi
17385                       fi
17386                       if test -z "$haveit"; then
17387                         haveit=
17388                         for x in $LDFLAGS $LIBINTL; do
17389
17390   acl_save_prefix="$prefix"
17391   prefix="$acl_final_prefix"
17392   acl_save_exec_prefix="$exec_prefix"
17393   exec_prefix="$acl_final_exec_prefix"
17394   eval x=\"$x\"
17395   exec_prefix="$acl_save_exec_prefix"
17396   prefix="$acl_save_prefix"
17397
17398                           if test "X$x" = "X-L$additional_libdir"; then
17399                             haveit=yes
17400                             break
17401                           fi
17402                         done
17403                         if test -z "$haveit"; then
17404                           if test -d "$additional_libdir"; then
17405                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17406                           fi
17407                         fi
17408                         haveit=
17409                         for x in $LDFLAGS $LTLIBINTL; do
17410
17411   acl_save_prefix="$prefix"
17412   prefix="$acl_final_prefix"
17413   acl_save_exec_prefix="$exec_prefix"
17414   exec_prefix="$acl_final_exec_prefix"
17415   eval x=\"$x\"
17416   exec_prefix="$acl_save_exec_prefix"
17417   prefix="$acl_save_prefix"
17418
17419                           if test "X$x" = "X-L$additional_libdir"; then
17420                             haveit=yes
17421                             break
17422                           fi
17423                         done
17424                         if test -z "$haveit"; then
17425                           if test -d "$additional_libdir"; then
17426                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17427                           fi
17428                         fi
17429                       fi
17430                     fi
17431                     ;;
17432                   -R*)
17433                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17434                     if test "$enable_rpath" != no; then
17435                                                                   haveit=
17436                       for x in $rpathdirs; do
17437                         if test "X$x" = "X$dir"; then
17438                           haveit=yes
17439                           break
17440                         fi
17441                       done
17442                       if test -z "$haveit"; then
17443                         rpathdirs="$rpathdirs $dir"
17444                       fi
17445                                                                   haveit=
17446                       for x in $ltrpathdirs; do
17447                         if test "X$x" = "X$dir"; then
17448                           haveit=yes
17449                           break
17450                         fi
17451                       done
17452                       if test -z "$haveit"; then
17453                         ltrpathdirs="$ltrpathdirs $dir"
17454                       fi
17455                     fi
17456                     ;;
17457                   -l*)
17458                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17459                     ;;
17460                   *.la)
17461                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17462                     ;;
17463                   *)
17464                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17465                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17466                     ;;
17467                 esac
17468               done
17469             fi
17470           else
17471                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17472             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17473           fi
17474         fi
17475       fi
17476     done
17477   done
17478   if test "X$rpathdirs" != "X"; then
17479     if test -n "$hardcode_libdir_separator"; then
17480                         alldirs=
17481       for found_dir in $rpathdirs; do
17482         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17483       done
17484             acl_save_libdir="$libdir"
17485       libdir="$alldirs"
17486       eval flag=\"$hardcode_libdir_flag_spec\"
17487       libdir="$acl_save_libdir"
17488       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17489     else
17490             for found_dir in $rpathdirs; do
17491         acl_save_libdir="$libdir"
17492         libdir="$found_dir"
17493         eval flag=\"$hardcode_libdir_flag_spec\"
17494         libdir="$acl_save_libdir"
17495         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17496       done
17497     fi
17498   fi
17499   if test "X$ltrpathdirs" != "X"; then
17500             for found_dir in $ltrpathdirs; do
17501       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17502     done
17503   fi
17504
17505           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17506 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17507 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17508   $as_echo_n "(cached) " >&6
17509 else
17510   gt_save_CPPFLAGS="$CPPFLAGS"
17511             CPPFLAGS="$CPPFLAGS $INCINTL"
17512             gt_save_LIBS="$LIBS"
17513             LIBS="$LIBS $LIBINTL"
17514                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h.  */
17516 #include <libintl.h>
17517 extern int _nl_msg_cat_cntr;
17518 extern
17519 #ifdef __cplusplus
17520 "C"
17521 #endif
17522 const char *_nl_expand_alias (const char *);
17523 int
17524 main ()
17525 {
17526 bindtextdomain ("", "");
17527 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 if ac_fn_c_try_link "$LINENO"; then :
17533   gt_cv_func_gnugettext1_libintl=yes
17534 else
17535   gt_cv_func_gnugettext1_libintl=no
17536 fi
17537 rm -f core conftest.err conftest.$ac_objext \
17538     conftest$ac_exeext conftest.$ac_ext
17539                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17540               LIBS="$LIBS $LIBICONV"
17541               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h.  */
17543 #include <libintl.h>
17544 extern int _nl_msg_cat_cntr;
17545 extern
17546 #ifdef __cplusplus
17547 "C"
17548 #endif
17549 const char *_nl_expand_alias (const char *);
17550 int
17551 main ()
17552 {
17553 bindtextdomain ("", "");
17554 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17555   ;
17556   return 0;
17557 }
17558 _ACEOF
17559 if ac_fn_c_try_link "$LINENO"; then :
17560   LIBINTL="$LIBINTL $LIBICONV"
17561                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17562                 gt_cv_func_gnugettext1_libintl=yes
17563
17564 fi
17565 rm -f core conftest.err conftest.$ac_objext \
17566     conftest$ac_exeext conftest.$ac_ext
17567             fi
17568             CPPFLAGS="$gt_save_CPPFLAGS"
17569             LIBS="$gt_save_LIBS"
17570 fi
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17572 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17573         fi
17574
17575                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17576            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17577                 && test "$PACKAGE" != gettext-runtime \
17578                 && test "$PACKAGE" != gettext-tools; }; then
17579           gt_use_preinstalled_gnugettext=yes
17580         else
17581                     LIBINTL=
17582           LTLIBINTL=
17583           INCINTL=
17584         fi
17585
17586
17587
17588     if test -n "$INTL_MACOSX_LIBS"; then
17589       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17590          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17591                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17592         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17593       fi
17594     fi
17595
17596     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17597        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17598
17599 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17600
17601     else
17602       USE_NLS=no
17603     fi
17604   fi
17605
17606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17607 $as_echo_n "checking whether to use NLS... " >&6; }
17608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17609 $as_echo "$USE_NLS" >&6; }
17610   if test "$USE_NLS" = "yes"; then
17611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17612 $as_echo_n "checking where the gettext function comes from... " >&6; }
17613     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17614       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17615         gt_source="external libintl"
17616       else
17617         gt_source="libc"
17618       fi
17619     else
17620       gt_source="included intl directory"
17621     fi
17622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17623 $as_echo "$gt_source" >&6; }
17624   fi
17625
17626   if test "$USE_NLS" = "yes"; then
17627
17628     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17629       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17630         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17631 $as_echo_n "checking how to link with libintl... " >&6; }
17632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17633 $as_echo "$LIBINTL" >&6; }
17634
17635   for element in $INCINTL; do
17636     haveit=
17637     for x in $CPPFLAGS; do
17638
17639   acl_save_prefix="$prefix"
17640   prefix="$acl_final_prefix"
17641   acl_save_exec_prefix="$exec_prefix"
17642   exec_prefix="$acl_final_exec_prefix"
17643   eval x=\"$x\"
17644   exec_prefix="$acl_save_exec_prefix"
17645   prefix="$acl_save_prefix"
17646
17647       if test "X$x" = "X$element"; then
17648         haveit=yes
17649         break
17650       fi
17651     done
17652     if test -z "$haveit"; then
17653       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17654     fi
17655   done
17656
17657       fi
17658
17659
17660 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17661
17662
17663 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17664
17665     fi
17666
17667         POSUB=po
17668   fi
17669
17670
17671
17672     INTLLIBS="$LIBINTL"
17673
17674
17675
17676
17677
17678
17679
17680 os_name=`uname -s 2>/dev/null`
17681 if test x${prefix} = xNONE ; then
17682    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17683       sysconfdir=/etc/bacula
17684    fi
17685
17686    if test `eval echo ${libdir}` = NONE/lib ; then
17687       case ${os_name} in
17688       Linux)
17689          os_processor=`uname -p 2>/dev/null`
17690          case ${os_processor} in
17691          x86_64)
17692             libdir=/usr/lib64
17693             ;;
17694          *)
17695             libdir=/usr/lib
17696             ;;
17697          esac
17698          ;;
17699       *)
17700          libdir=/usr/lib
17701          ;;
17702       esac
17703    fi
17704
17705    if test `eval echo ${includedir}` = NONE/include ; then
17706       includedir=/usr/include
17707    fi
17708
17709    if test `eval echo ${datarootdir}` = NONE/share ; then
17710       datarootdir=/usr/share
17711    fi
17712    prefix=
17713 fi
17714
17715 if test x${exec_prefix} = xNONE ; then
17716    exec_prefix=${prefix}
17717 fi
17718
17719 sysconfdir=`eval echo ${sysconfdir}`
17720 datarootdir=`eval echo ${datarootdir}`
17721 docdir=`eval echo ${docdir}`
17722 htmldir=`eval echo ${htmldir}`
17723 libdir=`eval echo ${libdir}`
17724 includedir=`eval echo ${includedir}`
17725 localedir=`eval echo ${datarootdir}/locale`
17726 cat >>confdefs.h <<_ACEOF
17727 #define SYSCONFDIR "$sysconfdir"
17728 _ACEOF
17729
17730 cat >>confdefs.h <<_ACEOF
17731 #define LOCALEDIR "$localedir"
17732 _ACEOF
17733
17734
17735 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17736    sbindir=${exec_prefix}/sbin
17737 fi
17738 sbindir=`eval echo ${sbindir}`
17739
17740 if test x$mandir = x'${prefix}/man' ; then
17741    mandir=/usr/share/man
17742 fi
17743
17744 if test x$htmldir = x${docdir} ; then
17745    htmldir=`eval echo ${docdir}bacula/html`
17746 fi
17747
17748 if test x$docdir = x'/usr/share/doc/' ; then
17749    docdir=`eval echo ${docdir}bacula`
17750 fi
17751
17752
17753 for ac_prog in msgfmt
17754 do
17755   # Extract the first word of "$ac_prog", so it can be a program name with args.
17756 set dummy $ac_prog; ac_word=$2
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17758 $as_echo_n "checking for $ac_word... " >&6; }
17759 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17760   $as_echo_n "(cached) " >&6
17761 else
17762   case $MSGFMT in
17763   [\\/]* | ?:[\\/]*)
17764   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17765   ;;
17766   *)
17767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17768 for as_dir in $PATH
17769 do
17770   IFS=$as_save_IFS
17771   test -z "$as_dir" && as_dir=.
17772     for ac_exec_ext in '' $ac_executable_extensions; do
17773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17774     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17776     break 2
17777   fi
17778 done
17779   done
17780 IFS=$as_save_IFS
17781
17782   ;;
17783 esac
17784 fi
17785 MSGFMT=$ac_cv_path_MSGFMT
17786 if test -n "$MSGFMT"; then
17787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17788 $as_echo "$MSGFMT" >&6; }
17789 else
17790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17791 $as_echo "no" >&6; }
17792 fi
17793
17794
17795   test -n "$MSGFMT" && break
17796 done
17797 test -n "$MSGFMT" || MSGFMT="no"
17798
17799 if test "$MSGFMT" = "no"
17800 then
17801    echo 'msgfmt program not found, disabling NLS !'
17802    USE_NLS=no
17803    USE_INCLUDED_LIBINTL=no
17804 #else
17805
17806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17807 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17808 if test "${ac_cv_gnu_library_2+set}" = set; then :
17809   $as_echo_n "(cached) " >&6
17810 else
17811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17812 /* end confdefs.h.  */
17813
17814 #include <features.h>
17815 #ifdef __GNU_LIBRARY__
17816  #if (__GLIBC__ >= 2)
17817   Lucky GNU user
17818  #endif
17819 #endif
17820
17821 _ACEOF
17822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17823   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17824   ac_cv_gnu_library_2=yes
17825 else
17826   ac_cv_gnu_library_2=no
17827 fi
17828 rm -f conftest*
17829
17830
17831
17832 fi
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17834 $as_echo "$ac_cv_gnu_library_2" >&6; }
17835
17836     GLIBC2="$ac_cv_gnu_library_2"
17837
17838
17839 if test -n "$ac_tool_prefix"; then
17840   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17843 $as_echo_n "checking for $ac_word... " >&6; }
17844 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17845   $as_echo_n "(cached) " >&6
17846 else
17847   if test -n "$RANLIB"; then
17848   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17849 else
17850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17851 for as_dir in $PATH
17852 do
17853   IFS=$as_save_IFS
17854   test -z "$as_dir" && as_dir=.
17855     for ac_exec_ext in '' $ac_executable_extensions; do
17856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17857     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17859     break 2
17860   fi
17861 done
17862   done
17863 IFS=$as_save_IFS
17864
17865 fi
17866 fi
17867 RANLIB=$ac_cv_prog_RANLIB
17868 if test -n "$RANLIB"; then
17869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17870 $as_echo "$RANLIB" >&6; }
17871 else
17872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17873 $as_echo "no" >&6; }
17874 fi
17875
17876
17877 fi
17878 if test -z "$ac_cv_prog_RANLIB"; then
17879   ac_ct_RANLIB=$RANLIB
17880   # Extract the first word of "ranlib", so it can be a program name with args.
17881 set dummy ranlib; ac_word=$2
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17883 $as_echo_n "checking for $ac_word... " >&6; }
17884 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17885   $as_echo_n "(cached) " >&6
17886 else
17887   if test -n "$ac_ct_RANLIB"; then
17888   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17889 else
17890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17891 for as_dir in $PATH
17892 do
17893   IFS=$as_save_IFS
17894   test -z "$as_dir" && as_dir=.
17895     for ac_exec_ext in '' $ac_executable_extensions; do
17896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17897     ac_cv_prog_ac_ct_RANLIB="ranlib"
17898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17899     break 2
17900   fi
17901 done
17902   done
17903 IFS=$as_save_IFS
17904
17905 fi
17906 fi
17907 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17908 if test -n "$ac_ct_RANLIB"; then
17909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17910 $as_echo "$ac_ct_RANLIB" >&6; }
17911 else
17912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17913 $as_echo "no" >&6; }
17914 fi
17915
17916   if test "x$ac_ct_RANLIB" = x; then
17917     RANLIB=":"
17918   else
17919     case $cross_compiling:$ac_tool_warned in
17920 yes:)
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17923 ac_tool_warned=yes ;;
17924 esac
17925     RANLIB=$ac_ct_RANLIB
17926   fi
17927 else
17928   RANLIB="$ac_cv_prog_RANLIB"
17929 fi
17930
17931
17932         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17933 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17934 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17935   $as_echo_n "(cached) " >&6
17936 else
17937   ac_check_lib_save_LIBS=$LIBS
17938 LIBS="-lcposix  $LIBS"
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h.  */
17941
17942 /* Override any GCC internal prototype to avoid an error.
17943    Use char because int might match the return type of a GCC
17944    builtin and then its argument prototype would still apply.  */
17945 #ifdef __cplusplus
17946 extern "C"
17947 #endif
17948 char strerror ();
17949 int
17950 main ()
17951 {
17952 return strerror ();
17953   ;
17954   return 0;
17955 }
17956 _ACEOF
17957 if ac_fn_c_try_link "$LINENO"; then :
17958   ac_cv_lib_cposix_strerror=yes
17959 else
17960   ac_cv_lib_cposix_strerror=no
17961 fi
17962 rm -f core conftest.err conftest.$ac_objext \
17963     conftest$ac_exeext conftest.$ac_ext
17964 LIBS=$ac_check_lib_save_LIBS
17965 fi
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17967 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17968 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17969   LIBS="$LIBS -lcposix"
17970 fi
17971
17972
17973
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17975 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17976 if test "${ac_cv_c_const+set}" = set; then :
17977   $as_echo_n "(cached) " >&6
17978 else
17979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h.  */
17981
17982 int
17983 main ()
17984 {
17985 /* FIXME: Include the comments suggested by Paul. */
17986 #ifndef __cplusplus
17987   /* Ultrix mips cc rejects this.  */
17988   typedef int charset[2];
17989   const charset cs;
17990   /* SunOS 4.1.1 cc rejects this.  */
17991   char const *const *pcpcc;
17992   char **ppc;
17993   /* NEC SVR4.0.2 mips cc rejects this.  */
17994   struct point {int x, y;};
17995   static struct point const zero = {0,0};
17996   /* AIX XL C 1.02.0.0 rejects this.
17997      It does not let you subtract one const X* pointer from another in
17998      an arm of an if-expression whose if-part is not a constant
17999      expression */
18000   const char *g = "string";
18001   pcpcc = &g + (g ? g-g : 0);
18002   /* HPUX 7.0 cc rejects these. */
18003   ++pcpcc;
18004   ppc = (char**) pcpcc;
18005   pcpcc = (char const *const *) ppc;
18006   { /* SCO 3.2v4 cc rejects this.  */
18007     char *t;
18008     char const *s = 0 ? (char *) 0 : (char const *) 0;
18009
18010     *t++ = 0;
18011     if (s) return 0;
18012   }
18013   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18014     int x[] = {25, 17};
18015     const int *foo = &x[0];
18016     ++foo;
18017   }
18018   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18019     typedef const int *iptr;
18020     iptr p = 0;
18021     ++p;
18022   }
18023   { /* AIX XL C 1.02.0.0 rejects this saying
18024        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18025     struct s { int j; const int *ap[3]; };
18026     struct s *b; b->j = 5;
18027   }
18028   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18029     const int foo = 10;
18030     if (!foo) return 0;
18031   }
18032   return !cs[0] && !zero.x;
18033 #endif
18034
18035   ;
18036   return 0;
18037 }
18038 _ACEOF
18039 if ac_fn_c_try_compile "$LINENO"; then :
18040   ac_cv_c_const=yes
18041 else
18042   ac_cv_c_const=no
18043 fi
18044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18045 fi
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18047 $as_echo "$ac_cv_c_const" >&6; }
18048 if test $ac_cv_c_const = no; then
18049
18050 $as_echo "#define const /**/" >>confdefs.h
18051
18052 fi
18053
18054
18055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18056 $as_echo_n "checking for signed... " >&6; }
18057 if test "${bh_cv_c_signed+set}" = set; then :
18058   $as_echo_n "(cached) " >&6
18059 else
18060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18061 /* end confdefs.h.  */
18062
18063 int
18064 main ()
18065 {
18066 signed char x;
18067   ;
18068   return 0;
18069 }
18070 _ACEOF
18071 if ac_fn_c_try_compile "$LINENO"; then :
18072   bh_cv_c_signed=yes
18073 else
18074   bh_cv_c_signed=no
18075 fi
18076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18077 fi
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18079 $as_echo "$bh_cv_c_signed" >&6; }
18080   if test $bh_cv_c_signed = no; then
18081
18082 $as_echo "#define signed /**/" >>confdefs.h
18083
18084   fi
18085
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18087 $as_echo_n "checking for inline... " >&6; }
18088 if test "${ac_cv_c_inline+set}" = set; then :
18089   $as_echo_n "(cached) " >&6
18090 else
18091   ac_cv_c_inline=no
18092 for ac_kw in inline __inline__ __inline; do
18093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094 /* end confdefs.h.  */
18095 #ifndef __cplusplus
18096 typedef int foo_t;
18097 static $ac_kw foo_t static_foo () {return 0; }
18098 $ac_kw foo_t foo () {return 0; }
18099 #endif
18100
18101 _ACEOF
18102 if ac_fn_c_try_compile "$LINENO"; then :
18103   ac_cv_c_inline=$ac_kw
18104 fi
18105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18106   test "$ac_cv_c_inline" != no && break
18107 done
18108
18109 fi
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18111 $as_echo "$ac_cv_c_inline" >&6; }
18112
18113 case $ac_cv_c_inline in
18114   inline | yes) ;;
18115   *)
18116     case $ac_cv_c_inline in
18117       no) ac_val=;;
18118       *) ac_val=$ac_cv_c_inline;;
18119     esac
18120     cat >>confdefs.h <<_ACEOF
18121 #ifndef __cplusplus
18122 #define inline $ac_val
18123 #endif
18124 _ACEOF
18125     ;;
18126 esac
18127
18128 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18129 if test "x$ac_cv_type_off_t" = x""yes; then :
18130
18131 else
18132
18133 cat >>confdefs.h <<_ACEOF
18134 #define off_t long int
18135 _ACEOF
18136
18137 fi
18138
18139 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18140 if test "x$ac_cv_type_size_t" = x""yes; then :
18141
18142 else
18143
18144 cat >>confdefs.h <<_ACEOF
18145 #define size_t unsigned int
18146 _ACEOF
18147
18148 fi
18149
18150
18151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18152 $as_echo_n "checking for long long... " >&6; }
18153 if test "${ac_cv_type_long_long+set}" = set; then :
18154   $as_echo_n "(cached) " >&6
18155 else
18156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157 /* end confdefs.h.  */
18158 long long ll = 1LL; int i = 63;
18159 int
18160 main ()
18161 {
18162 long long llmax = (long long) -1;
18163      return ll << i | ll >> i | llmax / ll | llmax % ll;
18164   ;
18165   return 0;
18166 }
18167 _ACEOF
18168 if ac_fn_c_try_link "$LINENO"; then :
18169   ac_cv_type_long_long=yes
18170 else
18171   ac_cv_type_long_long=no
18172 fi
18173 rm -f core conftest.err conftest.$ac_objext \
18174     conftest$ac_exeext conftest.$ac_ext
18175 fi
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18177 $as_echo "$ac_cv_type_long_long" >&6; }
18178   if test $ac_cv_type_long_long = yes; then
18179
18180 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18181
18182   fi
18183
18184
18185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18186 $as_echo_n "checking for long double... " >&6; }
18187 if test "${gt_cv_c_long_double+set}" = set; then :
18188   $as_echo_n "(cached) " >&6
18189 else
18190   if test "$GCC" = yes; then
18191        gt_cv_c_long_double=yes
18192      else
18193        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h.  */
18195
18196          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18197          long double foo = 0.0;
18198          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18199          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18200
18201 int
18202 main ()
18203 {
18204
18205   ;
18206   return 0;
18207 }
18208 _ACEOF
18209 if ac_fn_c_try_compile "$LINENO"; then :
18210   gt_cv_c_long_double=yes
18211 else
18212   gt_cv_c_long_double=no
18213 fi
18214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18215      fi
18216 fi
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18218 $as_echo "$gt_cv_c_long_double" >&6; }
18219   if test $gt_cv_c_long_double = yes; then
18220
18221 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18222
18223   fi
18224
18225
18226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18227 $as_echo_n "checking for wchar_t... " >&6; }
18228 if test "${gt_cv_c_wchar_t+set}" = set; then :
18229   $as_echo_n "(cached) " >&6
18230 else
18231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h.  */
18233 #include <stddef.h>
18234        wchar_t foo = (wchar_t)'\0';
18235 int
18236 main ()
18237 {
18238
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 if ac_fn_c_try_compile "$LINENO"; then :
18244   gt_cv_c_wchar_t=yes
18245 else
18246   gt_cv_c_wchar_t=no
18247 fi
18248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18249 fi
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18251 $as_echo "$gt_cv_c_wchar_t" >&6; }
18252   if test $gt_cv_c_wchar_t = yes; then
18253
18254 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18255
18256   fi
18257
18258
18259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18260 $as_echo_n "checking for wint_t... " >&6; }
18261 if test "${gt_cv_c_wint_t+set}" = set; then :
18262   $as_echo_n "(cached) " >&6
18263 else
18264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h.  */
18266 #include <wchar.h>
18267        wint_t foo = (wchar_t)'\0';
18268 int
18269 main ()
18270 {
18271
18272   ;
18273   return 0;
18274 }
18275 _ACEOF
18276 if ac_fn_c_try_compile "$LINENO"; then :
18277   gt_cv_c_wint_t=yes
18278 else
18279   gt_cv_c_wint_t=no
18280 fi
18281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18282 fi
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18284 $as_echo "$gt_cv_c_wint_t" >&6; }
18285   if test $gt_cv_c_wint_t = yes; then
18286
18287 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18288
18289   fi
18290
18291
18292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18293 $as_echo_n "checking for inttypes.h... " >&6; }
18294 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18295   $as_echo_n "(cached) " >&6
18296 else
18297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h.  */
18299 #include <sys/types.h>
18300 #include <inttypes.h>
18301 int
18302 main ()
18303 {
18304 uintmax_t i = (uintmax_t) -1;
18305   ;
18306   return 0;
18307 }
18308 _ACEOF
18309 if ac_fn_c_try_compile "$LINENO"; then :
18310   gl_cv_header_inttypes_h=yes
18311 else
18312   gl_cv_header_inttypes_h=no
18313 fi
18314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18315 fi
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18317 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18318   if test $gl_cv_header_inttypes_h = yes; then
18319
18320 cat >>confdefs.h <<_ACEOF
18321 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18322 _ACEOF
18323
18324   fi
18325
18326
18327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18328 $as_echo_n "checking for stdint.h... " >&6; }
18329 if test "${gl_cv_header_stdint_h+set}" = set; then :
18330   $as_echo_n "(cached) " >&6
18331 else
18332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h.  */
18334 #include <sys/types.h>
18335 #include <stdint.h>
18336 int
18337 main ()
18338 {
18339 uintmax_t i = (uintmax_t) -1;
18340   ;
18341   return 0;
18342 }
18343 _ACEOF
18344 if ac_fn_c_try_compile "$LINENO"; then :
18345   gl_cv_header_stdint_h=yes
18346 else
18347   gl_cv_header_stdint_h=no
18348 fi
18349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18350 fi
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18352 $as_echo "$gl_cv_header_stdint_h" >&6; }
18353   if test $gl_cv_header_stdint_h = yes; then
18354
18355 cat >>confdefs.h <<_ACEOF
18356 #define HAVE_STDINT_H_WITH_UINTMAX 1
18357 _ACEOF
18358
18359   fi
18360
18361
18362
18363
18364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18365 $as_echo_n "checking for intmax_t... " >&6; }
18366 if test "${gt_cv_c_intmax_t+set}" = set; then :
18367   $as_echo_n "(cached) " >&6
18368 else
18369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h.  */
18371
18372 #include <stddef.h>
18373 #include <stdlib.h>
18374 #if HAVE_STDINT_H_WITH_UINTMAX
18375 #include <stdint.h>
18376 #endif
18377 #if HAVE_INTTYPES_H_WITH_UINTMAX
18378 #include <inttypes.h>
18379 #endif
18380
18381 int
18382 main ()
18383 {
18384 intmax_t x = -1;
18385   ;
18386   return 0;
18387 }
18388 _ACEOF
18389 if ac_fn_c_try_compile "$LINENO"; then :
18390   gt_cv_c_intmax_t=yes
18391 else
18392   gt_cv_c_intmax_t=no
18393 fi
18394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395 fi
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18397 $as_echo "$gt_cv_c_intmax_t" >&6; }
18398   if test $gt_cv_c_intmax_t = yes; then
18399
18400 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18401
18402   fi
18403
18404
18405
18406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18407 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18408 if test "${gt_cv_func_printf_posix+set}" = set; then :
18409   $as_echo_n "(cached) " >&6
18410 else
18411
18412       if test "$cross_compiling" = yes; then :
18413
18414         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h.  */
18416
18417 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18418   notposix
18419 #endif
18420
18421 _ACEOF
18422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18423   $EGREP "notposix" >/dev/null 2>&1; then :
18424   gt_cv_func_printf_posix="guessing no"
18425 else
18426   gt_cv_func_printf_posix="guessing yes"
18427 fi
18428 rm -f conftest*
18429
18430
18431 else
18432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h.  */
18434
18435 #include <stdio.h>
18436 #include <string.h>
18437 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18438    dollar expansion (possibly an autoconf bug).  */
18439 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18440 static char buf[100];
18441 int main ()
18442 {
18443   sprintf (buf, format, 33, 55);
18444   return (strcmp (buf, "55 33") != 0);
18445 }
18446 _ACEOF
18447 if ac_fn_c_try_run "$LINENO"; then :
18448   gt_cv_func_printf_posix=yes
18449 else
18450   gt_cv_func_printf_posix=no
18451 fi
18452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18453   conftest.$ac_objext conftest.beam conftest.$ac_ext
18454 fi
18455
18456
18457 fi
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18459 $as_echo "$gt_cv_func_printf_posix" >&6; }
18460   case $gt_cv_func_printf_posix in
18461     *yes)
18462
18463 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18464
18465       ;;
18466   esac
18467
18468 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18469 # for constant arguments.  Useless!
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18471 $as_echo_n "checking for working alloca.h... " >&6; }
18472 if test "${ac_cv_working_alloca_h+set}" = set; then :
18473   $as_echo_n "(cached) " >&6
18474 else
18475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18476 /* end confdefs.h.  */
18477 #include <alloca.h>
18478 int
18479 main ()
18480 {
18481 char *p = (char *) alloca (2 * sizeof (int));
18482                           if (p) return 0;
18483   ;
18484   return 0;
18485 }
18486 _ACEOF
18487 if ac_fn_c_try_link "$LINENO"; then :
18488   ac_cv_working_alloca_h=yes
18489 else
18490   ac_cv_working_alloca_h=no
18491 fi
18492 rm -f core conftest.err conftest.$ac_objext \
18493     conftest$ac_exeext conftest.$ac_ext
18494 fi
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18496 $as_echo "$ac_cv_working_alloca_h" >&6; }
18497 if test $ac_cv_working_alloca_h = yes; then
18498
18499 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18500
18501 fi
18502
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18504 $as_echo_n "checking for alloca... " >&6; }
18505 if test "${ac_cv_func_alloca_works+set}" = set; then :
18506   $as_echo_n "(cached) " >&6
18507 else
18508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18509 /* end confdefs.h.  */
18510 #ifdef __GNUC__
18511 # define alloca __builtin_alloca
18512 #else
18513 # ifdef _MSC_VER
18514 #  include <malloc.h>
18515 #  define alloca _alloca
18516 # else
18517 #  ifdef HAVE_ALLOCA_H
18518 #   include <alloca.h>
18519 #  else
18520 #   ifdef _AIX
18521  #pragma alloca
18522 #   else
18523 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18524 char *alloca ();
18525 #    endif
18526 #   endif
18527 #  endif
18528 # endif
18529 #endif
18530
18531 int
18532 main ()
18533 {
18534 char *p = (char *) alloca (1);
18535                                     if (p) return 0;
18536   ;
18537   return 0;
18538 }
18539 _ACEOF
18540 if ac_fn_c_try_link "$LINENO"; then :
18541   ac_cv_func_alloca_works=yes
18542 else
18543   ac_cv_func_alloca_works=no
18544 fi
18545 rm -f core conftest.err conftest.$ac_objext \
18546     conftest$ac_exeext conftest.$ac_ext
18547 fi
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18549 $as_echo "$ac_cv_func_alloca_works" >&6; }
18550
18551 if test $ac_cv_func_alloca_works = yes; then
18552
18553 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18554
18555 else
18556   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18557 # that cause trouble.  Some versions do not even contain alloca or
18558 # contain a buggy version.  If you still want to use their alloca,
18559 # use ar to extract alloca.o from them instead of compiling alloca.c.
18560
18561 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18562
18563 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18564
18565
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18567 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18568 if test "${ac_cv_os_cray+set}" = set; then :
18569   $as_echo_n "(cached) " >&6
18570 else
18571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18572 /* end confdefs.h.  */
18573 #if defined CRAY && ! defined CRAY2
18574 webecray
18575 #else
18576 wenotbecray
18577 #endif
18578
18579 _ACEOF
18580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18581   $EGREP "webecray" >/dev/null 2>&1; then :
18582   ac_cv_os_cray=yes
18583 else
18584   ac_cv_os_cray=no
18585 fi
18586 rm -f conftest*
18587
18588 fi
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18590 $as_echo "$ac_cv_os_cray" >&6; }
18591 if test $ac_cv_os_cray = yes; then
18592   for ac_func in _getb67 GETB67 getb67; do
18593     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18594 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18595 eval as_val=\$$as_ac_var
18596    if test "x$as_val" = x""yes; then :
18597
18598 cat >>confdefs.h <<_ACEOF
18599 #define CRAY_STACKSEG_END $ac_func
18600 _ACEOF
18601
18602     break
18603 fi
18604
18605   done
18606 fi
18607
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18609 $as_echo_n "checking stack direction for C alloca... " >&6; }
18610 if test "${ac_cv_c_stack_direction+set}" = set; then :
18611   $as_echo_n "(cached) " >&6
18612 else
18613   if test "$cross_compiling" = yes; then :
18614   ac_cv_c_stack_direction=0
18615 else
18616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18617 /* end confdefs.h.  */
18618 $ac_includes_default
18619 int
18620 find_stack_direction ()
18621 {
18622   static char *addr = 0;
18623   auto char dummy;
18624   if (addr == 0)
18625     {
18626       addr = &dummy;
18627       return find_stack_direction ();
18628     }
18629   else
18630     return (&dummy > addr) ? 1 : -1;
18631 }
18632
18633 int
18634 main ()
18635 {
18636   return find_stack_direction () < 0;
18637 }
18638 _ACEOF
18639 if ac_fn_c_try_run "$LINENO"; then :
18640   ac_cv_c_stack_direction=1
18641 else
18642   ac_cv_c_stack_direction=-1
18643 fi
18644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18645   conftest.$ac_objext conftest.beam conftest.$ac_ext
18646 fi
18647
18648 fi
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18650 $as_echo "$ac_cv_c_stack_direction" >&6; }
18651 cat >>confdefs.h <<_ACEOF
18652 #define STACK_DIRECTION $ac_cv_c_stack_direction
18653 _ACEOF
18654
18655
18656 fi
18657
18658
18659
18660
18661   for ac_header in $ac_header_list
18662 do :
18663   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18664 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18665 "
18666 eval as_val=\$$as_ac_Header
18667    if test "x$as_val" = x""yes; then :
18668   cat >>confdefs.h <<_ACEOF
18669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18670 _ACEOF
18671
18672 fi
18673
18674 done
18675
18676
18677
18678
18679
18680
18681
18682
18683 for ac_func in getpagesize
18684 do :
18685   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18686 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18687   cat >>confdefs.h <<_ACEOF
18688 #define HAVE_GETPAGESIZE 1
18689 _ACEOF
18690
18691 fi
18692 done
18693
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18695 $as_echo_n "checking for working mmap... " >&6; }
18696 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18697   $as_echo_n "(cached) " >&6
18698 else
18699   if test "$cross_compiling" = yes; then :
18700   ac_cv_func_mmap_fixed_mapped=no
18701 else
18702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703 /* end confdefs.h.  */
18704 $ac_includes_default
18705 /* malloc might have been renamed as rpl_malloc. */
18706 #undef malloc
18707
18708 /* Thanks to Mike Haertel and Jim Avera for this test.
18709    Here is a matrix of mmap possibilities:
18710         mmap private not fixed
18711         mmap private fixed at somewhere currently unmapped
18712         mmap private fixed at somewhere already mapped
18713         mmap shared not fixed
18714         mmap shared fixed at somewhere currently unmapped
18715         mmap shared fixed at somewhere already mapped
18716    For private mappings, we should verify that changes cannot be read()
18717    back from the file, nor mmap's back from the file at a different
18718    address.  (There have been systems where private was not correctly
18719    implemented like the infamous i386 svr4.0, and systems where the
18720    VM page cache was not coherent with the file system buffer cache
18721    like early versions of FreeBSD and possibly contemporary NetBSD.)
18722    For shared mappings, we should conversely verify that changes get
18723    propagated back to all the places they're supposed to be.
18724
18725    Grep wants private fixed already mapped.
18726    The main things grep needs to know about mmap are:
18727    * does it exist and is it safe to write into the mmap'd area
18728    * how to use it (BSD variants)  */
18729
18730 #include <fcntl.h>
18731 #include <sys/mman.h>
18732
18733 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18734 char *malloc ();
18735 #endif
18736
18737 /* This mess was copied from the GNU getpagesize.h.  */
18738 #ifndef HAVE_GETPAGESIZE
18739 # ifdef _SC_PAGESIZE
18740 #  define getpagesize() sysconf(_SC_PAGESIZE)
18741 # else /* no _SC_PAGESIZE */
18742 #  ifdef HAVE_SYS_PARAM_H
18743 #   include <sys/param.h>
18744 #   ifdef EXEC_PAGESIZE
18745 #    define getpagesize() EXEC_PAGESIZE
18746 #   else /* no EXEC_PAGESIZE */
18747 #    ifdef NBPG
18748 #     define getpagesize() NBPG * CLSIZE
18749 #     ifndef CLSIZE
18750 #      define CLSIZE 1
18751 #     endif /* no CLSIZE */
18752 #    else /* no NBPG */
18753 #     ifdef NBPC
18754 #      define getpagesize() NBPC
18755 #     else /* no NBPC */
18756 #      ifdef PAGESIZE
18757 #       define getpagesize() PAGESIZE
18758 #      endif /* PAGESIZE */
18759 #     endif /* no NBPC */
18760 #    endif /* no NBPG */
18761 #   endif /* no EXEC_PAGESIZE */
18762 #  else /* no HAVE_SYS_PARAM_H */
18763 #   define getpagesize() 8192   /* punt totally */
18764 #  endif /* no HAVE_SYS_PARAM_H */
18765 # endif /* no _SC_PAGESIZE */
18766
18767 #endif /* no HAVE_GETPAGESIZE */
18768
18769 int
18770 main ()
18771 {
18772   char *data, *data2, *data3;
18773   int i, pagesize;
18774   int fd, fd2;
18775
18776   pagesize = getpagesize ();
18777
18778   /* First, make a file with some known garbage in it. */
18779   data = (char *) malloc (pagesize);
18780   if (!data)
18781     return 1;
18782   for (i = 0; i < pagesize; ++i)
18783     *(data + i) = rand ();
18784   umask (0);
18785   fd = creat ("conftest.mmap", 0600);
18786   if (fd < 0)
18787     return 2;
18788   if (write (fd, data, pagesize) != pagesize)
18789     return 3;
18790   close (fd);
18791
18792   /* Next, check that the tail of a page is zero-filled.  File must have
18793      non-zero length, otherwise we risk SIGBUS for entire page.  */
18794   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18795   if (fd2 < 0)
18796     return 4;
18797   data2 = "";
18798   if (write (fd2, data2, 1) != 1)
18799     return 5;
18800   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18801   if (data2 == MAP_FAILED)
18802     return 6;
18803   for (i = 0; i < pagesize; ++i)
18804     if (*(data2 + i))
18805       return 7;
18806   close (fd2);
18807   if (munmap (data2, pagesize))
18808     return 8;
18809
18810   /* Next, try to mmap the file at a fixed address which already has
18811      something else allocated at it.  If we can, also make sure that
18812      we see the same garbage.  */
18813   fd = open ("conftest.mmap", O_RDWR);
18814   if (fd < 0)
18815     return 9;
18816   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18817                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18818     return 10;
18819   for (i = 0; i < pagesize; ++i)
18820     if (*(data + i) != *(data2 + i))
18821       return 11;
18822
18823   /* Finally, make sure that changes to the mapped area do not
18824      percolate back to the file as seen by read().  (This is a bug on
18825      some variants of i386 svr4.0.)  */
18826   for (i = 0; i < pagesize; ++i)
18827     *(data2 + i) = *(data2 + i) + 1;
18828   data3 = (char *) malloc (pagesize);
18829   if (!data3)
18830     return 12;
18831   if (read (fd, data3, pagesize) != pagesize)
18832     return 13;
18833   for (i = 0; i < pagesize; ++i)
18834     if (*(data + i) != *(data3 + i))
18835       return 14;
18836   close (fd);
18837   return 0;
18838 }
18839 _ACEOF
18840 if ac_fn_c_try_run "$LINENO"; then :
18841   ac_cv_func_mmap_fixed_mapped=yes
18842 else
18843   ac_cv_func_mmap_fixed_mapped=no
18844 fi
18845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18846   conftest.$ac_objext conftest.beam conftest.$ac_ext
18847 fi
18848
18849 fi
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18851 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18852 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18853
18854 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18855
18856 fi
18857 rm -f conftest.mmap conftest.txt
18858
18859
18860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18861 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18862 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18863   $as_echo_n "(cached) " >&6
18864 else
18865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h.  */
18867
18868 #include <features.h>
18869 #ifdef __GNU_LIBRARY__
18870  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18871   Lucky GNU user
18872  #endif
18873 #endif
18874
18875 _ACEOF
18876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18877   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18878   ac_cv_gnu_library_2_1=yes
18879 else
18880   ac_cv_gnu_library_2_1=no
18881 fi
18882 rm -f conftest*
18883
18884
18885
18886 fi
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18888 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18889
18890     GLIBC21="$ac_cv_gnu_library_2_1"
18891
18892
18893
18894
18895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18896 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18897 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18898   $as_echo_n "(cached) " >&6
18899 else
18900
18901       if test "$cross_compiling" = yes; then :
18902
18903           # Guess based on the CPU.
18904           case "$host_cpu" in
18905             alpha* | i3456786 | m68k | s390*)
18906               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18907             *)
18908               gt_cv_int_divbyzero_sigfpe="guessing no";;
18909           esac
18910
18911 else
18912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h.  */
18914
18915 #include <stdlib.h>
18916 #include <signal.h>
18917
18918 static void
18919 #ifdef __cplusplus
18920 sigfpe_handler (int sig)
18921 #else
18922 sigfpe_handler (sig) int sig;
18923 #endif
18924 {
18925   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18926   exit (sig != SIGFPE);
18927 }
18928
18929 int x = 1;
18930 int y = 0;
18931 int z;
18932 int nan;
18933
18934 int main ()
18935 {
18936   signal (SIGFPE, sigfpe_handler);
18937 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18938 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18939   signal (SIGTRAP, sigfpe_handler);
18940 #endif
18941 /* Linux/SPARC yields signal SIGILL.  */
18942 #if defined (__sparc__) && defined (__linux__)
18943   signal (SIGILL, sigfpe_handler);
18944 #endif
18945
18946   z = x / y;
18947   nan = y / y;
18948   exit (1);
18949 }
18950
18951 _ACEOF
18952 if ac_fn_c_try_run "$LINENO"; then :
18953   gt_cv_int_divbyzero_sigfpe=yes
18954 else
18955   gt_cv_int_divbyzero_sigfpe=no
18956 fi
18957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18958   conftest.$ac_objext conftest.beam conftest.$ac_ext
18959 fi
18960
18961
18962 fi
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18964 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18965   case "$gt_cv_int_divbyzero_sigfpe" in
18966     *yes) value=1;;
18967     *) value=0;;
18968   esac
18969
18970 cat >>confdefs.h <<_ACEOF
18971 #define INTDIV0_RAISES_SIGFPE $value
18972 _ACEOF
18973
18974
18975
18976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18977 $as_echo_n "checking for unsigned long long... " >&6; }
18978 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18979   $as_echo_n "(cached) " >&6
18980 else
18981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h.  */
18983 unsigned long long ull = 1ULL; int i = 63;
18984 int
18985 main ()
18986 {
18987 unsigned long long ullmax = (unsigned long long) -1;
18988      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18989   ;
18990   return 0;
18991 }
18992 _ACEOF
18993 if ac_fn_c_try_link "$LINENO"; then :
18994   ac_cv_type_unsigned_long_long=yes
18995 else
18996   ac_cv_type_unsigned_long_long=no
18997 fi
18998 rm -f core conftest.err conftest.$ac_objext \
18999     conftest$ac_exeext conftest.$ac_ext
19000 fi
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19002 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19003   if test $ac_cv_type_unsigned_long_long = yes; then
19004
19005 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19006
19007   fi
19008
19009
19010
19011
19012   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19013
19014     test $ac_cv_type_unsigned_long_long = yes \
19015       && ac_type='unsigned long long' \
19016       || ac_type='unsigned long'
19017
19018 cat >>confdefs.h <<_ACEOF
19019 #define uintmax_t $ac_type
19020 _ACEOF
19021
19022   else
19023
19024 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19025
19026   fi
19027
19028
19029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19030 $as_echo_n "checking for inttypes.h... " >&6; }
19031 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19032   $as_echo_n "(cached) " >&6
19033 else
19034
19035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036 /* end confdefs.h.  */
19037 #include <sys/types.h>
19038 #include <inttypes.h>
19039 int
19040 main ()
19041 {
19042
19043   ;
19044   return 0;
19045 }
19046 _ACEOF
19047 if ac_fn_c_try_compile "$LINENO"; then :
19048   gt_cv_header_inttypes_h=yes
19049 else
19050   gt_cv_header_inttypes_h=no
19051 fi
19052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19053
19054 fi
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19056 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19057   if test $gt_cv_header_inttypes_h = yes; then
19058
19059 cat >>confdefs.h <<_ACEOF
19060 #define HAVE_INTTYPES_H 1
19061 _ACEOF
19062
19063   fi
19064
19065
19066
19067   if test $gt_cv_header_inttypes_h = yes; then
19068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19069 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19070 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19071   $as_echo_n "(cached) " >&6
19072 else
19073
19074         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h.  */
19076 #include <inttypes.h>
19077 #ifdef PRId32
19078 char *p = PRId32;
19079 #endif
19080
19081 int
19082 main ()
19083 {
19084
19085   ;
19086   return 0;
19087 }
19088 _ACEOF
19089 if ac_fn_c_try_compile "$LINENO"; then :
19090   gt_cv_inttypes_pri_broken=no
19091 else
19092   gt_cv_inttypes_pri_broken=yes
19093 fi
19094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19095
19096 fi
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19098 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19099   fi
19100   if test "$gt_cv_inttypes_pri_broken" = yes; then
19101
19102 cat >>confdefs.h <<_ACEOF
19103 #define PRI_MACROS_BROKEN 1
19104 _ACEOF
19105
19106   fi
19107
19108
19109   for ac_header in stdint.h
19110 do :
19111   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19112 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19113   cat >>confdefs.h <<_ACEOF
19114 #define HAVE_STDINT_H 1
19115 _ACEOF
19116
19117 fi
19118
19119 done
19120
19121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19122 $as_echo_n "checking for SIZE_MAX... " >&6; }
19123   result=
19124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19125 /* end confdefs.h.  */
19126
19127 #include <limits.h>
19128 #if HAVE_STDINT_H
19129 #include <stdint.h>
19130 #endif
19131 #ifdef SIZE_MAX
19132 Found it
19133 #endif
19134
19135 _ACEOF
19136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19137   $EGREP "Found it" >/dev/null 2>&1; then :
19138   result=yes
19139 fi
19140 rm -f conftest*
19141
19142   if test -z "$result"; then
19143                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19144
19145 else
19146   result=?
19147 fi
19148
19149
19150     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19151
19152 else
19153   result=?
19154 fi
19155
19156
19157     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19158
19159 else
19160   result=?
19161 fi
19162
19163
19164     if test "$fits_in_uint" = 1; then
19165                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h.  */
19167 #include <stddef.h>
19168         extern size_t foo;
19169         extern unsigned long foo;
19170
19171 int
19172 main ()
19173 {
19174
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 if ac_fn_c_try_compile "$LINENO"; then :
19180   fits_in_uint=0
19181 fi
19182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19183     fi
19184     if test -z "$result"; then
19185       if test "$fits_in_uint" = 1; then
19186         result="$res_hi$res_lo"U
19187       else
19188         result="$res_hi$res_lo"UL
19189       fi
19190     else
19191             result='~(size_t)0'
19192     fi
19193   fi
19194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19195 $as_echo "$result" >&6; }
19196   if test "$result" != yes; then
19197
19198 cat >>confdefs.h <<_ACEOF
19199 #define SIZE_MAX $result
19200 _ACEOF
19201
19202   fi
19203
19204
19205
19206
19207   for ac_header in stdint.h
19208 do :
19209   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19210 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19211   cat >>confdefs.h <<_ACEOF
19212 #define HAVE_STDINT_H 1
19213 _ACEOF
19214
19215 fi
19216
19217 done
19218
19219
19220
19221
19222
19223
19224
19225
19226   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19227 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19228
19229 else
19230
19231 $as_echo "#define ptrdiff_t long" >>confdefs.h
19232
19233
19234 fi
19235
19236   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19237 stdlib.h string.h unistd.h sys/param.h
19238 do :
19239   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19240 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19241 eval as_val=\$$as_ac_Header
19242    if test "x$as_val" = x""yes; then :
19243   cat >>confdefs.h <<_ACEOF
19244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19245 _ACEOF
19246
19247 fi
19248
19249 done
19250
19251   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19252 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19253 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19254 __fsetlocking
19255 do :
19256   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19258 eval as_val=\$$as_ac_var
19259    if test "x$as_val" = x""yes; then :
19260   cat >>confdefs.h <<_ACEOF
19261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19262 _ACEOF
19263
19264 fi
19265 done
19266
19267
19268
19269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19270 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19271 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19272   $as_echo_n "(cached) " >&6
19273 else
19274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19275 /* end confdefs.h.  */
19276 #include <stdio.h>
19277 int
19278 main ()
19279 {
19280
19281 #ifndef _snprintf
19282   char *p = (char *) _snprintf;
19283 #endif
19284
19285   ;
19286   return 0;
19287 }
19288 _ACEOF
19289 if ac_fn_c_try_compile "$LINENO"; then :
19290   ac_cv_have_decl__snprintf=yes
19291 else
19292   ac_cv_have_decl__snprintf=no
19293 fi
19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19295 fi
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19297 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19298   if test $ac_cv_have_decl__snprintf = yes; then
19299     gt_value=1
19300   else
19301     gt_value=0
19302   fi
19303
19304 cat >>confdefs.h <<_ACEOF
19305 #define HAVE_DECL__SNPRINTF $gt_value
19306 _ACEOF
19307
19308
19309
19310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19311 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19312 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19313   $as_echo_n "(cached) " >&6
19314 else
19315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19316 /* end confdefs.h.  */
19317 #include <stdio.h>
19318 int
19319 main ()
19320 {
19321
19322 #ifndef _snwprintf
19323   char *p = (char *) _snwprintf;
19324 #endif
19325
19326   ;
19327   return 0;
19328 }
19329 _ACEOF
19330 if ac_fn_c_try_compile "$LINENO"; then :
19331   ac_cv_have_decl__snwprintf=yes
19332 else
19333   ac_cv_have_decl__snwprintf=no
19334 fi
19335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19336 fi
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19338 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19339   if test $ac_cv_have_decl__snwprintf = yes; then
19340     gt_value=1
19341   else
19342     gt_value=0
19343   fi
19344
19345 cat >>confdefs.h <<_ACEOF
19346 #define HAVE_DECL__SNWPRINTF $gt_value
19347 _ACEOF
19348
19349
19350
19351
19352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19353 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19354 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19355   $as_echo_n "(cached) " >&6
19356 else
19357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19358 /* end confdefs.h.  */
19359 #include <stdio.h>
19360 int
19361 main ()
19362 {
19363
19364 #ifndef feof_unlocked
19365   char *p = (char *) feof_unlocked;
19366 #endif
19367
19368   ;
19369   return 0;
19370 }
19371 _ACEOF
19372 if ac_fn_c_try_compile "$LINENO"; then :
19373   ac_cv_have_decl_feof_unlocked=yes
19374 else
19375   ac_cv_have_decl_feof_unlocked=no
19376 fi
19377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19378 fi
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19380 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19381   if test $ac_cv_have_decl_feof_unlocked = yes; then
19382     gt_value=1
19383   else
19384     gt_value=0
19385   fi
19386
19387 cat >>confdefs.h <<_ACEOF
19388 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19389 _ACEOF
19390
19391
19392
19393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19394 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19395 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19396   $as_echo_n "(cached) " >&6
19397 else
19398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h.  */
19400 #include <stdio.h>
19401 int
19402 main ()
19403 {
19404
19405 #ifndef fgets_unlocked
19406   char *p = (char *) fgets_unlocked;
19407 #endif
19408
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 if ac_fn_c_try_compile "$LINENO"; then :
19414   ac_cv_have_decl_fgets_unlocked=yes
19415 else
19416   ac_cv_have_decl_fgets_unlocked=no
19417 fi
19418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419 fi
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19421 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19422   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19423     gt_value=1
19424   else
19425     gt_value=0
19426   fi
19427
19428 cat >>confdefs.h <<_ACEOF
19429 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19430 _ACEOF
19431
19432
19433
19434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19435 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19436 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19437   $as_echo_n "(cached) " >&6
19438 else
19439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h.  */
19441 #include <stdio.h>
19442 int
19443 main ()
19444 {
19445
19446 #ifndef getc_unlocked
19447   char *p = (char *) getc_unlocked;
19448 #endif
19449
19450   ;
19451   return 0;
19452 }
19453 _ACEOF
19454 if ac_fn_c_try_compile "$LINENO"; then :
19455   ac_cv_have_decl_getc_unlocked=yes
19456 else
19457   ac_cv_have_decl_getc_unlocked=no
19458 fi
19459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19460 fi
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19462 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19463   if test $ac_cv_have_decl_getc_unlocked = yes; then
19464     gt_value=1
19465   else
19466     gt_value=0
19467   fi
19468
19469 cat >>confdefs.h <<_ACEOF
19470 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19471 _ACEOF
19472
19473
19474
19475   case $gt_cv_func_printf_posix in
19476     *yes) HAVE_POSIX_PRINTF=1 ;;
19477     *) HAVE_POSIX_PRINTF=0 ;;
19478   esac
19479
19480   if test "$ac_cv_func_asprintf" = yes; then
19481     HAVE_ASPRINTF=1
19482   else
19483     HAVE_ASPRINTF=0
19484   fi
19485
19486   if test "$ac_cv_func_snprintf" = yes; then
19487     HAVE_SNPRINTF=1
19488   else
19489     HAVE_SNPRINTF=0
19490   fi
19491
19492   if test "$ac_cv_func_wprintf" = yes; then
19493     HAVE_WPRINTF=1
19494   else
19495     HAVE_WPRINTF=0
19496   fi
19497
19498
19499
19500
19501
19502
19503
19504           am_save_CPPFLAGS="$CPPFLAGS"
19505
19506   for element in $INCICONV; do
19507     haveit=
19508     for x in $CPPFLAGS; do
19509
19510   acl_save_prefix="$prefix"
19511   prefix="$acl_final_prefix"
19512   acl_save_exec_prefix="$exec_prefix"
19513   exec_prefix="$acl_final_exec_prefix"
19514   eval x=\"$x\"
19515   exec_prefix="$acl_save_exec_prefix"
19516   prefix="$acl_save_prefix"
19517
19518       if test "X$x" = "X$element"; then
19519         haveit=yes
19520         break
19521       fi
19522     done
19523     if test -z "$haveit"; then
19524       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19525     fi
19526   done
19527
19528
19529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19530 $as_echo_n "checking for iconv... " >&6; }
19531 if test "${am_cv_func_iconv+set}" = set; then :
19532   $as_echo_n "(cached) " >&6
19533 else
19534
19535     am_cv_func_iconv="no, consider installing GNU libiconv"
19536     am_cv_lib_iconv=no
19537     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538 /* end confdefs.h.  */
19539 #include <stdlib.h>
19540 #include <iconv.h>
19541 int
19542 main ()
19543 {
19544 iconv_t cd = iconv_open("","");
19545        iconv(cd,NULL,NULL,NULL,NULL);
19546        iconv_close(cd);
19547   ;
19548   return 0;
19549 }
19550 _ACEOF
19551 if ac_fn_c_try_link "$LINENO"; then :
19552   am_cv_func_iconv=yes
19553 fi
19554 rm -f core conftest.err conftest.$ac_objext \
19555     conftest$ac_exeext conftest.$ac_ext
19556     if test "$am_cv_func_iconv" != yes; then
19557       am_save_LIBS="$LIBS"
19558       LIBS="$LIBS $LIBICONV"
19559       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19560 /* end confdefs.h.  */
19561 #include <stdlib.h>
19562 #include <iconv.h>
19563 int
19564 main ()
19565 {
19566 iconv_t cd = iconv_open("","");
19567          iconv(cd,NULL,NULL,NULL,NULL);
19568          iconv_close(cd);
19569   ;
19570   return 0;
19571 }
19572 _ACEOF
19573 if ac_fn_c_try_link "$LINENO"; then :
19574   am_cv_lib_iconv=yes
19575         am_cv_func_iconv=yes
19576 fi
19577 rm -f core conftest.err conftest.$ac_objext \
19578     conftest$ac_exeext conftest.$ac_ext
19579       LIBS="$am_save_LIBS"
19580     fi
19581
19582 fi
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19584 $as_echo "$am_cv_func_iconv" >&6; }
19585   if test "$am_cv_func_iconv" = yes; then
19586
19587 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19588
19589   fi
19590   if test "$am_cv_lib_iconv" = yes; then
19591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19592 $as_echo_n "checking how to link with libiconv... " >&6; }
19593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19594 $as_echo "$LIBICONV" >&6; }
19595   else
19596             CPPFLAGS="$am_save_CPPFLAGS"
19597     LIBICONV=
19598     LTLIBICONV=
19599   fi
19600
19601
19602
19603   if test "$am_cv_func_iconv" = yes; then
19604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19605 $as_echo_n "checking for iconv declaration... " >&6; }
19606     if test "${am_cv_proto_iconv+set}" = set; then :
19607   $as_echo_n "(cached) " >&6
19608 else
19609
19610       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19611 /* end confdefs.h.  */
19612
19613 #include <stdlib.h>
19614 #include <iconv.h>
19615 extern
19616 #ifdef __cplusplus
19617 "C"
19618 #endif
19619 #if defined(__STDC__) || defined(__cplusplus)
19620 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19621 #else
19622 size_t iconv();
19623 #endif
19624
19625 int
19626 main ()
19627 {
19628
19629   ;
19630   return 0;
19631 }
19632 _ACEOF
19633 if ac_fn_c_try_compile "$LINENO"; then :
19634   am_cv_proto_iconv_arg1=""
19635 else
19636   am_cv_proto_iconv_arg1="const"
19637 fi
19638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19639       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);"
19640 fi
19641
19642     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19644          }$am_cv_proto_iconv" >&5
19645 $as_echo "${ac_t:-
19646          }$am_cv_proto_iconv" >&6; }
19647
19648 cat >>confdefs.h <<_ACEOF
19649 #define ICONV_CONST $am_cv_proto_iconv_arg1
19650 _ACEOF
19651
19652   fi
19653
19654
19655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19656 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19657 if test "${am_cv_langinfo_codeset+set}" = set; then :
19658   $as_echo_n "(cached) " >&6
19659 else
19660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h.  */
19662 #include <langinfo.h>
19663 int
19664 main ()
19665 {
19666 char* cs = nl_langinfo(CODESET);
19667   ;
19668   return 0;
19669 }
19670 _ACEOF
19671 if ac_fn_c_try_link "$LINENO"; then :
19672   am_cv_langinfo_codeset=yes
19673 else
19674   am_cv_langinfo_codeset=no
19675 fi
19676 rm -f core conftest.err conftest.$ac_objext \
19677     conftest$ac_exeext conftest.$ac_ext
19678
19679 fi
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19681 $as_echo "$am_cv_langinfo_codeset" >&6; }
19682   if test $am_cv_langinfo_codeset = yes; then
19683
19684 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19685
19686   fi
19687
19688   if test $ac_cv_header_locale_h = yes; then
19689
19690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19691 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19692 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19693   $as_echo_n "(cached) " >&6
19694 else
19695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696 /* end confdefs.h.  */
19697 #include <locale.h>
19698 int
19699 main ()
19700 {
19701 return LC_MESSAGES
19702   ;
19703   return 0;
19704 }
19705 _ACEOF
19706 if ac_fn_c_try_link "$LINENO"; then :
19707   gt_cv_val_LC_MESSAGES=yes
19708 else
19709   gt_cv_val_LC_MESSAGES=no
19710 fi
19711 rm -f core conftest.err conftest.$ac_objext \
19712     conftest$ac_exeext conftest.$ac_ext
19713 fi
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19715 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19716   if test $gt_cv_val_LC_MESSAGES = yes; then
19717
19718 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19719
19720   fi
19721
19722   fi
19723
19724   if test -n "$INTL_MACOSX_LIBS"; then
19725     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19726   fi
19727
19728                       for ac_prog in bison
19729 do
19730   # Extract the first word of "$ac_prog", so it can be a program name with args.
19731 set dummy $ac_prog; ac_word=$2
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19733 $as_echo_n "checking for $ac_word... " >&6; }
19734 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19735   $as_echo_n "(cached) " >&6
19736 else
19737   if test -n "$INTLBISON"; then
19738   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19739 else
19740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19741 for as_dir in $PATH
19742 do
19743   IFS=$as_save_IFS
19744   test -z "$as_dir" && as_dir=.
19745     for ac_exec_ext in '' $ac_executable_extensions; do
19746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19747     ac_cv_prog_INTLBISON="$ac_prog"
19748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19749     break 2
19750   fi
19751 done
19752   done
19753 IFS=$as_save_IFS
19754
19755 fi
19756 fi
19757 INTLBISON=$ac_cv_prog_INTLBISON
19758 if test -n "$INTLBISON"; then
19759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19760 $as_echo "$INTLBISON" >&6; }
19761 else
19762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19763 $as_echo "no" >&6; }
19764 fi
19765
19766
19767   test -n "$INTLBISON" && break
19768 done
19769
19770   if test -z "$INTLBISON"; then
19771     ac_verc_fail=yes
19772   else
19773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19774 $as_echo_n "checking version of bison... " >&6; }
19775     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19776     case $ac_prog_version in
19777       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19778       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19779          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19780       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19781     esac
19782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19783 $as_echo "$ac_prog_version" >&6; }
19784   fi
19785   if test $ac_verc_fail = yes; then
19786     INTLBISON=:
19787   fi
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19805 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19806 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19807   $as_echo_n "(cached) " >&6
19808 else
19809   gt_save_CPPFLAGS="$CPPFLAGS"
19810      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19811      gt_save_LIBS="$LIBS"
19812      LIBS="$LIBS -framework CoreFoundation"
19813      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19814 /* end confdefs.h.  */
19815 #include <CFPreferences.h>
19816 int
19817 main ()
19818 {
19819 CFPreferencesCopyAppValue(NULL, NULL)
19820   ;
19821   return 0;
19822 }
19823 _ACEOF
19824 if ac_fn_c_try_link "$LINENO"; then :
19825   gt_cv_func_CFPreferencesCopyAppValue=yes
19826 else
19827   gt_cv_func_CFPreferencesCopyAppValue=no
19828 fi
19829 rm -f core conftest.err conftest.$ac_objext \
19830     conftest$ac_exeext conftest.$ac_ext
19831      CPPFLAGS="$gt_save_CPPFLAGS"
19832      LIBS="$gt_save_LIBS"
19833 fi
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19835 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19836   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19837
19838 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19839
19840   fi
19841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19842 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19843 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19844   $as_echo_n "(cached) " >&6
19845 else
19846   gt_save_CPPFLAGS="$CPPFLAGS"
19847      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19848      gt_save_LIBS="$LIBS"
19849      LIBS="$LIBS -framework CoreFoundation"
19850      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h.  */
19852 #include <CFLocale.h>
19853 int
19854 main ()
19855 {
19856 CFLocaleCopyCurrent();
19857   ;
19858   return 0;
19859 }
19860 _ACEOF
19861 if ac_fn_c_try_link "$LINENO"; then :
19862   gt_cv_func_CFLocaleCopyCurrent=yes
19863 else
19864   gt_cv_func_CFLocaleCopyCurrent=no
19865 fi
19866 rm -f core conftest.err conftest.$ac_objext \
19867     conftest$ac_exeext conftest.$ac_ext
19868      CPPFLAGS="$gt_save_CPPFLAGS"
19869      LIBS="$gt_save_LIBS"
19870 fi
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19872 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19873   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19874
19875 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19876
19877   fi
19878   INTL_MACOSX_LIBS=
19879   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19880     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19881   fi
19882
19883
19884
19885
19886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19887 $as_echo_n "checking whether NLS is requested... " >&6; }
19888     # Check whether --enable-nls was given.
19889 if test "${enable_nls+set}" = set; then :
19890   enableval=$enable_nls; USE_NLS=$enableval
19891 else
19892   USE_NLS=yes
19893 fi
19894
19895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19896 $as_echo "$USE_NLS" >&6; }
19897
19898
19899
19900
19901     BUILD_INCLUDED_LIBINTL=no
19902     USE_INCLUDED_LIBINTL=no
19903
19904   LIBINTL=
19905   LTLIBINTL=
19906   POSUB=
19907
19908     if test "$USE_NLS" = "yes"; then
19909     gt_use_preinstalled_gnugettext=no
19910
19911       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19912 $as_echo_n "checking whether included gettext is requested... " >&6; }
19913
19914 # Check whether --with-included-gettext was given.
19915 if test "${with_included_gettext+set}" = set; then :
19916   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19917 else
19918   nls_cv_force_use_gnu_gettext=no
19919 fi
19920
19921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19922 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19923
19924       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19925       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19926
19927
19928
19929
19930
19931
19932         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19933 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19934 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19935   $as_echo_n "(cached) " >&6
19936 else
19937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h.  */
19939 #include <libintl.h>
19940 extern int _nl_msg_cat_cntr;
19941 extern int *_nl_domain_bindings;
19942 int
19943 main ()
19944 {
19945 bindtextdomain ("", "");
19946 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19947   ;
19948   return 0;
19949 }
19950 _ACEOF
19951 if ac_fn_c_try_link "$LINENO"; then :
19952   gt_cv_func_gnugettext1_libc=yes
19953 else
19954   gt_cv_func_gnugettext1_libc=no
19955 fi
19956 rm -f core conftest.err conftest.$ac_objext \
19957     conftest$ac_exeext conftest.$ac_ext
19958 fi
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19960 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19961
19962         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19963
19964
19965
19966     use_additional=yes
19967
19968   acl_save_prefix="$prefix"
19969   prefix="$acl_final_prefix"
19970   acl_save_exec_prefix="$exec_prefix"
19971   exec_prefix="$acl_final_exec_prefix"
19972
19973     eval additional_includedir=\"$includedir\"
19974     eval additional_libdir=\"$libdir\"
19975
19976   exec_prefix="$acl_save_exec_prefix"
19977   prefix="$acl_save_prefix"
19978
19979
19980 # Check whether --with-libintl-prefix was given.
19981 if test "${with_libintl_prefix+set}" = set; then :
19982   withval=$with_libintl_prefix;
19983     if test "X$withval" = "Xno"; then
19984       use_additional=no
19985     else
19986       if test "X$withval" = "X"; then
19987
19988   acl_save_prefix="$prefix"
19989   prefix="$acl_final_prefix"
19990   acl_save_exec_prefix="$exec_prefix"
19991   exec_prefix="$acl_final_exec_prefix"
19992
19993           eval additional_includedir=\"$includedir\"
19994           eval additional_libdir=\"$libdir\"
19995
19996   exec_prefix="$acl_save_exec_prefix"
19997   prefix="$acl_save_prefix"
19998
19999       else
20000         additional_includedir="$withval/include"
20001         additional_libdir="$withval/lib"
20002       fi
20003     fi
20004
20005 fi
20006
20007       LIBINTL=
20008   LTLIBINTL=
20009   INCINTL=
20010   rpathdirs=
20011   ltrpathdirs=
20012   names_already_handled=
20013   names_next_round='intl '
20014   while test -n "$names_next_round"; do
20015     names_this_round="$names_next_round"
20016     names_next_round=
20017     for name in $names_this_round; do
20018       already_handled=
20019       for n in $names_already_handled; do
20020         if test "$n" = "$name"; then
20021           already_handled=yes
20022           break
20023         fi
20024       done
20025       if test -z "$already_handled"; then
20026         names_already_handled="$names_already_handled $name"
20027                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20028         eval value=\"\$HAVE_LIB$uppername\"
20029         if test -n "$value"; then
20030           if test "$value" = yes; then
20031             eval value=\"\$LIB$uppername\"
20032             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20033             eval value=\"\$LTLIB$uppername\"
20034             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20035           else
20036                                     :
20037           fi
20038         else
20039                               found_dir=
20040           found_la=
20041           found_so=
20042           found_a=
20043           if test $use_additional = yes; then
20044             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20045               found_dir="$additional_libdir"
20046               found_so="$additional_libdir/lib$name.$shlibext"
20047               if test -f "$additional_libdir/lib$name.la"; then
20048                 found_la="$additional_libdir/lib$name.la"
20049               fi
20050             else
20051               if test -f "$additional_libdir/lib$name.$libext"; then
20052                 found_dir="$additional_libdir"
20053                 found_a="$additional_libdir/lib$name.$libext"
20054                 if test -f "$additional_libdir/lib$name.la"; then
20055                   found_la="$additional_libdir/lib$name.la"
20056                 fi
20057               fi
20058             fi
20059           fi
20060           if test "X$found_dir" = "X"; then
20061             for x in $LDFLAGS $LTLIBINTL; do
20062
20063   acl_save_prefix="$prefix"
20064   prefix="$acl_final_prefix"
20065   acl_save_exec_prefix="$exec_prefix"
20066   exec_prefix="$acl_final_exec_prefix"
20067   eval x=\"$x\"
20068   exec_prefix="$acl_save_exec_prefix"
20069   prefix="$acl_save_prefix"
20070
20071               case "$x" in
20072                 -L*)
20073                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20074                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20075                     found_dir="$dir"
20076                     found_so="$dir/lib$name.$shlibext"
20077                     if test -f "$dir/lib$name.la"; then
20078                       found_la="$dir/lib$name.la"
20079                     fi
20080                   else
20081                     if test -f "$dir/lib$name.$libext"; then
20082                       found_dir="$dir"
20083                       found_a="$dir/lib$name.$libext"
20084                       if test -f "$dir/lib$name.la"; then
20085                         found_la="$dir/lib$name.la"
20086                       fi
20087                     fi
20088                   fi
20089                   ;;
20090               esac
20091               if test "X$found_dir" != "X"; then
20092                 break
20093               fi
20094             done
20095           fi
20096           if test "X$found_dir" != "X"; then
20097                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20098             if test "X$found_so" != "X"; then
20099                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20100                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20101               else
20102                                                                                 haveit=
20103                 for x in $ltrpathdirs; do
20104                   if test "X$x" = "X$found_dir"; then
20105                     haveit=yes
20106                     break
20107                   fi
20108                 done
20109                 if test -z "$haveit"; then
20110                   ltrpathdirs="$ltrpathdirs $found_dir"
20111                 fi
20112                                 if test "$hardcode_direct" = yes; then
20113                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20114                 else
20115                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20116                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20117                                                             haveit=
20118                     for x in $rpathdirs; do
20119                       if test "X$x" = "X$found_dir"; then
20120                         haveit=yes
20121                         break
20122                       fi
20123                     done
20124                     if test -z "$haveit"; then
20125                       rpathdirs="$rpathdirs $found_dir"
20126                     fi
20127                   else
20128                                                                                 haveit=
20129                     for x in $LDFLAGS $LIBINTL; do
20130
20131   acl_save_prefix="$prefix"
20132   prefix="$acl_final_prefix"
20133   acl_save_exec_prefix="$exec_prefix"
20134   exec_prefix="$acl_final_exec_prefix"
20135   eval x=\"$x\"
20136   exec_prefix="$acl_save_exec_prefix"
20137   prefix="$acl_save_prefix"
20138
20139                       if test "X$x" = "X-L$found_dir"; then
20140                         haveit=yes
20141                         break
20142                       fi
20143                     done
20144                     if test -z "$haveit"; then
20145                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20146                     fi
20147                     if test "$hardcode_minus_L" != no; then
20148                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20149                     else
20150                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20151                     fi
20152                   fi
20153                 fi
20154               fi
20155             else
20156               if test "X$found_a" != "X"; then
20157                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20158               else
20159                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20160               fi
20161             fi
20162                         additional_includedir=
20163             case "$found_dir" in
20164               */lib | */lib/)
20165                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20166                 additional_includedir="$basedir/include"
20167                 ;;
20168             esac
20169             if test "X$additional_includedir" != "X"; then
20170                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20171                 haveit=
20172                 if test "X$additional_includedir" = "X/usr/local/include"; then
20173                   if test -n "$GCC"; then
20174                     case $host_os in
20175                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20176                     esac
20177                   fi
20178                 fi
20179                 if test -z "$haveit"; then
20180                   for x in $CPPFLAGS $INCINTL; do
20181
20182   acl_save_prefix="$prefix"
20183   prefix="$acl_final_prefix"
20184   acl_save_exec_prefix="$exec_prefix"
20185   exec_prefix="$acl_final_exec_prefix"
20186   eval x=\"$x\"
20187   exec_prefix="$acl_save_exec_prefix"
20188   prefix="$acl_save_prefix"
20189
20190                     if test "X$x" = "X-I$additional_includedir"; then
20191                       haveit=yes
20192                       break
20193                     fi
20194                   done
20195                   if test -z "$haveit"; then
20196                     if test -d "$additional_includedir"; then
20197                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20198                     fi
20199                   fi
20200                 fi
20201               fi
20202             fi
20203                         if test -n "$found_la"; then
20204                                                         save_libdir="$libdir"
20205               case "$found_la" in
20206                 */* | *\\*) . "$found_la" ;;
20207                 *) . "./$found_la" ;;
20208               esac
20209               libdir="$save_libdir"
20210                             for dep in $dependency_libs; do
20211                 case "$dep" in
20212                   -L*)
20213                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20214                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20215                       haveit=
20216                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20217                         if test -n "$GCC"; then
20218                           case $host_os in
20219                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20220                           esac
20221                         fi
20222                       fi
20223                       if test -z "$haveit"; then
20224                         haveit=
20225                         for x in $LDFLAGS $LIBINTL; do
20226
20227   acl_save_prefix="$prefix"
20228   prefix="$acl_final_prefix"
20229   acl_save_exec_prefix="$exec_prefix"
20230   exec_prefix="$acl_final_exec_prefix"
20231   eval x=\"$x\"
20232   exec_prefix="$acl_save_exec_prefix"
20233   prefix="$acl_save_prefix"
20234
20235                           if test "X$x" = "X-L$additional_libdir"; then
20236                             haveit=yes
20237                             break
20238                           fi
20239                         done
20240                         if test -z "$haveit"; then
20241                           if test -d "$additional_libdir"; then
20242                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20243                           fi
20244                         fi
20245                         haveit=
20246                         for x in $LDFLAGS $LTLIBINTL; do
20247
20248   acl_save_prefix="$prefix"
20249   prefix="$acl_final_prefix"
20250   acl_save_exec_prefix="$exec_prefix"
20251   exec_prefix="$acl_final_exec_prefix"
20252   eval x=\"$x\"
20253   exec_prefix="$acl_save_exec_prefix"
20254   prefix="$acl_save_prefix"
20255
20256                           if test "X$x" = "X-L$additional_libdir"; then
20257                             haveit=yes
20258                             break
20259                           fi
20260                         done
20261                         if test -z "$haveit"; then
20262                           if test -d "$additional_libdir"; then
20263                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20264                           fi
20265                         fi
20266                       fi
20267                     fi
20268                     ;;
20269                   -R*)
20270                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20271                     if test "$enable_rpath" != no; then
20272                                                                   haveit=
20273                       for x in $rpathdirs; do
20274                         if test "X$x" = "X$dir"; then
20275                           haveit=yes
20276                           break
20277                         fi
20278                       done
20279                       if test -z "$haveit"; then
20280                         rpathdirs="$rpathdirs $dir"
20281                       fi
20282                                                                   haveit=
20283                       for x in $ltrpathdirs; do
20284                         if test "X$x" = "X$dir"; then
20285                           haveit=yes
20286                           break
20287                         fi
20288                       done
20289                       if test -z "$haveit"; then
20290                         ltrpathdirs="$ltrpathdirs $dir"
20291                       fi
20292                     fi
20293                     ;;
20294                   -l*)
20295                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20296                     ;;
20297                   *.la)
20298                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20299                     ;;
20300                   *)
20301                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20302                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20303                     ;;
20304                 esac
20305               done
20306             fi
20307           else
20308                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20309             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20310           fi
20311         fi
20312       fi
20313     done
20314   done
20315   if test "X$rpathdirs" != "X"; then
20316     if test -n "$hardcode_libdir_separator"; then
20317                         alldirs=
20318       for found_dir in $rpathdirs; do
20319         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20320       done
20321             acl_save_libdir="$libdir"
20322       libdir="$alldirs"
20323       eval flag=\"$hardcode_libdir_flag_spec\"
20324       libdir="$acl_save_libdir"
20325       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20326     else
20327             for found_dir in $rpathdirs; do
20328         acl_save_libdir="$libdir"
20329         libdir="$found_dir"
20330         eval flag=\"$hardcode_libdir_flag_spec\"
20331         libdir="$acl_save_libdir"
20332         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20333       done
20334     fi
20335   fi
20336   if test "X$ltrpathdirs" != "X"; then
20337             for found_dir in $ltrpathdirs; do
20338       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20339     done
20340   fi
20341
20342           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20343 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20344 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20345   $as_echo_n "(cached) " >&6
20346 else
20347   gt_save_CPPFLAGS="$CPPFLAGS"
20348             CPPFLAGS="$CPPFLAGS $INCINTL"
20349             gt_save_LIBS="$LIBS"
20350             LIBS="$LIBS $LIBINTL"
20351                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20352 /* end confdefs.h.  */
20353 #include <libintl.h>
20354 extern int _nl_msg_cat_cntr;
20355 extern
20356 #ifdef __cplusplus
20357 "C"
20358 #endif
20359 const char *_nl_expand_alias (const char *);
20360 int
20361 main ()
20362 {
20363 bindtextdomain ("", "");
20364 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20365   ;
20366   return 0;
20367 }
20368 _ACEOF
20369 if ac_fn_c_try_link "$LINENO"; then :
20370   gt_cv_func_gnugettext1_libintl=yes
20371 else
20372   gt_cv_func_gnugettext1_libintl=no
20373 fi
20374 rm -f core conftest.err conftest.$ac_objext \
20375     conftest$ac_exeext conftest.$ac_ext
20376                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20377               LIBS="$LIBS $LIBICONV"
20378               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20379 /* end confdefs.h.  */
20380 #include <libintl.h>
20381 extern int _nl_msg_cat_cntr;
20382 extern
20383 #ifdef __cplusplus
20384 "C"
20385 #endif
20386 const char *_nl_expand_alias (const char *);
20387 int
20388 main ()
20389 {
20390 bindtextdomain ("", "");
20391 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20392   ;
20393   return 0;
20394 }
20395 _ACEOF
20396 if ac_fn_c_try_link "$LINENO"; then :
20397   LIBINTL="$LIBINTL $LIBICONV"
20398                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20399                 gt_cv_func_gnugettext1_libintl=yes
20400
20401 fi
20402 rm -f core conftest.err conftest.$ac_objext \
20403     conftest$ac_exeext conftest.$ac_ext
20404             fi
20405             CPPFLAGS="$gt_save_CPPFLAGS"
20406             LIBS="$gt_save_LIBS"
20407 fi
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20409 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20410         fi
20411
20412                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20413            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20414                 && test "$PACKAGE" != gettext-runtime \
20415                 && test "$PACKAGE" != gettext-tools; }; then
20416           gt_use_preinstalled_gnugettext=yes
20417         else
20418                     LIBINTL=
20419           LTLIBINTL=
20420           INCINTL=
20421         fi
20422
20423
20424         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20425                               nls_cv_use_gnu_gettext=yes
20426         fi
20427       fi
20428
20429       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20430                 BUILD_INCLUDED_LIBINTL=yes
20431         USE_INCLUDED_LIBINTL=yes
20432         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20433         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20434         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20435       fi
20436
20437       CATOBJEXT=
20438       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20439          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20440                 CATOBJEXT=.gmo
20441       fi
20442
20443
20444     if test -n "$INTL_MACOSX_LIBS"; then
20445       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20446          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20447                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20448         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20449       fi
20450     fi
20451
20452     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20453        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20454
20455 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20456
20457     else
20458       USE_NLS=no
20459     fi
20460   fi
20461
20462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20463 $as_echo_n "checking whether to use NLS... " >&6; }
20464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20465 $as_echo "$USE_NLS" >&6; }
20466   if test "$USE_NLS" = "yes"; then
20467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20468 $as_echo_n "checking where the gettext function comes from... " >&6; }
20469     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20470       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20471         gt_source="external libintl"
20472       else
20473         gt_source="libc"
20474       fi
20475     else
20476       gt_source="included intl directory"
20477     fi
20478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20479 $as_echo "$gt_source" >&6; }
20480   fi
20481
20482   if test "$USE_NLS" = "yes"; then
20483
20484     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20485       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20486         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20487 $as_echo_n "checking how to link with libintl... " >&6; }
20488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20489 $as_echo "$LIBINTL" >&6; }
20490
20491   for element in $INCINTL; do
20492     haveit=
20493     for x in $CPPFLAGS; do
20494
20495   acl_save_prefix="$prefix"
20496   prefix="$acl_final_prefix"
20497   acl_save_exec_prefix="$exec_prefix"
20498   exec_prefix="$acl_final_exec_prefix"
20499   eval x=\"$x\"
20500   exec_prefix="$acl_save_exec_prefix"
20501   prefix="$acl_save_prefix"
20502
20503       if test "X$x" = "X$element"; then
20504         haveit=yes
20505         break
20506       fi
20507     done
20508     if test -z "$haveit"; then
20509       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20510     fi
20511   done
20512
20513       fi
20514
20515
20516 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20517
20518
20519 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20520
20521     fi
20522
20523         POSUB=po
20524   fi
20525
20526
20527             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20528       BUILD_INCLUDED_LIBINTL=yes
20529     fi
20530
20531
20532
20533
20534
20535         nls_cv_header_intl=
20536     nls_cv_header_libgt=
20537
20538         DATADIRNAME=share
20539
20540
20541         INSTOBJEXT=.mo
20542
20543
20544         GENCAT=gencat
20545
20546
20547         INTLOBJS=
20548     if test "$USE_INCLUDED_LIBINTL" = yes; then
20549       INTLOBJS="\$(GETTOBJS)"
20550     fi
20551
20552
20553         INTL_LIBTOOL_SUFFIX_PREFIX=
20554
20555
20556
20557     INTLLIBS="$LIBINTL"
20558
20559
20560
20561
20562
20563
20564 fi
20565
20566 support_mysql=no
20567 support_sqlite=no
20568 support_sqlite3=no
20569 support_postgresql=no
20570 support_ingres=no
20571 support_dbi=no
20572 support_smartalloc=yes
20573 support_readline=yes
20574 support_conio=yes
20575 support_gnome=no
20576 support_bat=no
20577 support_wx_console=no
20578 support_tray_monitor=no
20579 support_tls=no
20580 support_crypto=no
20581 gnome_version=
20582 wx_version=
20583 support_static_tools=no
20584 support_static_fd=no
20585 support_static_sd=no
20586 support_static_dir=no
20587 support_static_cons=no
20588 support_python=no
20589 build_client_only=no
20590 build_dird=yes
20591 build_stored=yes
20592 cats=
20593 db_type=Internal
20594 support_lockmgr=no
20595 DB_TYPE=bdb
20596
20597
20598 # Check whether --enable-gnome was given.
20599 if test "${enable_gnome+set}" = set; then :
20600   enableval=$enable_gnome;
20601        if test x$enableval = xyes; then
20602           support_gnome=yes
20603        fi
20604
20605
20606 fi
20607
20608
20609 GNOME_DIR=
20610 if test x$support_gnome = xyes; then
20611    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20612    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20613 fi
20614 # AC_SUBST(GNOME_DIR)
20615
20616 # Check whether --enable-bat was given.
20617 if test "${enable_bat+set}" = set; then :
20618   enableval=$enable_bat;
20619        if test x$enableval = xyes; then
20620
20621 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20622
20623           support_bat=yes
20624        fi
20625
20626
20627 fi
20628
20629
20630 BAT_DIR=
20631 if test x$support_bat = xyes; then
20632    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20633    pkg=$?
20634    if test $pkg = 0; then
20635       BAT_DIR=src/qt-console
20636    else
20637       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20638    fi
20639 fi
20640
20641 got_qwt=no
20642 QWT_INC=
20643 QWT_LDFLAGS=
20644 QWT_LIB=
20645 QWT=
20646 no_qwt=no
20647
20648
20649
20650
20651
20652
20653
20654
20655 # Check whether --enable-bwx-console was given.
20656 if test "${enable_bwx_console+set}" = set; then :
20657   enableval=$enable_bwx_console;
20658        if test x$enableval = xyes; then
20659           support_wx_console=yes
20660        fi
20661
20662
20663 fi
20664
20665
20666 WX_DIR=
20667 if test x$support_wx_console = xyes; then
20668    abc=`$WXCONFIG $WXFLAGS --cppflags`
20669    pkg=$?
20670    if test $pkg = 0; then
20671       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20672       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20673       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20674
20675
20676
20677       WX_DIR="src/wx-console"
20678    else
20679       echo " "
20680       echo "wx-config program not found. bwx-console disabled."
20681       echo " "
20682       support_wx_console=no
20683    fi
20684 fi
20685
20686
20687 # Check whether --enable-tray-monitor was given.
20688 if test "${enable_tray_monitor+set}" = set; then :
20689   enableval=$enable_tray_monitor;
20690        if test x$enableval = xyes; then
20691           support_tray_monitor=yes
20692        fi
20693
20694
20695 fi
20696
20697
20698 TRAY_MONITOR_DIR=
20699 if test x$support_tray_monitor = xyes; then
20700    abc=`$PKGCONFIG --exists gtk+-2.0`
20701    pkg=$?
20702    if test $pkg = 0; then
20703       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20704       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20705
20706
20707       TRAY_MONITOR_DIR=src/tray-monitor
20708       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20709       pkg=$?
20710       if test $pkg = 0; then
20711
20712 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20713
20714       fi
20715    fi
20716 fi
20717
20718
20719 # Check whether --enable-smartalloc was given.
20720 if test "${enable_smartalloc+set}" = set; then :
20721   enableval=$enable_smartalloc;
20722        if test x$enableval = xno; then
20723           support_smartalloc=no
20724        fi
20725
20726
20727 fi
20728
20729
20730 if test x$support_smartalloc = xyes; then
20731
20732 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20733
20734 fi
20735
20736 # Check whether --enable-lockmgr was given.
20737 if test "${enable_lockmgr+set}" = set; then :
20738   enableval=$enable_lockmgr;
20739        if test x$enableval = xyes; then
20740           support_lockmgr=yes
20741        fi
20742
20743
20744 fi
20745
20746
20747 if test x$support_lockmgr = xyes; then
20748
20749 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20750
20751 fi
20752
20753
20754 # Check whether --enable-static-tools was given.
20755 if test "${enable_static_tools+set}" = set; then :
20756   enableval=$enable_static_tools;
20757        if test x$enableval = xyes; then
20758           if test x$use_libtool = xyes; then
20759              as_fn_error "Libtool is enabled, not compatible with static tools,
20760   please rerun configure with --disable-libtool" "$LINENO" 5
20761           fi
20762           support_static_tools=yes
20763        fi
20764
20765
20766 fi
20767
20768
20769 TTOOL_LDFLAGS=
20770 if test x$support_static_tools = xyes; then
20771    TTOOL_LDFLAGS="-static"
20772 fi
20773
20774
20775 # Check whether --enable-static-fd was given.
20776 if test "${enable_static_fd+set}" = set; then :
20777   enableval=$enable_static_fd;
20778        if test x$enableval = xyes; then
20779           if test x$use_libtool = xyes; then
20780              as_fn_error "Libtool is enabled, not compatible with static tools,
20781   please rerun configure with --disable-libtool" "$LINENO" 5
20782           fi
20783           support_static_fd=yes
20784        fi
20785
20786
20787 fi
20788
20789
20790 STATIC_FD=
20791 if test x$support_static_fd = xyes; then
20792    STATIC_FD="static-bacula-fd"
20793 fi
20794
20795
20796 # Check whether --enable-static-sd was given.
20797 if test "${enable_static_sd+set}" = set; then :
20798   enableval=$enable_static_sd;
20799        if test x$enableval = xyes; then
20800           if test x$use_libtool = xyes; then
20801              as_fn_error "Libtool is enabled, not compatible with static tools,
20802   please rerun configure with --disable-libtool" "$LINENO" 5
20803           fi
20804           support_static_sd=yes
20805        fi
20806
20807
20808 fi
20809
20810
20811 STATIC_SD=
20812 if test x$support_static_sd = xyes; then
20813    STATIC_SD="static-bacula-sd"
20814 fi
20815
20816
20817 # Check whether --enable-static-dir was given.
20818 if test "${enable_static_dir+set}" = set; then :
20819   enableval=$enable_static_dir;
20820        if test x$enableval = xyes; then
20821           if test x$use_libtool = xyes; then
20822              as_fn_error "Libtool is enabled, not compatible with static tools,
20823   please rerun configure with --disable-libtool" "$LINENO" 5
20824           fi
20825           support_static_dir=yes
20826        fi
20827
20828
20829 fi
20830
20831
20832 STATIC_DIR=
20833 if test x$support_static_dir = xyes; then
20834    STATIC_DIR="static-bacula-dir"
20835 fi
20836
20837
20838 # Check whether --enable-static-cons was given.
20839 if test "${enable_static_cons+set}" = set; then :
20840   enableval=$enable_static_cons;
20841        if test x$enableval = xyes; then
20842           if test x$use_libtool = xyes; then
20843              as_fn_error "Libtool is enabled, not compatible with static tools,
20844   please rerun configure with --disable-libtool" "$LINENO" 5
20845           fi
20846           support_static_cons=yes
20847        fi
20848
20849
20850 fi
20851
20852
20853 STATIC_CONS=
20854 STATIC_GNOME_CONS=
20855 STATIC_WX_CONS=
20856 if test x$support_static_cons = xyes; then
20857    STATIC_CONS="static-bconsole"
20858    STATIC_GNOME_CONS="static-bgnome-console"
20859    STATIC_WX_CONS="static-bwx-console"
20860 fi
20861
20862
20863
20864
20865 # Check whether --enable-client-only was given.
20866 if test "${enable_client_only+set}" = set; then :
20867   enableval=$enable_client_only;
20868        if test x$enableval = xyes; then
20869           build_client_only=yes
20870           db_type=None
20871           DB_TYPE=none
20872        fi
20873
20874
20875 fi
20876
20877 if test x$build_client_only = xno; then
20878    ALL_DIRS="subdirs"
20879 else
20880    ALL_DIRS=""
20881 fi
20882
20883
20884 # Check whether --enable-build-dird was given.
20885 if test "${enable_build_dird+set}" = set; then :
20886   enableval=$enable_build_dird;
20887        if test x$enableval = xno; then
20888           build_dird=no
20889        fi
20890
20891
20892 fi
20893
20894 if test x$build_dird = xyes; then
20895    DIRD_DIR="src/dird"
20896    DIR_TOOLS="DIRTOOLS"
20897 else
20898    DIRD_DIR=""
20899    DIR_TOOLS="NODIRTOOLS"
20900 fi
20901
20902
20903
20904 # Check whether --enable-build-stored was given.
20905 if test "${enable_build_stored+set}" = set; then :
20906   enableval=$enable_build_stored;
20907       if test x$enableval = xno; then
20908          build_stored=no
20909       fi
20910
20911
20912 fi
20913
20914 if test x$build_stored = xyes; then
20915    STORED_DIR="src/stored"
20916 else
20917    STORED_DIR=""
20918 fi
20919
20920
20921 # Check whether --enable-conio was given.
20922 if test "${enable_conio+set}" = set; then :
20923   enableval=$enable_conio;
20924        if test x$enableval = xno; then
20925           support_conio=no
20926        fi
20927
20928
20929 fi
20930
20931
20932
20933 support_ipv6=yes
20934 # Check whether --enable-ipv6 was given.
20935 if test "${enable_ipv6+set}" = set; then :
20936   enableval=$enable_ipv6;
20937        if test x$enableval = xno; then
20938           support_ipv6=no
20939        fi
20940
20941
20942 fi
20943
20944
20945 if test x$support_ipv6 = xyes; then
20946     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20947 /* end confdefs.h.  */
20948  #include <sys/types.h>
20949 #include <sys/socket.h>
20950 #include <netinet/in.h>
20951 int
20952 main ()
20953 {
20954 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20955   ;
20956   return 0;
20957 }
20958 _ACEOF
20959 if ac_fn_c_try_link "$LINENO"; then :
20960   support_ipv6=yes
20961 else
20962   support_ipv6=no
20963 fi
20964 rm -f core conftest.err conftest.$ac_objext \
20965     conftest$ac_exeext conftest.$ac_ext
20966 fi
20967
20968 if test x$support_ipv6 = xyes; then
20969
20970 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20971
20972 fi
20973
20974 TERM_LIB=""
20975 ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
20976 if test "x$ac_cv_header_termcap_h" = x""yes; then :
20977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
20978 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
20979 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
20980   $as_echo_n "(cached) " >&6
20981 else
20982   ac_check_lib_save_LIBS=$LIBS
20983 LIBS="-ltermcap  $LIBS"
20984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20985 /* end confdefs.h.  */
20986
20987 /* Override any GCC internal prototype to avoid an error.
20988    Use char because int might match the return type of a GCC
20989    builtin and then its argument prototype would still apply.  */
20990 #ifdef __cplusplus
20991 extern "C"
20992 #endif
20993 char tgetent ();
20994 int
20995 main ()
20996 {
20997 return tgetent ();
20998   ;
20999   return 0;
21000 }
21001 _ACEOF
21002 if ac_fn_c_try_link "$LINENO"; then :
21003   ac_cv_lib_termcap_tgetent=yes
21004 else
21005   ac_cv_lib_termcap_tgetent=no
21006 fi
21007 rm -f core conftest.err conftest.$ac_objext \
21008     conftest$ac_exeext conftest.$ac_ext
21009 LIBS=$ac_check_lib_save_LIBS
21010 fi
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21012 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21013 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21014    TERM_LIB="-ltermcap"
21015 else
21016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21017 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21018 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21019   $as_echo_n "(cached) " >&6
21020 else
21021   ac_check_lib_save_LIBS=$LIBS
21022 LIBS="-lncurses  $LIBS"
21023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21024 /* end confdefs.h.  */
21025
21026 /* Override any GCC internal prototype to avoid an error.
21027    Use char because int might match the return type of a GCC
21028    builtin and then its argument prototype would still apply.  */
21029 #ifdef __cplusplus
21030 extern "C"
21031 #endif
21032 char tgetent ();
21033 int
21034 main ()
21035 {
21036 return tgetent ();
21037   ;
21038   return 0;
21039 }
21040 _ACEOF
21041 if ac_fn_c_try_link "$LINENO"; then :
21042   ac_cv_lib_ncurses_tgetent=yes
21043 else
21044   ac_cv_lib_ncurses_tgetent=no
21045 fi
21046 rm -f core conftest.err conftest.$ac_objext \
21047     conftest$ac_exeext conftest.$ac_ext
21048 LIBS=$ac_check_lib_save_LIBS
21049 fi
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21051 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21052 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21053    TERM_LIB="-lncurses"
21054 fi
21055
21056
21057 fi
21058
21059
21060 else
21061     for ac_header in curses.h
21062 do :
21063   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21064 if test "x$ac_cv_header_curses_h" = x""yes; then :
21065   cat >>confdefs.h <<_ACEOF
21066 #define HAVE_CURSES_H 1
21067 _ACEOF
21068
21069 fi
21070
21071 done
21072
21073      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21074 if test "x$ac_cv_header_term_h" = x""yes; then :
21075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21076 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21077 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21078   $as_echo_n "(cached) " >&6
21079 else
21080   ac_check_lib_save_LIBS=$LIBS
21081 LIBS="-lcurses  $LIBS"
21082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21083 /* end confdefs.h.  */
21084
21085 /* Override any GCC internal prototype to avoid an error.
21086    Use char because int might match the return type of a GCC
21087    builtin and then its argument prototype would still apply.  */
21088 #ifdef __cplusplus
21089 extern "C"
21090 #endif
21091 char tgetent ();
21092 int
21093 main ()
21094 {
21095 return tgetent ();
21096   ;
21097   return 0;
21098 }
21099 _ACEOF
21100 if ac_fn_c_try_link "$LINENO"; then :
21101   ac_cv_lib_curses_tgetent=yes
21102 else
21103   ac_cv_lib_curses_tgetent=no
21104 fi
21105 rm -f core conftest.err conftest.$ac_objext \
21106     conftest$ac_exeext conftest.$ac_ext
21107 LIBS=$ac_check_lib_save_LIBS
21108 fi
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21110 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21111 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21112    TERM_LIB="-lcurses"
21113 fi
21114
21115
21116 fi
21117
21118
21119
21120 fi
21121
21122
21123
21124
21125 got_conio="no"
21126 if test x$support_conio = xyes; then
21127    if test x$TERM_LIB != x; then
21128       CONS_LIBS=$TERM_LIB
21129       CONS_OBJ="conio.o"
21130       CONS_SRC="conio.c"
21131       got_conio="yes"
21132       support_readline=no
21133
21134 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21135
21136    else
21137       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21138    fi
21139 fi
21140
21141
21142 # Check whether --enable-readline was given.
21143 if test "${enable_readline+set}" = set; then :
21144   enableval=$enable_readline;
21145        if test x$enableval = xno; then
21146           support_readline=no
21147        fi
21148
21149
21150 fi
21151
21152 if test x$TERM_LIB = x ; then
21153    support_readline=no
21154 fi
21155
21156 got_readline="no"
21157 READLINE_SRC=
21158 if test x$support_readline = xyes; then
21159
21160 # Check whether --with-readline was given.
21161 if test "${with_readline+set}" = set; then :
21162   withval=$with_readline;
21163           case "$with_readline" in
21164           no)
21165              :
21166              ;;
21167           yes|*)
21168              if test -f ${with_readline}/readline.h; then
21169                 CONS_INC="-I${with_readline}"
21170                 CONS_LDFLAGS="-L$with_readline"
21171              elif test -f ${with_readline}/include/readline/readline.h; then
21172                 CONS_INC="-I${with_readline}/include/readline"
21173                 CONS_LDFLAGS="-L${with_readline}/lib"
21174                 with_readline="${with_readline}/include/readline"
21175              else
21176                 with_readline="/usr/include/readline"
21177              fi
21178
21179              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21180 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21181 eval as_val=\$$as_ac_Header
21182    if test "x$as_val" = x""yes; then :
21183
21184
21185 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21186
21187                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21188                     got_readline="yes"
21189
21190 else
21191
21192                     echo " "
21193                     echo "readline.h not found. readline turned off ..."
21194                     echo " "
21195
21196
21197 fi
21198
21199
21200              ;;
21201           esac
21202
21203 else
21204
21205                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21206 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21207
21208
21209 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21210
21211                 got_readline="yes"
21212                 CONS_INC="-I/usr/include/readline"
21213                 CONS_LIBS="-lreadline $TERM_LIB"
21214
21215 else
21216
21217                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21218 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21219 eval as_val=\$$as_ac_Header
21220    if test "x$as_val" = x""yes; then :
21221
21222
21223 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21224
21225                         got_readline="yes"
21226                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21227                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21228                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21229                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21230
21231 else
21232
21233                         echo " "
21234                         echo "readline.h not found. readline turned off ..."
21235                         echo " "
21236
21237
21238 fi
21239
21240
21241
21242
21243 fi
21244
21245
21246
21247
21248 fi
21249
21250 fi
21251
21252
21253
21254
21255
21256
21257
21258
21259 MAKE_SHELL=/bin/sh
21260
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21262 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21263 if test "${ac_cv_header_stat_broken+set}" = set; then :
21264   $as_echo_n "(cached) " >&6
21265 else
21266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21267 /* end confdefs.h.  */
21268 #include <sys/types.h>
21269 #include <sys/stat.h>
21270
21271 #if defined S_ISBLK && defined S_IFDIR
21272 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21273 #endif
21274
21275 #if defined S_ISBLK && defined S_IFCHR
21276 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21277 #endif
21278
21279 #if defined S_ISLNK && defined S_IFREG
21280 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21281 #endif
21282
21283 #if defined S_ISSOCK && defined S_IFREG
21284 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21285 #endif
21286
21287 _ACEOF
21288 if ac_fn_c_try_compile "$LINENO"; then :
21289   ac_cv_header_stat_broken=no
21290 else
21291   ac_cv_header_stat_broken=yes
21292 fi
21293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21294 fi
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21296 $as_echo "$ac_cv_header_stat_broken" >&6; }
21297 if test $ac_cv_header_stat_broken = yes; then
21298
21299 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21300
21301 fi
21302
21303 ac_header_dirent=no
21304 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21305   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21307 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21309   $as_echo_n "(cached) " >&6
21310 else
21311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21312 /* end confdefs.h.  */
21313 #include <sys/types.h>
21314 #include <$ac_hdr>
21315
21316 int
21317 main ()
21318 {
21319 if ((DIR *) 0)
21320 return 0;
21321   ;
21322   return 0;
21323 }
21324 _ACEOF
21325 if ac_fn_c_try_compile "$LINENO"; then :
21326   eval "$as_ac_Header=yes"
21327 else
21328   eval "$as_ac_Header=no"
21329 fi
21330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21331 fi
21332 eval ac_res=\$$as_ac_Header
21333                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21334 $as_echo "$ac_res" >&6; }
21335 eval as_val=\$$as_ac_Header
21336    if test "x$as_val" = x""yes; then :
21337   cat >>confdefs.h <<_ACEOF
21338 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21339 _ACEOF
21340
21341 ac_header_dirent=$ac_hdr; break
21342 fi
21343
21344 done
21345 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21346 if test $ac_header_dirent = dirent.h; then
21347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21348 $as_echo_n "checking for library containing opendir... " >&6; }
21349 if test "${ac_cv_search_opendir+set}" = set; then :
21350   $as_echo_n "(cached) " >&6
21351 else
21352   ac_func_search_save_LIBS=$LIBS
21353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354 /* end confdefs.h.  */
21355
21356 /* Override any GCC internal prototype to avoid an error.
21357    Use char because int might match the return type of a GCC
21358    builtin and then its argument prototype would still apply.  */
21359 #ifdef __cplusplus
21360 extern "C"
21361 #endif
21362 char opendir ();
21363 int
21364 main ()
21365 {
21366 return opendir ();
21367   ;
21368   return 0;
21369 }
21370 _ACEOF
21371 for ac_lib in '' dir; do
21372   if test -z "$ac_lib"; then
21373     ac_res="none required"
21374   else
21375     ac_res=-l$ac_lib
21376     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21377   fi
21378   if ac_fn_c_try_link "$LINENO"; then :
21379   ac_cv_search_opendir=$ac_res
21380 fi
21381 rm -f core conftest.err conftest.$ac_objext \
21382     conftest$ac_exeext
21383   if test "${ac_cv_search_opendir+set}" = set; then :
21384   break
21385 fi
21386 done
21387 if test "${ac_cv_search_opendir+set}" = set; then :
21388
21389 else
21390   ac_cv_search_opendir=no
21391 fi
21392 rm conftest.$ac_ext
21393 LIBS=$ac_func_search_save_LIBS
21394 fi
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21396 $as_echo "$ac_cv_search_opendir" >&6; }
21397 ac_res=$ac_cv_search_opendir
21398 if test "$ac_res" != no; then :
21399   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21400
21401 fi
21402
21403 else
21404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21405 $as_echo_n "checking for library containing opendir... " >&6; }
21406 if test "${ac_cv_search_opendir+set}" = set; then :
21407   $as_echo_n "(cached) " >&6
21408 else
21409   ac_func_search_save_LIBS=$LIBS
21410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21411 /* end confdefs.h.  */
21412
21413 /* Override any GCC internal prototype to avoid an error.
21414    Use char because int might match the return type of a GCC
21415    builtin and then its argument prototype would still apply.  */
21416 #ifdef __cplusplus
21417 extern "C"
21418 #endif
21419 char opendir ();
21420 int
21421 main ()
21422 {
21423 return opendir ();
21424   ;
21425   return 0;
21426 }
21427 _ACEOF
21428 for ac_lib in '' x; do
21429   if test -z "$ac_lib"; then
21430     ac_res="none required"
21431   else
21432     ac_res=-l$ac_lib
21433     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21434   fi
21435   if ac_fn_c_try_link "$LINENO"; then :
21436   ac_cv_search_opendir=$ac_res
21437 fi
21438 rm -f core conftest.err conftest.$ac_objext \
21439     conftest$ac_exeext
21440   if test "${ac_cv_search_opendir+set}" = set; then :
21441   break
21442 fi
21443 done
21444 if test "${ac_cv_search_opendir+set}" = set; then :
21445
21446 else
21447   ac_cv_search_opendir=no
21448 fi
21449 rm conftest.$ac_ext
21450 LIBS=$ac_func_search_save_LIBS
21451 fi
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21453 $as_echo "$ac_cv_search_opendir" >&6; }
21454 ac_res=$ac_cv_search_opendir
21455 if test "$ac_res" != no; then :
21456   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21457
21458 fi
21459
21460 fi
21461
21462 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21463 do :
21464   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21466 eval as_val=\$$as_ac_var
21467    if test "x$as_val" = x""yes; then :
21468   cat >>confdefs.h <<_ACEOF
21469 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21470 _ACEOF
21471
21472 fi
21473 done
21474
21475 for ac_func in nanosleep nl_langinfo
21476 do :
21477   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21479 eval as_val=\$$as_ac_var
21480    if test "x$as_val" = x""yes; then :
21481   cat >>confdefs.h <<_ACEOF
21482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21483 _ACEOF
21484
21485 fi
21486 done
21487
21488 for ac_header in varargs.h
21489 do :
21490   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21491 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21492   cat >>confdefs.h <<_ACEOF
21493 #define HAVE_VARARGS_H 1
21494 _ACEOF
21495
21496 fi
21497
21498 done
21499
21500
21501
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21503 $as_echo_n "checking for Python support... " >&6; }
21504
21505 # Check whether --with-python was given.
21506 if test "${with_python+set}" = set; then :
21507   withval=$with_python;
21508        PYTHON_INCDIR=
21509        PYTHON_LIBS=
21510        if test "$withval" != "no"; then
21511           if test "$withval" = "yes"; then
21512              if test -e /usr/bin/python-config ; then
21513                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21514                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21515              else
21516                 for python_root in /usr /usr/local /usr/sfw; do
21517                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21518                       if test -f $python_root/include/${ver}/Python.h; then
21519                          PYTHON_INCDIR=-I$python_root/include/${ver}
21520                          if test -d $python_root/lib64/${ver}/config; then
21521                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21522                          else
21523                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21524                          fi
21525                          break
21526                       fi
21527                    done
21528                 done
21529
21530                 if test x$PYTHON_INCDIR = x; then
21531                    if test -f $prefix/include/Python.h; then
21532                       PYTHON_INCDIR=-I$prefix/include
21533                       if test -d $prefix/lib64/config; then
21534                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21535                       else
21536                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21537                       fi
21538                    else
21539                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21540 $as_echo "no" >&6; }
21541                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21542                    fi
21543                 fi
21544              fi
21545           else
21546              if test -e $withval/bin/python-config ; then
21547                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21548                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21549              elif test -f $withval/Python.h; then
21550                 PYTHON_INCDIR=-I$withval
21551                 PYTHON_LIBS="-L$withval/config -lpython"
21552              elif test -f $withval/include/Python.h; then
21553                 PYTHON_INCDIR=-I$withval/include
21554                 if test -d $withval/lib64/config; then
21555                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21556                 else
21557                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21558                 fi
21559              elif test -f $withval/include/python/Python.h; then
21560                 PYTHON_INCDIR=-I$withval/include/python
21561                 if test -d $withval/lib64/python/config; then
21562                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21563                 else
21564                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21565                 fi
21566              else
21567                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21568 $as_echo "no" >&6; }
21569                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21570              fi
21571           fi
21572
21573           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21574
21575           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21576 $as_echo "yes" >&6; }
21577           support_python=yes
21578           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21579 $as_echo "$as_me: checking for more Python libs" >&6;}
21580           saved_LIBS="$LIBS"; LIBS=
21581           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21582 $as_echo_n "checking for library containing shm_open... " >&6; }
21583 if test "${ac_cv_search_shm_open+set}" = set; then :
21584   $as_echo_n "(cached) " >&6
21585 else
21586   ac_func_search_save_LIBS=$LIBS
21587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21588 /* end confdefs.h.  */
21589
21590 /* Override any GCC internal prototype to avoid an error.
21591    Use char because int might match the return type of a GCC
21592    builtin and then its argument prototype would still apply.  */
21593 #ifdef __cplusplus
21594 extern "C"
21595 #endif
21596 char shm_open ();
21597 int
21598 main ()
21599 {
21600 return shm_open ();
21601   ;
21602   return 0;
21603 }
21604 _ACEOF
21605 for ac_lib in '' rt; do
21606   if test -z "$ac_lib"; then
21607     ac_res="none required"
21608   else
21609     ac_res=-l$ac_lib
21610     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21611   fi
21612   if ac_fn_c_try_link "$LINENO"; then :
21613   ac_cv_search_shm_open=$ac_res
21614 fi
21615 rm -f core conftest.err conftest.$ac_objext \
21616     conftest$ac_exeext
21617   if test "${ac_cv_search_shm_open+set}" = set; then :
21618   break
21619 fi
21620 done
21621 if test "${ac_cv_search_shm_open+set}" = set; then :
21622
21623 else
21624   ac_cv_search_shm_open=no
21625 fi
21626 rm conftest.$ac_ext
21627 LIBS=$ac_func_search_save_LIBS
21628 fi
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21630 $as_echo "$ac_cv_search_shm_open" >&6; }
21631 ac_res=$ac_cv_search_shm_open
21632 if test "$ac_res" != no; then :
21633   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21634
21635 fi
21636
21637           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21638 $as_echo_n "checking for openpty in -lutil... " >&6; }
21639 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21640   $as_echo_n "(cached) " >&6
21641 else
21642   ac_check_lib_save_LIBS=$LIBS
21643 LIBS="-lutil  $LIBS"
21644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21645 /* end confdefs.h.  */
21646
21647 /* Override any GCC internal prototype to avoid an error.
21648    Use char because int might match the return type of a GCC
21649    builtin and then its argument prototype would still apply.  */
21650 #ifdef __cplusplus
21651 extern "C"
21652 #endif
21653 char openpty ();
21654 int
21655 main ()
21656 {
21657 return openpty ();
21658   ;
21659   return 0;
21660 }
21661 _ACEOF
21662 if ac_fn_c_try_link "$LINENO"; then :
21663   ac_cv_lib_util_openpty=yes
21664 else
21665   ac_cv_lib_util_openpty=no
21666 fi
21667 rm -f core conftest.err conftest.$ac_objext \
21668     conftest$ac_exeext conftest.$ac_ext
21669 LIBS=$ac_check_lib_save_LIBS
21670 fi
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21672 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21673 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21674   cat >>confdefs.h <<_ACEOF
21675 #define HAVE_LIBUTIL 1
21676 _ACEOF
21677
21678   LIBS="-lutil $LIBS"
21679
21680 fi
21681
21682           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21683           LIBS="$saved_LIBS"
21684        else
21685           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21686 $as_echo "no" >&6; }
21687        fi
21688
21689 else
21690
21691        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21692 $as_echo "no" >&6; }
21693
21694
21695 fi
21696
21697
21698
21699
21700 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21701 if test "x$ac_cv_func_socket" = x""yes; then :
21702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21703 $as_echo "using libc's socket" >&6; }
21704 else
21705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21706 $as_echo_n "checking for socket in -lxnet... " >&6; }
21707 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21708   $as_echo_n "(cached) " >&6
21709 else
21710   ac_check_lib_save_LIBS=$LIBS
21711 LIBS="-lxnet  $LIBS"
21712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21713 /* end confdefs.h.  */
21714
21715 /* Override any GCC internal prototype to avoid an error.
21716    Use char because int might match the return type of a GCC
21717    builtin and then its argument prototype would still apply.  */
21718 #ifdef __cplusplus
21719 extern "C"
21720 #endif
21721 char socket ();
21722 int
21723 main ()
21724 {
21725 return socket ();
21726   ;
21727   return 0;
21728 }
21729 _ACEOF
21730 if ac_fn_c_try_link "$LINENO"; then :
21731   ac_cv_lib_xnet_socket=yes
21732 else
21733   ac_cv_lib_xnet_socket=no
21734 fi
21735 rm -f core conftest.err conftest.$ac_objext \
21736     conftest$ac_exeext conftest.$ac_ext
21737 LIBS=$ac_check_lib_save_LIBS
21738 fi
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21740 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21741 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21742   cat >>confdefs.h <<_ACEOF
21743 #define HAVE_LIBXNET 1
21744 _ACEOF
21745
21746   LIBS="-lxnet $LIBS"
21747
21748 fi
21749
21750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21751 $as_echo_n "checking for socket in -lsocket... " >&6; }
21752 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21753   $as_echo_n "(cached) " >&6
21754 else
21755   ac_check_lib_save_LIBS=$LIBS
21756 LIBS="-lsocket  $LIBS"
21757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21758 /* end confdefs.h.  */
21759
21760 /* Override any GCC internal prototype to avoid an error.
21761    Use char because int might match the return type of a GCC
21762    builtin and then its argument prototype would still apply.  */
21763 #ifdef __cplusplus
21764 extern "C"
21765 #endif
21766 char socket ();
21767 int
21768 main ()
21769 {
21770 return socket ();
21771   ;
21772   return 0;
21773 }
21774 _ACEOF
21775 if ac_fn_c_try_link "$LINENO"; then :
21776   ac_cv_lib_socket_socket=yes
21777 else
21778   ac_cv_lib_socket_socket=no
21779 fi
21780 rm -f core conftest.err conftest.$ac_objext \
21781     conftest$ac_exeext conftest.$ac_ext
21782 LIBS=$ac_check_lib_save_LIBS
21783 fi
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21785 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21786 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21787   cat >>confdefs.h <<_ACEOF
21788 #define HAVE_LIBSOCKET 1
21789 _ACEOF
21790
21791   LIBS="-lsocket $LIBS"
21792
21793 fi
21794
21795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21796 $as_echo_n "checking for socket in -linet... " >&6; }
21797 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21798   $as_echo_n "(cached) " >&6
21799 else
21800   ac_check_lib_save_LIBS=$LIBS
21801 LIBS="-linet  $LIBS"
21802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21803 /* end confdefs.h.  */
21804
21805 /* Override any GCC internal prototype to avoid an error.
21806    Use char because int might match the return type of a GCC
21807    builtin and then its argument prototype would still apply.  */
21808 #ifdef __cplusplus
21809 extern "C"
21810 #endif
21811 char socket ();
21812 int
21813 main ()
21814 {
21815 return socket ();
21816   ;
21817   return 0;
21818 }
21819 _ACEOF
21820 if ac_fn_c_try_link "$LINENO"; then :
21821   ac_cv_lib_inet_socket=yes
21822 else
21823   ac_cv_lib_inet_socket=no
21824 fi
21825 rm -f core conftest.err conftest.$ac_objext \
21826     conftest$ac_exeext conftest.$ac_ext
21827 LIBS=$ac_check_lib_save_LIBS
21828 fi
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21830 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21831 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21832   cat >>confdefs.h <<_ACEOF
21833 #define HAVE_LIBINET 1
21834 _ACEOF
21835
21836   LIBS="-linet $LIBS"
21837
21838 fi
21839
21840 fi
21841
21842
21843 TCPW_MSG="no"
21844 WRAPLIBS=""
21845
21846 # Check whether --with-tcp-wrappers was given.
21847 if test "${with_tcp_wrappers+set}" = set; then :
21848   withval=$with_tcp_wrappers;
21849        if test "x$withval" != "xno" ; then
21850           saved_LIBS="$LIBS"
21851           LIBS="$saved_LIBS -lwrap"
21852           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21853 $as_echo_n "checking for library containing nanosleep... " >&6; }
21854 if test "${ac_cv_search_nanosleep+set}" = set; then :
21855   $as_echo_n "(cached) " >&6
21856 else
21857   ac_func_search_save_LIBS=$LIBS
21858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859 /* end confdefs.h.  */
21860
21861 /* Override any GCC internal prototype to avoid an error.
21862    Use char because int might match the return type of a GCC
21863    builtin and then its argument prototype would still apply.  */
21864 #ifdef __cplusplus
21865 extern "C"
21866 #endif
21867 char nanosleep ();
21868 int
21869 main ()
21870 {
21871 return nanosleep ();
21872   ;
21873   return 0;
21874 }
21875 _ACEOF
21876 for ac_lib in '' rt; do
21877   if test -z "$ac_lib"; then
21878     ac_res="none required"
21879   else
21880     ac_res=-l$ac_lib
21881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21882   fi
21883   if ac_fn_c_try_link "$LINENO"; then :
21884   ac_cv_search_nanosleep=$ac_res
21885 fi
21886 rm -f core conftest.err conftest.$ac_objext \
21887     conftest$ac_exeext
21888   if test "${ac_cv_search_nanosleep+set}" = set; then :
21889   break
21890 fi
21891 done
21892 if test "${ac_cv_search_nanosleep+set}" = set; then :
21893
21894 else
21895   ac_cv_search_nanosleep=no
21896 fi
21897 rm conftest.$ac_ext
21898 LIBS=$ac_func_search_save_LIBS
21899 fi
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21901 $as_echo "$ac_cv_search_nanosleep" >&6; }
21902 ac_res=$ac_cv_search_nanosleep
21903 if test "$ac_res" != no; then :
21904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21905
21906 fi
21907
21908           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21909 $as_echo_n "checking for libwrap... " >&6; }
21910           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21911 /* end confdefs.h.  */
21912
21913                #include <sys/types.h>
21914                #include <tcpd.h>
21915                int deny_severity = 0;
21916                int allow_severity = 0;
21917                struct request_info *req;
21918
21919 int
21920 main ()
21921 {
21922
21923                 hosts_access(req);
21924
21925   ;
21926   return 0;
21927 }
21928 _ACEOF
21929 if ac_fn_c_try_link "$LINENO"; then :
21930
21931                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21932 $as_echo "yes" >&6; }
21933
21934 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21935
21936                  TCPW_MSG="yes"
21937                  LIBS="$saved_LIBS"
21938                  WRAPLIBS="-lwrap"
21939
21940 else
21941
21942                  LIBS="$saved_LIBS -lwrap -lnsl"
21943                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21944                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21945 /* end confdefs.h.  */
21946
21947                        #include <sys/types.h>
21948                        #include <tcpd.h>
21949                        int deny_severity = 0;
21950                        int allow_severity = 0;
21951                        struct request_info *req;
21952
21953 int
21954 main ()
21955 {
21956
21957                        hosts_access(req);
21958
21959   ;
21960   return 0;
21961 }
21962 _ACEOF
21963 if ac_fn_c_try_link "$LINENO"; then :
21964
21965                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21966 $as_echo "yes" >&6; }
21967
21968 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21969
21970                       TCPW_MSG="yes"
21971                       LIBS="$saved_LIBS"
21972                       WRAPLIBS="-lwrap"
21973
21974 else
21975
21976                       as_fn_error "*** libwrap missing" "$LINENO" 5
21977
21978
21979 fi
21980 rm -f core conftest.err conftest.$ac_objext \
21981     conftest$ac_exeext conftest.$ac_ext
21982
21983
21984 fi
21985 rm -f core conftest.err conftest.$ac_objext \
21986     conftest$ac_exeext conftest.$ac_ext
21987        fi
21988
21989
21990 fi
21991
21992
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
21994 $as_echo_n "checking for OpenSSL... " >&6; }
21995
21996 # Check whether --with-openssl was given.
21997 if test "${with_openssl+set}" = set; then :
21998   withval=$with_openssl;
21999         with_openssl_directory=${withval}
22000
22001
22002 fi
22003
22004
22005 if test "x$with_openssl_directory" != "xno"; then
22006    OPENSSL_LIBS="-lssl -lcrypto"
22007    OPENSSL_INC=""
22008
22009    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22010       #
22011       # Make sure the $with_openssl_directory also makes sense
22012       #
22013       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22014          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22015          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22016       fi
22017    fi
22018
22019    saved_LIBS="${LIBS}"
22020    saved_CFLAGS="${CFLAGS}"
22021    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22022    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22023
22024    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22025 /* end confdefs.h.  */
22026
22027           #include <openssl/ssl.h>
22028
22029 int
22030 main ()
22031 {
22032
22033            CRYPTO_set_id_callback(NULL);
22034
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 if ac_fn_c_try_link "$LINENO"; then :
22040
22041           support_tls="yes"
22042           support_crypto="yes"
22043
22044 else
22045
22046           support_tls="no"
22047           support_crypto="no"
22048
22049
22050 fi
22051 rm -f core conftest.err conftest.$ac_objext \
22052     conftest$ac_exeext conftest.$ac_ext
22053
22054    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055 /* end confdefs.h.  */
22056
22057           #include <openssl/evp.h>
22058
22059 int
22060 main ()
22061 {
22062
22063           EVP_sha512();
22064
22065   ;
22066   return 0;
22067 }
22068 _ACEOF
22069 if ac_fn_c_try_link "$LINENO"; then :
22070
22071           ac_cv_openssl_sha2="yes"
22072
22073 else
22074
22075           ac_cv_openssl_sha2="no"
22076
22077
22078 fi
22079 rm -f core conftest.err conftest.$ac_objext \
22080     conftest$ac_exeext conftest.$ac_ext
22081
22082                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22083 /* end confdefs.h.  */
22084
22085           #include <openssl/evp.h>
22086
22087 int
22088 main ()
22089 {
22090
22091           EVP_aes_192_cbc();
22092
22093   ;
22094   return 0;
22095 }
22096 _ACEOF
22097 if ac_fn_c_try_link "$LINENO"; then :
22098
22099           ac_cv_openssl_export="no"
22100
22101 else
22102
22103           ac_cv_openssl_export="yes"
22104
22105
22106 fi
22107 rm -f core conftest.err conftest.$ac_objext \
22108     conftest$ac_exeext conftest.$ac_ext
22109
22110    LIBS="${saved_LIBS}"
22111    CFLAGS="${saved_CFLAGS}"
22112
22113    if test "$support_tls" = "yes"; then
22114
22115 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22116
22117
22118 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22119
22120
22121 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22122
22123    fi
22124
22125    if test "$ac_cv_openssl_sha2" = "yes"; then
22126
22127 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22128
22129    fi
22130
22131    if test "$ac_cv_openssl_export" = "yes"; then
22132
22133 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22134
22135    fi
22136 else
22137    support_tls="no"
22138    support_crypto="no"
22139    OPENSSL_LIBS=""
22140    OPENSSL_INC=""
22141 fi
22142
22143 if test "$support_tls" = "no"; then
22144    OPENSSL_LIBS=""
22145    OPENSSL_INC=""
22146 fi
22147 if test "$support_crypto" = "no"; then
22148    OPENSSL_LIBS=""
22149    OPENSSL_INC=""
22150 else
22151    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22152 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22153 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
22154   $as_echo_n "(cached) " >&6
22155 else
22156   ac_check_lib_save_LIBS=$LIBS
22157 LIBS="-lssl  $LIBS"
22158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22159 /* end confdefs.h.  */
22160
22161 /* Override any GCC internal prototype to avoid an error.
22162    Use char because int might match the return type of a GCC
22163    builtin and then its argument prototype would still apply.  */
22164 #ifdef __cplusplus
22165 extern "C"
22166 #endif
22167 char EVP_PKEY_encrypt_old ();
22168 int
22169 main ()
22170 {
22171 return EVP_PKEY_encrypt_old ();
22172   ;
22173   return 0;
22174 }
22175 _ACEOF
22176 if ac_fn_c_try_link "$LINENO"; then :
22177   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22178 else
22179   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22180 fi
22181 rm -f core conftest.err conftest.$ac_objext \
22182     conftest$ac_exeext conftest.$ac_ext
22183 LIBS=$ac_check_lib_save_LIBS
22184 fi
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22186 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22187 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then :
22188
22189 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22190
22191 fi
22192
22193 fi
22194
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22196 $as_echo "$support_tls" >&6; }
22197
22198
22199
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22201 $as_echo_n "checking for library containing dlopen... " >&6; }
22202 if test "${ac_cv_search_dlopen+set}" = set; then :
22203   $as_echo_n "(cached) " >&6
22204 else
22205   ac_func_search_save_LIBS=$LIBS
22206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h.  */
22208
22209 /* Override any GCC internal prototype to avoid an error.
22210    Use char because int might match the return type of a GCC
22211    builtin and then its argument prototype would still apply.  */
22212 #ifdef __cplusplus
22213 extern "C"
22214 #endif
22215 char dlopen ();
22216 int
22217 main ()
22218 {
22219 return dlopen ();
22220   ;
22221   return 0;
22222 }
22223 _ACEOF
22224 for ac_lib in '' dl; do
22225   if test -z "$ac_lib"; then
22226     ac_res="none required"
22227   else
22228     ac_res=-l$ac_lib
22229     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22230   fi
22231   if ac_fn_c_try_link "$LINENO"; then :
22232   ac_cv_search_dlopen=$ac_res
22233 fi
22234 rm -f core conftest.err conftest.$ac_objext \
22235     conftest$ac_exeext
22236   if test "${ac_cv_search_dlopen+set}" = set; then :
22237   break
22238 fi
22239 done
22240 if test "${ac_cv_search_dlopen+set}" = set; then :
22241
22242 else
22243   ac_cv_search_dlopen=no
22244 fi
22245 rm conftest.$ac_ext
22246 LIBS=$ac_func_search_save_LIBS
22247 fi
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22249 $as_echo "$ac_cv_search_dlopen" >&6; }
22250 ac_res=$ac_cv_search_dlopen
22251 if test "$ac_res" != no; then :
22252   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22253
22254 fi
22255
22256
22257 working_dir=`eval echo ${prefix}/var/bacula/working`
22258
22259 # Check whether --with-working-dir was given.
22260 if test "${with_working_dir+set}" = set; then :
22261   withval=$with_working_dir;
22262        if test "x$withval" != "xno" ; then
22263          working_dir=$withval
22264        fi
22265
22266
22267 fi
22268
22269
22270
22271
22272 archivedir=/tmp
22273
22274 # Check whether --with-archivedir was given.
22275 if test "${with_archivedir+set}" = set; then :
22276   withval=$with_archivedir;
22277        if test "x$withval" != "xno" ; then
22278           archivedir=$withval
22279        fi
22280
22281
22282 fi
22283
22284
22285
22286
22287 basename=`hostname`
22288
22289 # Check whether --with-basename was given.
22290 if test "${with_basename+set}" = set; then :
22291   withval=$with_basename;
22292        if test "x$withval" != "xno" ; then
22293           basename=$withval
22294        fi
22295
22296
22297 fi
22298
22299
22300
22301
22302 hostname=`uname -n | cut -d '.' -f 1`
22303 if test x${hostname} = x ; then
22304   hostname="localhost"
22305 fi
22306
22307 # Check whether --with-hostname was given.
22308 if test "${with_hostname+set}" = set; then :
22309   withval=$with_hostname;
22310        if test "x$withval" != "xno" ; then
22311          hostname=$withval
22312        fi
22313
22314
22315 fi
22316
22317
22318
22319
22320
22321 scriptdir=`eval echo ${sysconfdir}`
22322
22323 # Check whether --with-scriptdir was given.
22324 if test "${with_scriptdir+set}" = set; then :
22325   withval=$with_scriptdir;
22326        if test "x$withval" != "xno" ; then
22327           scriptdir=$withval
22328        fi
22329
22330
22331 fi
22332
22333
22334
22335
22336
22337 bsrdir=/tmp
22338
22339 # Check whether --with-bsrdir was given.
22340 if test "${with_bsrdir+set}" = set; then :
22341   withval=$with_bsrdir;
22342        if test "x$withval" != "xno" ; then
22343           bsrdir=$withval
22344        fi
22345
22346
22347 fi
22348
22349
22350
22351
22352 logdir=/tmp
22353
22354 # Check whether --with-logdir was given.
22355 if test "${with_logdir+set}" = set; then :
22356   withval=$with_logdir;
22357        if test "x$withval" != "xno" ; then
22358           logdir=$withval
22359        fi
22360
22361
22362 fi
22363
22364
22365
22366
22367
22368 # ------------------------------------------
22369 # Where to place plugindir (plugin files)
22370 # ------------------------------------------
22371 plugindir=`eval echo ${libdir}`
22372
22373 # Check whether --with-plugindir was given.
22374 if test "${with_plugindir+set}" = set; then :
22375   withval=$with_plugindir;
22376        if test "x$withval" != "xno" ; then
22377           plugindir=$withval
22378        fi
22379
22380
22381 fi
22382
22383
22384
22385
22386 dump_email=root@localhost
22387
22388 # Check whether --with-dump-email was given.
22389 if test "${with_dump_email+set}" = set; then :
22390   withval=$with_dump_email;
22391        if test "x$withval" != "xno" ; then
22392           dump_email=$withval
22393        fi
22394
22395
22396 fi
22397
22398
22399
22400
22401 job_email=root@localhost
22402
22403 # Check whether --with-job-email was given.
22404 if test "${with_job_email+set}" = set; then :
22405   withval=$with_job_email;
22406        if test "x$withval" != "xno" ; then
22407           job_email=$withval
22408        fi
22409
22410
22411 fi
22412
22413
22414
22415
22416 smtp_host=localhost
22417
22418 # Check whether --with-smtp_host was given.
22419 if test "${with_smtp_host+set}" = set; then :
22420   withval=$with_smtp_host;
22421        if test "x$withval" != "xno" ; then
22422           smtp_host=$withval
22423        fi
22424
22425
22426 fi
22427
22428
22429
22430
22431 piddir=/var/run
22432
22433 # Check whether --with-pid-dir was given.
22434 if test "${with_pid_dir+set}" = set; then :
22435   withval=$with_pid_dir;
22436        if test "x$withval" != "xno" ; then
22437           piddir=$withval
22438        fi
22439
22440
22441 fi
22442
22443
22444 cat >>confdefs.h <<_ACEOF
22445 #define _PATH_BACULA_PIDDIR "$piddir"
22446 _ACEOF
22447
22448
22449
22450 subsysdir=/var/run/subsys
22451 if test -d /var/run/subsys; then
22452    subsysdir=/var/run/subsys
22453 elif test -d /var/lock/subsys; then
22454    subsysdir=/var/lock/subsys
22455 else
22456    subsysdir=/var/run/subsys
22457 fi
22458
22459 # Check whether --with-subsys-dir was given.
22460 if test "${with_subsys_dir+set}" = set; then :
22461   withval=$with_subsys_dir;
22462        if test "x$withval" != "xno" ; then
22463           subsysdir=$withval
22464        fi
22465
22466
22467 fi
22468
22469
22470
22471
22472 baseport=9101
22473
22474 # Check whether --with-baseport was given.
22475 if test "${with_baseport+set}" = set; then :
22476   withval=$with_baseport;
22477        if test "x$withval" != "xno" ; then
22478           baseport=$withval
22479        fi
22480
22481
22482 fi
22483
22484
22485
22486 dir_port=`expr $baseport`
22487 fd_port=`expr $baseport + 1`
22488 sd_port=`expr $fd_port + 1`
22489
22490
22491
22492
22493
22494 dir_password=
22495
22496 # Check whether --with-dir-password was given.
22497 if test "${with_dir_password+set}" = set; then :
22498   withval=$with_dir_password;
22499        if test "x$withval" != "xno" ; then
22500           dir_password=$withval
22501        fi
22502
22503
22504 fi
22505
22506
22507 if test "x$dir_password" = "x" ; then
22508    if test "x$OPENSSL" = "xnone" ; then
22509       key=`autoconf/randpass 33`
22510    else
22511       key=`openssl rand -base64 33`
22512    fi
22513    dir_password=$key
22514 fi
22515
22516 fd_password=
22517
22518 # Check whether --with-fd-password was given.
22519 if test "${with_fd_password+set}" = set; then :
22520   withval=$with_fd_password;
22521        if test "x$withval" != "xno" ; then
22522           fd_password=$withval
22523        fi
22524
22525
22526 fi
22527
22528
22529 if test "x$fd_password" = "x" ; then
22530    if test "x$OPENSSL" = "xnone" ; then
22531       key=`autoconf/randpass 37`
22532    else
22533       key=`openssl rand -base64 33`
22534    fi
22535    fd_password=$key
22536 fi
22537
22538 sd_password=
22539
22540 # Check whether --with-sd-password was given.
22541 if test "${with_sd_password+set}" = set; then :
22542   withval=$with_sd_password;
22543        if test "x$withval" != "xno" ; then
22544           sd_password=$withval
22545        fi
22546
22547
22548 fi
22549
22550
22551 if test "x$sd_password" = "x" ; then
22552    if test "x$OPENSSL" = "xnone" ; then
22553       key=`autoconf/randpass 41`
22554    else
22555       key=`openssl rand -base64 33`
22556    fi
22557    sd_password=$key
22558 fi
22559
22560 mon_dir_password=
22561
22562 # Check whether --with-mon-dir-password was given.
22563 if test "${with_mon_dir_password+set}" = set; then :
22564   withval=$with_mon_dir_password;
22565        if test "x$withval" != "xno" ; then
22566           mon_dir_password=$withval
22567        fi
22568
22569
22570 fi
22571
22572
22573 if test "x$mon_dir_password" = "x" ; then
22574    if test "x$OPENSSL" = "xnone" ; then
22575       key=`autoconf/randpass 33`
22576    else
22577       key=`openssl rand -base64 33`
22578    fi
22579    mon_dir_password=$key
22580 fi
22581
22582 mon_fd_password=
22583
22584 # Check whether --with-mon-fd-password was given.
22585 if test "${with_mon_fd_password+set}" = set; then :
22586   withval=$with_mon_fd_password;
22587        if test "x$withval" != "xno" ; then
22588           mon_fd_password=$withval
22589        fi
22590
22591
22592 fi
22593
22594
22595 if test "x$mon_fd_password" = "x" ; then
22596    if test "x$OPENSSL" = "xnone" ; then
22597       key=`autoconf/randpass 37`
22598    else
22599       key=`openssl rand -base64 33`
22600    fi
22601    mon_fd_password=$key
22602 fi
22603
22604 mon_sd_password=
22605
22606 # Check whether --with-mon-sd-password was given.
22607 if test "${with_mon_sd_password+set}" = set; then :
22608   withval=$with_mon_sd_password;
22609        if test "x$withval" != "xno" ; then
22610           mon_sd_password=$withval
22611        fi
22612
22613
22614 fi
22615
22616
22617 if test "x$mon_sd_password" = "x" ; then
22618    if test "x$OPENSSL" = "xnone" ; then
22619       key=`autoconf/randpass 41`
22620    else
22621       key=`openssl rand -base64 33`
22622    fi
22623    mon_sd_password=$key
22624 fi
22625
22626
22627
22628
22629
22630
22631
22632
22633 db_name=bacula
22634
22635 # Check whether --with-db_name was given.
22636 if test "${with_db_name+set}" = set; then :
22637   withval=$with_db_name;
22638        if test "x$withval" != "x" ; then
22639           db_name=$withval
22640        fi
22641
22642
22643 fi
22644
22645
22646
22647 db_user=bacula
22648
22649 # Check whether --with-db_user was given.
22650 if test "${with_db_user+set}" = set; then :
22651   withval=$with_db_user;
22652        if test "x$withval" != "x" ; then
22653           db_user=$withval
22654        fi
22655
22656
22657 fi
22658
22659
22660
22661 db_password=
22662
22663 # Check whether --with-db_password was given.
22664 if test "${with_db_password+set}" = set; then :
22665   withval=$with_db_password;
22666        if test "x$withval" != "x" ; then
22667           db_password=$withval
22668        fi
22669
22670
22671 fi
22672
22673
22674
22675 db_port=" "
22676
22677 # Check whether --with-db_port was given.
22678 if test "${with_db_port+set}" = set; then :
22679   withval=$with_db_port;
22680        if test "x$withval" != "x" ; then
22681           db_port=$withval
22682        fi
22683
22684
22685 fi
22686
22687
22688
22689 #
22690 # Handle users and groups for each daemon
22691 #
22692 dir_user=
22693
22694 # Check whether --with-dir_user was given.
22695 if test "${with_dir_user+set}" = set; then :
22696   withval=$with_dir_user;
22697        if test "x$withval" != "x" ; then
22698            dir_user=$withval
22699        fi
22700
22701
22702 fi
22703
22704
22705 dir_group=
22706
22707 # Check whether --with-dir_group was given.
22708 if test "${with_dir_group+set}" = set; then :
22709   withval=$with_dir_group;
22710        if test "x$withval" != "x" ; then
22711           dir_group=$withval
22712        fi
22713
22714
22715 fi
22716
22717
22718 sd_user=
22719
22720 # Check whether --with-sd_user was given.
22721 if test "${with_sd_user+set}" = set; then :
22722   withval=$with_sd_user;
22723        if test "x$withval" != "x" ; then
22724           sd_user=$withval
22725        fi
22726
22727
22728 fi
22729
22730
22731 sd_group=
22732
22733 # Check whether --with-sd_group was given.
22734 if test "${with_sd_group+set}" = set; then :
22735   withval=$with_sd_group;
22736        if test "x$withval" != "x" ; then
22737           sd_group=$withval
22738        fi
22739
22740
22741 fi
22742
22743
22744 fd_user=
22745
22746 # Check whether --with-fd_user was given.
22747 if test "${with_fd_user+set}" = set; then :
22748   withval=$with_fd_user;
22749        if test "x$withval" != "x" ; then
22750           fd_user=$withval
22751        fi
22752
22753
22754 fi
22755
22756
22757 fd_group=
22758
22759 # Check whether --with-fd_group was given.
22760 if test "${with_fd_group+set}" = set; then :
22761   withval=$with_fd_group;
22762        if test "x$withval" != "x" ; then
22763           fd_group=$withval
22764        fi
22765
22766
22767 fi
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777 SBINPERM=0750
22778
22779 # Check whether --with-sbin-perm was given.
22780 if test "${with_sbin_perm+set}" = set; then :
22781   withval=$with_sbin_perm;
22782        if test "x$withval" != "x" ; then
22783           SBINPERM=$withval
22784        fi
22785
22786
22787 fi
22788
22789
22790
22791
22792 SQL_LIB=
22793
22794 db_found=no
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22796 $as_echo_n "checking for PostgreSQL support... " >&6; }
22797
22798 # Check whether --with-postgresql was given.
22799 if test "${with_postgresql+set}" = set; then :
22800   withval=$with_postgresql;
22801   if test "$withval" != "no"; then
22802       if test "$db_found" = "yes"; then
22803           { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22804 $as_echo "error" >&6; }
22805           as_fn_error "\"You can configure for only one database.\"" "$LINENO" 5;
22806       fi
22807       if test "$withval" = "yes"; then
22808           PG_CONFIG=`which pg_config`
22809           if test -n "$PG_CONFIG";then
22810               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22811               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22812               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22813           elif test -f /usr/local/include/libpq-fe.h; then
22814               POSTGRESQL_INCDIR=/usr/local/include
22815               if test -d /usr/local/lib64; then
22816                  POSTGRESQL_LIBDIR=/usr/local/lib64
22817               else
22818                  POSTGRESQL_LIBDIR=/usr/local/lib
22819               fi
22820               POSTGRESQL_BINDIR=/usr/local/bin
22821           elif test -f /usr/include/libpq-fe.h; then
22822               POSTGRESQL_INCDIR=/usr/include
22823               if test -d /usr/lib64; then
22824                  POSTGRESQL_LIBDIR=/usr/lib64
22825               else
22826                  POSTGRESQL_LIBDIR=/usr/lib
22827               fi
22828               POSTGRESQL_BINDIR=/usr/bin
22829           elif test -f /usr/include/pgsql/libpq-fe.h; then
22830               POSTGRESQL_INCDIR=/usr/include/pgsql
22831               if test -d /usr/lib64/pgsql; then
22832                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22833               else
22834                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22835               fi
22836               POSTGRESQL_BINDIR=/usr/bin
22837           elif test -f /usr/include/postgresql/libpq-fe.h; then
22838               POSTGRESQL_INCDIR=/usr/include/postgresql
22839               if test -d /usr/lib64/postgresql; then
22840                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22841               else
22842                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22843               fi
22844               POSTGRESQL_BINDIR=/usr/bin
22845           else
22846               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22847 $as_echo "no" >&6; }
22848               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22849           fi
22850       elif test -f $withval/include/libpq-fe.h; then
22851           POSTGRESQL_INCDIR=$withval/include
22852           POSTGRESQL_LIBDIR=$withval/lib
22853           POSTGRESQL_BINDIR=$withval/bin
22854       elif test -f $withval/include/postgresql/libpq-fe.h; then
22855           POSTGRESQL_INCDIR=$withval/include/postgresql
22856      if test -d $withval/lib64; then
22857          POSTGRESQL_LIBDIR=$withval/lib64
22858      else
22859          POSTGRESQL_LIBDIR=$withval/lib
22860      fi
22861           POSTGRESQL_BINDIR=$withval/bin
22862       else
22863           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22864 $as_echo "no" >&6; }
22865           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22866       fi
22867       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22868       ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22869 if test "x$ac_cv_func_crypt" = x""yes; then :
22870
22871 else
22872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22873 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22874 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22875   $as_echo_n "(cached) " >&6
22876 else
22877   ac_check_lib_save_LIBS=$LIBS
22878 LIBS="-lcrypt  $LIBS"
22879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22880 /* end confdefs.h.  */
22881
22882 /* Override any GCC internal prototype to avoid an error.
22883    Use char because int might match the return type of a GCC
22884    builtin and then its argument prototype would still apply.  */
22885 #ifdef __cplusplus
22886 extern "C"
22887 #endif
22888 char crypt ();
22889 int
22890 main ()
22891 {
22892 return crypt ();
22893   ;
22894   return 0;
22895 }
22896 _ACEOF
22897 if ac_fn_c_try_link "$LINENO"; then :
22898   ac_cv_lib_crypt_crypt=yes
22899 else
22900   ac_cv_lib_crypt_crypt=no
22901 fi
22902 rm -f core conftest.err conftest.$ac_objext \
22903     conftest$ac_exeext conftest.$ac_ext
22904 LIBS=$ac_check_lib_save_LIBS
22905 fi
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22907 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22908 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22909   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22910 fi
22911
22912 fi
22913
22914       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22915       SQL_LFLAGS=$POSTGRESQL_LFLAGS
22916       SQL_BINDIR=$POSTGRESQL_BINDIR
22917       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22918
22919       $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22920
22921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22922 $as_echo "yes" >&6; }
22923       db_found=yes
22924       support_postgresql=yes
22925       db_type=PostgreSQL
22926       DB_TYPE=postgresql
22927   else
22928       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22929 $as_echo "no" >&6; }
22930   fi
22931
22932 else
22933
22934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22935 $as_echo "no" >&6; }
22936
22937 fi
22938
22939
22940
22941
22942
22943
22944
22945
22946 db_found=no
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22948 $as_echo_n "checking for MySQL support... " >&6; }
22949
22950 # Check whether --with-mysql was given.
22951 if test "${with_mysql+set}" = set; then :
22952   withval=$with_mysql;
22953   if test "$withval" != "no"; then
22954         if test "$withval" = "yes"; then
22955            if test -f /usr/local/mysql/include/mysql/mysql.h; then
22956                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
22957                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22958                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22959                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22960                    else
22961                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22962                    fi
22963                    MYSQL_BINDIR=/usr/local/mysql/bin
22964            elif test -f /usr/include/mysql/mysql.h; then
22965                    MYSQL_INCDIR=/usr/include/mysql
22966                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22967                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22968                            MYSQL_LIBDIR=/usr/lib64/mysql
22969                    elif test -f /usr/lib64/libmysqlclient_r.a \
22970                         -o -f /usr/lib64/libmysqlclient_r.so; then
22971                            MYSQL_LIBDIR=/usr/lib64
22972                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22973                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22974                            MYSQL_LIBDIR=/usr/lib/mysql
22975                    else
22976                            MYSQL_LIBDIR=/usr/lib
22977                    fi
22978                    MYSQL_BINDIR=/usr/bin
22979            elif test -f /usr/include/mysql.h; then
22980                    MYSQL_INCDIR=/usr/include
22981                    if test -f /usr/lib64/libmysqlclient_r.a \
22982                         -o -f /usr/lib64/libmysqlclient_r.so; then
22983                            MYSQL_LIBDIR=/usr/lib64
22984                    else
22985                            MYSQL_LIBDIR=/usr/lib
22986                    fi
22987                    MYSQL_BINDIR=/usr/bin
22988            elif test -f /usr/local/include/mysql/mysql.h; then
22989                    MYSQL_INCDIR=/usr/local/include/mysql
22990                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22991                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22992                            MYSQL_LIBDIR=/usr/local/lib64/mysql
22993                    else
22994                            MYSQL_LIBDIR=/usr/local/lib/mysql
22995                    fi
22996                    MYSQL_BINDIR=/usr/local/bin
22997            elif test -f /usr/local/include/mysql.h; then
22998                    MYSQL_INCDIR=/usr/local/include
22999                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23000                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23001                            MYSQL_LIBDIR=/usr/local/lib64
23002                    else
23003                            MYSQL_LIBDIR=/usr/local/lib
23004                    fi
23005                    MYSQL_BINDIR=/usr/local/bin
23006            else
23007               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23008 $as_echo "no" >&6; }
23009               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23010            fi
23011         else
23012            if test -f $withval/include/mysql/mysql.h; then
23013               MYSQL_INCDIR=$withval/include/mysql
23014               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23015                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23016                  MYSQL_LIBDIR=$withval/lib64/mysql
23017               elif test -f $withval/lib64/libmysqlclient_r.a \
23018                    -o -f $withval/lib64/libmysqlclient_r.so; then
23019                  MYSQL_LIBDIR=$withval/lib64
23020               elif test -f $withval/lib/libmysqlclient_r.a \
23021                    -o -f $withval/lib/libmysqlclient_r.so; then
23022                  MYSQL_LIBDIR=$withval/lib
23023               else
23024                  MYSQL_LIBDIR=$withval/lib/mysql
23025               fi
23026               MYSQL_BINDIR=$withval/bin
23027            elif test -f $withval/include/mysql.h; then
23028               MYSQL_INCDIR=$withval/include
23029               if test -f $withval/lib64/libmysqlclient_r.a \
23030                    -o -f $withval/lib64/libmysqlclient_r.so; then
23031                  MYSQL_LIBDIR=$withval/lib64
23032               else
23033                  MYSQL_LIBDIR=$withval/lib
23034               fi
23035               MYSQL_BINDIR=$withval/bin
23036            else
23037               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23038 $as_echo "no" >&6; }
23039               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23040            fi
23041         fi
23042     SQL_INCLUDE=-I$MYSQL_INCDIR
23043     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23044          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23045        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23046        $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23047
23048     fi
23049     SQL_BINDIR=$MYSQL_BINDIR
23050     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23051
23052
23053 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23054
23055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23056 $as_echo "yes" >&6; }
23057     db_found=yes
23058     support_mysql=yes
23059     db_type=MySQL
23060     DB_TYPE=mysql
23061
23062   else
23063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23064 $as_echo "no" >&6; }
23065   fi
23066
23067
23068 fi
23069
23070
23071
23072 # Check whether --with-embedded-mysql was given.
23073 if test "${with_embedded_mysql+set}" = set; then :
23074   withval=$with_embedded_mysql;
23075   if test "$withval" != "no"; then
23076         if test "$withval" = "yes"; then
23077                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23078                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23079                         if test -d /usr/local/mysql/lib64/mysql; then
23080                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23081                         else
23082                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23083                         fi
23084                         MYSQL_BINDIR=/usr/local/mysql/bin
23085                 elif test -f /usr/include/mysql/mysql.h; then
23086                         MYSQL_INCDIR=/usr/include/mysql
23087                         if test -d /usr/lib64/mysql; then
23088                                 MYSQL_LIBDIR=/usr/lib64/mysql
23089                         else
23090                                 MYSQL_LIBDIR=/usr/lib/mysql
23091                         fi
23092                         MYSQL_BINDIR=/usr/bin
23093                 elif test -f /usr/include/mysql.h; then
23094                         MYSQL_INCDIR=/usr/include
23095                         if test -d /usr/lib64; then
23096                                 MYSQL_LIBDIR=/usr/lib64
23097                         else
23098                                 MYSQL_LIBDIR=/usr/lib
23099                         fi
23100                         MYSQL_BINDIR=/usr/bin
23101                 elif test -f /usr/local/include/mysql/mysql.h; then
23102                         MYSQL_INCDIR=/usr/local/include/mysql
23103                         if test -d /usr/local/lib64/mysql; then
23104                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23105                         else
23106                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23107                         fi
23108                         MYSQL_BINDIR=/usr/local/bin
23109                 elif test -f /usr/local/include/mysql.h; then
23110                         MYSQL_INCDIR=/usr/local/include
23111                         if test -d /usr/local/lib64; then
23112                                 MYSQL_LIBDIR=/usr/local/lib64
23113                         else
23114                                 MYSQL_LIBDIR=/usr/local/lib
23115                         fi
23116                         MYSQL_BINDIR=/usr/local/bin
23117                 else
23118                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23119 $as_echo "no" >&6; }
23120                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23121                 fi
23122         else
23123                 if test -f $withval/include/mysql/mysql.h; then
23124                         MYSQL_INCDIR=$withval/include/mysql
23125                         if test -d $withval/lib64/mysql; then
23126                                 MYSQL_LIBDIR=$withval/lib64/mysql
23127                         else
23128                                 MYSQL_LIBDIR=$withval/lib/mysql
23129                         fi
23130                         MYSQL_BINDIR=$withval/bin
23131                 elif test -f $withval/include/mysql.h; then
23132                         MYSQL_INCDIR=$withval/include
23133                         if test -d $withval/lib64; then
23134                                 MYSQL_LIBDIR=$withval/lib64
23135                         else
23136                                 MYSQL_LIBDIR=$withval/lib
23137                         fi
23138                         MYSQL_BINDIR=$withval/bin
23139                 else
23140                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23141 $as_echo "no" >&6; }
23142                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23143                 fi
23144         fi
23145     SQL_INCLUDE=-I$MYSQL_INCDIR
23146     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23147     SQL_BINDIR=$MYSQL_BINDIR
23148     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23149
23150     $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23151
23152     $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23153
23154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23155 $as_echo "yes" >&6; }
23156     db_found=yes
23157     support_mysql=yes
23158     db_type=MySQL
23159     DB_TYPE=mysql
23160
23161   else
23162         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23163 $as_echo "no" >&6; }
23164   fi
23165
23166
23167 fi
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178 db_found=no
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23180 $as_echo_n "checking for Ingres support... " >&6; }
23181
23182 # Check whether --with-ingres was given.
23183 if test "${with_ingres+set}" = set; then :
23184   withval=$with_ingres;
23185   if test "$withval" != "no"; then
23186      if test "$withval" = "yes"; then
23187         if test -f ${II_SYSTEM}/files/eqdefc.h; then
23188            INGRES_INCDIR=${II_SYSTEM}/files
23189            INGRES_LIBDIR=${II_SYSTEM}/lib
23190            INGRES_BINDIR=${II_SYSTEM}/bin
23191         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23192            INGRES_INCDIR=${II_SYSTEM}/ingres/files
23193            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23194            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23195         else
23196            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23197 $as_echo "no" >&6; }
23198            as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23199         fi
23200      else
23201         if test -f $withval/files/eqdefc.h; then
23202            INGRES_INCDIR=$withval/files
23203            INGRES_LIBDIR=$withval/lib
23204            INGRES_BINDIR=$withval/bin
23205         else
23206            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23207 $as_echo "no" >&6; }
23208            as_fn_error "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23209         fi
23210      fi
23211      SQL_INCLUDE=-I$INGRES_INCDIR
23212      SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
23213      SQL_BINDIR=$INGRES_BINDIR
23214      SQL_LIB=$INGRES_LIBDIR/libingres.a
23215
23216 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23217
23218      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23219 $as_echo "yes" >&6; }
23220      db_found=yes
23221      support_ingres=yes
23222      db_type=Ingres
23223      DB_TYPE=ingres
23224
23225   else
23226      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23227 $as_echo "no" >&6; }
23228   fi
23229
23230 else
23231
23232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23233 $as_echo "no" >&6; }
23234
23235 fi
23236
23237
23238
23239
23240
23241
23242
23243
23244 db_found=no
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23246 $as_echo_n "checking for SQLite3 support... " >&6; }
23247
23248 # Check whether --with-sqlite3 was given.
23249 if test "${with_sqlite3+set}" = set; then :
23250   withval=$with_sqlite3;
23251   if test "$withval" != "no"; then
23252      if test "$withval" = "yes"; then
23253         if test -f /usr/local/include/sqlite3.h; then
23254            SQLITE_INCDIR=/usr/local/include
23255            if test -d /usr/local/lib64; then
23256               SQLITE_LIBDIR=/usr/local/lib64
23257            else
23258               SQLITE_LIBDIR=/usr/local/lib
23259            fi
23260            SQLITE_BINDIR=/usr/local/bin
23261         elif test -f /usr/include/sqlite3.h; then
23262            SQLITE_INCDIR=/usr/include
23263            if test -d /usr/lib64; then
23264               SQLITE_LIBDIR=/usr/lib64
23265            else
23266               SQLITE_LIBDIR=/usr/lib
23267            fi
23268            SQLITE_BINDIR=/usr/bin
23269         elif test -f $prefix/include/sqlite3.h; then
23270            SQLITE_INCDIR=$prefix/include
23271            if test -d $prefix/lib64; then
23272               SQLITE_LIBDIR=$prefix/lib64
23273            else
23274               SQLITE_LIBDIR=$prefix/lib
23275            fi
23276            SQLITE_BINDIR=$prefix/bin
23277         else
23278            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23279 $as_echo "no" >&6; }
23280            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23281         fi
23282      else
23283         if test -f $withval/sqlite3.h; then
23284            SQLITE_INCDIR=$withval
23285            SQLITE_LIBDIR=$withval
23286            SQLITE_BINDIR=$withval
23287         elif test -f $withval/include/sqlite3.h; then
23288            SQLITE_INCDIR=$withval/include
23289            if test -d $withval/lib64; then
23290               SQLITE_LIBDIR=$withval/lib64
23291            else
23292               SQLITE_LIBDIR=$withval/lib
23293            fi
23294            SQLITE_BINDIR=$withval/bin
23295         else
23296            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23297 $as_echo "no" >&6; }
23298            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23299         fi
23300      fi
23301      SQL_INCLUDE=-I$SQLITE_INCDIR
23302      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23303      SQL_BINDIR=$SQLITE_BINDIR
23304      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23305
23306      $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23307
23308      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23309 $as_echo "yes" >&6; }
23310      db_found=yes
23311      support_sqlite3=yes
23312      db_type=SQLite3
23313      DB_TYPE=sqlite3
23314
23315   else
23316      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23317 $as_echo "no" >&6; }
23318   fi
23319
23320 else
23321
23322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23323 $as_echo "no" >&6; }
23324
23325 fi
23326
23327
23328
23329
23330
23331
23332
23333 # BA_CHECK_SQLITE_DB
23334
23335
23336 db_found=no
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23338 $as_echo_n "checking for DBI support... " >&6; }
23339
23340 # Check whether --with-dbi was given.
23341 if test "${with_dbi+set}" = set; then :
23342   withval=$with_dbi;
23343   if test "$withval" != "no"; then
23344      if test "$withval" = "yes"; then
23345         if test -f /usr/local/include/dbi/dbi.h; then
23346            DBI_INCDIR=/usr/local/dbi/include
23347            if test -d /usr/local/lib64; then
23348               DBI_LIBDIR=/usr/local/lib64
23349            else
23350               DBI_LIBDIR=/usr/local/lib
23351            fi
23352            DBI_BINDIR=/usr/local/bin
23353         elif test -f /usr/include/dbi/dbi.h; then
23354            DBI_INCDIR=/usr/include
23355            if test -d /usr/lib64; then
23356               DBI_LIBDIR=/usr/lib64
23357            else
23358               DBI_LIBDIR=/usr/lib
23359            fi
23360            DBI_BINDIR=/usr/bin
23361         elif test -f $prefix/include/dbi/dbi.h; then
23362            DBI_INCDIR=$prefix/include
23363            if test -d $prefix/lib64; then
23364               DBI_LIBDIR=$prefix/lib64
23365            else
23366               DBI_LIBDIR=$prefix/lib
23367            fi
23368            DBI_BINDIR=$prefix/bin
23369         else
23370            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23371 $as_echo "no" >&6; }
23372            as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23373         fi
23374         if test -d /usr/local/lib/dbd; then
23375            DRIVERDIR=/usr/local/lib/dbd
23376            if test -d /usr/local/lib64/dbd; then
23377               DRIVERDIR=/usr/local/lib64/dbd
23378            else
23379               DRIVERDIR=/usr/local/lib/dbd
23380            fi
23381         elif test -d /usr/lib/dbd; then
23382            DRIVERDIR=/usr/lib/dbd
23383            if test -d /usr/lib64/dbd; then
23384               DRIVERDIR=/usr/lib64/dbd
23385            else
23386               DRIVERDIR=/usr/lib/dbd
23387            fi
23388         elif test -d $prefix/lib/dbd; then
23389            if test -d $prefix/lib64/dbd; then
23390               DRIVERDIR=$prefix/lib64/dbd
23391            else
23392               DRIVERDIR=$prefix/lib/dbd
23393            fi
23394         elif test -d /usr/local/lib64/dbd; then
23395            DRIVERDIR=/usr/local/lib64/dbd
23396         elif test -d /usr/lib64/dbd; then
23397            DRIVERDIR=/usr/lib64/dbd
23398         elif test -d $prefix/lib64/dbd; then
23399            DRIVERDIR=$prefix/lib64/dbd
23400         else
23401            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23402 $as_echo "no" >&6; }
23403            as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23404         fi
23405      else
23406         if test -f $withval/dbi.h; then
23407            DBI_INCDIR=$withval
23408            DBI_LIBDIR=$withval
23409            DBI_BINDIR=$withval
23410         elif test -f $withval/include/dbi/dbi.h; then
23411            DBI_INCDIR=$withval/include
23412            if test -d $withval/lib64; then
23413               DBI_LIBDIR=$withval/lib64
23414            else
23415               DBI_LIBDIR=$withval/lib
23416            fi
23417            DBI_BINDIR=$withval/bin
23418         else
23419            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23420 $as_echo "no" >&6; }
23421            as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23422         fi
23423         if test -d $withval/dbd; then
23424            DRIVERDIR=$withval/dbd
23425         elif test -d $withval/lib/; then
23426            if test -d $withval/lib64/dbd; then
23427               DRIVERDIR=$withval/lib64/dbd
23428            else
23429               DRIVERDIR=$withval/lib/dbd
23430            fi
23431         elif test -d $withval/lib64/dbd; then
23432            DRIVERDIR=$withval/lib64/dbd
23433         else
23434            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23435 $as_echo "no" >&6; }
23436            as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23437         fi
23438      fi
23439      SQL_INCLUDE=-I$DBI_INCDIR
23440      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23441      SQL_BINDIR=$DBI_BINDIR
23442      SQL_LIB=$DBI_LIBDIR/libdbi.a
23443      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23444
23445
23446 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23447
23448      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23449 $as_echo "yes" >&6; }
23450      db_found=yes
23451      support_dbi=yes
23452      db_type=DBI
23453      DB_TYPE=dbi
23454      uncomment_dbi=" "
23455
23456   else
23457      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23458 $as_echo "no" >&6; }
23459   fi
23460
23461 else
23462
23463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23464 $as_echo "no" >&6; }
23465
23466 fi
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477 db_found=no
23478 db_prog=no
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23480 $as_echo_n "checking for DBI drivers support... " >&6; }
23481
23482 # Check whether --with-dbi-driver was given.
23483 if test "${with_dbi_driver+set}" = set; then :
23484   withval=$with_dbi_driver;
23485   if test "$withval" != "no"; then
23486      case $withval in
23487         "mysql")
23488            db_prog="mysql"
23489            if test -f /usr/local/mysql/bin/mysql; then
23490               SQL_BINDIR=/usr/local/mysql/bin
23491               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23492                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23493                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23494               else
23495                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
23496               fi
23497            elif test -f /usr/bin/mysql; then
23498               SQL_BINDIR=/usr/bin
23499               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23500                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23501                   SQL_LIBDIR=/usr/lib64/mysql
23502               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23503                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23504                   SQL_LIBDIR=/usr/lib/mysql
23505               else
23506                   SQL_LIBDIR=/usr/lib
23507               fi
23508            elif test -f /usr/local/bin/mysql; then
23509               SQL_BINDIR=/usr/local/bin
23510               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23511                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23512                   SQL_LIBDIR=/usr/local/lib64/mysql
23513               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23514                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23515                   SQL_LIBDIR=/usr/local/lib/mysql
23516               else
23517                   SQL_LIBDIR=/usr/local/lib
23518               fi
23519            elif test -f $withval/bin/mysql; then
23520               SQL_BINDIR=$withval/bin
23521               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23522                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23523                   SQL_LIBDIR=$withval/lib64/mysql
23524               elif test -f $withval/lib64/libmysqlclient_r.a \
23525                   -o -f $withval/lib64/libmysqlclient_r.so; then
23526                   SQL_LIBDIR=$withval/lib64
23527               elif test -f $withval/lib/libmysqlclient_r.a \
23528                   -o -f $withval/lib/libmysqlclient_r.so; then
23529                   SQL_LIBDIR=$withval/lib/
23530               else
23531                   SQL_LIBDIR=$withval/lib/mysql
23532               fi
23533            else
23534               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23535 $as_echo "no" >&6; }
23536               as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23537            fi
23538            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23539               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23540            else
23541               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23542            fi
23543         ;;
23544         "postgresql")
23545            db_prog="postgresql"
23546            PG_CONFIG=`which pg_config`
23547            if test -n "$PG_CONFIG"; then
23548               SQL_BINDIR=`"$PG_CONFIG" --bindir`
23549               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23550            elif test -f /usr/local/bin/psql; then
23551               SQL_BINDIR=/usr/local/bin
23552               if test -d /usr/local/lib64; then
23553                  SQL_LIBDIR=/usr/local/lib64
23554               else
23555                  SQL_LIBDIR=/usr/local/lib
23556               fi
23557            elif test -f /usr/bin/psql; then
23558               SQL_BINDIR=/usr/local/bin
23559               if test -d /usr/lib64/postgresql; then
23560                  SQL_LIBDIR=/usr/lib64/postgresql
23561               elif test -d /usr/lib/postgresql; then
23562                  SQL_LIBDIR=/usr/lib/postgresql
23563               elif test -d /usr/lib64; then
23564                  SQL_LIBDIR=/usr/lib64
23565               else
23566                  SQL_LIBDIR=/usr/lib
23567               fi
23568            elif test -f $withval/bin/psql; then
23569               SQL_BINDIR=$withval/bin
23570               if test -d $withval/lib64; then
23571                  SQL_LIBDIR=$withval/lib64
23572               else
23573                  SQL_LIBDIR=$withval/lib
23574               fi
23575            else
23576               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23577 $as_echo "no" >&6; }
23578               as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23579            fi
23580            if test -f $SQL_LIBDIR/libpq.so; then
23581               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23582            else
23583               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23584            fi
23585         ;;
23586         "sqlite")
23587            db_prog="sqlite"
23588            if test -f /usr/local/bin/sqlite; then
23589               SQL_BINDIR=/usr/local/bin
23590               if test -d /usr/local/lib64; then
23591                  SQL_LIBDIR=/usr/local/lib64
23592               else
23593                  SQL_LIBDIR=/usr/local/lib
23594               fi
23595            elif test -f /usr/bin/sqlite; then
23596               SQL_BINDIR=/usr/bin
23597               if test -d /usr/lib64; then
23598                  SQL_LIBDIR=/usr/lib64
23599               else
23600                  SQL_LIBDIR=/usr/lib
23601               fi
23602            elif test -f $withval/bin/sqlite; then
23603               SQL_BINDIR=$withval/bin
23604               if test -d $withval/lib64; then
23605                  SQL_LIBDIR=$withval/lib64
23606               else
23607                  SQL_LIBDIR=$withval/lib
23608               fi
23609            else
23610               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23611 $as_echo "no" >&6; }
23612               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23613            fi
23614            if test -f $SQL_LIBDIR/libsqlite.so; then
23615               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23616            else
23617               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23618            fi
23619         ;;
23620         "sqlite3")
23621            db_prog="sqlite3"
23622            if test -f /usr/local/bin/sqlite3; then
23623               SQL_BINDIR=/usr/local/bin
23624               if test -d /usr/local/lib64; then
23625                  SQL_LIBDIR=/usr/local/lib64
23626               else
23627                  SQL_LIBDIR=/usr/local/lib
23628               fi
23629            elif test -f /usr/bin/sqlite3; then
23630               SQL_BINDIR=/usr/bin
23631               if test -d /usr/lib64; then
23632                  SQL_LIBDIR=/usr/lib64
23633               else
23634                  SQL_LIBDIR=/usr/lib
23635               fi
23636            elif test -f $withval/bin/sqlite3; then
23637               SQL_BINDIR=$withval/bin
23638               if test -d $withval/lib64; then
23639                  SQL_LIBDIR=$withval/lib64
23640               else
23641                  SQL_LIBDIR=$withval/lib
23642               fi
23643            else
23644               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23645 $as_echo "no" >&6; }
23646               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23647            fi
23648            if test -f $SQL_LIBDIR/libsqlite3.so; then
23649               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23650            else
23651               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23652            fi
23653         ;;
23654         *)
23655            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23656 $as_echo "no" >&6; }
23657            as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23658         ;;
23659      esac
23660
23661      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23662 $as_echo "yes" >&6; }
23663      DB_PROG=$db_prog
23664   else
23665      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23666 $as_echo "no" >&6; }
23667   fi
23668
23669 else
23670
23671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23672 $as_echo "no" >&6; }
23673
23674 fi
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685 support_batch_insert=no
23686 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23687 pkg=$?
23688 if test $pkg = 0; then
23689    support_batch_insert=yes
23690    # Check whether --enable-batch-insert was given.
23691 if test "${enable_batch_insert+set}" = set; then :
23692   enableval=$enable_batch_insert;
23693           if test x$enableval = xno; then
23694              support_batch_insert=no
23695           else
23696              support_batch_insert=yes
23697           fi
23698
23699
23700 fi
23701
23702 fi
23703
23704 saved_LIBS="${LIBS}"
23705 LIBS="${saved_LIBS} ${SQL_LFLAGS}"
23706
23707 if test x$DB_TYPE = xpostgresql; then
23708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23709 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23710 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23711   $as_echo_n "(cached) " >&6
23712 else
23713   ac_check_lib_save_LIBS=$LIBS
23714 LIBS="-lpq  $LIBS"
23715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23716 /* end confdefs.h.  */
23717
23718 /* Override any GCC internal prototype to avoid an error.
23719    Use char because int might match the return type of a GCC
23720    builtin and then its argument prototype would still apply.  */
23721 #ifdef __cplusplus
23722 extern "C"
23723 #endif
23724 char PQisthreadsafe ();
23725 int
23726 main ()
23727 {
23728 return PQisthreadsafe ();
23729   ;
23730   return 0;
23731 }
23732 _ACEOF
23733 if ac_fn_c_try_link "$LINENO"; then :
23734   ac_cv_lib_pq_PQisthreadsafe=yes
23735 else
23736   ac_cv_lib_pq_PQisthreadsafe=no
23737 fi
23738 rm -f core conftest.err conftest.$ac_objext \
23739     conftest$ac_exeext conftest.$ac_ext
23740 LIBS=$ac_check_lib_save_LIBS
23741 fi
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23743 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23744 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23745
23746 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23747
23748 fi
23749
23750    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23751 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23752 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23753   $as_echo_n "(cached) " >&6
23754 else
23755   ac_check_lib_save_LIBS=$LIBS
23756 LIBS="-lpq  $LIBS"
23757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23758 /* end confdefs.h.  */
23759
23760 /* Override any GCC internal prototype to avoid an error.
23761    Use char because int might match the return type of a GCC
23762    builtin and then its argument prototype would still apply.  */
23763 #ifdef __cplusplus
23764 extern "C"
23765 #endif
23766 char PQputCopyData ();
23767 int
23768 main ()
23769 {
23770 return PQputCopyData ();
23771   ;
23772   return 0;
23773 }
23774 _ACEOF
23775 if ac_fn_c_try_link "$LINENO"; then :
23776   ac_cv_lib_pq_PQputCopyData=yes
23777 else
23778   ac_cv_lib_pq_PQputCopyData=no
23779 fi
23780 rm -f core conftest.err conftest.$ac_objext \
23781     conftest$ac_exeext conftest.$ac_ext
23782 LIBS=$ac_check_lib_save_LIBS
23783 fi
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23785 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23786 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23787
23788 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23789
23790 fi
23791
23792    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23793     then
23794         support_batch_insert=no
23795    fi
23796 fi
23797
23798 if test x$DB_TYPE = xdbi; then
23799    DB_TYPE=$DB_PROG
23800    db_type=$DB_PROG
23801    pkg=1
23802       if test $DB_PROG = postgresql; then
23803       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23804 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23805 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23806   $as_echo_n "(cached) " >&6
23807 else
23808   ac_check_lib_save_LIBS=$LIBS
23809 LIBS="-lpq  $LIBS"
23810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23811 /* end confdefs.h.  */
23812
23813 /* Override any GCC internal prototype to avoid an error.
23814    Use char because int might match the return type of a GCC
23815    builtin and then its argument prototype would still apply.  */
23816 #ifdef __cplusplus
23817 extern "C"
23818 #endif
23819 char PQisthreadsafe ();
23820 int
23821 main ()
23822 {
23823 return PQisthreadsafe ();
23824   ;
23825   return 0;
23826 }
23827 _ACEOF
23828 if ac_fn_c_try_link "$LINENO"; then :
23829   ac_cv_lib_pq_PQisthreadsafe=yes
23830 else
23831   ac_cv_lib_pq_PQisthreadsafe=no
23832 fi
23833 rm -f core conftest.err conftest.$ac_objext \
23834     conftest$ac_exeext conftest.$ac_ext
23835 LIBS=$ac_check_lib_save_LIBS
23836 fi
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23838 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23839 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23840   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23841
23842 fi
23843
23844       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23845 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23846 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23847   $as_echo_n "(cached) " >&6
23848 else
23849   ac_check_lib_save_LIBS=$LIBS
23850 LIBS="-lpq  $LIBS"
23851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23852 /* end confdefs.h.  */
23853
23854 /* Override any GCC internal prototype to avoid an error.
23855    Use char because int might match the return type of a GCC
23856    builtin and then its argument prototype would still apply.  */
23857 #ifdef __cplusplus
23858 extern "C"
23859 #endif
23860 char PQputCopyData ();
23861 int
23862 main ()
23863 {
23864 return PQputCopyData ();
23865   ;
23866   return 0;
23867 }
23868 _ACEOF
23869 if ac_fn_c_try_link "$LINENO"; then :
23870   ac_cv_lib_pq_PQputCopyData=yes
23871 else
23872   ac_cv_lib_pq_PQputCopyData=no
23873 fi
23874 rm -f core conftest.err conftest.$ac_objext \
23875     conftest$ac_exeext conftest.$ac_ext
23876 LIBS=$ac_check_lib_save_LIBS
23877 fi
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23879 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23880 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23881   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23882
23883 fi
23884
23885       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23886       pkg=$?
23887    fi
23888
23889    if test $DB_PROG = mysql; then
23890       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23891       pkg=$?
23892    fi
23893
23894    if test $DB_PROG = sqlite3; then
23895       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23896       pkg=$?
23897       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23898 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23899 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23900   $as_echo_n "(cached) " >&6
23901 else
23902   ac_check_lib_save_LIBS=$LIBS
23903 LIBS="-lsqlite3  $LIBS"
23904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23905 /* end confdefs.h.  */
23906
23907 /* Override any GCC internal prototype to avoid an error.
23908    Use char because int might match the return type of a GCC
23909    builtin and then its argument prototype would still apply.  */
23910 #ifdef __cplusplus
23911 extern "C"
23912 #endif
23913 char sqlite3_threadsafe ();
23914 int
23915 main ()
23916 {
23917 return sqlite3_threadsafe ();
23918   ;
23919   return 0;
23920 }
23921 _ACEOF
23922 if ac_fn_c_try_link "$LINENO"; then :
23923   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23924 else
23925   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23926 fi
23927 rm -f core conftest.err conftest.$ac_objext \
23928     conftest$ac_exeext conftest.$ac_ext
23929 LIBS=$ac_check_lib_save_LIBS
23930 fi
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23932 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23933 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23934
23935 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23936
23937 fi
23938
23939    fi
23940
23941    if test $pkg = 0; then
23942       # Check whether --enable-batch-insert was given.
23943 if test "${enable_batch_insert+set}" = set; then :
23944   enableval=$enable_batch_insert;
23945              if test x$enableval = xno; then
23946                 support_batch_insert=no
23947              else
23948                 support_batch_insert=yes
23949              fi
23950
23951
23952 fi
23953
23954    fi
23955 else
23956       uncomment_dbi="#"
23957 fi
23958
23959 LIBS="${saved_LIBS}"
23960
23961
23962
23963 if test $support_batch_insert = yes ; then
23964
23965 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23966
23967 fi
23968
23969 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23970
23971
23972 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23973    if test -z "$CCOPTS"; then
23974       CCOPTS='-g -O2 -Wall'
23975    fi
23976    CFLAGS="$CCOPTS"
23977 fi
23978
23979
23980
23981 largefile_support="no"
23982
23983    # Check whether --enable-largefile was given.
23984 if test "${enable_largefile+set}" = set; then :
23985   enableval=$enable_largefile;
23986 fi
23987
23988    if test "$enable_largefile" != no; then
23989      if test -n "$ac_tool_prefix"; then
23990   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23991 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23993 $as_echo_n "checking for $ac_word... " >&6; }
23994 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23995   $as_echo_n "(cached) " >&6
23996 else
23997   if test -n "$GETCONF"; then
23998   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23999 else
24000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24001 for as_dir in $PATH
24002 do
24003   IFS=$as_save_IFS
24004   test -z "$as_dir" && as_dir=.
24005     for ac_exec_ext in '' $ac_executable_extensions; do
24006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24007     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24009     break 2
24010   fi
24011 done
24012   done
24013 IFS=$as_save_IFS
24014
24015 fi
24016 fi
24017 GETCONF=$ac_cv_prog_GETCONF
24018 if test -n "$GETCONF"; then
24019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24020 $as_echo "$GETCONF" >&6; }
24021 else
24022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24023 $as_echo "no" >&6; }
24024 fi
24025
24026
24027 fi
24028 if test -z "$ac_cv_prog_GETCONF"; then
24029   ac_ct_GETCONF=$GETCONF
24030   # Extract the first word of "getconf", so it can be a program name with args.
24031 set dummy getconf; ac_word=$2
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24033 $as_echo_n "checking for $ac_word... " >&6; }
24034 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24035   $as_echo_n "(cached) " >&6
24036 else
24037   if test -n "$ac_ct_GETCONF"; then
24038   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24039 else
24040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24041 for as_dir in $PATH
24042 do
24043   IFS=$as_save_IFS
24044   test -z "$as_dir" && as_dir=.
24045     for ac_exec_ext in '' $ac_executable_extensions; do
24046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24047     ac_cv_prog_ac_ct_GETCONF="getconf"
24048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24049     break 2
24050   fi
24051 done
24052   done
24053 IFS=$as_save_IFS
24054
24055 fi
24056 fi
24057 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24058 if test -n "$ac_ct_GETCONF"; then
24059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24060 $as_echo "$ac_ct_GETCONF" >&6; }
24061 else
24062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24063 $as_echo "no" >&6; }
24064 fi
24065
24066   if test "x$ac_ct_GETCONF" = x; then
24067     GETCONF=""
24068   else
24069     case $cross_compiling:$ac_tool_warned in
24070 yes:)
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24073 ac_tool_warned=yes ;;
24074 esac
24075     GETCONF=$ac_ct_GETCONF
24076   fi
24077 else
24078   GETCONF="$ac_cv_prog_GETCONF"
24079 fi
24080
24081      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24082 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24083 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24084   $as_echo_n "(cached) " >&6
24085 else
24086   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24087         ac_cv_sys_largefile_CFLAGS=no
24088         case "$host_os" in
24089            # IRIX 6.2 and later require cc -n32.
24090            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24091              if test "$GCC" != yes; then
24092                ac_cv_sys_largefile_CFLAGS=-n32
24093              fi
24094              ac_save_CC="$CC"
24095              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24096              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24097 /* end confdefs.h.  */
24098
24099 int
24100 main ()
24101 {
24102
24103   ;
24104   return 0;
24105 }
24106 _ACEOF
24107 if ac_fn_c_try_link "$LINENO"; then :
24108
24109 else
24110   ac_cv_sys_largefile_CFLAGS=no
24111 fi
24112 rm -f core conftest.err conftest.$ac_objext \
24113     conftest$ac_exeext conftest.$ac_ext
24114              CC="$ac_save_CC"
24115            esac
24116       }
24117 fi
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24119 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24120      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24121 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24122 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24123   $as_echo_n "(cached) " >&6
24124 else
24125   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24126         ac_cv_sys_largefile_LDFLAGS=no
24127
24128       }
24129 fi
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24131 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24132      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24133 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24134 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24135   $as_echo_n "(cached) " >&6
24136 else
24137   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24138         ac_cv_sys_largefile_LIBS=no
24139
24140       }
24141 fi
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24143 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24144
24145      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24146        case "$ac_flag" in
24147        no) ;;
24148        -D_FILE_OFFSET_BITS=*) ;;
24149        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24150        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24151        -D?* | -I?*)
24152          case "$ac_flag" in
24153    no) ;;
24154    ?*)
24155      case "$CPPFLAGS" in
24156      '') CPPFLAGS="$ac_flag" ;;
24157      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24158      esac ;;
24159    esac ;;
24160        *)
24161          case "$ac_flag" in
24162    no) ;;
24163    ?*)
24164      case "$CFLAGS" in
24165      '') CFLAGS="$ac_flag" ;;
24166      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24167      esac ;;
24168    esac ;;
24169        esac
24170      done
24171      case "$ac_cv_sys_largefile_LDFLAGS" in
24172    no) ;;
24173    ?*)
24174      case "$LDFLAGS" in
24175      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24176      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24177      esac ;;
24178    esac
24179      case "$ac_cv_sys_largefile_LIBS" in
24180    no) ;;
24181    ?*)
24182      case "$LIBS" in
24183      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24184      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24185      esac ;;
24186    esac
24187      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24188 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24189 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24190   $as_echo_n "(cached) " >&6
24191 else
24192   ac_cv_sys_file_offset_bits=no
24193       ac_cv_sys_file_offset_bits=64
24194       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24195         case "$ac_flag" in
24196         -D_FILE_OFFSET_BITS)
24197           ac_cv_sys_file_offset_bits=1 ;;
24198         -D_FILE_OFFSET_BITS=*)
24199           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24200         esac
24201       done
24202
24203 fi
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24205 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24206    if test "$ac_cv_sys_file_offset_bits" != no; then
24207
24208 cat >>confdefs.h <<_ACEOF
24209 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24210 _ACEOF
24211
24212    fi
24213      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24214 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24215 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24216   $as_echo_n "(cached) " >&6
24217 else
24218   ac_cv_sys_largefile_source=no
24219       ac_cv_sys_largefile_source=1
24220       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24221         case "$ac_flag" in
24222         -D_LARGEFILE_SOURCE)
24223           ac_cv_sys_largefile_source=1 ;;
24224         -D_LARGEFILE_SOURCE=*)
24225           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24226         esac
24227       done
24228
24229 fi
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24231 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24232    if test "$ac_cv_sys_largefile_source" != no; then
24233
24234 cat >>confdefs.h <<_ACEOF
24235 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24236 _ACEOF
24237
24238    fi
24239      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24240 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24241 if test "${ac_cv_sys_large_files+set}" = set; then :
24242   $as_echo_n "(cached) " >&6
24243 else
24244   ac_cv_sys_large_files=no
24245       ac_cv_sys_large_files=1
24246       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24247         case "$ac_flag" in
24248         -D_LARGE_FILES)
24249           ac_cv_sys_large_files=1 ;;
24250         -D_LARGE_FILES=*)
24251           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24252         esac
24253       done
24254
24255 fi
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24257 $as_echo "$ac_cv_sys_large_files" >&6; }
24258    if test "$ac_cv_sys_large_files" != no; then
24259
24260 cat >>confdefs.h <<_ACEOF
24261 #define _LARGE_FILES $ac_cv_sys_large_files
24262 _ACEOF
24263
24264    fi
24265    fi
24266
24267
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24269 $as_echo_n "checking for X... " >&6; }
24270
24271
24272 # Check whether --with-x was given.
24273 if test "${with_x+set}" = set; then :
24274   withval=$with_x;
24275 fi
24276
24277 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24278 if test "x$with_x" = xno; then
24279   # The user explicitly disabled X.
24280   have_x=disabled
24281 else
24282   case $x_includes,$x_libraries in #(
24283     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24284     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24285   $as_echo_n "(cached) " >&6
24286 else
24287   # One or both of the vars are not set, and there is no cached value.
24288 ac_x_includes=no ac_x_libraries=no
24289 rm -f -r conftest.dir
24290 if mkdir conftest.dir; then
24291   cd conftest.dir
24292   cat >Imakefile <<'_ACEOF'
24293 incroot:
24294         @echo incroot='${INCROOT}'
24295 usrlibdir:
24296         @echo usrlibdir='${USRLIBDIR}'
24297 libdir:
24298         @echo libdir='${LIBDIR}'
24299 _ACEOF
24300   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24301     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24302     for ac_var in incroot usrlibdir libdir; do
24303       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24304     done
24305     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24306     for ac_extension in a so sl dylib la dll; do
24307       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24308          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24309         ac_im_usrlibdir=$ac_im_libdir; break
24310       fi
24311     done
24312     # Screen out bogus values from the imake configuration.  They are
24313     # bogus both because they are the default anyway, and because
24314     # using them would break gcc on systems where it needs fixed includes.
24315     case $ac_im_incroot in
24316         /usr/include) ac_x_includes= ;;
24317         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24318     esac
24319     case $ac_im_usrlibdir in
24320         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24321         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24322     esac
24323   fi
24324   cd ..
24325   rm -f -r conftest.dir
24326 fi
24327
24328 # Standard set of common directories for X headers.
24329 # Check X11 before X11Rn because it is often a symlink to the current release.
24330 ac_x_header_dirs='
24331 /usr/X11/include
24332 /usr/X11R7/include
24333 /usr/X11R6/include
24334 /usr/X11R5/include
24335 /usr/X11R4/include
24336
24337 /usr/include/X11
24338 /usr/include/X11R7
24339 /usr/include/X11R6
24340 /usr/include/X11R5
24341 /usr/include/X11R4
24342
24343 /usr/local/X11/include
24344 /usr/local/X11R7/include
24345 /usr/local/X11R6/include
24346 /usr/local/X11R5/include
24347 /usr/local/X11R4/include
24348
24349 /usr/local/include/X11
24350 /usr/local/include/X11R7
24351 /usr/local/include/X11R6
24352 /usr/local/include/X11R5
24353 /usr/local/include/X11R4
24354
24355 /usr/X386/include
24356 /usr/x386/include
24357 /usr/XFree86/include/X11
24358
24359 /usr/include
24360 /usr/local/include
24361 /usr/unsupported/include
24362 /usr/athena/include
24363 /usr/local/x11r5/include
24364 /usr/lpp/Xamples/include
24365
24366 /usr/openwin/include
24367 /usr/openwin/share/include'
24368
24369 if test "$ac_x_includes" = no; then
24370   # Guess where to find include files, by looking for Xlib.h.
24371   # First, try using that file with no special directory specified.
24372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24373 /* end confdefs.h.  */
24374 #include <X11/Xlib.h>
24375 _ACEOF
24376 if ac_fn_c_try_cpp "$LINENO"; then :
24377   # We can compile using X headers with no special include directory.
24378 ac_x_includes=
24379 else
24380   for ac_dir in $ac_x_header_dirs; do
24381   if test -r "$ac_dir/X11/Xlib.h"; then
24382     ac_x_includes=$ac_dir
24383     break
24384   fi
24385 done
24386 fi
24387 rm -f conftest.err conftest.$ac_ext
24388 fi # $ac_x_includes = no
24389
24390 if test "$ac_x_libraries" = no; then
24391   # Check for the libraries.
24392   # See if we find them without any special options.
24393   # Don't add to $LIBS permanently.
24394   ac_save_LIBS=$LIBS
24395   LIBS="-lX11 $LIBS"
24396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24397 /* end confdefs.h.  */
24398 #include <X11/Xlib.h>
24399 int
24400 main ()
24401 {
24402 XrmInitialize ()
24403   ;
24404   return 0;
24405 }
24406 _ACEOF
24407 if ac_fn_c_try_link "$LINENO"; then :
24408   LIBS=$ac_save_LIBS
24409 # We can link X programs with no special library path.
24410 ac_x_libraries=
24411 else
24412   LIBS=$ac_save_LIBS
24413 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24414 do
24415   # Don't even attempt the hair of trying to link an X program!
24416   for ac_extension in a so sl dylib la dll; do
24417     if test -r "$ac_dir/libX11.$ac_extension"; then
24418       ac_x_libraries=$ac_dir
24419       break 2
24420     fi
24421   done
24422 done
24423 fi
24424 rm -f core conftest.err conftest.$ac_objext \
24425     conftest$ac_exeext conftest.$ac_ext
24426 fi # $ac_x_libraries = no
24427
24428 case $ac_x_includes,$ac_x_libraries in #(
24429   no,* | *,no | *\'*)
24430     # Didn't find X, or a directory has "'" in its name.
24431     ac_cv_have_x="have_x=no";; #(
24432   *)
24433     # Record where we found X for the cache.
24434     ac_cv_have_x="have_x=yes\
24435         ac_x_includes='$ac_x_includes'\
24436         ac_x_libraries='$ac_x_libraries'"
24437 esac
24438 fi
24439 ;; #(
24440     *) have_x=yes;;
24441   esac
24442   eval "$ac_cv_have_x"
24443 fi # $with_x != no
24444
24445 if test "$have_x" != yes; then
24446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24447 $as_echo "$have_x" >&6; }
24448   no_x=yes
24449 else
24450   # If each of the values was on the command line, it overrides each guess.
24451   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24452   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24453   # Update the cache value to reflect the command line values.
24454   ac_cv_have_x="have_x=yes\
24455         ac_x_includes='$x_includes'\
24456         ac_x_libraries='$x_libraries'"
24457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24458 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24459 fi
24460
24461 if test "$no_x" = yes; then
24462   # Not all programs may use this symbol, but it does not hurt to define it.
24463
24464 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24465
24466   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24467 else
24468   if test -n "$x_includes"; then
24469     X_CFLAGS="$X_CFLAGS -I$x_includes"
24470   fi
24471
24472   # It would also be nice to do this for all -L options, not just this one.
24473   if test -n "$x_libraries"; then
24474     X_LIBS="$X_LIBS -L$x_libraries"
24475     # For Solaris; some versions of Sun CC require a space after -R and
24476     # others require no space.  Words are not sufficient . . . .
24477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24478 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24479     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24480     ac_xsave_c_werror_flag=$ac_c_werror_flag
24481     ac_c_werror_flag=yes
24482     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24483 /* end confdefs.h.  */
24484
24485 int
24486 main ()
24487 {
24488
24489   ;
24490   return 0;
24491 }
24492 _ACEOF
24493 if ac_fn_c_try_link "$LINENO"; then :
24494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24495 $as_echo "no" >&6; }
24496        X_LIBS="$X_LIBS -R$x_libraries"
24497 else
24498   LIBS="$ac_xsave_LIBS -R $x_libraries"
24499        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24500 /* end confdefs.h.  */
24501
24502 int
24503 main ()
24504 {
24505
24506   ;
24507   return 0;
24508 }
24509 _ACEOF
24510 if ac_fn_c_try_link "$LINENO"; then :
24511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24512 $as_echo "yes" >&6; }
24513           X_LIBS="$X_LIBS -R $x_libraries"
24514 else
24515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24516 $as_echo "neither works" >&6; }
24517 fi
24518 rm -f core conftest.err conftest.$ac_objext \
24519     conftest$ac_exeext conftest.$ac_ext
24520 fi
24521 rm -f core conftest.err conftest.$ac_objext \
24522     conftest$ac_exeext conftest.$ac_ext
24523     ac_c_werror_flag=$ac_xsave_c_werror_flag
24524     LIBS=$ac_xsave_LIBS
24525   fi
24526
24527   # Check for system-dependent libraries X programs must link with.
24528   # Do this before checking for the system-independent R6 libraries
24529   # (-lICE), since we may need -lsocket or whatever for X linking.
24530
24531   if test "$ISC" = yes; then
24532     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24533   else
24534     # Martyn Johnson says this is needed for Ultrix, if the X
24535     # libraries were built with DECnet support.  And Karl Berry says
24536     # the Alpha needs dnet_stub (dnet does not exist).
24537     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24539 /* end confdefs.h.  */
24540
24541 /* Override any GCC internal prototype to avoid an error.
24542    Use char because int might match the return type of a GCC
24543    builtin and then its argument prototype would still apply.  */
24544 #ifdef __cplusplus
24545 extern "C"
24546 #endif
24547 char XOpenDisplay ();
24548 int
24549 main ()
24550 {
24551 return XOpenDisplay ();
24552   ;
24553   return 0;
24554 }
24555 _ACEOF
24556 if ac_fn_c_try_link "$LINENO"; then :
24557
24558 else
24559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24560 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24561 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24562   $as_echo_n "(cached) " >&6
24563 else
24564   ac_check_lib_save_LIBS=$LIBS
24565 LIBS="-ldnet  $LIBS"
24566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24567 /* end confdefs.h.  */
24568
24569 /* Override any GCC internal prototype to avoid an error.
24570    Use char because int might match the return type of a GCC
24571    builtin and then its argument prototype would still apply.  */
24572 #ifdef __cplusplus
24573 extern "C"
24574 #endif
24575 char dnet_ntoa ();
24576 int
24577 main ()
24578 {
24579 return dnet_ntoa ();
24580   ;
24581   return 0;
24582 }
24583 _ACEOF
24584 if ac_fn_c_try_link "$LINENO"; then :
24585   ac_cv_lib_dnet_dnet_ntoa=yes
24586 else
24587   ac_cv_lib_dnet_dnet_ntoa=no
24588 fi
24589 rm -f core conftest.err conftest.$ac_objext \
24590     conftest$ac_exeext conftest.$ac_ext
24591 LIBS=$ac_check_lib_save_LIBS
24592 fi
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24594 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24595 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24596   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24597 fi
24598
24599     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24600       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24601 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24602 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24603   $as_echo_n "(cached) " >&6
24604 else
24605   ac_check_lib_save_LIBS=$LIBS
24606 LIBS="-ldnet_stub  $LIBS"
24607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24608 /* end confdefs.h.  */
24609
24610 /* Override any GCC internal prototype to avoid an error.
24611    Use char because int might match the return type of a GCC
24612    builtin and then its argument prototype would still apply.  */
24613 #ifdef __cplusplus
24614 extern "C"
24615 #endif
24616 char dnet_ntoa ();
24617 int
24618 main ()
24619 {
24620 return dnet_ntoa ();
24621   ;
24622   return 0;
24623 }
24624 _ACEOF
24625 if ac_fn_c_try_link "$LINENO"; then :
24626   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24627 else
24628   ac_cv_lib_dnet_stub_dnet_ntoa=no
24629 fi
24630 rm -f core conftest.err conftest.$ac_objext \
24631     conftest$ac_exeext conftest.$ac_ext
24632 LIBS=$ac_check_lib_save_LIBS
24633 fi
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24635 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24636 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24637   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24638 fi
24639
24640     fi
24641 fi
24642 rm -f core conftest.err conftest.$ac_objext \
24643     conftest$ac_exeext conftest.$ac_ext
24644     LIBS="$ac_xsave_LIBS"
24645
24646     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24647     # to get the SysV transport functions.
24648     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24649     # needs -lnsl.
24650     # The nsl library prevents programs from opening the X display
24651     # on Irix 5.2, according to T.E. Dickey.
24652     # The functions gethostbyname, getservbyname, and inet_addr are
24653     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24654     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24655 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24656
24657 fi
24658
24659     if test $ac_cv_func_gethostbyname = no; then
24660       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24661 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24662 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24663   $as_echo_n "(cached) " >&6
24664 else
24665   ac_check_lib_save_LIBS=$LIBS
24666 LIBS="-lnsl  $LIBS"
24667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24668 /* end confdefs.h.  */
24669
24670 /* Override any GCC internal prototype to avoid an error.
24671    Use char because int might match the return type of a GCC
24672    builtin and then its argument prototype would still apply.  */
24673 #ifdef __cplusplus
24674 extern "C"
24675 #endif
24676 char gethostbyname ();
24677 int
24678 main ()
24679 {
24680 return gethostbyname ();
24681   ;
24682   return 0;
24683 }
24684 _ACEOF
24685 if ac_fn_c_try_link "$LINENO"; then :
24686   ac_cv_lib_nsl_gethostbyname=yes
24687 else
24688   ac_cv_lib_nsl_gethostbyname=no
24689 fi
24690 rm -f core conftest.err conftest.$ac_objext \
24691     conftest$ac_exeext conftest.$ac_ext
24692 LIBS=$ac_check_lib_save_LIBS
24693 fi
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24695 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24696 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24697   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24698 fi
24699
24700       if test $ac_cv_lib_nsl_gethostbyname = no; then
24701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24702 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24703 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24704   $as_echo_n "(cached) " >&6
24705 else
24706   ac_check_lib_save_LIBS=$LIBS
24707 LIBS="-lbsd  $LIBS"
24708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24709 /* end confdefs.h.  */
24710
24711 /* Override any GCC internal prototype to avoid an error.
24712    Use char because int might match the return type of a GCC
24713    builtin and then its argument prototype would still apply.  */
24714 #ifdef __cplusplus
24715 extern "C"
24716 #endif
24717 char gethostbyname ();
24718 int
24719 main ()
24720 {
24721 return gethostbyname ();
24722   ;
24723   return 0;
24724 }
24725 _ACEOF
24726 if ac_fn_c_try_link "$LINENO"; then :
24727   ac_cv_lib_bsd_gethostbyname=yes
24728 else
24729   ac_cv_lib_bsd_gethostbyname=no
24730 fi
24731 rm -f core conftest.err conftest.$ac_objext \
24732     conftest$ac_exeext conftest.$ac_ext
24733 LIBS=$ac_check_lib_save_LIBS
24734 fi
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24736 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24737 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24738   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24739 fi
24740
24741       fi
24742     fi
24743
24744     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24745     # socket/setsockopt and other routines are undefined under SCO ODT
24746     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24747     # on later versions), says Simon Leinen: it contains gethostby*
24748     # variants that don't use the name server (or something).  -lsocket
24749     # must be given before -lnsl if both are needed.  We assume that
24750     # if connect needs -lnsl, so does gethostbyname.
24751     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24752 if test "x$ac_cv_func_connect" = x""yes; then :
24753
24754 fi
24755
24756     if test $ac_cv_func_connect = no; then
24757       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24758 $as_echo_n "checking for connect in -lsocket... " >&6; }
24759 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24760   $as_echo_n "(cached) " >&6
24761 else
24762   ac_check_lib_save_LIBS=$LIBS
24763 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24765 /* end confdefs.h.  */
24766
24767 /* Override any GCC internal prototype to avoid an error.
24768    Use char because int might match the return type of a GCC
24769    builtin and then its argument prototype would still apply.  */
24770 #ifdef __cplusplus
24771 extern "C"
24772 #endif
24773 char connect ();
24774 int
24775 main ()
24776 {
24777 return connect ();
24778   ;
24779   return 0;
24780 }
24781 _ACEOF
24782 if ac_fn_c_try_link "$LINENO"; then :
24783   ac_cv_lib_socket_connect=yes
24784 else
24785   ac_cv_lib_socket_connect=no
24786 fi
24787 rm -f core conftest.err conftest.$ac_objext \
24788     conftest$ac_exeext conftest.$ac_ext
24789 LIBS=$ac_check_lib_save_LIBS
24790 fi
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24792 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24793 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24794   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24795 fi
24796
24797     fi
24798
24799     # Guillermo Gomez says -lposix is necessary on A/UX.
24800     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24801 if test "x$ac_cv_func_remove" = x""yes; then :
24802
24803 fi
24804
24805     if test $ac_cv_func_remove = no; then
24806       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24807 $as_echo_n "checking for remove in -lposix... " >&6; }
24808 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24809   $as_echo_n "(cached) " >&6
24810 else
24811   ac_check_lib_save_LIBS=$LIBS
24812 LIBS="-lposix  $LIBS"
24813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24814 /* end confdefs.h.  */
24815
24816 /* Override any GCC internal prototype to avoid an error.
24817    Use char because int might match the return type of a GCC
24818    builtin and then its argument prototype would still apply.  */
24819 #ifdef __cplusplus
24820 extern "C"
24821 #endif
24822 char remove ();
24823 int
24824 main ()
24825 {
24826 return remove ();
24827   ;
24828   return 0;
24829 }
24830 _ACEOF
24831 if ac_fn_c_try_link "$LINENO"; then :
24832   ac_cv_lib_posix_remove=yes
24833 else
24834   ac_cv_lib_posix_remove=no
24835 fi
24836 rm -f core conftest.err conftest.$ac_objext \
24837     conftest$ac_exeext conftest.$ac_ext
24838 LIBS=$ac_check_lib_save_LIBS
24839 fi
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24841 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24842 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24843   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24844 fi
24845
24846     fi
24847
24848     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24849     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24850 if test "x$ac_cv_func_shmat" = x""yes; then :
24851
24852 fi
24853
24854     if test $ac_cv_func_shmat = no; then
24855       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24856 $as_echo_n "checking for shmat in -lipc... " >&6; }
24857 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24858   $as_echo_n "(cached) " >&6
24859 else
24860   ac_check_lib_save_LIBS=$LIBS
24861 LIBS="-lipc  $LIBS"
24862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h.  */
24864
24865 /* Override any GCC internal prototype to avoid an error.
24866    Use char because int might match the return type of a GCC
24867    builtin and then its argument prototype would still apply.  */
24868 #ifdef __cplusplus
24869 extern "C"
24870 #endif
24871 char shmat ();
24872 int
24873 main ()
24874 {
24875 return shmat ();
24876   ;
24877   return 0;
24878 }
24879 _ACEOF
24880 if ac_fn_c_try_link "$LINENO"; then :
24881   ac_cv_lib_ipc_shmat=yes
24882 else
24883   ac_cv_lib_ipc_shmat=no
24884 fi
24885 rm -f core conftest.err conftest.$ac_objext \
24886     conftest$ac_exeext conftest.$ac_ext
24887 LIBS=$ac_check_lib_save_LIBS
24888 fi
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24890 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24891 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24892   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24893 fi
24894
24895     fi
24896   fi
24897
24898   # Check for libraries that X11R6 Xt/Xaw programs need.
24899   ac_save_LDFLAGS=$LDFLAGS
24900   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24901   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24902   # check for ICE first), but we must link in the order -lSM -lICE or
24903   # we get undefined symbols.  So assume we have SM if we have ICE.
24904   # These have to be linked with before -lX11, unlike the other
24905   # libraries we check for below, so use a different variable.
24906   # John Interrante, Karl Berry
24907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24908 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24909 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24910   $as_echo_n "(cached) " >&6
24911 else
24912   ac_check_lib_save_LIBS=$LIBS
24913 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24915 /* end confdefs.h.  */
24916
24917 /* Override any GCC internal prototype to avoid an error.
24918    Use char because int might match the return type of a GCC
24919    builtin and then its argument prototype would still apply.  */
24920 #ifdef __cplusplus
24921 extern "C"
24922 #endif
24923 char IceConnectionNumber ();
24924 int
24925 main ()
24926 {
24927 return IceConnectionNumber ();
24928   ;
24929   return 0;
24930 }
24931 _ACEOF
24932 if ac_fn_c_try_link "$LINENO"; then :
24933   ac_cv_lib_ICE_IceConnectionNumber=yes
24934 else
24935   ac_cv_lib_ICE_IceConnectionNumber=no
24936 fi
24937 rm -f core conftest.err conftest.$ac_objext \
24938     conftest$ac_exeext conftest.$ac_ext
24939 LIBS=$ac_check_lib_save_LIBS
24940 fi
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24942 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24943 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24944   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24945 fi
24946
24947   LDFLAGS=$ac_save_LDFLAGS
24948
24949 fi
24950
24951
24952 for ac_header in \
24953    assert.h \
24954    fcntl.h \
24955    grp.h \
24956    pwd.h \
24957    libc.h \
24958    limits.h \
24959    stdarg.h \
24960    stdlib.h \
24961    stdint.h \
24962    string.h \
24963    strings.h \
24964    termios.h \
24965    termcap.h \
24966    term.h \
24967    unistd.h \
24968    sys/bitypes.h \
24969    sys/byteorder.h \
24970    sys/ioctl.h \
24971    sys/select.h \
24972    sys/socket.h \
24973    sys/sockio.h \
24974    sys/stat.h \
24975    sys/time.h \
24976    sys/types.h \
24977    arpa/nameser.h \
24978    mtio.h \
24979    sys/mtio.h \
24980    sys/tape.h \
24981    regex.h \
24982
24983 do :
24984   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24985 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24986 eval as_val=\$$as_ac_Header
24987    if test "x$as_val" = x""yes; then :
24988   cat >>confdefs.h <<_ACEOF
24989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24990 _ACEOF
24991
24992 fi
24993
24994 done
24995
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24997 $as_echo_n "checking for ANSI C header files... " >&6; }
24998 if test "${ac_cv_header_stdc+set}" = set; then :
24999   $as_echo_n "(cached) " >&6
25000 else
25001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25002 /* end confdefs.h.  */
25003 #include <stdlib.h>
25004 #include <stdarg.h>
25005 #include <string.h>
25006 #include <float.h>
25007
25008 int
25009 main ()
25010 {
25011
25012   ;
25013   return 0;
25014 }
25015 _ACEOF
25016 if ac_fn_c_try_compile "$LINENO"; then :
25017   ac_cv_header_stdc=yes
25018 else
25019   ac_cv_header_stdc=no
25020 fi
25021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25022
25023 if test $ac_cv_header_stdc = yes; then
25024   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25026 /* end confdefs.h.  */
25027 #include <string.h>
25028
25029 _ACEOF
25030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25031   $EGREP "memchr" >/dev/null 2>&1; then :
25032
25033 else
25034   ac_cv_header_stdc=no
25035 fi
25036 rm -f conftest*
25037
25038 fi
25039
25040 if test $ac_cv_header_stdc = yes; then
25041   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25043 /* end confdefs.h.  */
25044 #include <stdlib.h>
25045
25046 _ACEOF
25047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25048   $EGREP "free" >/dev/null 2>&1; then :
25049
25050 else
25051   ac_cv_header_stdc=no
25052 fi
25053 rm -f conftest*
25054
25055 fi
25056
25057 if test $ac_cv_header_stdc = yes; then
25058   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25059   if test "$cross_compiling" = yes; then :
25060   :
25061 else
25062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25063 /* end confdefs.h.  */
25064 #include <ctype.h>
25065 #include <stdlib.h>
25066 #if ((' ' & 0x0FF) == 0x020)
25067 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25068 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25069 #else
25070 # define ISLOWER(c) \
25071                    (('a' <= (c) && (c) <= 'i') \
25072                      || ('j' <= (c) && (c) <= 'r') \
25073                      || ('s' <= (c) && (c) <= 'z'))
25074 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25075 #endif
25076
25077 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25078 int
25079 main ()
25080 {
25081   int i;
25082   for (i = 0; i < 256; i++)
25083     if (XOR (islower (i), ISLOWER (i))
25084         || toupper (i) != TOUPPER (i))
25085       return 2;
25086   return 0;
25087 }
25088 _ACEOF
25089 if ac_fn_c_try_run "$LINENO"; then :
25090
25091 else
25092   ac_cv_header_stdc=no
25093 fi
25094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25095   conftest.$ac_objext conftest.beam conftest.$ac_ext
25096 fi
25097
25098 fi
25099 fi
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25101 $as_echo "$ac_cv_header_stdc" >&6; }
25102 if test $ac_cv_header_stdc = yes; then
25103
25104 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25105
25106 fi
25107
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25109 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25110 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25111   $as_echo_n "(cached) " >&6
25112 else
25113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25114 /* end confdefs.h.  */
25115 #include <sys/types.h>
25116 int
25117 main ()
25118 {
25119 return makedev(0, 0);
25120   ;
25121   return 0;
25122 }
25123 _ACEOF
25124 if ac_fn_c_try_link "$LINENO"; then :
25125   ac_cv_header_sys_types_h_makedev=yes
25126 else
25127   ac_cv_header_sys_types_h_makedev=no
25128 fi
25129 rm -f core conftest.err conftest.$ac_objext \
25130     conftest$ac_exeext conftest.$ac_ext
25131
25132 fi
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25134 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25135
25136 if test $ac_cv_header_sys_types_h_makedev = no; then
25137 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25138 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25139
25140 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25141
25142 fi
25143
25144
25145
25146   if test $ac_cv_header_sys_mkdev_h = no; then
25147     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25148 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25149
25150 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25151
25152 fi
25153
25154
25155   fi
25156 fi
25157
25158 ac_header_dirent=no
25159 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25160   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25162 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25164   $as_echo_n "(cached) " >&6
25165 else
25166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25167 /* end confdefs.h.  */
25168 #include <sys/types.h>
25169 #include <$ac_hdr>
25170
25171 int
25172 main ()
25173 {
25174 if ((DIR *) 0)
25175 return 0;
25176   ;
25177   return 0;
25178 }
25179 _ACEOF
25180 if ac_fn_c_try_compile "$LINENO"; then :
25181   eval "$as_ac_Header=yes"
25182 else
25183   eval "$as_ac_Header=no"
25184 fi
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186 fi
25187 eval ac_res=\$$as_ac_Header
25188                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25189 $as_echo "$ac_res" >&6; }
25190 eval as_val=\$$as_ac_Header
25191    if test "x$as_val" = x""yes; then :
25192   cat >>confdefs.h <<_ACEOF
25193 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25194 _ACEOF
25195
25196 ac_header_dirent=$ac_hdr; break
25197 fi
25198
25199 done
25200 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25201 if test $ac_header_dirent = dirent.h; then
25202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25203 $as_echo_n "checking for library containing opendir... " >&6; }
25204 if test "${ac_cv_search_opendir+set}" = set; then :
25205   $as_echo_n "(cached) " >&6
25206 else
25207   ac_func_search_save_LIBS=$LIBS
25208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25209 /* end confdefs.h.  */
25210
25211 /* Override any GCC internal prototype to avoid an error.
25212    Use char because int might match the return type of a GCC
25213    builtin and then its argument prototype would still apply.  */
25214 #ifdef __cplusplus
25215 extern "C"
25216 #endif
25217 char opendir ();
25218 int
25219 main ()
25220 {
25221 return opendir ();
25222   ;
25223   return 0;
25224 }
25225 _ACEOF
25226 for ac_lib in '' dir; do
25227   if test -z "$ac_lib"; then
25228     ac_res="none required"
25229   else
25230     ac_res=-l$ac_lib
25231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25232   fi
25233   if ac_fn_c_try_link "$LINENO"; then :
25234   ac_cv_search_opendir=$ac_res
25235 fi
25236 rm -f core conftest.err conftest.$ac_objext \
25237     conftest$ac_exeext
25238   if test "${ac_cv_search_opendir+set}" = set; then :
25239   break
25240 fi
25241 done
25242 if test "${ac_cv_search_opendir+set}" = set; then :
25243
25244 else
25245   ac_cv_search_opendir=no
25246 fi
25247 rm conftest.$ac_ext
25248 LIBS=$ac_func_search_save_LIBS
25249 fi
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25251 $as_echo "$ac_cv_search_opendir" >&6; }
25252 ac_res=$ac_cv_search_opendir
25253 if test "$ac_res" != no; then :
25254   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25255
25256 fi
25257
25258 else
25259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25260 $as_echo_n "checking for library containing opendir... " >&6; }
25261 if test "${ac_cv_search_opendir+set}" = set; then :
25262   $as_echo_n "(cached) " >&6
25263 else
25264   ac_func_search_save_LIBS=$LIBS
25265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25266 /* end confdefs.h.  */
25267
25268 /* Override any GCC internal prototype to avoid an error.
25269    Use char because int might match the return type of a GCC
25270    builtin and then its argument prototype would still apply.  */
25271 #ifdef __cplusplus
25272 extern "C"
25273 #endif
25274 char opendir ();
25275 int
25276 main ()
25277 {
25278 return opendir ();
25279   ;
25280   return 0;
25281 }
25282 _ACEOF
25283 for ac_lib in '' x; do
25284   if test -z "$ac_lib"; then
25285     ac_res="none required"
25286   else
25287     ac_res=-l$ac_lib
25288     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25289   fi
25290   if ac_fn_c_try_link "$LINENO"; then :
25291   ac_cv_search_opendir=$ac_res
25292 fi
25293 rm -f core conftest.err conftest.$ac_objext \
25294     conftest$ac_exeext
25295   if test "${ac_cv_search_opendir+set}" = set; then :
25296   break
25297 fi
25298 done
25299 if test "${ac_cv_search_opendir+set}" = set; then :
25300
25301 else
25302   ac_cv_search_opendir=no
25303 fi
25304 rm conftest.$ac_ext
25305 LIBS=$ac_func_search_save_LIBS
25306 fi
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25308 $as_echo "$ac_cv_search_opendir" >&6; }
25309 ac_res=$ac_cv_search_opendir
25310 if test "$ac_res" != no; then :
25311   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25312
25313 fi
25314
25315 fi
25316
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25318 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25319 if test "${ac_cv_header_stat_broken+set}" = set; then :
25320   $as_echo_n "(cached) " >&6
25321 else
25322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25323 /* end confdefs.h.  */
25324 #include <sys/types.h>
25325 #include <sys/stat.h>
25326
25327 #if defined S_ISBLK && defined S_IFDIR
25328 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25329 #endif
25330
25331 #if defined S_ISBLK && defined S_IFCHR
25332 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25333 #endif
25334
25335 #if defined S_ISLNK && defined S_IFREG
25336 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25337 #endif
25338
25339 #if defined S_ISSOCK && defined S_IFREG
25340 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25341 #endif
25342
25343 _ACEOF
25344 if ac_fn_c_try_compile "$LINENO"; then :
25345   ac_cv_header_stat_broken=no
25346 else
25347   ac_cv_header_stat_broken=yes
25348 fi
25349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25350 fi
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25352 $as_echo "$ac_cv_header_stat_broken" >&6; }
25353 if test $ac_cv_header_stat_broken = yes; then
25354
25355 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25356
25357 fi
25358
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25360 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25361 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25362   $as_echo_n "(cached) " >&6
25363 else
25364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h.  */
25366 #include <sys/types.h>
25367 #include <sys/wait.h>
25368 #ifndef WEXITSTATUS
25369 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25370 #endif
25371 #ifndef WIFEXITED
25372 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25373 #endif
25374
25375 int
25376 main ()
25377 {
25378   int s;
25379   wait (&s);
25380   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25381   ;
25382   return 0;
25383 }
25384 _ACEOF
25385 if ac_fn_c_try_compile "$LINENO"; then :
25386   ac_cv_header_sys_wait_h=yes
25387 else
25388   ac_cv_header_sys_wait_h=no
25389 fi
25390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25391 fi
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25393 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25394 if test $ac_cv_header_sys_wait_h = yes; then
25395
25396 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25397
25398 fi
25399
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25401 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25402 if test "${ac_cv_header_time+set}" = set; then :
25403   $as_echo_n "(cached) " >&6
25404 else
25405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406 /* end confdefs.h.  */
25407 #include <sys/types.h>
25408 #include <sys/time.h>
25409 #include <time.h>
25410
25411 int
25412 main ()
25413 {
25414 if ((struct tm *) 0)
25415 return 0;
25416   ;
25417   return 0;
25418 }
25419 _ACEOF
25420 if ac_fn_c_try_compile "$LINENO"; then :
25421   ac_cv_header_time=yes
25422 else
25423   ac_cv_header_time=no
25424 fi
25425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25426 fi
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25428 $as_echo "$ac_cv_header_time" >&6; }
25429 if test $ac_cv_header_time = yes; then
25430
25431 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25432
25433 fi
25434
25435 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25436 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25437
25438 cat >>confdefs.h <<_ACEOF
25439 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25440 _ACEOF
25441
25442
25443 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25444
25445 fi
25446
25447
25448 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25449 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25450
25451 cat >>confdefs.h <<_ACEOF
25452 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25453 _ACEOF
25454
25455
25456 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25457
25458 else
25459   case " $LIBOBJS " in
25460   *" fileblocks.$ac_objext "* ) ;;
25461   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25462  ;;
25463 esac
25464
25465 fi
25466
25467
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25469 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25470 if test "${ac_cv_struct_tm+set}" = set; then :
25471   $as_echo_n "(cached) " >&6
25472 else
25473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474 /* end confdefs.h.  */
25475 #include <sys/types.h>
25476 #include <time.h>
25477
25478 int
25479 main ()
25480 {
25481 struct tm tm;
25482                                      int *p = &tm.tm_sec;
25483                                      return !p;
25484   ;
25485   return 0;
25486 }
25487 _ACEOF
25488 if ac_fn_c_try_compile "$LINENO"; then :
25489   ac_cv_struct_tm=time.h
25490 else
25491   ac_cv_struct_tm=sys/time.h
25492 fi
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25494 fi
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25496 $as_echo "$ac_cv_struct_tm" >&6; }
25497 if test $ac_cv_struct_tm = sys/time.h; then
25498
25499 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25500
25501 fi
25502
25503 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25504 #include <$ac_cv_struct_tm>
25505
25506 "
25507 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25508
25509 cat >>confdefs.h <<_ACEOF
25510 #define HAVE_STRUCT_TM_TM_ZONE 1
25511 _ACEOF
25512
25513
25514 fi
25515
25516 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25517
25518 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25519
25520 else
25521   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25522 "
25523 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25524   ac_have_decl=1
25525 else
25526   ac_have_decl=0
25527 fi
25528
25529 cat >>confdefs.h <<_ACEOF
25530 #define HAVE_DECL_TZNAME $ac_have_decl
25531 _ACEOF
25532
25533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25534 $as_echo_n "checking for tzname... " >&6; }
25535 if test "${ac_cv_var_tzname+set}" = set; then :
25536   $as_echo_n "(cached) " >&6
25537 else
25538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25539 /* end confdefs.h.  */
25540 #include <time.h>
25541 #if !HAVE_DECL_TZNAME
25542 extern char *tzname[];
25543 #endif
25544
25545 int
25546 main ()
25547 {
25548 return tzname[0][0];
25549   ;
25550   return 0;
25551 }
25552 _ACEOF
25553 if ac_fn_c_try_link "$LINENO"; then :
25554   ac_cv_var_tzname=yes
25555 else
25556   ac_cv_var_tzname=no
25557 fi
25558 rm -f core conftest.err conftest.$ac_objext \
25559     conftest$ac_exeext conftest.$ac_ext
25560 fi
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25562 $as_echo "$ac_cv_var_tzname" >&6; }
25563   if test $ac_cv_var_tzname = yes; then
25564
25565 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25566
25567   fi
25568 fi
25569
25570
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25572 $as_echo_n "checking for utime.h... " >&6; }
25573 if test "${ba_cv_header_utime_h+set}" = set; then :
25574   $as_echo_n "(cached) " >&6
25575 else
25576
25577        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25578 /* end confdefs.h.  */
25579
25580               #include <sys/types.h>
25581               #include <utime.h>
25582
25583 int
25584 main ()
25585 {
25586
25587               struct utimbuf foo
25588
25589   ;
25590   return 0;
25591 }
25592 _ACEOF
25593 if ac_fn_c_try_compile "$LINENO"; then :
25594
25595               ba_cv_header_utime_h=yes
25596
25597 else
25598
25599               ba_cv_header_utime_h=no
25600
25601
25602 fi
25603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25604
25605
25606 fi
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25608 $as_echo "$ba_cv_header_utime_h" >&6; }
25609 test $ba_cv_header_utime_h = yes &&
25610 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25611
25612
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25614 $as_echo_n "checking for socklen_t... " >&6; }
25615 if test "${ba_cv_header_socklen_t+set}" = set; then :
25616   $as_echo_n "(cached) " >&6
25617 else
25618
25619        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620 /* end confdefs.h.  */
25621
25622               #include <sys/types.h>
25623               #include <sys/socket.h>
25624
25625 int
25626 main ()
25627 {
25628
25629               socklen_t x
25630
25631   ;
25632   return 0;
25633 }
25634 _ACEOF
25635 if ac_fn_c_try_compile "$LINENO"; then :
25636
25637              ba_cv_header_socklen_t=yes
25638
25639 else
25640
25641              ba_cv_header_socklen_t=no
25642
25643
25644 fi
25645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25646
25647
25648 fi
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25650 $as_echo "$ba_cv_header_socklen_t" >&6; }
25651 test $ba_cv_header_socklen_t = yes &&
25652 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25653
25654
25655 ac_ext=cpp
25656 ac_cpp='$CXXCPP $CPPFLAGS'
25657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25660
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25662 $as_echo_n "checking for ioctl_req_t... " >&6; }
25663 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25664   $as_echo_n "(cached) " >&6
25665 else
25666
25667        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25668 /* end confdefs.h.  */
25669
25670               #include <unistd.h>
25671               #include <sys/types.h>
25672               #include <sys/ioctl.h>
25673
25674 int
25675 main ()
25676 {
25677
25678               int (*d_ioctl)(int fd, unsigned long int request, ...);
25679               d_ioctl = ::ioctl;
25680
25681   ;
25682   return 0;
25683 }
25684 _ACEOF
25685 if ac_fn_cxx_try_compile "$LINENO"; then :
25686
25687              ba_cv_header_ioctl_req_t=yes
25688
25689 else
25690
25691              ba_cv_header_ioctl_req_t=no
25692
25693
25694 fi
25695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25696
25697
25698 fi
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25700 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25701 test $ba_cv_header_ioctl_req_t = yes &&
25702 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25703
25704
25705 ac_ext=c
25706 ac_cpp='$CPP $CPPFLAGS'
25707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25710
25711
25712 ac_ext=cpp
25713 ac_cpp='$CXXCPP $CPPFLAGS'
25714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25717
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25719 $as_echo_n "checking for typeof... " >&6; }
25720 if test "${ba_cv_have_typeof+set}" = set; then :
25721   $as_echo_n "(cached) " >&6
25722 else
25723
25724        if test "$cross_compiling" = yes; then :
25725
25726               ba_cv_have_typeof=no
25727
25728
25729 else
25730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25731 /* end confdefs.h.  */
25732
25733               main(){char *a = 0; a = (typeof a)a;}
25734
25735 _ACEOF
25736 if ac_fn_cxx_try_run "$LINENO"; then :
25737
25738               ba_cv_have_typeof=yes
25739
25740 else
25741
25742               ba_cv_have_typeof=no
25743
25744 fi
25745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25746   conftest.$ac_objext conftest.beam conftest.$ac_ext
25747 fi
25748
25749
25750
25751 fi
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25753 $as_echo "$ba_cv_have_typeof" >&6; }
25754 test $ba_cv_have_typeof = yes &&
25755 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25756
25757 ac_ext=c
25758 ac_cpp='$CPP $CPPFLAGS'
25759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25762
25763
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25765 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25766 if test "${ac_cv_c_const+set}" = set; then :
25767   $as_echo_n "(cached) " >&6
25768 else
25769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25770 /* end confdefs.h.  */
25771
25772 int
25773 main ()
25774 {
25775 /* FIXME: Include the comments suggested by Paul. */
25776 #ifndef __cplusplus
25777   /* Ultrix mips cc rejects this.  */
25778   typedef int charset[2];
25779   const charset cs;
25780   /* SunOS 4.1.1 cc rejects this.  */
25781   char const *const *pcpcc;
25782   char **ppc;
25783   /* NEC SVR4.0.2 mips cc rejects this.  */
25784   struct point {int x, y;};
25785   static struct point const zero = {0,0};
25786   /* AIX XL C 1.02.0.0 rejects this.
25787      It does not let you subtract one const X* pointer from another in
25788      an arm of an if-expression whose if-part is not a constant
25789      expression */
25790   const char *g = "string";
25791   pcpcc = &g + (g ? g-g : 0);
25792   /* HPUX 7.0 cc rejects these. */
25793   ++pcpcc;
25794   ppc = (char**) pcpcc;
25795   pcpcc = (char const *const *) ppc;
25796   { /* SCO 3.2v4 cc rejects this.  */
25797     char *t;
25798     char const *s = 0 ? (char *) 0 : (char const *) 0;
25799
25800     *t++ = 0;
25801     if (s) return 0;
25802   }
25803   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25804     int x[] = {25, 17};
25805     const int *foo = &x[0];
25806     ++foo;
25807   }
25808   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25809     typedef const int *iptr;
25810     iptr p = 0;
25811     ++p;
25812   }
25813   { /* AIX XL C 1.02.0.0 rejects this saying
25814        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25815     struct s { int j; const int *ap[3]; };
25816     struct s *b; b->j = 5;
25817   }
25818   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25819     const int foo = 10;
25820     if (!foo) return 0;
25821   }
25822   return !cs[0] && !zero.x;
25823 #endif
25824
25825   ;
25826   return 0;
25827 }
25828 _ACEOF
25829 if ac_fn_c_try_compile "$LINENO"; then :
25830   ac_cv_c_const=yes
25831 else
25832   ac_cv_c_const=no
25833 fi
25834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25835 fi
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25837 $as_echo "$ac_cv_c_const" >&6; }
25838 if test $ac_cv_c_const = no; then
25839
25840 $as_echo "#define const /**/" >>confdefs.h
25841
25842 fi
25843
25844
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25846 $as_echo_n "checking how to get filesystem type... " >&6; }
25847 fstype=no
25848 # The order of these tests is important.
25849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25850 /* end confdefs.h.  */
25851
25852        #include <sys/statvfs.h>
25853        #include <sys/fstyp.h>
25854
25855 _ACEOF
25856 if ac_fn_c_try_cpp "$LINENO"; then :
25857   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25858  fstype=SVR4
25859
25860 fi
25861 rm -f conftest.err conftest.$ac_ext
25862 if test $fstype = no; then
25863    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25864 /* end confdefs.h.  */
25865
25866           #include <sys/statfs.h>
25867           #include <sys/fstyp.h>
25868
25869 _ACEOF
25870 if ac_fn_c_try_cpp "$LINENO"; then :
25871   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25872  fstype=SVR3
25873
25874 fi
25875 rm -f conftest.err conftest.$ac_ext
25876 fi
25877 if test $fstype = no; then
25878    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25879 /* end confdefs.h.  */
25880
25881           #include <sys/statfs.h>
25882           #include <sys/vmount.h>
25883
25884 _ACEOF
25885 if ac_fn_c_try_cpp "$LINENO"; then :
25886   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25887  fstype=AIX
25888
25889 fi
25890 rm -f conftest.err conftest.$ac_ext
25891 fi
25892 if test $fstype = no; then
25893    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25894 /* end confdefs.h.  */
25895
25896           #include <mntent.h>
25897
25898 _ACEOF
25899 if ac_fn_c_try_cpp "$LINENO"; then :
25900   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25901  fstype=4.3BSD
25902
25903 fi
25904 rm -f conftest.err conftest.$ac_ext
25905 fi
25906 if test $fstype = no; then
25907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25908 /* end confdefs.h.  */
25909 #include <sys/mount.h>
25910
25911 _ACEOF
25912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25913   $EGREP "f_type;" >/dev/null 2>&1; then :
25914   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25915  fstype=4.4BSD/OSF1
25916 fi
25917 rm -f conftest*
25918
25919 fi
25920 if test $fstype = no; then
25921    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25922 /* end confdefs.h.  */
25923
25924           #include <sys/mount.h>
25925           #include <sys/fs_types.h>
25926
25927 _ACEOF
25928 if ac_fn_c_try_cpp "$LINENO"; then :
25929   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25930  fstype=Ultrix
25931
25932 fi
25933 rm -f conftest.err conftest.$ac_ext
25934 fi
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25936 $as_echo "$fstype" >&6; }
25937
25938 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25939 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25940
25941 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25942
25943 fi
25944
25945
25946
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25948 $as_echo_n "checking return type of signal handlers... " >&6; }
25949 if test "${ac_cv_type_signal+set}" = set; then :
25950   $as_echo_n "(cached) " >&6
25951 else
25952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25953 /* end confdefs.h.  */
25954 #include <sys/types.h>
25955 #include <signal.h>
25956
25957 int
25958 main ()
25959 {
25960 return *(signal (0, 0)) (0) == 1;
25961   ;
25962   return 0;
25963 }
25964 _ACEOF
25965 if ac_fn_c_try_compile "$LINENO"; then :
25966   ac_cv_type_signal=int
25967 else
25968   ac_cv_type_signal=void
25969 fi
25970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25971 fi
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25973 $as_echo "$ac_cv_type_signal" >&6; }
25974
25975 cat >>confdefs.h <<_ACEOF
25976 #define RETSIGTYPE $ac_cv_type_signal
25977 _ACEOF
25978
25979
25980
25981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25982 $as_echo_n "checking for type of signal functions... " >&6; }
25983   if test "${bash_cv_signal_vintage+set}" = set; then :
25984   $as_echo_n "(cached) " >&6
25985 else
25986
25987     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25988 /* end confdefs.h.  */
25989 #include <signal.h>
25990 int
25991 main ()
25992 {
25993
25994       sigset_t ss;
25995       struct sigaction sa;
25996       sigemptyset(&ss); sigsuspend(&ss);
25997       sigaction(SIGINT, &sa, (struct sigaction *) 0);
25998       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25999
26000   ;
26001   return 0;
26002 }
26003 _ACEOF
26004 if ac_fn_c_try_link "$LINENO"; then :
26005   bash_cv_signal_vintage="posix"
26006 else
26007
26008       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26009 /* end confdefs.h.  */
26010 #include <signal.h>
26011 int
26012 main ()
26013 {
26014
26015           int mask = sigmask(SIGINT);
26016           sigsetmask(mask); sigblock(mask); sigpause(mask);
26017
26018   ;
26019   return 0;
26020 }
26021 _ACEOF
26022 if ac_fn_c_try_link "$LINENO"; then :
26023   bash_cv_signal_vintage="4.2bsd"
26024 else
26025
26026         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26027 /* end confdefs.h.  */
26028
26029           #include <signal.h>
26030           RETSIGTYPE foo() { }
26031 int
26032 main ()
26033 {
26034
26035                   int mask = sigmask(SIGINT);
26036                   sigset(SIGINT, foo); sigrelse(SIGINT);
26037                   sighold(SIGINT); sigpause(SIGINT);
26038
26039   ;
26040   return 0;
26041 }
26042 _ACEOF
26043 if ac_fn_c_try_link "$LINENO"; then :
26044   bash_cv_signal_vintage="svr3"
26045 else
26046   bash_cv_signal_vintage="v7"
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 rm -f core conftest.err conftest.$ac_objext \
26058     conftest$ac_exeext conftest.$ac_ext
26059
26060 fi
26061
26062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26063 $as_echo "$bash_cv_signal_vintage" >&6; }
26064   if test "$bash_cv_signal_vintage" = "posix"; then
26065     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26066
26067   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26068     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26069
26070   elif test "$bash_cv_signal_vintage" = "svr3"; then
26071     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26072
26073   fi
26074
26075 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26076 if test "x$ac_cv_type_mode_t" = x""yes; then :
26077
26078 else
26079
26080 cat >>confdefs.h <<_ACEOF
26081 #define mode_t int
26082 _ACEOF
26083
26084 fi
26085
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26087 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26088 if test "${ac_cv_type_uid_t+set}" = set; then :
26089   $as_echo_n "(cached) " >&6
26090 else
26091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26092 /* end confdefs.h.  */
26093 #include <sys/types.h>
26094
26095 _ACEOF
26096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26097   $EGREP "uid_t" >/dev/null 2>&1; then :
26098   ac_cv_type_uid_t=yes
26099 else
26100   ac_cv_type_uid_t=no
26101 fi
26102 rm -f conftest*
26103
26104 fi
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26106 $as_echo "$ac_cv_type_uid_t" >&6; }
26107 if test $ac_cv_type_uid_t = no; then
26108
26109 $as_echo "#define uid_t int" >>confdefs.h
26110
26111
26112 $as_echo "#define gid_t int" >>confdefs.h
26113
26114 fi
26115
26116 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26117 if test "x$ac_cv_type_size_t" = x""yes; then :
26118
26119 else
26120
26121 cat >>confdefs.h <<_ACEOF
26122 #define size_t unsigned int
26123 _ACEOF
26124
26125 fi
26126
26127 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26128 if test "x$ac_cv_type_pid_t" = x""yes; then :
26129
26130 else
26131
26132 cat >>confdefs.h <<_ACEOF
26133 #define pid_t int
26134 _ACEOF
26135
26136 fi
26137
26138 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26139 if test "x$ac_cv_type_off_t" = x""yes; then :
26140
26141 else
26142
26143 cat >>confdefs.h <<_ACEOF
26144 #define off_t long int
26145 _ACEOF
26146
26147 fi
26148
26149
26150   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26151 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26152
26153 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26154
26155 else
26156   for ac_type in 'int' 'long int' 'long long int'; do
26157        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26158 /* end confdefs.h.  */
26159 $ac_includes_default
26160 int
26161 main ()
26162 {
26163 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26164 test_array [0] = 0
26165
26166   ;
26167   return 0;
26168 }
26169 _ACEOF
26170 if ac_fn_c_try_compile "$LINENO"; then :
26171
26172 cat >>confdefs.h <<_ACEOF
26173 #define intptr_t $ac_type
26174 _ACEOF
26175
26176           ac_type=
26177 fi
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179        test -z "$ac_type" && break
26180      done
26181 fi
26182
26183
26184
26185   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26186 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26187
26188 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26189
26190 else
26191   for ac_type in 'unsigned int' 'unsigned long int' \
26192         'unsigned long long int'; do
26193        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26194 /* end confdefs.h.  */
26195 $ac_includes_default
26196 int
26197 main ()
26198 {
26199 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26200 test_array [0] = 0
26201
26202   ;
26203   return 0;
26204 }
26205 _ACEOF
26206 if ac_fn_c_try_compile "$LINENO"; then :
26207
26208 cat >>confdefs.h <<_ACEOF
26209 #define uintptr_t $ac_type
26210 _ACEOF
26211
26212           ac_type=
26213 fi
26214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26215        test -z "$ac_type" && break
26216      done
26217 fi
26218
26219
26220 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26221 if test "x$ac_cv_type_ino_t" = x""yes; then :
26222
26223 else
26224
26225 cat >>confdefs.h <<_ACEOF
26226 #define ino_t unsigned long
26227 _ACEOF
26228
26229 fi
26230
26231 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26232 if test "x$ac_cv_type_dev_t" = x""yes; then :
26233
26234 else
26235
26236 cat >>confdefs.h <<_ACEOF
26237 #define dev_t unsigned long
26238 _ACEOF
26239
26240 fi
26241
26242 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26243 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26244
26245 else
26246
26247 cat >>confdefs.h <<_ACEOF
26248 #define daddr_t long
26249 _ACEOF
26250
26251 fi
26252
26253 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26254 if test "x$ac_cv_type_major_t" = x""yes; then :
26255
26256 else
26257
26258 cat >>confdefs.h <<_ACEOF
26259 #define major_t int
26260 _ACEOF
26261
26262 fi
26263
26264 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26265 if test "x$ac_cv_type_minor_t" = x""yes; then :
26266
26267 else
26268
26269 cat >>confdefs.h <<_ACEOF
26270 #define minor_t int
26271 _ACEOF
26272
26273 fi
26274
26275 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26276 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26277
26278 else
26279
26280 cat >>confdefs.h <<_ACEOF
26281 #define ssize_t int
26282 _ACEOF
26283
26284 fi
26285
26286 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26287 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26288
26289 cat >>confdefs.h <<_ACEOF
26290 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26291 _ACEOF
26292
26293
26294 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26295
26296 else
26297   case " $LIBOBJS " in
26298   *" fileblocks.$ac_objext "* ) ;;
26299   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26300  ;;
26301 esac
26302
26303 fi
26304
26305
26306 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26307 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26308
26309 cat >>confdefs.h <<_ACEOF
26310 #define HAVE_STRUCT_STAT_ST_RDEV 1
26311 _ACEOF
26312
26313
26314 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26315
26316 fi
26317
26318
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26320 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26321 if test "${ac_cv_struct_tm+set}" = set; then :
26322   $as_echo_n "(cached) " >&6
26323 else
26324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26325 /* end confdefs.h.  */
26326 #include <sys/types.h>
26327 #include <time.h>
26328
26329 int
26330 main ()
26331 {
26332 struct tm tm;
26333                                      int *p = &tm.tm_sec;
26334                                      return !p;
26335   ;
26336   return 0;
26337 }
26338 _ACEOF
26339 if ac_fn_c_try_compile "$LINENO"; then :
26340   ac_cv_struct_tm=time.h
26341 else
26342   ac_cv_struct_tm=sys/time.h
26343 fi
26344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26345 fi
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26347 $as_echo "$ac_cv_struct_tm" >&6; }
26348 if test $ac_cv_struct_tm = sys/time.h; then
26349
26350 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26351
26352 fi
26353
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26355 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26356 if test "${ac_cv_c_const+set}" = set; then :
26357   $as_echo_n "(cached) " >&6
26358 else
26359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26360 /* end confdefs.h.  */
26361
26362 int
26363 main ()
26364 {
26365 /* FIXME: Include the comments suggested by Paul. */
26366 #ifndef __cplusplus
26367   /* Ultrix mips cc rejects this.  */
26368   typedef int charset[2];
26369   const charset cs;
26370   /* SunOS 4.1.1 cc rejects this.  */
26371   char const *const *pcpcc;
26372   char **ppc;
26373   /* NEC SVR4.0.2 mips cc rejects this.  */
26374   struct point {int x, y;};
26375   static struct point const zero = {0,0};
26376   /* AIX XL C 1.02.0.0 rejects this.
26377      It does not let you subtract one const X* pointer from another in
26378      an arm of an if-expression whose if-part is not a constant
26379      expression */
26380   const char *g = "string";
26381   pcpcc = &g + (g ? g-g : 0);
26382   /* HPUX 7.0 cc rejects these. */
26383   ++pcpcc;
26384   ppc = (char**) pcpcc;
26385   pcpcc = (char const *const *) ppc;
26386   { /* SCO 3.2v4 cc rejects this.  */
26387     char *t;
26388     char const *s = 0 ? (char *) 0 : (char const *) 0;
26389
26390     *t++ = 0;
26391     if (s) return 0;
26392   }
26393   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26394     int x[] = {25, 17};
26395     const int *foo = &x[0];
26396     ++foo;
26397   }
26398   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26399     typedef const int *iptr;
26400     iptr p = 0;
26401     ++p;
26402   }
26403   { /* AIX XL C 1.02.0.0 rejects this saying
26404        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26405     struct s { int j; const int *ap[3]; };
26406     struct s *b; b->j = 5;
26407   }
26408   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26409     const int foo = 10;
26410     if (!foo) return 0;
26411   }
26412   return !cs[0] && !zero.x;
26413 #endif
26414
26415   ;
26416   return 0;
26417 }
26418 _ACEOF
26419 if ac_fn_c_try_compile "$LINENO"; then :
26420   ac_cv_c_const=yes
26421 else
26422   ac_cv_c_const=no
26423 fi
26424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26425 fi
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26427 $as_echo "$ac_cv_c_const" >&6; }
26428 if test $ac_cv_c_const = no; then
26429
26430 $as_echo "#define const /**/" >>confdefs.h
26431
26432 fi
26433
26434
26435 # The cast to long int works around a bug in the HP C Compiler
26436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26438 # This bug is HP SR number 8606223364.
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26440 $as_echo_n "checking size of char... " >&6; }
26441 if test "${ac_cv_sizeof_char+set}" = set; then :
26442   $as_echo_n "(cached) " >&6
26443 else
26444   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26445
26446 else
26447   if test "$ac_cv_type_char" = yes; then
26448      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26450 { as_fn_set_status 77
26451 as_fn_error "cannot compute sizeof (char)
26452 See \`config.log' for more details." "$LINENO" 5; }; }
26453    else
26454      ac_cv_sizeof_char=0
26455    fi
26456 fi
26457
26458 fi
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26460 $as_echo "$ac_cv_sizeof_char" >&6; }
26461
26462
26463
26464 cat >>confdefs.h <<_ACEOF
26465 #define SIZEOF_CHAR $ac_cv_sizeof_char
26466 _ACEOF
26467
26468
26469 # The cast to long int works around a bug in the HP C Compiler
26470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26472 # This bug is HP SR number 8606223364.
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26474 $as_echo_n "checking size of short int... " >&6; }
26475 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26476   $as_echo_n "(cached) " >&6
26477 else
26478   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26479
26480 else
26481   if test "$ac_cv_type_short_int" = yes; then
26482      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26484 { as_fn_set_status 77
26485 as_fn_error "cannot compute sizeof (short int)
26486 See \`config.log' for more details." "$LINENO" 5; }; }
26487    else
26488      ac_cv_sizeof_short_int=0
26489    fi
26490 fi
26491
26492 fi
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26494 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26495
26496
26497
26498 cat >>confdefs.h <<_ACEOF
26499 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26500 _ACEOF
26501
26502
26503 # The cast to long int works around a bug in the HP C Compiler
26504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26506 # This bug is HP SR number 8606223364.
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26508 $as_echo_n "checking size of int... " >&6; }
26509 if test "${ac_cv_sizeof_int+set}" = set; then :
26510   $as_echo_n "(cached) " >&6
26511 else
26512   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26513
26514 else
26515   if test "$ac_cv_type_int" = yes; then
26516      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26518 { as_fn_set_status 77
26519 as_fn_error "cannot compute sizeof (int)
26520 See \`config.log' for more details." "$LINENO" 5; }; }
26521    else
26522      ac_cv_sizeof_int=0
26523    fi
26524 fi
26525
26526 fi
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26528 $as_echo "$ac_cv_sizeof_int" >&6; }
26529
26530
26531
26532 cat >>confdefs.h <<_ACEOF
26533 #define SIZEOF_INT $ac_cv_sizeof_int
26534 _ACEOF
26535
26536
26537 # The cast to long int works around a bug in the HP C Compiler
26538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26540 # This bug is HP SR number 8606223364.
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26542 $as_echo_n "checking size of long int... " >&6; }
26543 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26544   $as_echo_n "(cached) " >&6
26545 else
26546   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26547
26548 else
26549   if test "$ac_cv_type_long_int" = yes; then
26550      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26552 { as_fn_set_status 77
26553 as_fn_error "cannot compute sizeof (long int)
26554 See \`config.log' for more details." "$LINENO" 5; }; }
26555    else
26556      ac_cv_sizeof_long_int=0
26557    fi
26558 fi
26559
26560 fi
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26562 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26563
26564
26565
26566 cat >>confdefs.h <<_ACEOF
26567 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26568 _ACEOF
26569
26570
26571 # The cast to long int works around a bug in the HP C Compiler
26572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26574 # This bug is HP SR number 8606223364.
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26576 $as_echo_n "checking size of long long int... " >&6; }
26577 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26578   $as_echo_n "(cached) " >&6
26579 else
26580   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26581
26582 else
26583   if test "$ac_cv_type_long_long_int" = yes; then
26584      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26586 { as_fn_set_status 77
26587 as_fn_error "cannot compute sizeof (long long int)
26588 See \`config.log' for more details." "$LINENO" 5; }; }
26589    else
26590      ac_cv_sizeof_long_long_int=0
26591    fi
26592 fi
26593
26594 fi
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26596 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26597
26598
26599
26600 cat >>confdefs.h <<_ACEOF
26601 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26602 _ACEOF
26603
26604
26605 # The cast to long int works around a bug in the HP C Compiler
26606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26608 # This bug is HP SR number 8606223364.
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26610 $as_echo_n "checking size of int *... " >&6; }
26611 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26612   $as_echo_n "(cached) " >&6
26613 else
26614   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26615
26616 else
26617   if test "$ac_cv_type_int_p" = yes; then
26618      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26620 { as_fn_set_status 77
26621 as_fn_error "cannot compute sizeof (int *)
26622 See \`config.log' for more details." "$LINENO" 5; }; }
26623    else
26624      ac_cv_sizeof_int_p=0
26625    fi
26626 fi
26627
26628 fi
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26630 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26631
26632
26633
26634 cat >>confdefs.h <<_ACEOF
26635 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26636 _ACEOF
26637
26638
26639
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26641 $as_echo_n "checking for u_int type... " >&6; }
26642 if test "${ac_cv_have_u_int+set}" = set; then :
26643   $as_echo_n "(cached) " >&6
26644 else
26645
26646        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26647 /* end confdefs.h.  */
26648
26649               #include <sys/types.h>
26650
26651 int
26652 main ()
26653 {
26654
26655               u_int a; a = 1;
26656
26657   ;
26658   return 0;
26659 }
26660 _ACEOF
26661 if ac_fn_c_try_compile "$LINENO"; then :
26662
26663               ac_cv_have_u_int="yes"
26664
26665 else
26666
26667               ac_cv_have_u_int="no"
26668
26669
26670 fi
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672
26673
26674 fi
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26676 $as_echo "$ac_cv_have_u_int" >&6; }
26677 if test "x$ac_cv_have_u_int" = "xyes" ; then
26678    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26679
26680    have_u_int=1
26681 fi
26682
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26684 $as_echo_n "checking for intmax_t type... " >&6; }
26685 if test "${ac_cv_have_intmax_t+set}" = set; then :
26686   $as_echo_n "(cached) " >&6
26687 else
26688
26689        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26690 /* end confdefs.h.  */
26691
26692               #include <sys/types.h>
26693
26694 int
26695 main ()
26696 {
26697
26698               intmax_t a; a = 1;
26699
26700   ;
26701   return 0;
26702 }
26703 _ACEOF
26704 if ac_fn_c_try_compile "$LINENO"; then :
26705
26706               ac_cv_have_intmax_t="yes"
26707
26708 else
26709
26710               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26711 /* end confdefs.h.  */
26712
26713                      #include <stdint.h>
26714
26715 int
26716 main ()
26717 {
26718
26719                      intmax_t a; a = 1;
26720
26721   ;
26722   return 0;
26723 }
26724 _ACEOF
26725 if ac_fn_c_try_compile "$LINENO"; then :
26726
26727                      ac_cv_have_intmax_t="yes"
26728
26729 else
26730
26731                      ac_cv_have_intmax_t="no"
26732
26733
26734 fi
26735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26736
26737
26738 fi
26739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26740
26741
26742 fi
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26744 $as_echo "$ac_cv_have_intmax_t" >&6; }
26745 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26746    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26747
26748    have_intmax_t=1
26749 fi
26750
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26752 $as_echo_n "checking for u_intmax_t type... " >&6; }
26753 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26754   $as_echo_n "(cached) " >&6
26755 else
26756
26757        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26758 /* end confdefs.h.  */
26759
26760               #include <sys/types.h>
26761
26762 int
26763 main ()
26764 {
26765
26766               u_intmax_t a; a = 1;
26767
26768   ;
26769   return 0;
26770 }
26771 _ACEOF
26772 if ac_fn_c_try_compile "$LINENO"; then :
26773
26774               ac_cv_have_u_intmax_t="yes"
26775
26776 else
26777
26778               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26779 /* end confdefs.h.  */
26780
26781                      #include <stdint.h>
26782
26783 int
26784 main ()
26785 {
26786
26787                     u_intmax_t a; a = 1;
26788
26789   ;
26790   return 0;
26791 }
26792 _ACEOF
26793 if ac_fn_c_try_compile "$LINENO"; then :
26794
26795                     ac_cv_have_u_intmax_t="yes"
26796
26797 else
26798
26799                     ac_cv_have_u_intmax_t="no"
26800
26801
26802 fi
26803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26804
26805
26806 fi
26807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26808
26809
26810 fi
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26812 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26813 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26814    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26815
26816    have_u_intmax_t=1
26817 fi
26818
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26820 $as_echo_n "checking for intXX_t types... " >&6; }
26821 if test "${ac_cv_have_intxx_t+set}" = set; then :
26822   $as_echo_n "(cached) " >&6
26823 else
26824
26825        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26826 /* end confdefs.h.  */
26827
26828               #include <sys/types.h>
26829
26830 int
26831 main ()
26832 {
26833
26834               int8_t a; int16_t b; int32_t c; a = b = c = 1;
26835
26836   ;
26837   return 0;
26838 }
26839 _ACEOF
26840 if ac_fn_c_try_compile "$LINENO"; then :
26841
26842               ac_cv_have_intxx_t="yes"
26843
26844 else
26845
26846               ac_cv_have_intxx_t="no"
26847
26848
26849 fi
26850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26851
26852
26853 fi
26854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26855 $as_echo "$ac_cv_have_intxx_t" >&6; }
26856 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26857    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26858
26859    have_intxx_t=1
26860 fi
26861
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26863 $as_echo_n "checking for int64_t type... " >&6; }
26864 if test "${ac_cv_have_int64_t+set}" = set; then :
26865   $as_echo_n "(cached) " >&6
26866 else
26867
26868        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26869 /* end confdefs.h.  */
26870
26871               #include <sys/types.h>
26872
26873 int
26874 main ()
26875 {
26876
26877               int64_t a; a = 1;
26878
26879   ;
26880   return 0;
26881 }
26882 _ACEOF
26883 if ac_fn_c_try_compile "$LINENO"; then :
26884
26885               ac_cv_have_int64_t="yes"
26886
26887 else
26888
26889               ac_cv_have_int64_t="no"
26890
26891
26892 fi
26893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26894
26895
26896 fi
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26898 $as_echo "$ac_cv_have_int64_t" >&6; }
26899 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26900    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26901
26902    have_int64_t=1
26903 fi
26904
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26906 $as_echo_n "checking for u_intXX_t types... " >&6; }
26907 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26908   $as_echo_n "(cached) " >&6
26909 else
26910
26911        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26912 /* end confdefs.h.  */
26913
26914               #include <sys/types.h>
26915
26916 int
26917 main ()
26918 {
26919
26920               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26921
26922   ;
26923   return 0;
26924 }
26925 _ACEOF
26926 if ac_fn_c_try_compile "$LINENO"; then :
26927
26928              ac_cv_have_u_intxx_t="yes"
26929
26930 else
26931
26932              ac_cv_have_u_intxx_t="no"
26933
26934
26935 fi
26936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26937
26938
26939 fi
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26941 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26942 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26943    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26944
26945    have_u_intxx_t=1
26946 fi
26947
26948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26949 $as_echo_n "checking for u_int64_t types... " >&6; }
26950 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26951   $as_echo_n "(cached) " >&6
26952 else
26953
26954        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26955 /* end confdefs.h.  */
26956
26957               #include <sys/types.h>
26958
26959 int
26960 main ()
26961 {
26962
26963               u_int64_t a; a = 1;
26964
26965   ;
26966   return 0;
26967 }
26968 _ACEOF
26969 if ac_fn_c_try_compile "$LINENO"; then :
26970
26971              ac_cv_have_u_int64_t="yes"
26972
26973 else
26974
26975              ac_cv_have_u_int64_t="no"
26976
26977
26978 fi
26979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26980
26981
26982 fi
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26984 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26985 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26986    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26987
26988    have_u_int64_t=1
26989 fi
26990
26991 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26992     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26993 then
26994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26995 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
26996    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26997 /* end confdefs.h.  */
26998
26999           #include <sys/bitypes.h>
27000
27001 int
27002 main ()
27003 {
27004
27005           int8_t a; int16_t b; int32_t c;
27006           u_int8_t e; u_int16_t f; u_int32_t g;
27007           a = b = c = e = f = g = 1;
27008
27009   ;
27010   return 0;
27011 }
27012 _ACEOF
27013 if ac_fn_c_try_compile "$LINENO"; then :
27014
27015           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27016
27017           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27018
27019           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27020
27021           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27022 $as_echo "yes" >&6; }
27023
27024 else
27025
27026           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27027 $as_echo "no" >&6; }
27028
27029
27030 fi
27031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27032 fi
27033
27034 if test -z "$have_u_intxx_t" ; then
27035    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27036 $as_echo_n "checking for uintXX_t types... " >&6; }
27037 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27038   $as_echo_n "(cached) " >&6
27039 else
27040
27041           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27042 /* end confdefs.h.  */
27043
27044                  #include <sys/types.h>
27045
27046 int
27047 main ()
27048 {
27049
27050                  uint8_t a; uint16_t b;
27051                  uint32_t c; a = b = c = 1;
27052
27053   ;
27054   return 0;
27055 }
27056 _ACEOF
27057 if ac_fn_c_try_compile "$LINENO"; then :
27058
27059                 ac_cv_have_uintxx_t="yes"
27060
27061 else
27062
27063                 ac_cv_have_uintxx_t="no"
27064
27065
27066 fi
27067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27068
27069
27070 fi
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27072 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27073    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27074       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27075
27076    fi
27077 fi
27078
27079 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27080     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27081 then
27082    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27083 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27084    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h.  */
27086
27087           #include <sys/bitypes.h>
27088
27089 int
27090 main ()
27091 {
27092
27093           int64_t a; u_int64_t b;
27094           a = b = 1;
27095
27096   ;
27097   return 0;
27098 }
27099 _ACEOF
27100 if ac_fn_c_try_compile "$LINENO"; then :
27101
27102           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27103
27104           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27105
27106           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27107 $as_echo "yes" >&6; }
27108
27109 else
27110
27111           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27112 $as_echo "no" >&6; }
27113
27114
27115 fi
27116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27117 fi
27118
27119 if (test -z "$have_uintxx_t" && \
27120     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27121 then
27122    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27123 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27124    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27125 /* end confdefs.h.  */
27126
27127           #include <sys/bitypes.h>
27128
27129 int
27130 main ()
27131 {
27132
27133           uint8_t a; uint16_t b;
27134           uint32_t c; a = b = c = 1;
27135
27136   ;
27137   return 0;
27138 }
27139 _ACEOF
27140 if ac_fn_c_try_compile "$LINENO"; then :
27141
27142           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27143
27144           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27145 $as_echo "yes" >&6; }
27146
27147 else
27148
27149           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27150 $as_echo "no" >&6; }
27151
27152
27153 fi
27154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27155 fi
27156
27157 for ac_func in \
27158    fork \
27159    getcwd \
27160    gethostname \
27161    getpid \
27162    gettimeofday \
27163    setpgid \
27164    setpgrp \
27165    setsid \
27166    signal \
27167    strerror \
27168    strncmp \
27169    strncpy \
27170    vfprintf \
27171
27172 do :
27173   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27175 eval as_val=\$$as_ac_var
27176    if test "x$as_val" = x""yes; then :
27177   cat >>confdefs.h <<_ACEOF
27178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27179 _ACEOF
27180
27181 else
27182   echo 'configure: cannot find needed function.'; exit 1
27183
27184 fi
27185 done
27186
27187
27188 for ac_func in fchdir
27189 do :
27190   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27191 if test "x$ac_cv_func_fchdir" = x""yes; then :
27192   cat >>confdefs.h <<_ACEOF
27193 #define HAVE_FCHDIR 1
27194 _ACEOF
27195  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27196
27197 fi
27198 done
27199
27200 for ac_func in strtoll
27201 do :
27202   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27203 if test "x$ac_cv_func_strtoll" = x""yes; then :
27204   cat >>confdefs.h <<_ACEOF
27205 #define HAVE_STRTOLL 1
27206 _ACEOF
27207  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27208
27209 fi
27210 done
27211
27212 for ac_func in posix_fadvise
27213 do :
27214   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27215 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27216   cat >>confdefs.h <<_ACEOF
27217 #define HAVE_POSIX_FADVISE 1
27218 _ACEOF
27219
27220 fi
27221 done
27222
27223 for ac_func in fdatasync
27224 do :
27225   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27226 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27227   cat >>confdefs.h <<_ACEOF
27228 #define HAVE_FDATASYNC 1
27229 _ACEOF
27230
27231 fi
27232 done
27233
27234
27235 for ac_func in chflags
27236 do :
27237   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27238 if test "x$ac_cv_func_chflags" = x""yes; then :
27239   cat >>confdefs.h <<_ACEOF
27240 #define HAVE_CHFLAGS 1
27241 _ACEOF
27242
27243 fi
27244 done
27245
27246
27247 for ac_func in snprintf vsnprintf gethostid fseeko
27248 do :
27249   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27251 eval as_val=\$$as_ac_var
27252    if test "x$as_val" = x""yes; then :
27253   cat >>confdefs.h <<_ACEOF
27254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27255 _ACEOF
27256
27257 fi
27258 done
27259
27260
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27262 $as_echo_n "checking for va_copy... " >&6; }
27263 if test "${ba_cv_va_copy+set}" = set; then :
27264   $as_echo_n "(cached) " >&6
27265 else
27266
27267        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27268 /* end confdefs.h.  */
27269
27270               #include <stdarg.h>
27271               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27272               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27273
27274 int
27275 main ()
27276 {
27277
27278               call_use_va_copy(1,2,3)
27279
27280   ;
27281   return 0;
27282 }
27283 _ACEOF
27284 if ac_fn_c_try_link "$LINENO"; then :
27285
27286               ba_cv_va_copy=yes,
27287
27288 else
27289
27290               ba_cv_va_copy=no
27291
27292
27293 fi
27294 rm -f core conftest.err conftest.$ac_objext \
27295     conftest$ac_exeext conftest.$ac_ext
27296
27297
27298 fi
27299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27300 $as_echo "$ba_cv_va_copy" >&6; }
27301 test $ba_cv_va_copy = yes &&
27302 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27303
27304
27305 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27306 do :
27307   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27308 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27309 eval as_val=\$$as_ac_var
27310    if test "x$as_val" = x""yes; then :
27311   cat >>confdefs.h <<_ACEOF
27312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27313 _ACEOF
27314
27315 fi
27316 done
27317
27318
27319 # If resolver functions are not in libc check for -lnsl or -lresolv.
27320 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27321 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27323 $as_echo "using libc's resolver" >&6; }
27324 else
27325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27326 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27327 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27328   $as_echo_n "(cached) " >&6
27329 else
27330   ac_check_lib_save_LIBS=$LIBS
27331 LIBS="-lnsl  $LIBS"
27332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27333 /* end confdefs.h.  */
27334
27335 /* Override any GCC internal prototype to avoid an error.
27336    Use char because int might match the return type of a GCC
27337    builtin and then its argument prototype would still apply.  */
27338 #ifdef __cplusplus
27339 extern "C"
27340 #endif
27341 char gethostbyname_r ();
27342 int
27343 main ()
27344 {
27345 return gethostbyname_r ();
27346   ;
27347   return 0;
27348 }
27349 _ACEOF
27350 if ac_fn_c_try_link "$LINENO"; then :
27351   ac_cv_lib_nsl_gethostbyname_r=yes
27352 else
27353   ac_cv_lib_nsl_gethostbyname_r=no
27354 fi
27355 rm -f core conftest.err conftest.$ac_objext \
27356     conftest$ac_exeext conftest.$ac_ext
27357 LIBS=$ac_check_lib_save_LIBS
27358 fi
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27360 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27361 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27362   cat >>confdefs.h <<_ACEOF
27363 #define HAVE_LIBNSL 1
27364 _ACEOF
27365
27366   LIBS="-lnsl $LIBS"
27367
27368 fi
27369
27370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27371 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27372 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27373   $as_echo_n "(cached) " >&6
27374 else
27375   ac_check_lib_save_LIBS=$LIBS
27376 LIBS="-lresolv  $LIBS"
27377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27378 /* end confdefs.h.  */
27379
27380 /* Override any GCC internal prototype to avoid an error.
27381    Use char because int might match the return type of a GCC
27382    builtin and then its argument prototype would still apply.  */
27383 #ifdef __cplusplus
27384 extern "C"
27385 #endif
27386 char gethostbyname_r ();
27387 int
27388 main ()
27389 {
27390 return gethostbyname_r ();
27391   ;
27392   return 0;
27393 }
27394 _ACEOF
27395 if ac_fn_c_try_link "$LINENO"; then :
27396   ac_cv_lib_resolv_gethostbyname_r=yes
27397 else
27398   ac_cv_lib_resolv_gethostbyname_r=no
27399 fi
27400 rm -f core conftest.err conftest.$ac_objext \
27401     conftest$ac_exeext conftest.$ac_ext
27402 LIBS=$ac_check_lib_save_LIBS
27403 fi
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27405 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27406 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27407   cat >>confdefs.h <<_ACEOF
27408 #define HAVE_LIBRESOLV 1
27409 _ACEOF
27410
27411   LIBS="-lresolv $LIBS"
27412
27413 fi
27414
27415 fi
27416
27417
27418 for ac_func in inet_pton
27419 do :
27420   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27421 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27422   cat >>confdefs.h <<_ACEOF
27423 #define HAVE_INET_PTON 1
27424 _ACEOF
27425  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27426
27427 fi
27428 done
27429
27430 for ac_func in inet_ntop
27431 do :
27432   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27433 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27434   cat >>confdefs.h <<_ACEOF
27435 #define HAVE_INET_NTOP 1
27436 _ACEOF
27437  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27438
27439 fi
27440 done
27441
27442 for ac_func in gethostbyname2
27443 do :
27444   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27445 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27446   cat >>confdefs.h <<_ACEOF
27447 #define HAVE_GETHOSTBYNAME2 1
27448 _ACEOF
27449  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27450
27451 fi
27452 done
27453
27454
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27456 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27457 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27458   $as_echo_n "(cached) " >&6
27459 else
27460
27461        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27462 /* end confdefs.h.  */
27463
27464               #include <sys/socket.h>
27465
27466 int
27467 main ()
27468 {
27469
27470               struct sockaddr s; s.sa_len;
27471
27472   ;
27473   return 0;
27474 }
27475 _ACEOF
27476 if ac_fn_c_try_compile "$LINENO"; then :
27477
27478              ac_cv_struct_sockaddr_sa_len=yes
27479
27480 else
27481   ac_cv_struct_sockaddr_sa_len=no
27482
27483
27484 fi
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27486
27487
27488 fi
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27490 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27491
27492 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27493
27494 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27495
27496 fi
27497
27498 for ac_func in strftime
27499 do :
27500   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27501 if test "x$ac_cv_func_strftime" = x""yes; then :
27502   cat >>confdefs.h <<_ACEOF
27503 #define HAVE_STRFTIME 1
27504 _ACEOF
27505
27506 else
27507   # strftime is in -lintl on SCO UNIX.
27508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27509 $as_echo_n "checking for strftime in -lintl... " >&6; }
27510 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27511   $as_echo_n "(cached) " >&6
27512 else
27513   ac_check_lib_save_LIBS=$LIBS
27514 LIBS="-lintl  $LIBS"
27515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27516 /* end confdefs.h.  */
27517
27518 /* Override any GCC internal prototype to avoid an error.
27519    Use char because int might match the return type of a GCC
27520    builtin and then its argument prototype would still apply.  */
27521 #ifdef __cplusplus
27522 extern "C"
27523 #endif
27524 char strftime ();
27525 int
27526 main ()
27527 {
27528 return strftime ();
27529   ;
27530   return 0;
27531 }
27532 _ACEOF
27533 if ac_fn_c_try_link "$LINENO"; then :
27534   ac_cv_lib_intl_strftime=yes
27535 else
27536   ac_cv_lib_intl_strftime=no
27537 fi
27538 rm -f core conftest.err conftest.$ac_objext \
27539     conftest$ac_exeext conftest.$ac_ext
27540 LIBS=$ac_check_lib_save_LIBS
27541 fi
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27543 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27544 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27545   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27546
27547 LIBS="-lintl $LIBS"
27548 fi
27549
27550 fi
27551 done
27552
27553 for ac_func in vprintf
27554 do :
27555   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27556 if test "x$ac_cv_func_vprintf" = x""yes; then :
27557   cat >>confdefs.h <<_ACEOF
27558 #define HAVE_VPRINTF 1
27559 _ACEOF
27560
27561 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27562 if test "x$ac_cv_func__doprnt" = x""yes; then :
27563
27564 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27565
27566 fi
27567
27568 fi
27569 done
27570
27571
27572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27573 # for constant arguments.  Useless!
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27575 $as_echo_n "checking for working alloca.h... " >&6; }
27576 if test "${ac_cv_working_alloca_h+set}" = set; then :
27577   $as_echo_n "(cached) " >&6
27578 else
27579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27580 /* end confdefs.h.  */
27581 #include <alloca.h>
27582 int
27583 main ()
27584 {
27585 char *p = (char *) alloca (2 * sizeof (int));
27586                           if (p) return 0;
27587   ;
27588   return 0;
27589 }
27590 _ACEOF
27591 if ac_fn_c_try_link "$LINENO"; then :
27592   ac_cv_working_alloca_h=yes
27593 else
27594   ac_cv_working_alloca_h=no
27595 fi
27596 rm -f core conftest.err conftest.$ac_objext \
27597     conftest$ac_exeext conftest.$ac_ext
27598 fi
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27600 $as_echo "$ac_cv_working_alloca_h" >&6; }
27601 if test $ac_cv_working_alloca_h = yes; then
27602
27603 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27604
27605 fi
27606
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27608 $as_echo_n "checking for alloca... " >&6; }
27609 if test "${ac_cv_func_alloca_works+set}" = set; then :
27610   $as_echo_n "(cached) " >&6
27611 else
27612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27613 /* end confdefs.h.  */
27614 #ifdef __GNUC__
27615 # define alloca __builtin_alloca
27616 #else
27617 # ifdef _MSC_VER
27618 #  include <malloc.h>
27619 #  define alloca _alloca
27620 # else
27621 #  ifdef HAVE_ALLOCA_H
27622 #   include <alloca.h>
27623 #  else
27624 #   ifdef _AIX
27625  #pragma alloca
27626 #   else
27627 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27628 char *alloca ();
27629 #    endif
27630 #   endif
27631 #  endif
27632 # endif
27633 #endif
27634
27635 int
27636 main ()
27637 {
27638 char *p = (char *) alloca (1);
27639                                     if (p) return 0;
27640   ;
27641   return 0;
27642 }
27643 _ACEOF
27644 if ac_fn_c_try_link "$LINENO"; then :
27645   ac_cv_func_alloca_works=yes
27646 else
27647   ac_cv_func_alloca_works=no
27648 fi
27649 rm -f core conftest.err conftest.$ac_objext \
27650     conftest$ac_exeext conftest.$ac_ext
27651 fi
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27653 $as_echo "$ac_cv_func_alloca_works" >&6; }
27654
27655 if test $ac_cv_func_alloca_works = yes; then
27656
27657 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27658
27659 else
27660   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27661 # that cause trouble.  Some versions do not even contain alloca or
27662 # contain a buggy version.  If you still want to use their alloca,
27663 # use ar to extract alloca.o from them instead of compiling alloca.c.
27664
27665 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27666
27667 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27668
27669
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27671 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27672 if test "${ac_cv_os_cray+set}" = set; then :
27673   $as_echo_n "(cached) " >&6
27674 else
27675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27676 /* end confdefs.h.  */
27677 #if defined CRAY && ! defined CRAY2
27678 webecray
27679 #else
27680 wenotbecray
27681 #endif
27682
27683 _ACEOF
27684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27685   $EGREP "webecray" >/dev/null 2>&1; then :
27686   ac_cv_os_cray=yes
27687 else
27688   ac_cv_os_cray=no
27689 fi
27690 rm -f conftest*
27691
27692 fi
27693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27694 $as_echo "$ac_cv_os_cray" >&6; }
27695 if test $ac_cv_os_cray = yes; then
27696   for ac_func in _getb67 GETB67 getb67; do
27697     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27699 eval as_val=\$$as_ac_var
27700    if test "x$as_val" = x""yes; then :
27701
27702 cat >>confdefs.h <<_ACEOF
27703 #define CRAY_STACKSEG_END $ac_func
27704 _ACEOF
27705
27706     break
27707 fi
27708
27709   done
27710 fi
27711
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27713 $as_echo_n "checking stack direction for C alloca... " >&6; }
27714 if test "${ac_cv_c_stack_direction+set}" = set; then :
27715   $as_echo_n "(cached) " >&6
27716 else
27717   if test "$cross_compiling" = yes; then :
27718   ac_cv_c_stack_direction=0
27719 else
27720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27721 /* end confdefs.h.  */
27722 $ac_includes_default
27723 int
27724 find_stack_direction ()
27725 {
27726   static char *addr = 0;
27727   auto char dummy;
27728   if (addr == 0)
27729     {
27730       addr = &dummy;
27731       return find_stack_direction ();
27732     }
27733   else
27734     return (&dummy > addr) ? 1 : -1;
27735 }
27736
27737 int
27738 main ()
27739 {
27740   return find_stack_direction () < 0;
27741 }
27742 _ACEOF
27743 if ac_fn_c_try_run "$LINENO"; then :
27744   ac_cv_c_stack_direction=1
27745 else
27746   ac_cv_c_stack_direction=-1
27747 fi
27748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27749   conftest.$ac_objext conftest.beam conftest.$ac_ext
27750 fi
27751
27752 fi
27753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27754 $as_echo "$ac_cv_c_stack_direction" >&6; }
27755 cat >>confdefs.h <<_ACEOF
27756 #define STACK_DIRECTION $ac_cv_c_stack_direction
27757 _ACEOF
27758
27759
27760 fi
27761
27762 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27763 # -lseq on Dynix/PTX, -lgen on Unixware.
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27765 $as_echo_n "checking for library containing getmntent... " >&6; }
27766 if test "${ac_cv_search_getmntent+set}" = set; then :
27767   $as_echo_n "(cached) " >&6
27768 else
27769   ac_func_search_save_LIBS=$LIBS
27770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27771 /* end confdefs.h.  */
27772
27773 /* Override any GCC internal prototype to avoid an error.
27774    Use char because int might match the return type of a GCC
27775    builtin and then its argument prototype would still apply.  */
27776 #ifdef __cplusplus
27777 extern "C"
27778 #endif
27779 char getmntent ();
27780 int
27781 main ()
27782 {
27783 return getmntent ();
27784   ;
27785   return 0;
27786 }
27787 _ACEOF
27788 for ac_lib in '' sun seq gen; do
27789   if test -z "$ac_lib"; then
27790     ac_res="none required"
27791   else
27792     ac_res=-l$ac_lib
27793     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27794   fi
27795   if ac_fn_c_try_link "$LINENO"; then :
27796   ac_cv_search_getmntent=$ac_res
27797 fi
27798 rm -f core conftest.err conftest.$ac_objext \
27799     conftest$ac_exeext
27800   if test "${ac_cv_search_getmntent+set}" = set; then :
27801   break
27802 fi
27803 done
27804 if test "${ac_cv_search_getmntent+set}" = set; then :
27805
27806 else
27807   ac_cv_search_getmntent=no
27808 fi
27809 rm conftest.$ac_ext
27810 LIBS=$ac_func_search_save_LIBS
27811 fi
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27813 $as_echo "$ac_cv_search_getmntent" >&6; }
27814 ac_res=$ac_cv_search_getmntent
27815 if test "$ac_res" != no; then :
27816   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27817   ac_cv_func_getmntent=yes
27818
27819 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27820
27821 else
27822   ac_cv_func_getmntent=no
27823 fi
27824
27825
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27827 $as_echo_n "checking whether closedir returns void... " >&6; }
27828 if test "${ac_cv_func_closedir_void+set}" = set; then :
27829   $as_echo_n "(cached) " >&6
27830 else
27831   if test "$cross_compiling" = yes; then :
27832   ac_cv_func_closedir_void=yes
27833 else
27834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27835 /* end confdefs.h.  */
27836 $ac_includes_default
27837 #include <$ac_header_dirent>
27838 #ifndef __cplusplus
27839 int closedir ();
27840 #endif
27841
27842 int
27843 main ()
27844 {
27845 return closedir (opendir (".")) != 0;
27846   ;
27847   return 0;
27848 }
27849 _ACEOF
27850 if ac_fn_c_try_run "$LINENO"; then :
27851   ac_cv_func_closedir_void=no
27852 else
27853   ac_cv_func_closedir_void=yes
27854 fi
27855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27856   conftest.$ac_objext conftest.beam conftest.$ac_ext
27857 fi
27858
27859 fi
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27861 $as_echo "$ac_cv_func_closedir_void" >&6; }
27862 if test $ac_cv_func_closedir_void = yes; then
27863
27864 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27865
27866 fi
27867
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27869 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27870 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27871   $as_echo_n "(cached) " >&6
27872 else
27873   if test "$cross_compiling" = yes; then :
27874   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27875 else
27876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27877 /* end confdefs.h.  */
27878 $ac_includes_default
27879 int
27880 main ()
27881 {
27882 /* If this system has a BSD-style setpgrp which takes arguments,
27883   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27884   exit successfully. */
27885   return setpgrp (1,1) != -1;
27886   ;
27887   return 0;
27888 }
27889 _ACEOF
27890 if ac_fn_c_try_run "$LINENO"; then :
27891   ac_cv_func_setpgrp_void=no
27892 else
27893   ac_cv_func_setpgrp_void=yes
27894 fi
27895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27896   conftest.$ac_objext conftest.beam conftest.$ac_ext
27897 fi
27898
27899 fi
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27901 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27902 if test $ac_cv_func_setpgrp_void = yes; then
27903
27904 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27905
27906 fi
27907             # AC_FUNC_FNMATCH    dnl use local version
27908
27909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27910 $as_echo_n "checking for gettext in -lintl... " >&6; }
27911 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27912   $as_echo_n "(cached) " >&6
27913 else
27914   ac_check_lib_save_LIBS=$LIBS
27915 LIBS="-lintl  $LIBS"
27916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27917 /* end confdefs.h.  */
27918
27919 /* Override any GCC internal prototype to avoid an error.
27920    Use char because int might match the return type of a GCC
27921    builtin and then its argument prototype would still apply.  */
27922 #ifdef __cplusplus
27923 extern "C"
27924 #endif
27925 char gettext ();
27926 int
27927 main ()
27928 {
27929 return gettext ();
27930   ;
27931   return 0;
27932 }
27933 _ACEOF
27934 if ac_fn_c_try_link "$LINENO"; then :
27935   ac_cv_lib_intl_gettext=yes
27936 else
27937   ac_cv_lib_intl_gettext=no
27938 fi
27939 rm -f core conftest.err conftest.$ac_objext \
27940     conftest$ac_exeext conftest.$ac_ext
27941 LIBS=$ac_check_lib_save_LIBS
27942 fi
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27944 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27945 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27946   LIBS="$LIBS -lintl"
27947 fi
27948
27949
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27951 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27952 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27953   $as_echo_n "(cached) " >&6
27954 else
27955   ac_check_lib_save_LIBS=$LIBS
27956 LIBS="-lsun  $LIBS"
27957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27958 /* end confdefs.h.  */
27959
27960 /* Override any GCC internal prototype to avoid an error.
27961    Use char because int might match the return type of a GCC
27962    builtin and then its argument prototype would still apply.  */
27963 #ifdef __cplusplus
27964 extern "C"
27965 #endif
27966 char getpwnam ();
27967 int
27968 main ()
27969 {
27970 return getpwnam ();
27971   ;
27972   return 0;
27973 }
27974 _ACEOF
27975 if ac_fn_c_try_link "$LINENO"; then :
27976   ac_cv_lib_sun_getpwnam=yes
27977 else
27978   ac_cv_lib_sun_getpwnam=no
27979 fi
27980 rm -f core conftest.err conftest.$ac_objext \
27981     conftest$ac_exeext conftest.$ac_ext
27982 LIBS=$ac_check_lib_save_LIBS
27983 fi
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
27985 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
27986 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
27987   cat >>confdefs.h <<_ACEOF
27988 #define HAVE_LIBSUN 1
27989 _ACEOF
27990
27991   LIBS="-lsun $LIBS"
27992
27993 fi
27994
27995
27996 for ac_header in zlib.h
27997 do :
27998   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27999 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28000   cat >>confdefs.h <<_ACEOF
28001 #define HAVE_ZLIB_H 1
28002 _ACEOF
28003
28004 fi
28005
28006 done
28007
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28009 $as_echo_n "checking for deflate in -lz... " >&6; }
28010 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28011   $as_echo_n "(cached) " >&6
28012 else
28013   ac_check_lib_save_LIBS=$LIBS
28014 LIBS="-lz  $LIBS"
28015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28016 /* end confdefs.h.  */
28017
28018 /* Override any GCC internal prototype to avoid an error.
28019    Use char because int might match the return type of a GCC
28020    builtin and then its argument prototype would still apply.  */
28021 #ifdef __cplusplus
28022 extern "C"
28023 #endif
28024 char deflate ();
28025 int
28026 main ()
28027 {
28028 return deflate ();
28029   ;
28030   return 0;
28031 }
28032 _ACEOF
28033 if ac_fn_c_try_link "$LINENO"; then :
28034   ac_cv_lib_z_deflate=yes
28035 else
28036   ac_cv_lib_z_deflate=no
28037 fi
28038 rm -f core conftest.err conftest.$ac_objext \
28039     conftest$ac_exeext conftest.$ac_ext
28040 LIBS=$ac_check_lib_save_LIBS
28041 fi
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28043 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28044 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28045   FDLIBS="-lz"
28046 fi
28047
28048 have_zlib=no
28049 if test x$FDLIBS = x-lz; then
28050    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28051
28052    have_zlib=yes
28053 fi
28054
28055 support_acl=auto
28056 # Check whether --enable-acl was given.
28057 if test "${enable_acl+set}" = set; then :
28058   enableval=$enable_acl;
28059        if test x$enableval = xyes; then
28060           support_acl=yes
28061        elif test x$enableval = xno; then
28062           support_acl=no
28063        fi
28064
28065
28066 fi
28067
28068
28069 have_acl=no
28070 have_extended_acl=no
28071 if test x$support_acl = xyes -o x$support_acl = xauto; then
28072    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28073 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28074
28075 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28076
28077 fi
28078
28079
28080    ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28081 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28082
28083           have_acl=yes
28084
28085 else
28086
28087           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28088 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28089 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28090   $as_echo_n "(cached) " >&6
28091 else
28092   ac_check_lib_save_LIBS=$LIBS
28093 LIBS="-lacl  $LIBS"
28094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28095 /* end confdefs.h.  */
28096
28097 /* Override any GCC internal prototype to avoid an error.
28098    Use char because int might match the return type of a GCC
28099    builtin and then its argument prototype would still apply.  */
28100 #ifdef __cplusplus
28101 extern "C"
28102 #endif
28103 char acl_get_file ();
28104 int
28105 main ()
28106 {
28107 return acl_get_file ();
28108   ;
28109   return 0;
28110 }
28111 _ACEOF
28112 if ac_fn_c_try_link "$LINENO"; then :
28113   ac_cv_lib_acl_acl_get_file=yes
28114 else
28115   ac_cv_lib_acl_acl_get_file=no
28116 fi
28117 rm -f core conftest.err conftest.$ac_objext \
28118     conftest$ac_exeext conftest.$ac_ext
28119 LIBS=$ac_check_lib_save_LIBS
28120 fi
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28122 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28123 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28124
28125                  have_acl=yes;
28126                  FDLIBS="-lacl $FDLIBS"
28127
28128 else
28129
28130                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28131 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28132 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28133   $as_echo_n "(cached) " >&6
28134 else
28135   ac_check_lib_save_LIBS=$LIBS
28136 LIBS="-lpacl  $LIBS"
28137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28138 /* end confdefs.h.  */
28139
28140 /* Override any GCC internal prototype to avoid an error.
28141    Use char because int might match the return type of a GCC
28142    builtin and then its argument prototype would still apply.  */
28143 #ifdef __cplusplus
28144 extern "C"
28145 #endif
28146 char acl_get_file ();
28147 int
28148 main ()
28149 {
28150 return acl_get_file ();
28151   ;
28152   return 0;
28153 }
28154 _ACEOF
28155 if ac_fn_c_try_link "$LINENO"; then :
28156   ac_cv_lib_pacl_acl_get_file=yes
28157 else
28158   ac_cv_lib_pacl_acl_get_file=no
28159 fi
28160 rm -f core conftest.err conftest.$ac_objext \
28161     conftest$ac_exeext conftest.$ac_ext
28162 LIBS=$ac_check_lib_save_LIBS
28163 fi
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28165 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28166 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28167
28168                         have_acl=yes;
28169                         FDLIBS="-lpacl $FDLIBS"
28170
28171 else
28172
28173                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28174 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28175 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28176   $as_echo_n "(cached) " >&6
28177 else
28178   ac_check_lib_save_LIBS=$LIBS
28179 LIBS="-lsec  $LIBS"
28180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28181 /* end confdefs.h.  */
28182
28183 /* Override any GCC internal prototype to avoid an error.
28184    Use char because int might match the return type of a GCC
28185    builtin and then its argument prototype would still apply.  */
28186 #ifdef __cplusplus
28187 extern "C"
28188 #endif
28189 char acltotext ();
28190 int
28191 main ()
28192 {
28193 return acltotext ();
28194   ;
28195   return 0;
28196 }
28197 _ACEOF
28198 if ac_fn_c_try_link "$LINENO"; then :
28199   ac_cv_lib_sec_acltotext=yes
28200 else
28201   ac_cv_lib_sec_acltotext=no
28202 fi
28203 rm -f core conftest.err conftest.$ac_objext \
28204     conftest$ac_exeext conftest.$ac_ext
28205 LIBS=$ac_check_lib_save_LIBS
28206 fi
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28208 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28209 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28210
28211                                have_acl=yes;
28212                                FDLIBS="-lsec $FDLIBS"
28213
28214                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28215 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28216 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28217   $as_echo_n "(cached) " >&6
28218 else
28219   ac_check_lib_save_LIBS=$LIBS
28220 LIBS="-lsec  $LIBS"
28221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28222 /* end confdefs.h.  */
28223
28224 /* Override any GCC internal prototype to avoid an error.
28225    Use char because int might match the return type of a GCC
28226    builtin and then its argument prototype would still apply.  */
28227 #ifdef __cplusplus
28228 extern "C"
28229 #endif
28230 char acl_totext ();
28231 int
28232 main ()
28233 {
28234 return acl_totext ();
28235   ;
28236   return 0;
28237 }
28238 _ACEOF
28239 if ac_fn_c_try_link "$LINENO"; then :
28240   ac_cv_lib_sec_acl_totext=yes
28241 else
28242   ac_cv_lib_sec_acl_totext=no
28243 fi
28244 rm -f core conftest.err conftest.$ac_objext \
28245     conftest$ac_exeext conftest.$ac_ext
28246 LIBS=$ac_check_lib_save_LIBS
28247 fi
28248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28249 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28250 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28251
28252                                       have_extended_acl=yes
28253
28254
28255 fi
28256
28257
28258
28259 fi
28260
28261
28262
28263 fi
28264
28265
28266
28267 fi
28268
28269
28270
28271 fi
28272
28273
28274    if test x$support_acl = xyes -a $have_acl != yes; then
28275       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28276   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28277    else
28278       if test $have_acl = yes; then
28279
28280 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28281
28282       fi
28283
28284       if test $have_extended_acl = yes; then
28285
28286 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28287
28288       fi
28289    fi
28290 fi
28291
28292 support_xattr=auto
28293 # Check whether --enable-xattr was given.
28294 if test "${enable_xattr+set}" = set; then :
28295   enableval=$enable_xattr;
28296        if test x$enableval = xyes; then
28297           support_xattr=yes
28298        elif test x$enableval = xno; then
28299           support_xattr=no
28300        fi
28301
28302
28303 fi
28304
28305
28306 have_xattr=no
28307 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28308             ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28309 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28310
28311 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28312
28313 fi
28314
28315
28316    ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28317 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28318
28319 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28320
28321 fi
28322
28323
28324    for ac_func in extattr_get_link extattr_set_link extattr_list_link
28325 do :
28326   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28328 eval as_val=\$$as_ac_var
28329    if test "x$as_val" = x""yes; then :
28330   cat >>confdefs.h <<_ACEOF
28331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28332 _ACEOF
28333
28334           have_xattr=yes
28335
28336 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28337
28338
28339 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28340
28341
28342 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28343
28344
28345
28346 fi
28347 done
28348
28349
28350    if test $have_xattr = no; then
28351       for ac_func in extattr_get_file extattr_set_file extattr_list_file
28352 do :
28353   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28354 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28355 eval as_val=\$$as_ac_var
28356    if test "x$as_val" = x""yes; then :
28357   cat >>confdefs.h <<_ACEOF
28358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28359 _ACEOF
28360
28361              have_xattr=yes
28362
28363 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28364
28365
28366 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28367
28368
28369 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28370
28371
28372
28373 fi
28374 done
28375
28376    fi
28377
28378    if test $have_xattr = yes; then
28379       have_extattr_string_in_libc=no
28380       for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28381 do :
28382   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28383 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28384 eval as_val=\$$as_ac_var
28385    if test "x$as_val" = x""yes; then :
28386   cat >>confdefs.h <<_ACEOF
28387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28388 _ACEOF
28389
28390              have_extattr_string_in_libc=yes
28391
28392 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28393
28394
28395 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28396
28397
28398
28399 fi
28400 done
28401
28402
28403                         if test $have_extattr_string_in_libc = no; then
28404          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28405 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28406 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28407   $as_echo_n "(cached) " >&6
28408 else
28409   ac_check_lib_save_LIBS=$LIBS
28410 LIBS="-lutil  $LIBS"
28411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28412 /* end confdefs.h.  */
28413
28414 /* Override any GCC internal prototype to avoid an error.
28415    Use char because int might match the return type of a GCC
28416    builtin and then its argument prototype would still apply.  */
28417 #ifdef __cplusplus
28418 extern "C"
28419 #endif
28420 char extattr_namespace_to_string extattr_string_to_namespace ();
28421 int
28422 main ()
28423 {
28424 return extattr_namespace_to_string extattr_string_to_namespace ();
28425   ;
28426   return 0;
28427 }
28428 _ACEOF
28429 if ac_fn_c_try_link "$LINENO"; then :
28430   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28431 else
28432   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28433 fi
28434 rm -f core conftest.err conftest.$ac_objext \
28435     conftest$ac_exeext conftest.$ac_ext
28436 LIBS=$ac_check_lib_save_LIBS
28437 fi
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28439 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28440 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28441
28442
28443 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28444
28445
28446 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28447
28448                 FDLIBS="-lutil $FDLIBS"
28449
28450
28451 fi
28452
28453       fi
28454    fi
28455
28456             if test $have_xattr = no; then
28457       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28458 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28459
28460 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28461
28462 fi
28463
28464
28465       for ac_func in llistxattr lgetxattr lsetxattr
28466 do :
28467   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28469 eval as_val=\$$as_ac_var
28470    if test "x$as_val" = x""yes; then :
28471   cat >>confdefs.h <<_ACEOF
28472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28473 _ACEOF
28474
28475              have_xattr=yes
28476
28477 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28478
28479
28480 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28481
28482
28483 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28484
28485
28486
28487 fi
28488 done
28489
28490
28491       if test $have_xattr = no; then
28492          for ac_func in listxattr getxattr setxattr
28493 do :
28494   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28495 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28496 eval as_val=\$$as_ac_var
28497    if test "x$as_val" = x""yes; then :
28498   cat >>confdefs.h <<_ACEOF
28499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28500 _ACEOF
28501
28502                 have_xattr=yes
28503
28504 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28505
28506
28507 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28508
28509
28510 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28511
28512
28513
28514 fi
28515 done
28516
28517       fi
28518    fi
28519
28520             if test $have_xattr = no; then
28521       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28522 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28523
28524 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28525
28526 fi
28527
28528
28529       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28530 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28531
28532 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28533
28534 fi
28535
28536
28537       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28538 if test "x$ac_cv_header_attr_h" = x""yes; then :
28539
28540 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28541
28542 fi
28543
28544
28545
28546       for ac_func in openat fstatat unlinkat fchownat futimesat
28547 do :
28548   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28550 eval as_val=\$$as_ac_var
28551    if test "x$as_val" = x""yes; then :
28552   cat >>confdefs.h <<_ACEOF
28553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28554 _ACEOF
28555
28556              have_xattr=yes
28557
28558 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28559
28560
28561 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28562
28563
28564 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28565
28566
28567 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28568
28569
28570 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28571
28572
28573
28574 fi
28575 done
28576
28577
28578       if test $have_xattr = yes; then
28579          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28580 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28581 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28582   $as_echo_n "(cached) " >&6
28583 else
28584   ac_check_lib_save_LIBS=$LIBS
28585 LIBS="-lnvpair  $LIBS"
28586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28587 /* end confdefs.h.  */
28588
28589 /* Override any GCC internal prototype to avoid an error.
28590    Use char because int might match the return type of a GCC
28591    builtin and then its argument prototype would still apply.  */
28592 #ifdef __cplusplus
28593 extern "C"
28594 #endif
28595 char nvlist_next_nvpair ();
28596 int
28597 main ()
28598 {
28599 return nvlist_next_nvpair ();
28600   ;
28601   return 0;
28602 }
28603 _ACEOF
28604 if ac_fn_c_try_link "$LINENO"; then :
28605   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28606 else
28607   ac_cv_lib_nvpair_nvlist_next_nvpair=no
28608 fi
28609 rm -f core conftest.err conftest.$ac_objext \
28610     conftest$ac_exeext conftest.$ac_ext
28611 LIBS=$ac_check_lib_save_LIBS
28612 fi
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28614 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28615 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28616
28617
28618 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28619
28620                 FDLIBS="-lnvpair $FDLIBS"
28621
28622
28623 fi
28624
28625       fi
28626    fi
28627
28628    if test x$support_xattr = xyes -a $have_xattr != yes; then
28629       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28630   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28631    else
28632       if test $have_xattr = yes; then
28633
28634 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28635
28636       fi
28637    fi
28638 fi
28639
28640 PTHREAD_LIB=""
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28642 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28643 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28644   $as_echo_n "(cached) " >&6
28645 else
28646   ac_check_lib_save_LIBS=$LIBS
28647 LIBS="-lpthread  $LIBS"
28648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28649 /* end confdefs.h.  */
28650
28651 /* Override any GCC internal prototype to avoid an error.
28652    Use char because int might match the return type of a GCC
28653    builtin and then its argument prototype would still apply.  */
28654 #ifdef __cplusplus
28655 extern "C"
28656 #endif
28657 char pthread_create ();
28658 int
28659 main ()
28660 {
28661 return pthread_create ();
28662   ;
28663   return 0;
28664 }
28665 _ACEOF
28666 if ac_fn_c_try_link "$LINENO"; then :
28667   ac_cv_lib_pthread_pthread_create=yes
28668 else
28669   ac_cv_lib_pthread_pthread_create=no
28670 fi
28671 rm -f core conftest.err conftest.$ac_objext \
28672     conftest$ac_exeext conftest.$ac_ext
28673 LIBS=$ac_check_lib_save_LIBS
28674 fi
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28676 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28677 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28678   PTHREAD_LIB="-lpthread"
28679 else
28680
28681        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28682 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28683 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28684   $as_echo_n "(cached) " >&6
28685 else
28686   ac_check_lib_save_LIBS=$LIBS
28687 LIBS="-lpthreads  $LIBS"
28688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28689 /* end confdefs.h.  */
28690
28691 /* Override any GCC internal prototype to avoid an error.
28692    Use char because int might match the return type of a GCC
28693    builtin and then its argument prototype would still apply.  */
28694 #ifdef __cplusplus
28695 extern "C"
28696 #endif
28697 char pthread_create ();
28698 int
28699 main ()
28700 {
28701 return pthread_create ();
28702   ;
28703   return 0;
28704 }
28705 _ACEOF
28706 if ac_fn_c_try_link "$LINENO"; then :
28707   ac_cv_lib_pthreads_pthread_create=yes
28708 else
28709   ac_cv_lib_pthreads_pthread_create=no
28710 fi
28711 rm -f core conftest.err conftest.$ac_objext \
28712     conftest$ac_exeext conftest.$ac_ext
28713 LIBS=$ac_check_lib_save_LIBS
28714 fi
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28716 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28717 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28718   PTHREAD_LIB="-lpthreads"
28719 else
28720
28721               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28722 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28723 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28724   $as_echo_n "(cached) " >&6
28725 else
28726   ac_check_lib_save_LIBS=$LIBS
28727 LIBS="-lc_r  $LIBS"
28728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28729 /* end confdefs.h.  */
28730
28731 /* Override any GCC internal prototype to avoid an error.
28732    Use char because int might match the return type of a GCC
28733    builtin and then its argument prototype would still apply.  */
28734 #ifdef __cplusplus
28735 extern "C"
28736 #endif
28737 char pthread_create ();
28738 int
28739 main ()
28740 {
28741 return pthread_create ();
28742   ;
28743   return 0;
28744 }
28745 _ACEOF
28746 if ac_fn_c_try_link "$LINENO"; then :
28747   ac_cv_lib_c_r_pthread_create=yes
28748 else
28749   ac_cv_lib_c_r_pthread_create=no
28750 fi
28751 rm -f core conftest.err conftest.$ac_objext \
28752     conftest$ac_exeext conftest.$ac_ext
28753 LIBS=$ac_check_lib_save_LIBS
28754 fi
28755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28756 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28757 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28758   PTHREAD_LIB="-lc_r"
28759 else
28760
28761                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28762 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28763
28764 fi
28765
28766
28767
28768 fi
28769
28770
28771
28772 fi
28773
28774
28775
28776 fi
28777
28778
28779 for ac_header in sys/prctl.h sys/capability.h
28780 do :
28781   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28782 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28783 eval as_val=\$$as_ac_Header
28784    if test "x$as_val" = x""yes; then :
28785   cat >>confdefs.h <<_ACEOF
28786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28787 _ACEOF
28788
28789 fi
28790
28791 done
28792
28793 for ac_func in prctl setreuid
28794 do :
28795   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28796 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28797 eval as_val=\$$as_ac_var
28798    if test "x$as_val" = x""yes; then :
28799   cat >>confdefs.h <<_ACEOF
28800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28801 _ACEOF
28802
28803 fi
28804 done
28805
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28807 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28808 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28809   $as_echo_n "(cached) " >&6
28810 else
28811   ac_check_lib_save_LIBS=$LIBS
28812 LIBS="-lcap  $LIBS"
28813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28814 /* end confdefs.h.  */
28815
28816 /* Override any GCC internal prototype to avoid an error.
28817    Use char because int might match the return type of a GCC
28818    builtin and then its argument prototype would still apply.  */
28819 #ifdef __cplusplus
28820 extern "C"
28821 #endif
28822 char cap_set_proc ();
28823 int
28824 main ()
28825 {
28826 return cap_set_proc ();
28827   ;
28828   return 0;
28829 }
28830 _ACEOF
28831 if ac_fn_c_try_link "$LINENO"; then :
28832   ac_cv_lib_cap_cap_set_proc=yes
28833 else
28834   ac_cv_lib_cap_cap_set_proc=no
28835 fi
28836 rm -f core conftest.err conftest.$ac_objext \
28837     conftest$ac_exeext conftest.$ac_ext
28838 LIBS=$ac_check_lib_save_LIBS
28839 fi
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28841 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28842 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28843   CAP_LIBS="-lcap"
28844 else
28845   CAP_LIBS=
28846 fi
28847
28848 if test x$CAP_LIBS = x-lcap; then
28849
28850 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28851
28852 fi
28853
28854
28855
28856 $as_echo "#define FDLIBS 1" >>confdefs.h
28857
28858
28859 CFLAGS=${CFLAGS--O}
28860
28861 if test x$have_gcc = xyes ; then
28862    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28863    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28864 fi
28865 LDFLAGS=${LDFLAGS--O}
28866 DB_LIBS="${SQL_LFLAGS}"
28867 CPPFLAGS="$CPPFLAGS"
28868 CFLAGS="$CFLAGS"
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885 OBJLIST=
28886
28887
28888 lld="lld"
28889 llu="llu"
28890
28891 WCFLAGS=
28892 WLDFLAGS=
28893
28894 PFILES="platforms/Makefile"
28895 PSCMD="ps -e"
28896 WIN32=
28897 MACOSX=
28898
28899 hostname=`uname -n | cut -d '.' -f 1`
28900 if test x${hostname} = x ; then
28901    hostname="localhost"
28902 fi
28903 ping -c 1 $hostname 2>/dev/null 1>/dev/null
28904 if test ! $? = 0; then
28905   hostname="localhost"
28906 fi
28907
28908 case "$DISTNAME" in
28909 aix)
28910    DISTVER=`uname -r`
28911    PSCMD="ps -e -o pid,comm"
28912    PFILES="${PFILES} \
28913       platforms/aix/Makefile"
28914    TAPEDRIVE="/dev/rmt0.1"
28915   ;;
28916 alpha)
28917    DISTVER=`uname -r`
28918    PTHREAD_LIB="-lpthread -lexc"
28919    if test "${CC}" = "gcc" ; then
28920       lld="lld"
28921       llu="llu"
28922    else
28923       lld="ld"
28924       llu="lu"
28925    fi
28926    TAPEDRIVE="/dev/nrmt0"
28927   ;;
28928 bsdi)
28929    DISTVER=`uname -a |awk '{print $3}'`
28930    TAPEDRIVE="/dev/nrmt0"
28931    PTHREAD_LIB="-pthread"
28932    CFLAGS="${CFLAGS} -pthread"
28933    PSCMD="ps -ax -o pid,command"
28934    lld="qd"
28935    llu="qu"
28936    PFILES="${PFILES} \
28937        platforms/bsdi/Makefile \
28938        platforms/bsdi/bacula-fd \
28939        platforms/bsdi/bacula-sd \
28940        platforms/bsdi/bacula-dir"
28941    largefile_support="yes"
28942   ;;
28943 cygwin)
28944    DISTVER=`uname -a |awk '{print $3}'`
28945    TAPEDRIVE="/dev/nrst0"
28946    WIN32=win32
28947    WCFLAGS="-mwindows"
28948    WLDFLAGS="-mwindows"
28949   ;;
28950 darwin)
28951    DISTVER=`uname -r`
28952    TAPEDRIVE="/dev/nst0"
28953    PSCMD="ps -e -o pid,command"
28954    MACOSX=macosx
28955    PFILES="${PFILES} \
28956       platforms/darwin/Makefile"
28957   ;;
28958 osx)
28959    DISTVER=`uname -r`
28960    TAPEDRIVE="/dev/nst0"
28961    PSCMD="ps -e -o pid,command"
28962    MACOSX=macosx
28963    PFILES="${PFILES} \
28964       platforms/osx/Makefile"
28965   ;;
28966 debian)
28967    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
28968       DISTNAME="ubuntu"
28969    fi
28970    DISTVER=`cat /etc/debian_version`
28971    if test -f /etc/lsb-release ; then
28972       . /etc/lsb-release
28973       if test "x$DISTRIB_ID" != "x" ; then
28974          DISTNAME=$DISTRIB_ID
28975       fi
28976       if test "x$DISTRIB_RELEASE" != "x" ; then
28977          DISTVER=$DISTRIB_RELEASE
28978       fi
28979    fi
28980    if test "$DISTNAME" = "Ubuntu" ; then
28981       DISTNAME="ubuntu"
28982    fi
28983    TAPEDRIVE="/dev/nst0"
28984    PSCMD="ps -e -o pid,command"
28985    if test "$DISTNAME" = "ubuntu" ; then
28986       PFILES="${PFILES} \
28987          platforms/ubuntu/Makefile \
28988          platforms/ubuntu/bacula-fd \
28989          platforms/ubuntu/bacula-sd \
28990          platforms/ubuntu/bacula-dir"
28991    else
28992       PFILES="${PFILES} \
28993          platforms/debian/Makefile \
28994          platforms/debian/bacula-fd \
28995          platforms/debian/bacula-sd \
28996          platforms/debian/bacula-dir"
28997    fi
28998   ;;
28999 freebsd)
29000    DISTVER=`uname -a |awk '{print $3}'`
29001    VER=`echo $DISTVER | cut -c 1`
29002    if test x$VER = x4 ; then
29003       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29004       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29005    fi
29006    lld="qd"
29007    llu="qu"
29008    TAPEDRIVE="/dev/nrsa0"
29009    PSCMD="ps -ax -o pid,command"
29010    PFILES="${PFILES} \
29011        platforms/freebsd/Makefile \
29012        platforms/freebsd/bacula-fd \
29013        platforms/freebsd/bacula-sd \
29014        platforms/freebsd/bacula-dir"
29015    largefile_support="yes"
29016   ;;
29017 hpux)
29018    PSCMD="UNIX95=1; ps -e -o pid,comm"
29019    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29020    DISTVER=`uname -r`
29021    TAPEDRIVE="/dev/rmt/0hnb"
29022    PTHREAD_LIB="-lpthread"
29023    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29024
29025   ;;
29026 irix)
29027    DISTVER=`uname -r`
29028    TAPEDRIVE="/dev/rmt/0cbn"
29029    PSCMD="ps -e -o pid,comm"
29030    PFILES="${PFILES} \
29031        platforms/irix/Makefile \
29032        platforms/irix/bacula-fd \
29033        platforms/irix/bacula-sd \
29034        platforms/irix/bacula-dir"
29035   ;;
29036 netbsd)
29037    DISTVER=`uname -a |awk '{print $3}'`
29038    lld="qd"
29039    llu="qu"
29040    TAPEDRIVE="/dev/nrst0"
29041    PSCMD="ps -ax -o pid,command"
29042    PTHREAD_LIB="-pthread"
29043    CFLAGS="${CFLAGS} -pthread"
29044   ;;
29045 openbsd)
29046    DISTVER=`uname -a |awk '{print $3}'`
29047    lld="qd"
29048    llu="qu"
29049    TAPEDRIVE="/dev/nrst0"
29050    PSCMD="ps -ax -o pid,command"
29051    PTHREAD_LIB="-pthread"
29052    CFLAGS="${CFLAGS} -pthread"
29053    PFILES="${PFILES} \
29054        platforms/openbsd/Makefile \
29055        platforms/openbsd/bacula-fd \
29056        platforms/openbsd/bacula-sd \
29057        platforms/openbsd/bacula-dir"
29058   ;;
29059 redhat)
29060    if test -f /etc/whitebox-release ; then
29061       f=/etc/whitebox-release
29062    else
29063       f=/etc/redhat-release
29064    fi
29065    if test `cat $f | grep release |\
29066          cut -f 3 -d ' '`x = "Enterprise"x ; then
29067       DISTVER="Enterprise "`cat $f | grep release |\
29068           cut -f 6 -d ' '`
29069    else
29070        DISTVER=`cat /etc/redhat-release | grep release |\
29071            cut -f 5 -d ' '`
29072    fi
29073    TAPEDRIVE="/dev/nst0"
29074    PSCMD="ps -e -o pid,command"
29075    PFILES="${PFILES} \
29076        platforms/redhat/Makefile \
29077        platforms/redhat/bacula-fd \
29078        platforms/redhat/bacula-sd \
29079        platforms/redhat/bacula-dir
29080        "
29081   ;;
29082 mandrake)
29083    DISTVER=`cat /etc/mandrake-release | grep release |\
29084       cut -f 5 -d ' '`
29085    TAPEDRIVE="/dev/nst0"
29086    PSCMD="ps -e -o pid,command"
29087    PFILES="${PFILES} \
29088        platforms/mandrake/Makefile \
29089        platforms/mandrake/bacula-fd \
29090        platforms/mandrake/bacula-sd \
29091        platforms/mandrake/bacula-dir \
29092        "
29093   ;;
29094 gentoo)
29095    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29096    TAPEDRIVE="/dev/nst0"
29097    PSCMD="ps -e -o pid,command"
29098    PFILES="${PFILES} \
29099        platforms/gentoo/Makefile \
29100     platforms/gentoo/bacula-init \
29101        platforms/gentoo/bacula-fd \
29102        platforms/gentoo/bacula-sd \
29103        platforms/gentoo/bacula-dir"
29104   ;;
29105 slackware)
29106    DISTVER=`cat /etc/slackware-version`
29107    TAPEDRIVE="/dev/nst0"
29108    PSCMD="ps -e -o pid,command"
29109    PFILES="${PFILES} \
29110        platforms/slackware/Makefile \
29111        platforms/slackware/rc.bacula-fd \
29112        platforms/slackware/rc.bacula-sd \
29113        platforms/slackware/rc.bacula-dir\
29114        platforms/slackware/functions.bacula"
29115   ;;
29116 solaris)
29117    DISTVER=`uname -r`
29118    TAPEDRIVE="/dev/rmt/0cbn"
29119    PSCMD="ps -e -o pid,comm"
29120    PFILES="${PFILES} \
29121        platforms/solaris/Makefile \
29122        platforms/solaris/bacula-fd \
29123        platforms/solaris/bacula-sd \
29124        platforms/solaris/bacula-dir"
29125    if test x$DISTVER = x5.6 ; then
29126        $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29127
29128    fi
29129    LIBS="$LIBS -lresolv -lrt"
29130   ;;
29131 suse)
29132    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29133        cut -f 3 -d ' '`
29134    TAPEDRIVE="/dev/nst0"
29135    PSCMD="ps -e -o pid,command"
29136    PFILES="${PFILES} \
29137        platforms/suse/Makefile \
29138        platforms/suse/bacula-fd \
29139        platforms/suse/bacula-sd \
29140        platforms/suse/bacula-dir"
29141   ;;
29142 suse5)
29143    DISTNAME=suse
29144    DISTVER=5.x
29145    TAPEDRIVE="/dev/nst0"
29146    PSCMD="ps -e -o pid,command"
29147    PFILES="${PFILES} \
29148        platforms/suse/Makefile \
29149        platforms/suse/bacula-fd \
29150        platforms/suse/bacula-sd \
29151        platforms/suse/bacula-dir"
29152   ;;
29153 unknown)
29154    DISTVER=unknown
29155    TAPEDRIVE="/dev/nst0"
29156   ;;
29157 *)
29158   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29159   ;;
29160 esac
29161
29162
29163
29164 LIBS="$PTHREAD_LIB $LIBS"
29165
29166 cat >>confdefs.h <<_ACEOF
29167 #define lld "$lld"
29168 _ACEOF
29169
29170 cat >>confdefs.h <<_ACEOF
29171 #define llu "$llu"
29172 _ACEOF
29173
29174
29175
29176
29177
29178
29179
29180
29181 MCOMMON=./autoconf/Make.common
29182
29183
29184 if test "x${subsysdir}" = "x${sbindir}" ; then
29185    echo " "
29186    echo " "
29187    echo "You have set both --sbindir and --with-subsys-dir"
29188    echo "  equal to: ${subsysdir} "
29189    echo "This is not permitted. Please reconfigure."
29190    echo " "
29191    echo "Aborting configuration ..."
29192    echo " "
29193    echo " "
29194    exit 1
29195 fi
29196
29197 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
29198
29199 ac_config_commands="$ac_config_commands default"
29200
29201 cat >confcache <<\_ACEOF
29202 # This file is a shell script that caches the results of configure
29203 # tests run on this system so they can be shared between configure
29204 # scripts and configure runs, see configure's option --config-cache.
29205 # It is not useful on other systems.  If it contains results you don't
29206 # want to keep, you may remove or edit it.
29207 #
29208 # config.status only pays attention to the cache file if you give it
29209 # the --recheck option to rerun configure.
29210 #
29211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29213 # following values.
29214
29215 _ACEOF
29216
29217 # The following way of writing the cache mishandles newlines in values,
29218 # but we know of no workaround that is simple, portable, and efficient.
29219 # So, we kill variables containing newlines.
29220 # Ultrix sh set writes to stderr and can't be redirected directly,
29221 # and sets the high bit in the cache file unless we assign to the vars.
29222 (
29223   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29224     eval ac_val=\$$ac_var
29225     case $ac_val in #(
29226     *${as_nl}*)
29227       case $ac_var in #(
29228       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29230       esac
29231       case $ac_var in #(
29232       _ | IFS | as_nl) ;; #(
29233       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29234       *) { eval $ac_var=; unset $ac_var;} ;;
29235       esac ;;
29236     esac
29237   done
29238
29239   (set) 2>&1 |
29240     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29241     *${as_nl}ac_space=\ *)
29242       # `set' does not quote correctly, so add quotes: double-quote
29243       # substitution turns \\\\ into \\, and sed turns \\ into \.
29244       sed -n \
29245         "s/'/'\\\\''/g;
29246           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29247       ;; #(
29248     *)
29249       # `set' quotes correctly as required by POSIX, so do not add quotes.
29250       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29251       ;;
29252     esac |
29253     sort
29254 ) |
29255   sed '
29256      /^ac_cv_env_/b end
29257      t clear
29258      :clear
29259      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29260      t end
29261      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29262      :end' >>confcache
29263 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29264   if test -w "$cache_file"; then
29265     test "x$cache_file" != "x/dev/null" &&
29266       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29267 $as_echo "$as_me: updating cache $cache_file" >&6;}
29268     cat confcache >$cache_file
29269   else
29270     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29271 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29272   fi
29273 fi
29274 rm -f confcache
29275
29276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29277 # Let make expand exec_prefix.
29278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29279
29280 DEFS=-DHAVE_CONFIG_H
29281
29282 ac_libobjs=
29283 ac_ltlibobjs=
29284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29285   # 1. Remove the extension, and $U if already installed.
29286   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29287   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29288   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29289   #    will be set to the directory where LIBOBJS objects are built.
29290   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29291   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29292 done
29293 LIBOBJS=$ac_libobjs
29294
29295 LTLIBOBJS=$ac_ltlibobjs
29296
29297
29298
29299 : ${CONFIG_STATUS=./config.status}
29300 ac_write_fail=0
29301 ac_clean_files_save=$ac_clean_files
29302 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29304 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29305 as_write_fail=0
29306 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29307 #! $SHELL
29308 # Generated by $as_me.
29309 # Run this file to recreate the current configuration.
29310 # Compiler output produced by configure, useful for debugging
29311 # configure, is in config.log if it exists.
29312
29313 debug=false
29314 ac_cs_recheck=false
29315 ac_cs_silent=false
29316
29317 SHELL=\${CONFIG_SHELL-$SHELL}
29318 export SHELL
29319 _ASEOF
29320 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29321 ## -------------------- ##
29322 ## M4sh Initialization. ##
29323 ## -------------------- ##
29324
29325 # Be more Bourne compatible
29326 DUALCASE=1; export DUALCASE # for MKS sh
29327 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29328   emulate sh
29329   NULLCMD=:
29330   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29331   # is contrary to our usage.  Disable this feature.
29332   alias -g '${1+"$@"}'='"$@"'
29333   setopt NO_GLOB_SUBST
29334 else
29335   case `(set -o) 2>/dev/null` in #(
29336   *posix*) :
29337     set -o posix ;; #(
29338   *) :
29339      ;;
29340 esac
29341 fi
29342
29343
29344 as_nl='
29345 '
29346 export as_nl
29347 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29348 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29350 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29351 # Prefer a ksh shell builtin over an external printf program on Solaris,
29352 # but without wasting forks for bash or zsh.
29353 if test -z "$BASH_VERSION$ZSH_VERSION" \
29354     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29355   as_echo='print -r --'
29356   as_echo_n='print -rn --'
29357 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29358   as_echo='printf %s\n'
29359   as_echo_n='printf %s'
29360 else
29361   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29362     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29363     as_echo_n='/usr/ucb/echo -n'
29364   else
29365     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29366     as_echo_n_body='eval
29367       arg=$1;
29368       case $arg in #(
29369       *"$as_nl"*)
29370         expr "X$arg" : "X\\(.*\\)$as_nl";
29371         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29372       esac;
29373       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29374     '
29375     export as_echo_n_body
29376     as_echo_n='sh -c $as_echo_n_body as_echo'
29377   fi
29378   export as_echo_body
29379   as_echo='sh -c $as_echo_body as_echo'
29380 fi
29381
29382 # The user is always right.
29383 if test "${PATH_SEPARATOR+set}" != set; then
29384   PATH_SEPARATOR=:
29385   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29386     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29387       PATH_SEPARATOR=';'
29388   }
29389 fi
29390
29391
29392 # IFS
29393 # We need space, tab and new line, in precisely that order.  Quoting is
29394 # there to prevent editors from complaining about space-tab.
29395 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29396 # splitting by setting IFS to empty value.)
29397 IFS=" ""        $as_nl"
29398
29399 # Find who we are.  Look in the path if we contain no directory separator.
29400 case $0 in #((
29401   *[\\/]* ) as_myself=$0 ;;
29402   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29403 for as_dir in $PATH
29404 do
29405   IFS=$as_save_IFS
29406   test -z "$as_dir" && as_dir=.
29407     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29408   done
29409 IFS=$as_save_IFS
29410
29411      ;;
29412 esac
29413 # We did not find ourselves, most probably we were run as `sh COMMAND'
29414 # in which case we are not to be found in the path.
29415 if test "x$as_myself" = x; then
29416   as_myself=$0
29417 fi
29418 if test ! -f "$as_myself"; then
29419   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29420   exit 1
29421 fi
29422
29423 # Unset variables that we do not need and which cause bugs (e.g. in
29424 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29425 # suppresses any "Segmentation fault" message there.  '((' could
29426 # trigger a bug in pdksh 5.2.14.
29427 for as_var in BASH_ENV ENV MAIL MAILPATH
29428 do eval test x\${$as_var+set} = xset \
29429   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29430 done
29431 PS1='$ '
29432 PS2='> '
29433 PS4='+ '
29434
29435 # NLS nuisances.
29436 LC_ALL=C
29437 export LC_ALL
29438 LANGUAGE=C
29439 export LANGUAGE
29440
29441 # CDPATH.
29442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29443
29444
29445 # as_fn_error ERROR [LINENO LOG_FD]
29446 # ---------------------------------
29447 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29448 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29449 # script with status $?, using 1 if that was 0.
29450 as_fn_error ()
29451 {
29452   as_status=$?; test $as_status -eq 0 && as_status=1
29453   if test "$3"; then
29454     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29455     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29456   fi
29457   $as_echo "$as_me: error: $1" >&2
29458   as_fn_exit $as_status
29459 } # as_fn_error
29460
29461
29462 # as_fn_set_status STATUS
29463 # -----------------------
29464 # Set $? to STATUS, without forking.
29465 as_fn_set_status ()
29466 {
29467   return $1
29468 } # as_fn_set_status
29469
29470 # as_fn_exit STATUS
29471 # -----------------
29472 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29473 as_fn_exit ()
29474 {
29475   set +e
29476   as_fn_set_status $1
29477   exit $1
29478 } # as_fn_exit
29479
29480 # as_fn_unset VAR
29481 # ---------------
29482 # Portably unset VAR.
29483 as_fn_unset ()
29484 {
29485   { eval $1=; unset $1;}
29486 }
29487 as_unset=as_fn_unset
29488 # as_fn_append VAR VALUE
29489 # ----------------------
29490 # Append the text in VALUE to the end of the definition contained in VAR. Take
29491 # advantage of any shell optimizations that allow amortized linear growth over
29492 # repeated appends, instead of the typical quadratic growth present in naive
29493 # implementations.
29494 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29495   eval 'as_fn_append ()
29496   {
29497     eval $1+=\$2
29498   }'
29499 else
29500   as_fn_append ()
29501   {
29502     eval $1=\$$1\$2
29503   }
29504 fi # as_fn_append
29505
29506 # as_fn_arith ARG...
29507 # ------------------
29508 # Perform arithmetic evaluation on the ARGs, and store the result in the
29509 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29510 # must be portable across $(()) and expr.
29511 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29512   eval 'as_fn_arith ()
29513   {
29514     as_val=$(( $* ))
29515   }'
29516 else
29517   as_fn_arith ()
29518   {
29519     as_val=`expr "$@" || test $? -eq 1`
29520   }
29521 fi # as_fn_arith
29522
29523
29524 if expr a : '\(a\)' >/dev/null 2>&1 &&
29525    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29526   as_expr=expr
29527 else
29528   as_expr=false
29529 fi
29530
29531 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29532   as_basename=basename
29533 else
29534   as_basename=false
29535 fi
29536
29537 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29538   as_dirname=dirname
29539 else
29540   as_dirname=false
29541 fi
29542
29543 as_me=`$as_basename -- "$0" ||
29544 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29545          X"$0" : 'X\(//\)$' \| \
29546          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29547 $as_echo X/"$0" |
29548     sed '/^.*\/\([^/][^/]*\)\/*$/{
29549             s//\1/
29550             q
29551           }
29552           /^X\/\(\/\/\)$/{
29553             s//\1/
29554             q
29555           }
29556           /^X\/\(\/\).*/{
29557             s//\1/
29558             q
29559           }
29560           s/.*/./; q'`
29561
29562 # Avoid depending upon Character Ranges.
29563 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29564 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29565 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29566 as_cr_digits='0123456789'
29567 as_cr_alnum=$as_cr_Letters$as_cr_digits
29568
29569 ECHO_C= ECHO_N= ECHO_T=
29570 case `echo -n x` in #(((((
29571 -n*)
29572   case `echo 'xy\c'` in
29573   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29574   xy)  ECHO_C='\c';;
29575   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29576        ECHO_T=' ';;
29577   esac;;
29578 *)
29579   ECHO_N='-n';;
29580 esac
29581
29582 rm -f conf$$ conf$$.exe conf$$.file
29583 if test -d conf$$.dir; then
29584   rm -f conf$$.dir/conf$$.file
29585 else
29586   rm -f conf$$.dir
29587   mkdir conf$$.dir 2>/dev/null
29588 fi
29589 if (echo >conf$$.file) 2>/dev/null; then
29590   if ln -s conf$$.file conf$$ 2>/dev/null; then
29591     as_ln_s='ln -s'
29592     # ... but there are two gotchas:
29593     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29594     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29595     # In both cases, we have to default to `cp -p'.
29596     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29597       as_ln_s='cp -p'
29598   elif ln conf$$.file conf$$ 2>/dev/null; then
29599     as_ln_s=ln
29600   else
29601     as_ln_s='cp -p'
29602   fi
29603 else
29604   as_ln_s='cp -p'
29605 fi
29606 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29607 rmdir conf$$.dir 2>/dev/null
29608
29609
29610 # as_fn_mkdir_p
29611 # -------------
29612 # Create "$as_dir" as a directory, including parents if necessary.
29613 as_fn_mkdir_p ()
29614 {
29615
29616   case $as_dir in #(
29617   -*) as_dir=./$as_dir;;
29618   esac
29619   test -d "$as_dir" || eval $as_mkdir_p || {
29620     as_dirs=
29621     while :; do
29622       case $as_dir in #(
29623       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29624       *) as_qdir=$as_dir;;
29625       esac
29626       as_dirs="'$as_qdir' $as_dirs"
29627       as_dir=`$as_dirname -- "$as_dir" ||
29628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29629          X"$as_dir" : 'X\(//\)[^/]' \| \
29630          X"$as_dir" : 'X\(//\)$' \| \
29631          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29632 $as_echo X"$as_dir" |
29633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29634             s//\1/
29635             q
29636           }
29637           /^X\(\/\/\)[^/].*/{
29638             s//\1/
29639             q
29640           }
29641           /^X\(\/\/\)$/{
29642             s//\1/
29643             q
29644           }
29645           /^X\(\/\).*/{
29646             s//\1/
29647             q
29648           }
29649           s/.*/./; q'`
29650       test -d "$as_dir" && break
29651     done
29652     test -z "$as_dirs" || eval "mkdir $as_dirs"
29653   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29654
29655
29656 } # as_fn_mkdir_p
29657 if mkdir -p . 2>/dev/null; then
29658   as_mkdir_p='mkdir -p "$as_dir"'
29659 else
29660   test -d ./-p && rmdir ./-p
29661   as_mkdir_p=false
29662 fi
29663
29664 if test -x / >/dev/null 2>&1; then
29665   as_test_x='test -x'
29666 else
29667   if ls -dL / >/dev/null 2>&1; then
29668     as_ls_L_option=L
29669   else
29670     as_ls_L_option=
29671   fi
29672   as_test_x='
29673     eval sh -c '\''
29674       if test -d "$1"; then
29675         test -d "$1/.";
29676       else
29677         case $1 in #(
29678         -*)set "./$1";;
29679         esac;
29680         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29681         ???[sx]*):;;*)false;;esac;fi
29682     '\'' sh
29683   '
29684 fi
29685 as_executable_p=$as_test_x
29686
29687 # Sed expression to map a string onto a valid CPP name.
29688 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29689
29690 # Sed expression to map a string onto a valid variable name.
29691 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29692
29693
29694 exec 6>&1
29695 ## ----------------------------------- ##
29696 ## Main body of $CONFIG_STATUS script. ##
29697 ## ----------------------------------- ##
29698 _ASEOF
29699 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29700
29701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29702 # Save the log message, to keep $0 and so on meaningful, and to
29703 # report actual input values of CONFIG_FILES etc. instead of their
29704 # values after options handling.
29705 ac_log="
29706 This file was extended by $as_me, which was
29707 generated by GNU Autoconf 2.65.  Invocation command line was
29708
29709   CONFIG_FILES    = $CONFIG_FILES
29710   CONFIG_HEADERS  = $CONFIG_HEADERS
29711   CONFIG_LINKS    = $CONFIG_LINKS
29712   CONFIG_COMMANDS = $CONFIG_COMMANDS
29713   $ $0 $@
29714
29715 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29716 "
29717
29718 _ACEOF
29719
29720 case $ac_config_files in *"
29721 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29722 esac
29723
29724 case $ac_config_headers in *"
29725 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29726 esac
29727
29728
29729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29730 # Files that config.status was made for.
29731 config_files="$ac_config_files"
29732 config_headers="$ac_config_headers"
29733 config_commands="$ac_config_commands"
29734
29735 _ACEOF
29736
29737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29738 ac_cs_usage="\
29739 \`$as_me' instantiates files and other configuration actions
29740 from templates according to the current configuration.  Unless the files
29741 and actions are specified as TAGs, all are instantiated by default.
29742
29743 Usage: $0 [OPTION]... [TAG]...
29744
29745   -h, --help       print this help, then exit
29746   -V, --version    print version number and configuration settings, then exit
29747       --config     print configuration, then exit
29748   -q, --quiet, --silent
29749                    do not print progress messages
29750   -d, --debug      don't remove temporary files
29751       --recheck    update $as_me by reconfiguring in the same conditions
29752       --file=FILE[:TEMPLATE]
29753                    instantiate the configuration file FILE
29754       --header=FILE[:TEMPLATE]
29755                    instantiate the configuration header FILE
29756
29757 Configuration files:
29758 $config_files
29759
29760 Configuration headers:
29761 $config_headers
29762
29763 Configuration commands:
29764 $config_commands
29765
29766 Report bugs to the package provider."
29767
29768 _ACEOF
29769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29770 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29771 ac_cs_version="\\
29772 config.status
29773 configured by $0, generated by GNU Autoconf 2.65,
29774   with options \\"\$ac_cs_config\\"
29775
29776 Copyright (C) 2009 Free Software Foundation, Inc.
29777 This config.status script is free software; the Free Software Foundation
29778 gives unlimited permission to copy, distribute and modify it."
29779
29780 ac_pwd='$ac_pwd'
29781 srcdir='$srcdir'
29782 INSTALL='$INSTALL'
29783 AWK='$AWK'
29784 test -n "\$AWK" || AWK=awk
29785 _ACEOF
29786
29787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29788 # The default lists apply if the user does not specify any file.
29789 ac_need_defaults=:
29790 while test $# != 0
29791 do
29792   case $1 in
29793   --*=*)
29794     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29795     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29796     ac_shift=:
29797     ;;
29798   *)
29799     ac_option=$1
29800     ac_optarg=$2
29801     ac_shift=shift
29802     ;;
29803   esac
29804
29805   case $ac_option in
29806   # Handling of the options.
29807   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29808     ac_cs_recheck=: ;;
29809   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29810     $as_echo "$ac_cs_version"; exit ;;
29811   --config | --confi | --conf | --con | --co | --c )
29812     $as_echo "$ac_cs_config"; exit ;;
29813   --debug | --debu | --deb | --de | --d | -d )
29814     debug=: ;;
29815   --file | --fil | --fi | --f )
29816     $ac_shift
29817     case $ac_optarg in
29818     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29819     esac
29820     as_fn_append CONFIG_FILES " '$ac_optarg'"
29821     ac_need_defaults=false;;
29822   --header | --heade | --head | --hea )
29823     $ac_shift
29824     case $ac_optarg in
29825     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29826     esac
29827     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29828     ac_need_defaults=false;;
29829   --he | --h)
29830     # Conflict between --help and --header
29831     as_fn_error "ambiguous option: \`$1'
29832 Try \`$0 --help' for more information.";;
29833   --help | --hel | -h )
29834     $as_echo "$ac_cs_usage"; exit ;;
29835   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29836   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29837     ac_cs_silent=: ;;
29838
29839   # This is an error.
29840   -*) as_fn_error "unrecognized option: \`$1'
29841 Try \`$0 --help' for more information." ;;
29842
29843   *) as_fn_append ac_config_targets " $1"
29844      ac_need_defaults=false ;;
29845
29846   esac
29847   shift
29848 done
29849
29850 ac_configure_extra_args=
29851
29852 if $ac_cs_silent; then
29853   exec 6>/dev/null
29854   ac_configure_extra_args="$ac_configure_extra_args --silent"
29855 fi
29856
29857 _ACEOF
29858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29859 if \$ac_cs_recheck; then
29860   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29861   shift
29862   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29863   CONFIG_SHELL='$SHELL'
29864   export CONFIG_SHELL
29865   exec "\$@"
29866 fi
29867
29868 _ACEOF
29869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29870 exec 5>>config.log
29871 {
29872   echo
29873   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29874 ## Running $as_me. ##
29875 _ASBOX
29876   $as_echo "$ac_log"
29877 } >&5
29878
29879 _ACEOF
29880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29881 #
29882 # INIT-COMMANDS
29883 #
29884
29885
29886 # The HP-UX ksh and POSIX shell print the target directory to stdout
29887 # if CDPATH is set.
29888 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29889
29890 sed_quote_subst='$sed_quote_subst'
29891 double_quote_subst='$double_quote_subst'
29892 delay_variable_subst='$delay_variable_subst'
29893 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29894 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29895 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29896 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29897 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29898 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29899 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29900 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29901 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29902 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29903 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29904 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29905 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29906 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29907 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29908 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29909 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29910 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29911 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29912 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29913 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29914 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29915 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29916 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29917 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29918 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29919 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29920 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29921 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29922 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29923 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29924 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29925 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29926 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29927 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29928 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29929 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29930 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29931 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29932 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29933 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29934 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29935 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29936 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29937 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"`'
29938 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"`'
29939 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29940 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29941 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29942 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29943 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29944 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29945 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29946 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29947 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29948 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29949 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29950 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29951 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29952 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29953 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29954 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29955 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29956 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29957 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29958 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29959 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29960 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29961 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29962 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29963 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29964 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29965 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29966 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29967 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29968 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29969 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29970 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29971 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29972 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29973 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29974 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29975 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29976 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29977 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29978 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29979 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29980 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29981 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29982 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29983 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29984 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29985 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29986 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29987 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29988 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29989 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29990 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29991 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29992 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29993 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29994 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29995 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29996 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29997 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29998 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29999 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30000 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30001 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30002 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30003 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30004 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30005 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30006 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30007 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30008 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30009 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30010 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30011 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30012 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30013 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30014 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30015 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30016 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30017 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30018 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30019 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30020 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30021 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30022 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30023 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30024 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30025 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30026 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30027 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30028 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30029 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30030 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30031 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30032 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30033 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30034 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30035 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30036 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30037 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30038 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30039 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30040 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30041 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30042 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30043 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30044 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30045 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30046 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30047 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30048 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30049 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30050 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30051 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30052 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30053 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30054 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30055 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30056 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30057 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30058 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30059 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30060 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30061 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30062 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30063 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30064
30065 LTCC='$LTCC'
30066 LTCFLAGS='$LTCFLAGS'
30067 compiler='$compiler_DEFAULT'
30068
30069 # Quote evaled strings.
30070 for var in SED \
30071 GREP \
30072 EGREP \
30073 FGREP \
30074 LD \
30075 NM \
30076 LN_S \
30077 lt_SP2NL \
30078 lt_NL2SP \
30079 reload_flag \
30080 OBJDUMP \
30081 deplibs_check_method \
30082 file_magic_cmd \
30083 AR \
30084 AR_FLAGS \
30085 STRIP \
30086 RANLIB \
30087 CC \
30088 CFLAGS \
30089 compiler \
30090 lt_cv_sys_global_symbol_pipe \
30091 lt_cv_sys_global_symbol_to_cdecl \
30092 lt_cv_sys_global_symbol_to_c_name_address \
30093 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30094 SHELL \
30095 ECHO \
30096 lt_prog_compiler_no_builtin_flag \
30097 lt_prog_compiler_wl \
30098 lt_prog_compiler_pic \
30099 lt_prog_compiler_static \
30100 lt_cv_prog_compiler_c_o \
30101 need_locks \
30102 DSYMUTIL \
30103 NMEDIT \
30104 LIPO \
30105 OTOOL \
30106 OTOOL64 \
30107 shrext_cmds \
30108 export_dynamic_flag_spec \
30109 whole_archive_flag_spec \
30110 compiler_needs_object \
30111 with_gnu_ld \
30112 allow_undefined_flag \
30113 no_undefined_flag \
30114 hardcode_libdir_flag_spec \
30115 hardcode_libdir_flag_spec_ld \
30116 hardcode_libdir_separator \
30117 fix_srcfile_path \
30118 exclude_expsyms \
30119 include_expsyms \
30120 file_list_spec \
30121 variables_saved_for_relink \
30122 libname_spec \
30123 library_names_spec \
30124 soname_spec \
30125 finish_eval \
30126 old_striplib \
30127 striplib \
30128 compiler_lib_search_dirs \
30129 predep_objects \
30130 postdep_objects \
30131 predeps \
30132 postdeps \
30133 compiler_lib_search_path \
30134 LD_CXX \
30135 compiler_CXX \
30136 lt_prog_compiler_no_builtin_flag_CXX \
30137 lt_prog_compiler_wl_CXX \
30138 lt_prog_compiler_pic_CXX \
30139 lt_prog_compiler_static_CXX \
30140 lt_cv_prog_compiler_c_o_CXX \
30141 export_dynamic_flag_spec_CXX \
30142 whole_archive_flag_spec_CXX \
30143 compiler_needs_object_CXX \
30144 with_gnu_ld_CXX \
30145 allow_undefined_flag_CXX \
30146 no_undefined_flag_CXX \
30147 hardcode_libdir_flag_spec_CXX \
30148 hardcode_libdir_flag_spec_ld_CXX \
30149 hardcode_libdir_separator_CXX \
30150 fix_srcfile_path_CXX \
30151 exclude_expsyms_CXX \
30152 include_expsyms_CXX \
30153 file_list_spec_CXX \
30154 compiler_lib_search_dirs_CXX \
30155 predep_objects_CXX \
30156 postdep_objects_CXX \
30157 predeps_CXX \
30158 postdeps_CXX \
30159 compiler_lib_search_path_CXX; do
30160     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30161     *[\\\\\\\`\\"\\\$]*)
30162       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30163       ;;
30164     *)
30165       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30166       ;;
30167     esac
30168 done
30169
30170 # Double-quote double-evaled strings.
30171 for var in reload_cmds \
30172 old_postinstall_cmds \
30173 old_postuninstall_cmds \
30174 old_archive_cmds \
30175 extract_expsyms_cmds \
30176 old_archive_from_new_cmds \
30177 old_archive_from_expsyms_cmds \
30178 archive_cmds \
30179 archive_expsym_cmds \
30180 module_cmds \
30181 module_expsym_cmds \
30182 export_symbols_cmds \
30183 prelink_cmds \
30184 postinstall_cmds \
30185 postuninstall_cmds \
30186 finish_cmds \
30187 sys_lib_search_path_spec \
30188 sys_lib_dlsearch_path_spec \
30189 old_archive_cmds_CXX \
30190 old_archive_from_new_cmds_CXX \
30191 old_archive_from_expsyms_cmds_CXX \
30192 archive_cmds_CXX \
30193 archive_expsym_cmds_CXX \
30194 module_cmds_CXX \
30195 module_expsym_cmds_CXX \
30196 export_symbols_cmds_CXX \
30197 prelink_cmds_CXX; do
30198     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30199     *[\\\\\\\`\\"\\\$]*)
30200       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30201       ;;
30202     *)
30203       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30204       ;;
30205     esac
30206 done
30207
30208 # Fix-up fallback echo if it was mangled by the above quoting rules.
30209 case \$lt_ECHO in
30210 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30211   ;;
30212 esac
30213
30214 ac_aux_dir='$ac_aux_dir'
30215 xsi_shell='$xsi_shell'
30216 lt_shell_append='$lt_shell_append'
30217
30218 # See if we are running on zsh, and set the options which allow our
30219 # commands through without removal of \ escapes INIT.
30220 if test -n "\${ZSH_VERSION+set}" ; then
30221    setopt NO_GLOB_SUBST
30222 fi
30223
30224
30225     PACKAGE='$PACKAGE'
30226     VERSION='$VERSION'
30227     TIMESTAMP='$TIMESTAMP'
30228     RM='$RM'
30229     ofile='$ofile'
30230
30231
30232
30233
30234
30235 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30236     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30237     # from automake.
30238     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30239     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30240     LINGUAS="${LINGUAS-%UNSET%}"
30241
30242
30243 _ACEOF
30244
30245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30246
30247 # Handling of arguments.
30248 for ac_config_target in $ac_config_targets
30249 do
30250   case $ac_config_target in
30251     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30252     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30253     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30254     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30255     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30256     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30257     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30258     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30259     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30260     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30261     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30262     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30263     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30264     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30265     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30266     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30267     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30268     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30269     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30270     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30271     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30272     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30273     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30274     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30275     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30276     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30277     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30278     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30279     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30280     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30281     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30282     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30283     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30284     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30285     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30286     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30287     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30288     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30289     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30290     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30291     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30292     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30293     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30294     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30295     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30296     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30297     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30298     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30299     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30300     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30301     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30302     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30303     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30304     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30305     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30306     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30307     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30308     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30309     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30310     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30311     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30312     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30313     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30314     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30315     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30316     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30317     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30318     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30319     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30320     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30321     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30322     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30323     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30324     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30325     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30326     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30327     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30328     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30329     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30330     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30331     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30332     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30333     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30334     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30335     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30336     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30337     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30338     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30339     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30340     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30341     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30342     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30343     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30344     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30345     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30346     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30347     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30348     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30349     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30350     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30351     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30352     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30353     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30354     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30355     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30356     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30357     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30358     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30359     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30360     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30361     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30362     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30363     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30364     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30365     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30366     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30367     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30368     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30369
30370   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30371   esac
30372 done
30373
30374
30375 # If the user did not use the arguments to specify the items to instantiate,
30376 # then the envvar interface is used.  Set only those that are not.
30377 # We use the long form for the default assignment because of an extremely
30378 # bizarre bug on SunOS 4.1.3.
30379 if $ac_need_defaults; then
30380   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30381   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30382   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30383 fi
30384
30385 # Have a temporary directory for convenience.  Make it in the build tree
30386 # simply because there is no reason against having it here, and in addition,
30387 # creating and moving files from /tmp can sometimes cause problems.
30388 # Hook for its removal unless debugging.
30389 # Note that there is a small window in which the directory will not be cleaned:
30390 # after its creation but before its name has been assigned to `$tmp'.
30391 $debug ||
30392 {
30393   tmp=
30394   trap 'exit_status=$?
30395   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30396 ' 0
30397   trap 'as_fn_exit 1' 1 2 13 15
30398 }
30399 # Create a (secure) tmp directory for tmp files.
30400
30401 {
30402   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30403   test -n "$tmp" && test -d "$tmp"
30404 }  ||
30405 {
30406   tmp=./conf$$-$RANDOM
30407   (umask 077 && mkdir "$tmp")
30408 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30409
30410 # Set up the scripts for CONFIG_FILES section.
30411 # No need to generate them if there are no CONFIG_FILES.
30412 # This happens for instance with `./config.status config.h'.
30413 if test -n "$CONFIG_FILES"; then
30414
30415 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30416   ac_cs_awk_getline=:
30417   ac_cs_awk_pipe_init=
30418   ac_cs_awk_read_file='
30419       while ((getline aline < (F[key])) > 0)
30420         print(aline)
30421       close(F[key])'
30422   ac_cs_awk_pipe_fini=
30423 else
30424   ac_cs_awk_getline=false
30425   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30426   ac_cs_awk_read_file='
30427       print "|#_!!_#|"
30428       print "cat " F[key] " &&"
30429       '$ac_cs_awk_pipe_init
30430   # The final `:' finishes the AND list.
30431   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30432 fi
30433 ac_cr=`echo X | tr X '\015'`
30434 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30435 # But we know of no other shell where ac_cr would be empty at this
30436 # point, so we can use a bashism as a fallback.
30437 if test "x$ac_cr" = x; then
30438   eval ac_cr=\$\'\\r\'
30439 fi
30440 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30441 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30442   ac_cs_awk_cr='\r'
30443 else
30444   ac_cs_awk_cr=$ac_cr
30445 fi
30446
30447 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30448 _ACEOF
30449
30450 # Create commands to substitute file output variables.
30451 {
30452   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30453   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30454   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30455   echo "_ACAWK" &&
30456   echo "_ACEOF"
30457 } >conf$$files.sh &&
30458 . ./conf$$files.sh ||
30459   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30460 rm -f conf$$files.sh
30461
30462 {
30463   echo "cat >conf$$subs.awk <<_ACEOF" &&
30464   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30465   echo "_ACEOF"
30466 } >conf$$subs.sh ||
30467   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30468 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30469 ac_delim='%!_!# '
30470 for ac_last_try in false false false false false :; do
30471   . ./conf$$subs.sh ||
30472     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30473
30474   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30475   if test $ac_delim_n = $ac_delim_num; then
30476     break
30477   elif $ac_last_try; then
30478     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30479   else
30480     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30481   fi
30482 done
30483 rm -f conf$$subs.sh
30484
30485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30486 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30487 _ACEOF
30488 sed -n '
30489 h
30490 s/^/S["/; s/!.*/"]=/
30491 p
30492 g
30493 s/^[^!]*!//
30494 :repl
30495 t repl
30496 s/'"$ac_delim"'$//
30497 t delim
30498 :nl
30499 h
30500 s/\(.\{148\}\)..*/\1/
30501 t more1
30502 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30503 p
30504 n
30505 b repl
30506 :more1
30507 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30508 p
30509 g
30510 s/.\{148\}//
30511 t nl
30512 :delim
30513 h
30514 s/\(.\{148\}\)..*/\1/
30515 t more2
30516 s/["\\]/\\&/g; s/^/"/; s/$/"/
30517 p
30518 b
30519 :more2
30520 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30521 p
30522 g
30523 s/.\{148\}//
30524 t delim
30525 ' <conf$$subs.awk | sed '
30526 /^[^""]/{
30527   N
30528   s/\n//
30529 }
30530 ' >>$CONFIG_STATUS || ac_write_fail=1
30531 rm -f conf$$subs.awk
30532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30533 _ACAWK
30534 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30535   for (key in S) S_is_set[key] = 1
30536   FS = "\a"
30537   \$ac_cs_awk_pipe_init
30538 }
30539 {
30540   line = $ 0
30541   nfields = split(line, field, "@")
30542   substed = 0
30543   len = length(field[1])
30544   for (i = 2; i < nfields; i++) {
30545     key = field[i]
30546     keylen = length(key)
30547     if (S_is_set[key]) {
30548       value = S[key]
30549       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30550       len += length(value) + length(field[++i])
30551       substed = 1
30552     } else
30553       len += 1 + keylen
30554   }
30555   if (nfields == 3 && !substed) {
30556     key = field[2]
30557     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30558       \$ac_cs_awk_read_file
30559       next
30560     }
30561   }
30562   print line
30563 }
30564 \$ac_cs_awk_pipe_fini
30565 _ACAWK
30566 _ACEOF
30567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30568 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30569   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30570 else
30571   cat
30572 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30573   || as_fn_error "could not setup config files machinery" "$LINENO" 5
30574 _ACEOF
30575
30576 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30577 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30578 # trailing colons and then remove the whole line if VPATH becomes empty
30579 # (actually we leave an empty line to preserve line numbers).
30580 if test "x$srcdir" = x.; then
30581   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30582 s/:*\$(srcdir):*/:/
30583 s/:*\${srcdir}:*/:/
30584 s/:*@srcdir@:*/:/
30585 s/^\([^=]*=[     ]*\):*/\1/
30586 s/:*$//
30587 s/^[^=]*=[       ]*$//
30588 }'
30589 fi
30590
30591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30592 fi # test -n "$CONFIG_FILES"
30593
30594 # Set up the scripts for CONFIG_HEADERS section.
30595 # No need to generate them if there are no CONFIG_HEADERS.
30596 # This happens for instance with `./config.status Makefile'.
30597 if test -n "$CONFIG_HEADERS"; then
30598 cat >"$tmp/defines.awk" <<\_ACAWK ||
30599 BEGIN {
30600 _ACEOF
30601
30602 # Transform confdefs.h into an awk script `defines.awk', embedded as
30603 # here-document in config.status, that substitutes the proper values into
30604 # config.h.in to produce config.h.
30605
30606 # Create a delimiter string that does not exist in confdefs.h, to ease
30607 # handling of long lines.
30608 ac_delim='%!_!# '
30609 for ac_last_try in false false :; do
30610   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30611   if test -z "$ac_t"; then
30612     break
30613   elif $ac_last_try; then
30614     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30615   else
30616     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30617   fi
30618 done
30619
30620 # For the awk script, D is an array of macro values keyed by name,
30621 # likewise P contains macro parameters if any.  Preserve backslash
30622 # newline sequences.
30623
30624 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30625 sed -n '
30626 s/.\{148\}/&'"$ac_delim"'/g
30627 t rset
30628 :rset
30629 s/^[     ]*#[    ]*define[       ][      ]*/ /
30630 t def
30631 d
30632 :def
30633 s/\\$//
30634 t bsnl
30635 s/["\\]/\\&/g
30636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30637 D["\1"]=" \3"/p
30638 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30639 d
30640 :bsnl
30641 s/["\\]/\\&/g
30642 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30643 D["\1"]=" \3\\\\\\n"\\/p
30644 t cont
30645 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30646 t cont
30647 d
30648 :cont
30649 n
30650 s/.\{148\}/&'"$ac_delim"'/g
30651 t clear
30652 :clear
30653 s/\\$//
30654 t bsnlc
30655 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30656 d
30657 :bsnlc
30658 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30659 b cont
30660 ' <confdefs.h | sed '
30661 s/'"$ac_delim"'/"\\\
30662 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30663
30664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30665   for (key in D) D_is_set[key] = 1
30666   FS = "\a"
30667 }
30668 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30669   line = \$ 0
30670   split(line, arg, " ")
30671   if (arg[1] == "#") {
30672     defundef = arg[2]
30673     mac1 = arg[3]
30674   } else {
30675     defundef = substr(arg[1], 2)
30676     mac1 = arg[2]
30677   }
30678   split(mac1, mac2, "(") #)
30679   macro = mac2[1]
30680   prefix = substr(line, 1, index(line, defundef) - 1)
30681   if (D_is_set[macro]) {
30682     # Preserve the white space surrounding the "#".
30683     print prefix "define", macro P[macro] D[macro]
30684     next
30685   } else {
30686     # Replace #undef with comments.  This is necessary, for example,
30687     # in the case of _POSIX_SOURCE, which is predefined and required
30688     # on some systems where configure will not decide to define it.
30689     if (defundef == "undef") {
30690       print "/*", prefix defundef, macro, "*/"
30691       next
30692     }
30693   }
30694 }
30695 { print }
30696 _ACAWK
30697 _ACEOF
30698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30699   as_fn_error "could not setup config headers machinery" "$LINENO" 5
30700 fi # test -n "$CONFIG_HEADERS"
30701
30702
30703 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30704 shift
30705 for ac_tag
30706 do
30707   case $ac_tag in
30708   :[FHLC]) ac_mode=$ac_tag; continue;;
30709   esac
30710   case $ac_mode$ac_tag in
30711   :[FHL]*:*);;
30712   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30713   :[FH]-) ac_tag=-:-;;
30714   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30715   esac
30716   ac_save_IFS=$IFS
30717   IFS=:
30718   set x $ac_tag
30719   IFS=$ac_save_IFS
30720   shift
30721   ac_file=$1
30722   shift
30723
30724   case $ac_mode in
30725   :L) ac_source=$1;;
30726   :[FH])
30727     ac_file_inputs=
30728     for ac_f
30729     do
30730       case $ac_f in
30731       -) ac_f="$tmp/stdin";;
30732       *) # Look for the file first in the build tree, then in the source tree
30733          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30734          # because $ac_f cannot contain `:'.
30735          test -f "$ac_f" ||
30736            case $ac_f in
30737            [\\/$]*) false;;
30738            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30739            esac ||
30740            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30741       esac
30742       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30743       as_fn_append ac_file_inputs " '$ac_f'"
30744     done
30745
30746     # Let's still pretend it is `configure' which instantiates (i.e., don't
30747     # use $as_me), people would be surprised to read:
30748     #    /* config.h.  Generated by config.status.  */
30749     configure_input='Generated from '`
30750           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30751         `' by configure.'
30752     if test x"$ac_file" != x-; then
30753       configure_input="$ac_file.  $configure_input"
30754       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30755 $as_echo "$as_me: creating $ac_file" >&6;}
30756     fi
30757     # Neutralize special characters interpreted by sed in replacement strings.
30758     case $configure_input in #(
30759     *\&* | *\|* | *\\* )
30760        ac_sed_conf_input=`$as_echo "$configure_input" |
30761        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30762     *) ac_sed_conf_input=$configure_input;;
30763     esac
30764
30765     case $ac_tag in
30766     *:-:* | *:-) cat >"$tmp/stdin" \
30767       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30768     esac
30769     ;;
30770   esac
30771
30772   ac_dir=`$as_dirname -- "$ac_file" ||
30773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30774          X"$ac_file" : 'X\(//\)[^/]' \| \
30775          X"$ac_file" : 'X\(//\)$' \| \
30776          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30777 $as_echo X"$ac_file" |
30778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30779             s//\1/
30780             q
30781           }
30782           /^X\(\/\/\)[^/].*/{
30783             s//\1/
30784             q
30785           }
30786           /^X\(\/\/\)$/{
30787             s//\1/
30788             q
30789           }
30790           /^X\(\/\).*/{
30791             s//\1/
30792             q
30793           }
30794           s/.*/./; q'`
30795   as_dir="$ac_dir"; as_fn_mkdir_p
30796   ac_builddir=.
30797
30798 case "$ac_dir" in
30799 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30800 *)
30801   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30802   # A ".." for each directory in $ac_dir_suffix.
30803   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30804   case $ac_top_builddir_sub in
30805   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30806   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30807   esac ;;
30808 esac
30809 ac_abs_top_builddir=$ac_pwd
30810 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30811 # for backward compatibility:
30812 ac_top_builddir=$ac_top_build_prefix
30813
30814 case $srcdir in
30815   .)  # We are building in place.
30816     ac_srcdir=.
30817     ac_top_srcdir=$ac_top_builddir_sub
30818     ac_abs_top_srcdir=$ac_pwd ;;
30819   [\\/]* | ?:[\\/]* )  # Absolute name.
30820     ac_srcdir=$srcdir$ac_dir_suffix;
30821     ac_top_srcdir=$srcdir
30822     ac_abs_top_srcdir=$srcdir ;;
30823   *) # Relative name.
30824     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30825     ac_top_srcdir=$ac_top_build_prefix$srcdir
30826     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30827 esac
30828 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30829
30830
30831   case $ac_mode in
30832   :F)
30833   #
30834   # CONFIG_FILE
30835   #
30836
30837   case $INSTALL in
30838   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30839   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30840   esac
30841 _ACEOF
30842
30843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30844 # If the template does not know about datarootdir, expand it.
30845 # FIXME: This hack should be removed a few years after 2.60.
30846 ac_datarootdir_hack=; ac_datarootdir_seen=
30847 ac_sed_dataroot='
30848 /datarootdir/ {
30849   p
30850   q
30851 }
30852 /@datadir@/p
30853 /@docdir@/p
30854 /@infodir@/p
30855 /@localedir@/p
30856 /@mandir@/p'
30857 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30858 *datarootdir*) ac_datarootdir_seen=yes;;
30859 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30860   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30861 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30862 _ACEOF
30863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30864   ac_datarootdir_hack='
30865   s&@datadir@&$datadir&g
30866   s&@docdir@&$docdir&g
30867   s&@infodir@&$infodir&g
30868   s&@localedir@&$localedir&g
30869   s&@mandir@&$mandir&g
30870   s&\\\${datarootdir}&$datarootdir&g' ;;
30871 esac
30872 _ACEOF
30873
30874 # Neutralize VPATH when `$srcdir' = `.'.
30875 # Shell code in configure.ac might set extrasub.
30876 # FIXME: do we really want to maintain this feature?
30877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30878 ac_sed_extra="$ac_vpsub
30879 $extrasub
30880 _ACEOF
30881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30882 :t
30883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30884 s|@configure_input@|$ac_sed_conf_input|;t t
30885 s&@top_builddir@&$ac_top_builddir_sub&;t t
30886 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30887 s&@srcdir@&$ac_srcdir&;t t
30888 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30889 s&@top_srcdir@&$ac_top_srcdir&;t t
30890 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30891 s&@builddir@&$ac_builddir&;t t
30892 s&@abs_builddir@&$ac_abs_builddir&;t t
30893 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30894 s&@INSTALL@&$ac_INSTALL&;t t
30895 $ac_datarootdir_hack
30896 "
30897 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30898 if $ac_cs_awk_getline; then
30899   $AWK -f "$tmp/subs.awk"
30900 else
30901   $AWK -f "$tmp/subs.awk" | $SHELL
30902 fi >$tmp/out \
30903   || as_fn_error "could not create $ac_file" "$LINENO" 5
30904
30905 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30906   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30907   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30908   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30909 which seems to be undefined.  Please make sure it is defined." >&5
30910 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30911 which seems to be undefined.  Please make sure it is defined." >&2;}
30912
30913   rm -f "$tmp/stdin"
30914   case $ac_file in
30915   -) cat "$tmp/out" && rm -f "$tmp/out";;
30916   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30917   esac \
30918   || as_fn_error "could not create $ac_file" "$LINENO" 5
30919  ;;
30920   :H)
30921   #
30922   # CONFIG_HEADER
30923   #
30924   if test x"$ac_file" != x-; then
30925     {
30926       $as_echo "/* $configure_input  */" \
30927       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30928     } >"$tmp/config.h" \
30929       || as_fn_error "could not create $ac_file" "$LINENO" 5
30930     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30931       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30932 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30933     else
30934       rm -f "$ac_file"
30935       mv "$tmp/config.h" "$ac_file" \
30936         || as_fn_error "could not create $ac_file" "$LINENO" 5
30937     fi
30938   else
30939     $as_echo "/* $configure_input  */" \
30940       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30941       || as_fn_error "could not create -" "$LINENO" 5
30942   fi
30943  ;;
30944
30945   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30946 $as_echo "$as_me: executing $ac_file commands" >&6;}
30947  ;;
30948   esac
30949
30950
30951   case $ac_file$ac_mode in
30952     "libtool":C)
30953
30954     # See if we are running on zsh, and set the options which allow our
30955     # commands through without removal of \ escapes.
30956     if test -n "${ZSH_VERSION+set}" ; then
30957       setopt NO_GLOB_SUBST
30958     fi
30959
30960     cfgfile="${ofile}T"
30961     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30962     $RM "$cfgfile"
30963
30964     cat <<_LT_EOF >> "$cfgfile"
30965 #! $SHELL
30966
30967 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30968 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30970 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30971 #
30972 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30973 #                 2006, 2007, 2008 Free Software Foundation, Inc.
30974 #   Written by Gordon Matzigkeit, 1996
30975 #
30976 #   This file is part of GNU Libtool.
30977 #
30978 # GNU Libtool is free software; you can redistribute it and/or
30979 # modify it under the terms of the GNU General Public License as
30980 # published by the Free Software Foundation; either version 2 of
30981 # the License, or (at your option) any later version.
30982 #
30983 # As a special exception to the GNU General Public License,
30984 # if you distribute this file as part of a program or library that
30985 # is built using GNU Libtool, you may include this file under the
30986 # same distribution terms that you use for the rest of that program.
30987 #
30988 # GNU Libtool is distributed in the hope that it will be useful,
30989 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30990 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30991 # GNU General Public License for more details.
30992 #
30993 # You should have received a copy of the GNU General Public License
30994 # along with GNU Libtool; see the file COPYING.  If not, a copy
30995 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30996 # obtained by writing to the Free Software Foundation, Inc.,
30997 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30998
30999
31000 # The names of the tagged configurations supported by this script.
31001 available_tags="CXX "
31002
31003 # ### BEGIN LIBTOOL CONFIG
31004
31005 # Which release of libtool.m4 was used?
31006 macro_version=$macro_version
31007 macro_revision=$macro_revision
31008
31009 # Whether or not to build shared libraries.
31010 build_libtool_libs=$enable_shared
31011
31012 # Whether or not to build static libraries.
31013 build_old_libs=$enable_static
31014
31015 # What type of objects to build.
31016 pic_mode=$pic_mode
31017
31018 # Whether or not to optimize for fast installation.
31019 fast_install=$enable_fast_install
31020
31021 # The host system.
31022 host_alias=$host_alias
31023 host=$host
31024 host_os=$host_os
31025
31026 # The build system.
31027 build_alias=$build_alias
31028 build=$build
31029 build_os=$build_os
31030
31031 # A sed program that does not truncate output.
31032 SED=$lt_SED
31033
31034 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31035 Xsed="\$SED -e 1s/^X//"
31036
31037 # A grep program that handles long lines.
31038 GREP=$lt_GREP
31039
31040 # An ERE matcher.
31041 EGREP=$lt_EGREP
31042
31043 # A literal string matcher.
31044 FGREP=$lt_FGREP
31045
31046 # A BSD- or MS-compatible name lister.
31047 NM=$lt_NM
31048
31049 # Whether we need soft or hard links.
31050 LN_S=$lt_LN_S
31051
31052 # What is the maximum length of a command?
31053 max_cmd_len=$max_cmd_len
31054
31055 # Object file suffix (normally "o").
31056 objext=$ac_objext
31057
31058 # Executable file suffix (normally "").
31059 exeext=$exeext
31060
31061 # whether the shell understands "unset".
31062 lt_unset=$lt_unset
31063
31064 # turn spaces into newlines.
31065 SP2NL=$lt_lt_SP2NL
31066
31067 # turn newlines into spaces.
31068 NL2SP=$lt_lt_NL2SP
31069
31070 # How to create reloadable object files.
31071 reload_flag=$lt_reload_flag
31072 reload_cmds=$lt_reload_cmds
31073
31074 # An object symbol dumper.
31075 OBJDUMP=$lt_OBJDUMP
31076
31077 # Method to check whether dependent libraries are shared objects.
31078 deplibs_check_method=$lt_deplibs_check_method
31079
31080 # Command to use when deplibs_check_method == "file_magic".
31081 file_magic_cmd=$lt_file_magic_cmd
31082
31083 # The archiver.
31084 AR=$lt_AR
31085 AR_FLAGS=$lt_AR_FLAGS
31086
31087 # A symbol stripping program.
31088 STRIP=$lt_STRIP
31089
31090 # Commands used to install an old-style archive.
31091 RANLIB=$lt_RANLIB
31092 old_postinstall_cmds=$lt_old_postinstall_cmds
31093 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31094
31095 # A C compiler.
31096 LTCC=$lt_CC
31097
31098 # LTCC compiler flags.
31099 LTCFLAGS=$lt_CFLAGS
31100
31101 # Take the output of nm and produce a listing of raw symbols and C names.
31102 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31103
31104 # Transform the output of nm in a proper C declaration.
31105 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31106
31107 # Transform the output of nm in a C name address pair.
31108 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31109
31110 # Transform the output of nm in a C name address pair when lib prefix is needed.
31111 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31112
31113 # The name of the directory that contains temporary libtool files.
31114 objdir=$objdir
31115
31116 # Shell to use when invoking shell scripts.
31117 SHELL=$lt_SHELL
31118
31119 # An echo program that does not interpret backslashes.
31120 ECHO=$lt_ECHO
31121
31122 # Used to examine libraries when file_magic_cmd begins with "file".
31123 MAGIC_CMD=$MAGIC_CMD
31124
31125 # Must we lock files when doing compilation?
31126 need_locks=$lt_need_locks
31127
31128 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31129 DSYMUTIL=$lt_DSYMUTIL
31130
31131 # Tool to change global to local symbols on Mac OS X.
31132 NMEDIT=$lt_NMEDIT
31133
31134 # Tool to manipulate fat objects and archives on Mac OS X.
31135 LIPO=$lt_LIPO
31136
31137 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31138 OTOOL=$lt_OTOOL
31139
31140 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31141 OTOOL64=$lt_OTOOL64
31142
31143 # Old archive suffix (normally "a").
31144 libext=$libext
31145
31146 # Shared library suffix (normally ".so").
31147 shrext_cmds=$lt_shrext_cmds
31148
31149 # The commands to extract the exported symbol list from a shared archive.
31150 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31151
31152 # Variables whose values should be saved in libtool wrapper scripts and
31153 # restored at link time.
31154 variables_saved_for_relink=$lt_variables_saved_for_relink
31155
31156 # Do we need the "lib" prefix for modules?
31157 need_lib_prefix=$need_lib_prefix
31158
31159 # Do we need a version for libraries?
31160 need_version=$need_version
31161
31162 # Library versioning type.
31163 version_type=$version_type
31164
31165 # Shared library runtime path variable.
31166 runpath_var=$runpath_var
31167
31168 # Shared library path variable.
31169 shlibpath_var=$shlibpath_var
31170
31171 # Is shlibpath searched before the hard-coded library search path?
31172 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31173
31174 # Format of library name prefix.
31175 libname_spec=$lt_libname_spec
31176
31177 # List of archive names.  First name is the real one, the rest are links.
31178 # The last name is the one that the linker finds with -lNAME
31179 library_names_spec=$lt_library_names_spec
31180
31181 # The coded name of the library, if different from the real name.
31182 soname_spec=$lt_soname_spec
31183
31184 # Command to use after installation of a shared archive.
31185 postinstall_cmds=$lt_postinstall_cmds
31186
31187 # Command to use after uninstallation of a shared archive.
31188 postuninstall_cmds=$lt_postuninstall_cmds
31189
31190 # Commands used to finish a libtool library installation in a directory.
31191 finish_cmds=$lt_finish_cmds
31192
31193 # As "finish_cmds", except a single script fragment to be evaled but
31194 # not shown.
31195 finish_eval=$lt_finish_eval
31196
31197 # Whether we should hardcode library paths into libraries.
31198 hardcode_into_libs=$hardcode_into_libs
31199
31200 # Compile-time system search path for libraries.
31201 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31202
31203 # Run-time system search path for libraries.
31204 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31205
31206 # Whether dlopen is supported.
31207 dlopen_support=$enable_dlopen
31208
31209 # Whether dlopen of programs is supported.
31210 dlopen_self=$enable_dlopen_self
31211
31212 # Whether dlopen of statically linked programs is supported.
31213 dlopen_self_static=$enable_dlopen_self_static
31214
31215 # Commands to strip libraries.
31216 old_striplib=$lt_old_striplib
31217 striplib=$lt_striplib
31218
31219
31220 # The linker used to build libraries.
31221 LD=$lt_LD
31222
31223 # Commands used to build an old-style archive.
31224 old_archive_cmds=$lt_old_archive_cmds
31225
31226 # A language specific compiler.
31227 CC=$lt_compiler
31228
31229 # Is the compiler the GNU compiler?
31230 with_gcc=$GCC
31231
31232 # Compiler flag to turn off builtin functions.
31233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31234
31235 # How to pass a linker flag through the compiler.
31236 wl=$lt_lt_prog_compiler_wl
31237
31238 # Additional compiler flags for building library objects.
31239 pic_flag=$lt_lt_prog_compiler_pic
31240
31241 # Compiler flag to prevent dynamic linking.
31242 link_static_flag=$lt_lt_prog_compiler_static
31243
31244 # Does compiler simultaneously support -c and -o options?
31245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31246
31247 # Whether or not to add -lc for building shared libraries.
31248 build_libtool_need_lc=$archive_cmds_need_lc
31249
31250 # Whether or not to disallow shared libs when runtime libs are static.
31251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31252
31253 # Compiler flag to allow reflexive dlopens.
31254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31255
31256 # Compiler flag to generate shared objects directly from archives.
31257 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31258
31259 # Whether the compiler copes with passing no objects directly.
31260 compiler_needs_object=$lt_compiler_needs_object
31261
31262 # Create an old-style archive from a shared archive.
31263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31264
31265 # Create a temporary old-style archive to link instead of a shared archive.
31266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31267
31268 # Commands used to build a shared archive.
31269 archive_cmds=$lt_archive_cmds
31270 archive_expsym_cmds=$lt_archive_expsym_cmds
31271
31272 # Commands used to build a loadable module if different from building
31273 # a shared archive.
31274 module_cmds=$lt_module_cmds
31275 module_expsym_cmds=$lt_module_expsym_cmds
31276
31277 # Whether we are building with GNU ld or not.
31278 with_gnu_ld=$lt_with_gnu_ld
31279
31280 # Flag that allows shared libraries with undefined symbols to be built.
31281 allow_undefined_flag=$lt_allow_undefined_flag
31282
31283 # Flag that enforces no undefined symbols.
31284 no_undefined_flag=$lt_no_undefined_flag
31285
31286 # Flag to hardcode \$libdir into a binary during linking.
31287 # This must work even if \$libdir does not exist
31288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31289
31290 # If ld is used when linking, flag to hardcode \$libdir into a binary
31291 # during linking.  This must work even if \$libdir does not exist.
31292 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31293
31294 # Whether we need a single "-rpath" flag with a separated argument.
31295 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31296
31297 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31298 # DIR into the resulting binary.
31299 hardcode_direct=$hardcode_direct
31300
31301 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31302 # DIR into the resulting binary and the resulting library dependency is
31303 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31304 # library is relocated.
31305 hardcode_direct_absolute=$hardcode_direct_absolute
31306
31307 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31308 # into the resulting binary.
31309 hardcode_minus_L=$hardcode_minus_L
31310
31311 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31312 # into the resulting binary.
31313 hardcode_shlibpath_var=$hardcode_shlibpath_var
31314
31315 # Set to "yes" if building a shared library automatically hardcodes DIR
31316 # into the library and all subsequent libraries and executables linked
31317 # against it.
31318 hardcode_automatic=$hardcode_automatic
31319
31320 # Set to yes if linker adds runtime paths of dependent libraries
31321 # to runtime path list.
31322 inherit_rpath=$inherit_rpath
31323
31324 # Whether libtool must link a program against all its dependency libraries.
31325 link_all_deplibs=$link_all_deplibs
31326
31327 # Fix the shell variable \$srcfile for the compiler.
31328 fix_srcfile_path=$lt_fix_srcfile_path
31329
31330 # Set to "yes" if exported symbols are required.
31331 always_export_symbols=$always_export_symbols
31332
31333 # The commands to list exported symbols.
31334 export_symbols_cmds=$lt_export_symbols_cmds
31335
31336 # Symbols that should not be listed in the preloaded symbols.
31337 exclude_expsyms=$lt_exclude_expsyms
31338
31339 # Symbols that must always be exported.
31340 include_expsyms=$lt_include_expsyms
31341
31342 # Commands necessary for linking programs (against libraries) with templates.
31343 prelink_cmds=$lt_prelink_cmds
31344
31345 # Specify filename containing input files.
31346 file_list_spec=$lt_file_list_spec
31347
31348 # How to hardcode a shared library path into an executable.
31349 hardcode_action=$hardcode_action
31350
31351 # The directories searched by this compiler when creating a shared library.
31352 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31353
31354 # Dependencies to place before and after the objects being linked to
31355 # create a shared library.
31356 predep_objects=$lt_predep_objects
31357 postdep_objects=$lt_postdep_objects
31358 predeps=$lt_predeps
31359 postdeps=$lt_postdeps
31360
31361 # The library search path used internally by the compiler when linking
31362 # a shared library.
31363 compiler_lib_search_path=$lt_compiler_lib_search_path
31364
31365 # ### END LIBTOOL CONFIG
31366
31367 _LT_EOF
31368
31369   case $host_os in
31370   aix3*)
31371     cat <<\_LT_EOF >> "$cfgfile"
31372 # AIX sometimes has problems with the GCC collect2 program.  For some
31373 # reason, if we set the COLLECT_NAMES environment variable, the problems
31374 # vanish in a puff of smoke.
31375 if test "X${COLLECT_NAMES+set}" != Xset; then
31376   COLLECT_NAMES=
31377   export COLLECT_NAMES
31378 fi
31379 _LT_EOF
31380     ;;
31381   esac
31382
31383
31384 ltmain="$ac_aux_dir/ltmain.sh"
31385
31386
31387   # We use sed instead of cat because bash on DJGPP gets confused if
31388   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31389   # text mode, it properly converts lines to CR/LF.  This bash problem
31390   # is reportedly fixed, but why not run on old versions too?
31391   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31392     || (rm -f "$cfgfile"; exit 1)
31393
31394   case $xsi_shell in
31395   yes)
31396     cat << \_LT_EOF >> "$cfgfile"
31397
31398 # func_dirname file append nondir_replacement
31399 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31400 # otherwise set result to NONDIR_REPLACEMENT.
31401 func_dirname ()
31402 {
31403   case ${1} in
31404     */*) func_dirname_result="${1%/*}${2}" ;;
31405     *  ) func_dirname_result="${3}" ;;
31406   esac
31407 }
31408
31409 # func_basename file
31410 func_basename ()
31411 {
31412   func_basename_result="${1##*/}"
31413 }
31414
31415 # func_dirname_and_basename file append nondir_replacement
31416 # perform func_basename and func_dirname in a single function
31417 # call:
31418 #   dirname:  Compute the dirname of FILE.  If nonempty,
31419 #             add APPEND to the result, otherwise set result
31420 #             to NONDIR_REPLACEMENT.
31421 #             value returned in "$func_dirname_result"
31422 #   basename: Compute filename of FILE.
31423 #             value retuned in "$func_basename_result"
31424 # Implementation must be kept synchronized with func_dirname
31425 # and func_basename. For efficiency, we do not delegate to
31426 # those functions but instead duplicate the functionality here.
31427 func_dirname_and_basename ()
31428 {
31429   case ${1} in
31430     */*) func_dirname_result="${1%/*}${2}" ;;
31431     *  ) func_dirname_result="${3}" ;;
31432   esac
31433   func_basename_result="${1##*/}"
31434 }
31435
31436 # func_stripname prefix suffix name
31437 # strip PREFIX and SUFFIX off of NAME.
31438 # PREFIX and SUFFIX must not contain globbing or regex special
31439 # characters, hashes, percent signs, but SUFFIX may contain a leading
31440 # dot (in which case that matches only a dot).
31441 func_stripname ()
31442 {
31443   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31444   # positional parameters, so assign one to ordinary parameter first.
31445   func_stripname_result=${3}
31446   func_stripname_result=${func_stripname_result#"${1}"}
31447   func_stripname_result=${func_stripname_result%"${2}"}
31448 }
31449
31450 # func_opt_split
31451 func_opt_split ()
31452 {
31453   func_opt_split_opt=${1%%=*}
31454   func_opt_split_arg=${1#*=}
31455 }
31456
31457 # func_lo2o object
31458 func_lo2o ()
31459 {
31460   case ${1} in
31461     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31462     *)    func_lo2o_result=${1} ;;
31463   esac
31464 }
31465
31466 # func_xform libobj-or-source
31467 func_xform ()
31468 {
31469   func_xform_result=${1%.*}.lo
31470 }
31471
31472 # func_arith arithmetic-term...
31473 func_arith ()
31474 {
31475   func_arith_result=$(( $* ))
31476 }
31477
31478 # func_len string
31479 # STRING may not start with a hyphen.
31480 func_len ()
31481 {
31482   func_len_result=${#1}
31483 }
31484
31485 _LT_EOF
31486     ;;
31487   *) # Bourne compatible functions.
31488     cat << \_LT_EOF >> "$cfgfile"
31489
31490 # func_dirname file append nondir_replacement
31491 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31492 # otherwise set result to NONDIR_REPLACEMENT.
31493 func_dirname ()
31494 {
31495   # Extract subdirectory from the argument.
31496   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31497   if test "X$func_dirname_result" = "X${1}"; then
31498     func_dirname_result="${3}"
31499   else
31500     func_dirname_result="$func_dirname_result${2}"
31501   fi
31502 }
31503
31504 # func_basename file
31505 func_basename ()
31506 {
31507   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31508 }
31509
31510
31511 # func_stripname prefix suffix name
31512 # strip PREFIX and SUFFIX off of NAME.
31513 # PREFIX and SUFFIX must not contain globbing or regex special
31514 # characters, hashes, percent signs, but SUFFIX may contain a leading
31515 # dot (in which case that matches only a dot).
31516 # func_strip_suffix prefix name
31517 func_stripname ()
31518 {
31519   case ${2} in
31520     .*) func_stripname_result=`$ECHO "X${3}" \
31521            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31522     *)  func_stripname_result=`$ECHO "X${3}" \
31523            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31524   esac
31525 }
31526
31527 # sed scripts:
31528 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31529 my_sed_long_arg='1s/^-[^=]*=//'
31530
31531 # func_opt_split
31532 func_opt_split ()
31533 {
31534   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31535   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31536 }
31537
31538 # func_lo2o object
31539 func_lo2o ()
31540 {
31541   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31542 }
31543
31544 # func_xform libobj-or-source
31545 func_xform ()
31546 {
31547   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31548 }
31549
31550 # func_arith arithmetic-term...
31551 func_arith ()
31552 {
31553   func_arith_result=`expr "$@"`
31554 }
31555
31556 # func_len string
31557 # STRING may not start with a hyphen.
31558 func_len ()
31559 {
31560   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31561 }
31562
31563 _LT_EOF
31564 esac
31565
31566 case $lt_shell_append in
31567   yes)
31568     cat << \_LT_EOF >> "$cfgfile"
31569
31570 # func_append var value
31571 # Append VALUE to the end of shell variable VAR.
31572 func_append ()
31573 {
31574   eval "$1+=\$2"
31575 }
31576 _LT_EOF
31577     ;;
31578   *)
31579     cat << \_LT_EOF >> "$cfgfile"
31580
31581 # func_append var value
31582 # Append VALUE to the end of shell variable VAR.
31583 func_append ()
31584 {
31585   eval "$1=\$$1\$2"
31586 }
31587
31588 _LT_EOF
31589     ;;
31590   esac
31591
31592
31593   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31594     || (rm -f "$cfgfile"; exit 1)
31595
31596   mv -f "$cfgfile" "$ofile" ||
31597     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31598   chmod +x "$ofile"
31599
31600
31601     cat <<_LT_EOF >> "$ofile"
31602
31603 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31604
31605 # The linker used to build libraries.
31606 LD=$lt_LD_CXX
31607
31608 # Commands used to build an old-style archive.
31609 old_archive_cmds=$lt_old_archive_cmds_CXX
31610
31611 # A language specific compiler.
31612 CC=$lt_compiler_CXX
31613
31614 # Is the compiler the GNU compiler?
31615 with_gcc=$GCC_CXX
31616
31617 # Compiler flag to turn off builtin functions.
31618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31619
31620 # How to pass a linker flag through the compiler.
31621 wl=$lt_lt_prog_compiler_wl_CXX
31622
31623 # Additional compiler flags for building library objects.
31624 pic_flag=$lt_lt_prog_compiler_pic_CXX
31625
31626 # Compiler flag to prevent dynamic linking.
31627 link_static_flag=$lt_lt_prog_compiler_static_CXX
31628
31629 # Does compiler simultaneously support -c and -o options?
31630 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31631
31632 # Whether or not to add -lc for building shared libraries.
31633 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31634
31635 # Whether or not to disallow shared libs when runtime libs are static.
31636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31637
31638 # Compiler flag to allow reflexive dlopens.
31639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31640
31641 # Compiler flag to generate shared objects directly from archives.
31642 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31643
31644 # Whether the compiler copes with passing no objects directly.
31645 compiler_needs_object=$lt_compiler_needs_object_CXX
31646
31647 # Create an old-style archive from a shared archive.
31648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31649
31650 # Create a temporary old-style archive to link instead of a shared archive.
31651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31652
31653 # Commands used to build a shared archive.
31654 archive_cmds=$lt_archive_cmds_CXX
31655 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31656
31657 # Commands used to build a loadable module if different from building
31658 # a shared archive.
31659 module_cmds=$lt_module_cmds_CXX
31660 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31661
31662 # Whether we are building with GNU ld or not.
31663 with_gnu_ld=$lt_with_gnu_ld_CXX
31664
31665 # Flag that allows shared libraries with undefined symbols to be built.
31666 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31667
31668 # Flag that enforces no undefined symbols.
31669 no_undefined_flag=$lt_no_undefined_flag_CXX
31670
31671 # Flag to hardcode \$libdir into a binary during linking.
31672 # This must work even if \$libdir does not exist
31673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31674
31675 # If ld is used when linking, flag to hardcode \$libdir into a binary
31676 # during linking.  This must work even if \$libdir does not exist.
31677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31678
31679 # Whether we need a single "-rpath" flag with a separated argument.
31680 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31681
31682 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31683 # DIR into the resulting binary.
31684 hardcode_direct=$hardcode_direct_CXX
31685
31686 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31687 # DIR into the resulting binary and the resulting library dependency is
31688 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31689 # library is relocated.
31690 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31691
31692 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31693 # into the resulting binary.
31694 hardcode_minus_L=$hardcode_minus_L_CXX
31695
31696 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31697 # into the resulting binary.
31698 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31699
31700 # Set to "yes" if building a shared library automatically hardcodes DIR
31701 # into the library and all subsequent libraries and executables linked
31702 # against it.
31703 hardcode_automatic=$hardcode_automatic_CXX
31704
31705 # Set to yes if linker adds runtime paths of dependent libraries
31706 # to runtime path list.
31707 inherit_rpath=$inherit_rpath_CXX
31708
31709 # Whether libtool must link a program against all its dependency libraries.
31710 link_all_deplibs=$link_all_deplibs_CXX
31711
31712 # Fix the shell variable \$srcfile for the compiler.
31713 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31714
31715 # Set to "yes" if exported symbols are required.
31716 always_export_symbols=$always_export_symbols_CXX
31717
31718 # The commands to list exported symbols.
31719 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31720
31721 # Symbols that should not be listed in the preloaded symbols.
31722 exclude_expsyms=$lt_exclude_expsyms_CXX
31723
31724 # Symbols that must always be exported.
31725 include_expsyms=$lt_include_expsyms_CXX
31726
31727 # Commands necessary for linking programs (against libraries) with templates.
31728 prelink_cmds=$lt_prelink_cmds_CXX
31729
31730 # Specify filename containing input files.
31731 file_list_spec=$lt_file_list_spec_CXX
31732
31733 # How to hardcode a shared library path into an executable.
31734 hardcode_action=$hardcode_action_CXX
31735
31736 # The directories searched by this compiler when creating a shared library.
31737 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31738
31739 # Dependencies to place before and after the objects being linked to
31740 # create a shared library.
31741 predep_objects=$lt_predep_objects_CXX
31742 postdep_objects=$lt_postdep_objects_CXX
31743 predeps=$lt_predeps_CXX
31744 postdeps=$lt_postdeps_CXX
31745
31746 # The library search path used internally by the compiler when linking
31747 # a shared library.
31748 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31749
31750 # ### END LIBTOOL TAG CONFIG: CXX
31751 _LT_EOF
31752
31753  ;;
31754     "default-1":C)
31755     for ac_file in $CONFIG_FILES; do
31756       # Support "outfile[:infile[:infile...]]"
31757       case "$ac_file" in
31758         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31759       esac
31760       # PO directories have a Makefile.in generated from Makefile.in.in.
31761       case "$ac_file" in */Makefile.in)
31762         # Adjust a relative srcdir.
31763         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31764         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31765         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31766         # In autoconf-2.13 it is called $ac_given_srcdir.
31767         # In autoconf-2.50 it is called $srcdir.
31768         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31769         case "$ac_given_srcdir" in
31770           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31771           /*) top_srcdir="$ac_given_srcdir" ;;
31772           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31773         esac
31774         # Treat a directory as a PO directory if and only if it has a
31775         # POTFILES.in file. This allows packages to have multiple PO
31776         # directories under different names or in different locations.
31777         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31778           rm -f "$ac_dir/POTFILES"
31779           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31780           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31781           POMAKEFILEDEPS="POTFILES.in"
31782           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31783           # on $ac_dir but don't depend on user-specified configuration
31784           # parameters.
31785           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31786             # The LINGUAS file contains the set of available languages.
31787             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31788               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31789             fi
31790             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31791             # Hide the ALL_LINGUAS assigment from automake.
31792             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31793             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31794           else
31795             # The set of available languages was given in configure.in.
31796             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31797           fi
31798           # Compute POFILES
31799           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31800           # Compute UPDATEPOFILES
31801           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31802           # Compute DUMMYPOFILES
31803           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31804           # Compute GMOFILES
31805           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31806           case "$ac_given_srcdir" in
31807             .) srcdirpre= ;;
31808             *) srcdirpre='$(srcdir)/' ;;
31809           esac
31810           POFILES=
31811           UPDATEPOFILES=
31812           DUMMYPOFILES=
31813           GMOFILES=
31814           for lang in $ALL_LINGUAS; do
31815             POFILES="$POFILES $srcdirpre$lang.po"
31816             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31817             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31818             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31819           done
31820           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31821           # environment variable.
31822           INST_LINGUAS=
31823           if test -n "$ALL_LINGUAS"; then
31824             for presentlang in $ALL_LINGUAS; do
31825               useit=no
31826               if test "%UNSET%" != "$LINGUAS"; then
31827                 desiredlanguages="$LINGUAS"
31828               else
31829                 desiredlanguages="$ALL_LINGUAS"
31830               fi
31831               for desiredlang in $desiredlanguages; do
31832                 # Use the presentlang catalog if desiredlang is
31833                 #   a. equal to presentlang, or
31834                 #   b. a variant of presentlang (because in this case,
31835                 #      presentlang can be used as a fallback for messages
31836                 #      which are not translated in the desiredlang catalog).
31837                 case "$desiredlang" in
31838                   "$presentlang"*) useit=yes;;
31839                 esac
31840               done
31841               if test $useit = yes; then
31842                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31843               fi
31844             done
31845           fi
31846           CATALOGS=
31847           if test -n "$INST_LINGUAS"; then
31848             for lang in $INST_LINGUAS; do
31849               CATALOGS="$CATALOGS $lang.gmo"
31850             done
31851           fi
31852           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31853           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"
31854           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31855             if test -f "$f"; then
31856               case "$f" in
31857                 *.orig | *.bak | *~) ;;
31858                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31859               esac
31860             fi
31861           done
31862         fi
31863         ;;
31864       esac
31865     done ;;
31866     "default":C)
31867  ;;
31868
31869   esac
31870 done # for ac_tag
31871
31872
31873 as_fn_exit 0
31874 _ACEOF
31875 ac_clean_files=$ac_clean_files_save
31876
31877 test $ac_write_fail = 0 ||
31878   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31879
31880
31881 # configure is writing to config.log, and then calls config.status.
31882 # config.status does its own redirection, appending to config.log.
31883 # Unfortunately, on DOS this fails, as config.log is still kept open
31884 # by configure, so config.status won't be able to write to it; its
31885 # output is simply discarded.  So we exec the FD to /dev/null,
31886 # effectively closing config.log, so it can be properly (re)opened and
31887 # appended to by config.status.  When coming back to configure, we
31888 # need to make the FD available again.
31889 if test "$no_create" != yes; then
31890   ac_cs_success=:
31891   ac_config_status_args=
31892   test "$silent" = yes &&
31893     ac_config_status_args="$ac_config_status_args --quiet"
31894   exec 5>/dev/null
31895   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31896   exec 5>>config.log
31897   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31898   # would make configure fail if this is the last instruction.
31899   $ac_cs_success || as_fn_exit $?
31900 fi
31901 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31902   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31903 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31904 fi
31905
31906
31907 if test "${support_bat}" = "yes" ; then
31908    if test "x$QMAKE" = "xnone"; then
31909       as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
31910    fi
31911
31912    QMAKEBIN="qmake"
31913    cd src/qt-console
31914    echo "Creating bat Makefile"
31915    touch bat
31916    chmod 755 bat
31917    rm -f Makefile
31918    $QMAKEBIN
31919    ${MAKE:-make} clean
31920    cd ${BUILD_DIR}
31921 fi
31922
31923 if test X"$GCC" = "Xyes" ; then
31924   echo "Doing make of dependencies"
31925   ${MAKE:-make} depend
31926 fi
31927
31928 cd src/qt-console
31929 chmod 755 install_conf_file build-depkgs-qt-console
31930 cd ${BUILD_DIR}
31931
31932 cd scripts
31933 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31934 chmod 755 dvd-handler dvd-simulator
31935 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31936 cd ..
31937
31938 c=updatedb
31939 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
31940 chmod 755 $c/update_postgresql_tables_10_to_11
31941
31942 c=src/cats
31943
31944 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31945 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31946
31947 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31948 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31949
31950 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31951 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31952
31953 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31954 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31955
31956 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31957 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31958
31959 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
31960 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
31961
31962
31963 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
31964 chmod 755 $c/sqlite
31965 chmod 755 $c/mysql
31966
31967 chmod 755 src/win32/build-depkgs-mingw32
31968
31969 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31970    largefile_support="yes"
31971 fi
31972
31973 if test X"$GCC" = "Xyes" ; then
31974                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31975    if test "x${CCVERSION}" = "x" ; then
31976       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31977    fi
31978    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31979    if test x"${CXXVERSION}" = x ; then
31980       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31981    fi
31982 fi
31983
31984 # clean up any old junk
31985 echo " "
31986 echo "Cleaning up"
31987 echo " "
31988 ${MAKE:-make} clean
31989
31990 if test "x${db_type}" = "xInternal" ; then
31991    echo " "
31992    echo " "
31993    echo "You have not specified either --enable-client-only or one of the"
31994    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
31995    echo "  This is not permitted. Please reconfigure."
31996    echo " "
31997    echo "Aborting the configuration ..."
31998    echo " "
31999    echo " "
32000    exit 1
32001 fi
32002
32003 echo "
32004 Configuration on `date`:
32005
32006    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32007    Bacula version:          ${BACULA} ${VERSION} (${DATE})
32008    Source code location:    ${srcdir}
32009    Install binaries:        ${sbindir}
32010    Install libraries:       ${libdir}
32011    Install config files:    ${sysconfdir}
32012    Scripts directory:       ${scriptdir}
32013    Archive directory:       ${archivedir}
32014    Working directory:       ${working_dir}
32015    PID directory:           ${piddir}
32016    Subsys directory:        ${subsysdir}
32017    Man directory:           ${mandir}
32018    Data directory:          ${datarootdir}
32019    Plugin directory:        ${plugindir}
32020    C Compiler:              ${CC} ${CCVERSION}
32021    C++ Compiler:            ${CXX} ${CXXVERSION}
32022    Compiler flags:          ${WCFLAGS} ${CFLAGS}
32023    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
32024    Libraries:               ${LIBS}
32025    Statically Linked Tools: ${support_static_tools}
32026    Statically Linked FD:    ${support_static_fd}
32027    Statically Linked SD:    ${support_static_sd}
32028    Statically Linked DIR:   ${support_static_dir}
32029    Statically Linked CONS:  ${support_static_cons}
32030    Database type:           ${db_type}
32031    Database port:           ${db_port}
32032    Database lib:            ${DB_LIBS}
32033    Database name:           ${db_name}
32034    Database user:           ${db_user}
32035
32036    Job Output Email:        ${job_email}
32037    Traceback Email:         ${dump_email}
32038    SMTP Host Address:       ${smtp_host}
32039
32040    Director Port:           ${dir_port}
32041    File daemon Port:        ${fd_port}
32042    Storage daemon Port:     ${sd_port}
32043
32044    Director User:           ${dir_user}
32045    Director Group:          ${dir_group}
32046    Storage Daemon User:     ${sd_user}
32047    Storage DaemonGroup:     ${sd_group}
32048    File Daemon User:        ${fd_user}
32049    File Daemon Group:       ${fd_group}
32050
32051    SQL binaries Directory   ${SQL_BINDIR}
32052
32053    Large file support:      $largefile_support
32054    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32055    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32056    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32057    TLS support:             ${support_tls}
32058    Encryption support:      ${support_crypto}
32059    ZLIB support:            ${have_zlib}
32060    enable-smartalloc:       ${support_smartalloc}
32061    enable-lockmgr:          ${support_lockmgr}
32062    bat support:             ${support_bat}
32063    enable-gnome:            ${support_gnome} ${gnome_version}
32064    enable-bwx-console:      ${support_wx_console} ${wx_version}
32065    enable-tray-monitor:     ${support_tray_monitor}
32066    client-only:             ${build_client_only}
32067    build-dird:              ${build_dird}
32068    build-stored:            ${build_stored}
32069    Plugin support:          ${have_plugins}
32070    ACL support:             ${have_acl}
32071    XATTR support:           ${have_xattr}
32072    Python support:          ${support_python} ${PYTHON_LIBS}
32073    Batch insert enabled:    ${support_batch_insert}
32074
32075   " > config.out
32076
32077 # create a small shell script useful for support with
32078 # configure options and config.out info
32079 cat > scripts/bacula_config << EOF
32080 #!/bin/sh
32081 cat << __EOC__
32082 $ $0 $ac_configure_args
32083 EOF
32084 cat config.out >> scripts/bacula_config
32085 echo __EOC__ >> scripts/bacula_config
32086 chmod 755 scripts/bacula_config
32087
32088 cat config.out
32089
32090 # Display a warning message if postgresql client lib is <= 8.1
32091 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
32092         -a x$support_batch_insert = xyes
32093 then
32094         echo "WARNING: Your PostgreSQL client library is too old to detect "
32095         echo " if it was compiled with --enable-thread-safety, consider to"
32096         echo " upgrade it in order to avoid problems with Batch insert mode"
32097         echo
32098 fi