]> 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.66.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
367   if test "$4"; then
368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370   fi
371   $as_echo "$as_me: error: $2" >&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, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="src/version.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_header_list=
744 ac_subst_vars='LTLIBOBJS
745 DISTVER
746 DISTNAME
747 MACOSX
748 WIN32
749 PSCMD
750 TAPEDRIVE
751 OBJLIST
752 WRAPLIBS
753 WLDFLAGS
754 WCFLAGS
755 DB_LIBS
756 DLIB
757 DINCLUDE
758 DEBUG
759 FDLIBS
760 CAP_LIBS
761 AFS_LIBS
762 AFS_CFLAGS
763 ZLIBS
764 LIBOBJS
765 X_EXTRA_LIBS
766 X_LIBS
767 X_PRE_LIBS
768 X_CFLAGS
769 XMKMF
770 GETCONF
771 DB_TYPE
772 cats
773 DB_PROG_LIB
774 DB_PROG
775 uncomment_dbi
776 DBI_DBD_DRIVERDIR
777 SQL_BINDIR
778 SQL_INCLUDE
779 SQL_LFLAGS
780 SBINPERM
781 fd_group
782 fd_user
783 sd_group
784 sd_user
785 dir_group
786 dir_user
787 db_port
788 db_password
789 db_user
790 db_name
791 mon_sd_password
792 mon_fd_password
793 mon_dir_password
794 sd_password
795 fd_password
796 dir_password
797 sd_port
798 fd_port
799 dir_port
800 baseport
801 subsysdir
802 piddir
803 smtp_host
804 job_email
805 dump_email
806 plugindir
807 logdir
808 bsrdir
809 scriptdir
810 hostname
811 basename
812 archivedir
813 working_dir
814 OPENSSL_INC
815 OPENSSL_LIBS
816 PYTHON_INCDIR
817 PYTHON_LIBS
818 READLINE_SRC
819 CONS_LDFLAGS
820 CONS_LIBS
821 CONS_SRC
822 CONS_OBJ
823 CONS_INC
824 STORED_DIR
825 DIR_TOOLS
826 DIRD_DIR
827 ALL_DIRS
828 STATIC_WX_CONS
829 STATIC_GNOME_CONS
830 STATIC_CONS
831 STATIC_DIR
832 STATIC_SD
833 STATIC_FD
834 TTOOL_LDFLAGS
835 TRAY_MONITOR_DIR
836 TRAY_MONITOR_LDFLAGS
837 TRAY_MONITOR_CPPFLAGS
838 WX_DIR
839 WXCONS_LDFLAGS
840 WXCONS_CPPFLAGS
841 QWT
842 QWT_LIB
843 QWT_LDFLAGS
844 QWT_INC
845 BAT_DIR
846 INTL_LIBTOOL_SUFFIX_PREFIX
847 INTLOBJS
848 GENCAT
849 INSTOBJEXT
850 DATADIRNAME
851 CATOBJEXT
852 USE_INCLUDED_LIBINTL
853 BUILD_INCLUDED_LIBINTL
854 INTLBISON
855 HAVE_WPRINTF
856 HAVE_SNPRINTF
857 HAVE_ASPRINTF
858 HAVE_POSIX_PRINTF
859 GLIBC21
860 ALLOCA
861 GLIBC2
862 POSUB
863 LTLIBINTL
864 LIBINTL
865 INTLLIBS
866 LTLIBICONV
867 LIBICONV
868 INTL_MACOSX_LIBS
869 MSGMERGE
870 XGETTEXT
871 GMSGFMT
872 MSGFMT
873 USE_NLS
874 MKINSTALLDIRS
875 SET_MAKE
876 HAVE_DARWIN_OS_FALSE
877 HAVE_DARWIN_OS_TRUE
878 HAVE_IRIX_OS_FALSE
879 HAVE_IRIX_OS_TRUE
880 HAVE_SGI_OS_FALSE
881 HAVE_SGI_OS_TRUE
882 HAVE_BSDI_OS_FALSE
883 HAVE_BSDI_OS_TRUE
884 HAVE_OPENBSD_OS_FALSE
885 HAVE_OPENBSD_OS_TRUE
886 HAVE_NETBSD_OS_FALSE
887 HAVE_NETBSD_OS_TRUE
888 HAVE_FREEBSD_OS_FALSE
889 HAVE_FREEBSD_OS_TRUE
890 HAVE_LINUX_OS_FALSE
891 HAVE_LINUX_OS_TRUE
892 HAVE_HPUX_OS_FALSE
893 HAVE_HPUX_OS_TRUE
894 HAVE_AIX_OS_FALSE
895 HAVE_AIX_OS_TRUE
896 HAVE_OSF1_OS_FALSE
897 HAVE_OSF1_OS_TRUE
898 HAVE_SUN_OS_FALSE
899 HAVE_SUN_OS_TRUE
900 INCLUDE_UNINSTALL_TARGET
901 INCLUDE_INSTALL_TARGET
902 FD_PLUGIN_DIR
903 QMAKE_LIBTOOL
904 LIBTOOL_CLEAN_TARGET
905 LIBTOOL_UNINSTALL_TARGET
906 LIBTOOL_INSTALL_TARGET
907 DEFAULT_SHARED_OBJECT_TYPE
908 DEFAULT_ARCHIVE_TYPE
909 DEFAULT_OBJECT_TYPE
910 CXXCPP
911 OTOOL64
912 OTOOL
913 LIPO
914 NMEDIT
915 DSYMUTIL
916 lt_ECHO
917 RANLIB
918 STRIP
919 OBJDUMP
920 LN_S
921 NM
922 ac_ct_DUMPBIN
923 DUMPBIN
924 LD
925 FGREP
926 host_os
927 host_vendor
928 host_cpu
929 host
930 build_os
931 build_vendor
932 build_cpu
933 build
934 LIBTOOL
935 LOCAL_DEFS
936 LOCAL_LDFLAGS
937 LOCAL_CFLAGS
938 LOCAL_LIBS
939 MAKE_SHELL
940 ARFLAGS
941 AWK
942 PIDOF
943 CDRECORD
944 WXFLAGS
945 WXCONFIG
946 GMAKE
947 QMAKE
948 PKGCONFIG
949 DVDRWFORMAT
950 DVDRWMEDIAINFO
951 GROWISOFS
952 PYTHON
953 MKISOFS
954 DD
955 MTX
956 OPENSSL
957 AR
958 TBL
959 CMP
960 ECHO
961 SED
962 CP
963 REMOVE
964 MV
965 INSTALL_DATA
966 INSTALL_SCRIPT
967 INSTALL_PROGRAM
968 EGREP
969 GREP
970 CPP
971 ac_ct_CXX
972 CXXFLAGS
973 CXX
974 OBJEXT
975 EXEEXT
976 ac_ct_CC
977 CPPFLAGS
978 LDFLAGS
979 CFLAGS
980 CC
981 LIBBACFIND_LT_RELEASE
982 LIBBACSQL_LT_RELEASE
983 LIBBACPY_LT_RELEASE
984 LIBBACCFG_LT_RELEASE
985 LIBBAC_LT_RELEASE
986 BDB_VERSION
987 post_host
988 BACULA
989 LSMDATE
990 DATE
991 VERSION
992 FALSEPRG
993 TRUEPRG
994 WIN32TOPDIR
995 WIN32MAINDIR
996 WIN32BUILDDIR
997 TOP_DIR
998 BUILD_DIR
999 target_alias
1000 host_alias
1001 build_alias
1002 LIBS
1003 ECHO_T
1004 ECHO_N
1005 ECHO_C
1006 DEFS
1007 mandir
1008 localedir
1009 libdir
1010 psdir
1011 pdfdir
1012 dvidir
1013 htmldir
1014 infodir
1015 docdir
1016 oldincludedir
1017 includedir
1018 localstatedir
1019 sharedstatedir
1020 sysconfdir
1021 datadir
1022 datarootdir
1023 libexecdir
1024 sbindir
1025 bindir
1026 program_transform_name
1027 prefix
1028 exec_prefix
1029 PACKAGE_URL
1030 PACKAGE_BUGREPORT
1031 PACKAGE_STRING
1032 PACKAGE_VERSION
1033 PACKAGE_TARNAME
1034 PACKAGE_NAME
1035 PATH_SEPARATOR
1036 SHELL'
1037 ac_subst_files='MCOMMON'
1038 ac_user_opts='
1039 enable_option_checking
1040 enable_libtool
1041 enable_shared
1042 enable_static
1043 with_pic
1044 enable_fast_install
1045 with_gnu_ld
1046 enable_libtool_lock
1047 enable_includes
1048 enable_nls
1049 enable_rpath
1050 with_libiconv_prefix
1051 with_libintl_prefix
1052 with_included_gettext
1053 enable_gnome
1054 enable_bat
1055 enable_bwx_console
1056 enable_tray_monitor
1057 enable_smartalloc
1058 enable_lockmgr
1059 enable_static_tools
1060 enable_static_fd
1061 enable_static_sd
1062 enable_static_dir
1063 enable_static_cons
1064 enable_client_only
1065 enable_build_dird
1066 enable_build_stored
1067 enable_conio
1068 enable_ipv6
1069 enable_readline
1070 with_readline
1071 with_python
1072 with_tcp_wrappers
1073 with_openssl
1074 with_working_dir
1075 with_archivedir
1076 with_basename
1077 with_hostname
1078 with_scriptdir
1079 with_bsrdir
1080 with_logdir
1081 with_plugindir
1082 with_dump_email
1083 with_job_email
1084 with_smtp_host
1085 with_pid_dir
1086 with_subsys_dir
1087 with_baseport
1088 with_dir_password
1089 with_fd_password
1090 with_sd_password
1091 with_mon_dir_password
1092 with_mon_fd_password
1093 with_mon_sd_password
1094 with_db_name
1095 with_db_user
1096 with_db_password
1097 with_db_port
1098 with_dir_user
1099 with_dir_group
1100 with_sd_user
1101 with_sd_group
1102 with_fd_user
1103 with_fd_group
1104 with_sbin_perm
1105 with_postgresql
1106 with_mysql
1107 with_embedded_mysql
1108 with_ingres
1109 with_sqlite3
1110 with_dbi
1111 with_dbi_driver
1112 enable_batch_insert
1113 enable_largefile
1114 with_x
1115 enable_afs
1116 with_afsdir
1117 enable_acl
1118 enable_xattr
1119 '
1120       ac_precious_vars='build_alias
1121 host_alias
1122 target_alias
1123 CC
1124 CFLAGS
1125 LDFLAGS
1126 LIBS
1127 CPPFLAGS
1128 CXX
1129 CXXFLAGS
1130 CCC
1131 CPP
1132 WXCONFIG
1133 WXFLAGS
1134 CXXCPP
1135 XMKMF'
1136
1137
1138 # Initialize some variables set by options.
1139 ac_init_help=
1140 ac_init_version=false
1141 ac_unrecognized_opts=
1142 ac_unrecognized_sep=
1143 # The variables have the same names as the options, with
1144 # dashes changed to underlines.
1145 cache_file=/dev/null
1146 exec_prefix=NONE
1147 no_create=
1148 no_recursion=
1149 prefix=NONE
1150 program_prefix=NONE
1151 program_suffix=NONE
1152 program_transform_name=s,x,x,
1153 silent=
1154 site=
1155 srcdir=
1156 verbose=
1157 x_includes=NONE
1158 x_libraries=NONE
1159
1160 # Installation directory options.
1161 # These are left unexpanded so users can "make install exec_prefix=/foo"
1162 # and all the variables that are supposed to be based on exec_prefix
1163 # by default will actually change.
1164 # Use braces instead of parens because sh, perl, etc. also accept them.
1165 # (The list follows the same order as the GNU Coding Standards.)
1166 bindir='${exec_prefix}/bin'
1167 sbindir='${exec_prefix}/sbin'
1168 libexecdir='${exec_prefix}/libexec'
1169 datarootdir='${prefix}/share'
1170 datadir='${datarootdir}'
1171 sysconfdir='${prefix}/etc'
1172 sharedstatedir='${prefix}/com'
1173 localstatedir='${prefix}/var'
1174 includedir='${prefix}/include'
1175 oldincludedir='/usr/include'
1176 docdir='${datarootdir}/doc/${PACKAGE}'
1177 infodir='${datarootdir}/info'
1178 htmldir='${docdir}'
1179 dvidir='${docdir}'
1180 pdfdir='${docdir}'
1181 psdir='${docdir}'
1182 libdir='${exec_prefix}/lib'
1183 localedir='${datarootdir}/locale'
1184 mandir='${datarootdir}/man'
1185
1186 ac_prev=
1187 ac_dashdash=
1188 for ac_option
1189 do
1190   # If the previous option needs an argument, assign it.
1191   if test -n "$ac_prev"; then
1192     eval $ac_prev=\$ac_option
1193     ac_prev=
1194     continue
1195   fi
1196
1197   case $ac_option in
1198   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1199   *)    ac_optarg=yes ;;
1200   esac
1201
1202   # Accept the important Cygnus configure options, so we can diagnose typos.
1203
1204   case $ac_dashdash$ac_option in
1205   --)
1206     ac_dashdash=yes ;;
1207
1208   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1209     ac_prev=bindir ;;
1210   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1211     bindir=$ac_optarg ;;
1212
1213   -build | --build | --buil | --bui | --bu)
1214     ac_prev=build_alias ;;
1215   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1216     build_alias=$ac_optarg ;;
1217
1218   -cache-file | --cache-file | --cache-fil | --cache-fi \
1219   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1220     ac_prev=cache_file ;;
1221   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1222   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1223     cache_file=$ac_optarg ;;
1224
1225   --config-cache | -C)
1226     cache_file=config.cache ;;
1227
1228   -datadir | --datadir | --datadi | --datad)
1229     ac_prev=datadir ;;
1230   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1231     datadir=$ac_optarg ;;
1232
1233   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1234   | --dataroo | --dataro | --datar)
1235     ac_prev=datarootdir ;;
1236   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1237   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1238     datarootdir=$ac_optarg ;;
1239
1240   -disable-* | --disable-*)
1241     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244       as_fn_error $? "invalid feature name: $ac_useropt"
1245     ac_useropt_orig=$ac_useropt
1246     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247     case $ac_user_opts in
1248       *"
1249 "enable_$ac_useropt"
1250 "*) ;;
1251       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1252          ac_unrecognized_sep=', ';;
1253     esac
1254     eval enable_$ac_useropt=no ;;
1255
1256   -docdir | --docdir | --docdi | --doc | --do)
1257     ac_prev=docdir ;;
1258   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1259     docdir=$ac_optarg ;;
1260
1261   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1262     ac_prev=dvidir ;;
1263   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1264     dvidir=$ac_optarg ;;
1265
1266   -enable-* | --enable-*)
1267     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270       as_fn_error $? "invalid feature name: $ac_useropt"
1271     ac_useropt_orig=$ac_useropt
1272     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273     case $ac_user_opts in
1274       *"
1275 "enable_$ac_useropt"
1276 "*) ;;
1277       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1278          ac_unrecognized_sep=', ';;
1279     esac
1280     eval enable_$ac_useropt=\$ac_optarg ;;
1281
1282   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1283   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1284   | --exec | --exe | --ex)
1285     ac_prev=exec_prefix ;;
1286   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1287   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1288   | --exec=* | --exe=* | --ex=*)
1289     exec_prefix=$ac_optarg ;;
1290
1291   -gas | --gas | --ga | --g)
1292     # Obsolete; use --with-gas.
1293     with_gas=yes ;;
1294
1295   -help | --help | --hel | --he | -h)
1296     ac_init_help=long ;;
1297   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1298     ac_init_help=recursive ;;
1299   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1300     ac_init_help=short ;;
1301
1302   -host | --host | --hos | --ho)
1303     ac_prev=host_alias ;;
1304   -host=* | --host=* | --hos=* | --ho=*)
1305     host_alias=$ac_optarg ;;
1306
1307   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1308     ac_prev=htmldir ;;
1309   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1310   | --ht=*)
1311     htmldir=$ac_optarg ;;
1312
1313   -includedir | --includedir | --includedi | --included | --include \
1314   | --includ | --inclu | --incl | --inc)
1315     ac_prev=includedir ;;
1316   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1317   | --includ=* | --inclu=* | --incl=* | --inc=*)
1318     includedir=$ac_optarg ;;
1319
1320   -infodir | --infodir | --infodi | --infod | --info | --inf)
1321     ac_prev=infodir ;;
1322   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1323     infodir=$ac_optarg ;;
1324
1325   -libdir | --libdir | --libdi | --libd)
1326     ac_prev=libdir ;;
1327   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1328     libdir=$ac_optarg ;;
1329
1330   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1331   | --libexe | --libex | --libe)
1332     ac_prev=libexecdir ;;
1333   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1334   | --libexe=* | --libex=* | --libe=*)
1335     libexecdir=$ac_optarg ;;
1336
1337   -localedir | --localedir | --localedi | --localed | --locale)
1338     ac_prev=localedir ;;
1339   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1340     localedir=$ac_optarg ;;
1341
1342   -localstatedir | --localstatedir | --localstatedi | --localstated \
1343   | --localstate | --localstat | --localsta | --localst | --locals)
1344     ac_prev=localstatedir ;;
1345   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1346   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1347     localstatedir=$ac_optarg ;;
1348
1349   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1350     ac_prev=mandir ;;
1351   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1352     mandir=$ac_optarg ;;
1353
1354   -nfp | --nfp | --nf)
1355     # Obsolete; use --without-fp.
1356     with_fp=no ;;
1357
1358   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1359   | --no-cr | --no-c | -n)
1360     no_create=yes ;;
1361
1362   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1363   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1364     no_recursion=yes ;;
1365
1366   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1367   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1368   | --oldin | --oldi | --old | --ol | --o)
1369     ac_prev=oldincludedir ;;
1370   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1371   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1372   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1373     oldincludedir=$ac_optarg ;;
1374
1375   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1376     ac_prev=prefix ;;
1377   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1378     prefix=$ac_optarg ;;
1379
1380   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1381   | --program-pre | --program-pr | --program-p)
1382     ac_prev=program_prefix ;;
1383   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1384   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1385     program_prefix=$ac_optarg ;;
1386
1387   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1388   | --program-suf | --program-su | --program-s)
1389     ac_prev=program_suffix ;;
1390   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1391   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1392     program_suffix=$ac_optarg ;;
1393
1394   -program-transform-name | --program-transform-name \
1395   | --program-transform-nam | --program-transform-na \
1396   | --program-transform-n | --program-transform- \
1397   | --program-transform | --program-transfor \
1398   | --program-transfo | --program-transf \
1399   | --program-trans | --program-tran \
1400   | --progr-tra | --program-tr | --program-t)
1401     ac_prev=program_transform_name ;;
1402   -program-transform-name=* | --program-transform-name=* \
1403   | --program-transform-nam=* | --program-transform-na=* \
1404   | --program-transform-n=* | --program-transform-=* \
1405   | --program-transform=* | --program-transfor=* \
1406   | --program-transfo=* | --program-transf=* \
1407   | --program-trans=* | --program-tran=* \
1408   | --progr-tra=* | --program-tr=* | --program-t=*)
1409     program_transform_name=$ac_optarg ;;
1410
1411   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1412     ac_prev=pdfdir ;;
1413   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1414     pdfdir=$ac_optarg ;;
1415
1416   -psdir | --psdir | --psdi | --psd | --ps)
1417     ac_prev=psdir ;;
1418   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1419     psdir=$ac_optarg ;;
1420
1421   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1422   | -silent | --silent | --silen | --sile | --sil)
1423     silent=yes ;;
1424
1425   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1426     ac_prev=sbindir ;;
1427   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1428   | --sbi=* | --sb=*)
1429     sbindir=$ac_optarg ;;
1430
1431   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1432   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1433   | --sharedst | --shareds | --shared | --share | --shar \
1434   | --sha | --sh)
1435     ac_prev=sharedstatedir ;;
1436   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1437   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1438   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1439   | --sha=* | --sh=*)
1440     sharedstatedir=$ac_optarg ;;
1441
1442   -site | --site | --sit)
1443     ac_prev=site ;;
1444   -site=* | --site=* | --sit=*)
1445     site=$ac_optarg ;;
1446
1447   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1448     ac_prev=srcdir ;;
1449   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1450     srcdir=$ac_optarg ;;
1451
1452   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1453   | --syscon | --sysco | --sysc | --sys | --sy)
1454     ac_prev=sysconfdir ;;
1455   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1456   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1457     sysconfdir=$ac_optarg ;;
1458
1459   -target | --target | --targe | --targ | --tar | --ta | --t)
1460     ac_prev=target_alias ;;
1461   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1462     target_alias=$ac_optarg ;;
1463
1464   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1465     verbose=yes ;;
1466
1467   -version | --version | --versio | --versi | --vers | -V)
1468     ac_init_version=: ;;
1469
1470   -with-* | --with-*)
1471     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1472     # Reject names that are not valid shell variable names.
1473     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1474       as_fn_error $? "invalid package name: $ac_useropt"
1475     ac_useropt_orig=$ac_useropt
1476     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1477     case $ac_user_opts in
1478       *"
1479 "with_$ac_useropt"
1480 "*) ;;
1481       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1482          ac_unrecognized_sep=', ';;
1483     esac
1484     eval with_$ac_useropt=\$ac_optarg ;;
1485
1486   -without-* | --without-*)
1487     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1488     # Reject names that are not valid shell variable names.
1489     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1490       as_fn_error $? "invalid package name: $ac_useropt"
1491     ac_useropt_orig=$ac_useropt
1492     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493     case $ac_user_opts in
1494       *"
1495 "with_$ac_useropt"
1496 "*) ;;
1497       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1498          ac_unrecognized_sep=', ';;
1499     esac
1500     eval with_$ac_useropt=no ;;
1501
1502   --x)
1503     # Obsolete; use --with-x.
1504     with_x=yes ;;
1505
1506   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1507   | --x-incl | --x-inc | --x-in | --x-i)
1508     ac_prev=x_includes ;;
1509   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1510   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1511     x_includes=$ac_optarg ;;
1512
1513   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1514   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1515     ac_prev=x_libraries ;;
1516   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1517   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1518     x_libraries=$ac_optarg ;;
1519
1520   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1521 Try \`$0 --help' for more information"
1522     ;;
1523
1524   *=*)
1525     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1526     # Reject names that are not valid shell variable names.
1527     case $ac_envvar in #(
1528       '' | [0-9]* | *[!_$as_cr_alnum]* )
1529       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1530     esac
1531     eval $ac_envvar=\$ac_optarg
1532     export $ac_envvar ;;
1533
1534   *)
1535     # FIXME: should be removed in autoconf 3.0.
1536     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1537     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1538       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1539     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1540     ;;
1541
1542   esac
1543 done
1544
1545 if test -n "$ac_prev"; then
1546   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1547   as_fn_error $? "missing argument to $ac_option"
1548 fi
1549
1550 if test -n "$ac_unrecognized_opts"; then
1551   case $enable_option_checking in
1552     no) ;;
1553     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1554     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1555   esac
1556 fi
1557
1558 # Check all directory arguments for consistency.
1559 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1560                 datadir sysconfdir sharedstatedir localstatedir includedir \
1561                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1562                 libdir localedir mandir
1563 do
1564   eval ac_val=\$$ac_var
1565   # Remove trailing slashes.
1566   case $ac_val in
1567     */ )
1568       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1569       eval $ac_var=\$ac_val;;
1570   esac
1571   # Be sure to have absolute directory names.
1572   case $ac_val in
1573     [\\/$]* | ?:[\\/]* )  continue;;
1574     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1575   esac
1576   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1577 done
1578
1579 # There might be people who depend on the old broken behavior: `$host'
1580 # used to hold the argument of --host etc.
1581 # FIXME: To remove some day.
1582 build=$build_alias
1583 host=$host_alias
1584 target=$target_alias
1585
1586 # FIXME: To remove some day.
1587 if test "x$host_alias" != x; then
1588   if test "x$build_alias" = x; then
1589     cross_compiling=maybe
1590     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1591     If a cross compiler is detected then cross compile mode will be used" >&2
1592   elif test "x$build_alias" != "x$host_alias"; then
1593     cross_compiling=yes
1594   fi
1595 fi
1596
1597 ac_tool_prefix=
1598 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1599
1600 test "$silent" = yes && exec 6>/dev/null
1601
1602
1603 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1604 ac_ls_di=`ls -di .` &&
1605 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1606   as_fn_error $? "working directory cannot be determined"
1607 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1608   as_fn_error $? "pwd does not report name of working directory"
1609
1610
1611 # Find the source files, if location was not specified.
1612 if test -z "$srcdir"; then
1613   ac_srcdir_defaulted=yes
1614   # Try the directory containing this script, then the parent directory.
1615   ac_confdir=`$as_dirname -- "$as_myself" ||
1616 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1617          X"$as_myself" : 'X\(//\)[^/]' \| \
1618          X"$as_myself" : 'X\(//\)$' \| \
1619          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1620 $as_echo X"$as_myself" |
1621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1622             s//\1/
1623             q
1624           }
1625           /^X\(\/\/\)[^/].*/{
1626             s//\1/
1627             q
1628           }
1629           /^X\(\/\/\)$/{
1630             s//\1/
1631             q
1632           }
1633           /^X\(\/\).*/{
1634             s//\1/
1635             q
1636           }
1637           s/.*/./; q'`
1638   srcdir=$ac_confdir
1639   if test ! -r "$srcdir/$ac_unique_file"; then
1640     srcdir=..
1641   fi
1642 else
1643   ac_srcdir_defaulted=no
1644 fi
1645 if test ! -r "$srcdir/$ac_unique_file"; then
1646   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1647   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1648 fi
1649 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1650 ac_abs_confdir=`(
1651         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1652         pwd)`
1653 # When building in place, set srcdir=.
1654 if test "$ac_abs_confdir" = "$ac_pwd"; then
1655   srcdir=.
1656 fi
1657 # Remove unnecessary trailing slashes from srcdir.
1658 # Double slashes in file names in object file debugging info
1659 # mess up M-x gdb in Emacs.
1660 case $srcdir in
1661 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1662 esac
1663 for ac_var in $ac_precious_vars; do
1664   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1665   eval ac_env_${ac_var}_value=\$${ac_var}
1666   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1667   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1668 done
1669
1670 #
1671 # Report the --help message.
1672 #
1673 if test "$ac_init_help" = "long"; then
1674   # Omit some internal or obsolete options to make the list less imposing.
1675   # This message is too long to be a string in the A/UX 3.1 sh.
1676   cat <<_ACEOF
1677 \`configure' configures this package to adapt to many kinds of systems.
1678
1679 Usage: $0 [OPTION]... [VAR=VALUE]...
1680
1681 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1682 VAR=VALUE.  See below for descriptions of some of the useful variables.
1683
1684 Defaults for the options are specified in brackets.
1685
1686 Configuration:
1687   -h, --help              display this help and exit
1688       --help=short        display options specific to this package
1689       --help=recursive    display the short help of all the included packages
1690   -V, --version           display version information and exit
1691   -q, --quiet, --silent   do not print \`checking ...' messages
1692       --cache-file=FILE   cache test results in FILE [disabled]
1693   -C, --config-cache      alias for \`--cache-file=config.cache'
1694   -n, --no-create         do not create output files
1695       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1696
1697 Installation directories:
1698   --prefix=PREFIX         install architecture-independent files in PREFIX
1699                           [$ac_default_prefix]
1700   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1701                           [PREFIX]
1702
1703 By default, \`make install' will install all the files in
1704 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1705 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1706 for instance \`--prefix=\$HOME'.
1707
1708 For better control, use the options below.
1709
1710 Fine tuning of the installation directories:
1711   --bindir=DIR            user executables [EPREFIX/bin]
1712   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1713   --libexecdir=DIR        program executables [EPREFIX/libexec]
1714   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1715   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1716   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1717   --libdir=DIR            object code libraries [EPREFIX/lib]
1718   --includedir=DIR        C header files [PREFIX/include]
1719   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1720   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1721   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1722   --infodir=DIR           info documentation [DATAROOTDIR/info]
1723   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1724   --mandir=DIR            man documentation [DATAROOTDIR/man]
1725   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1726   --htmldir=DIR           html documentation [DOCDIR]
1727   --dvidir=DIR            dvi documentation [DOCDIR]
1728   --pdfdir=DIR            pdf documentation [DOCDIR]
1729   --psdir=DIR             ps documentation [DOCDIR]
1730 _ACEOF
1731
1732   cat <<\_ACEOF
1733
1734 X features:
1735   --x-includes=DIR    X include files are in DIR
1736   --x-libraries=DIR   X library files are in DIR
1737
1738 System types:
1739   --build=BUILD     configure for building on BUILD [guessed]
1740   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1741 _ACEOF
1742 fi
1743
1744 if test -n "$ac_init_help"; then
1745
1746   cat <<\_ACEOF
1747
1748 Optional Features:
1749   --disable-option-checking  ignore unrecognized --enable/--with options
1750   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1751   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1752   --enable-libtool        enable building using GNU libtool [default=yes]
1753   --enable-shared[=PKGS]  build shared libraries [default=yes]
1754   --enable-static[=PKGS]  build static libraries [default=no]
1755   --enable-fast-install[=PKGS]
1756                           optimize for fast installation [default=yes]
1757   --disable-libtool-lock  avoid locking (might break parallel builds)
1758   --enable-includes       enable installing of include files [default=no]
1759   --disable-nls           do not use Native Language Support
1760   --disable-rpath         do not hardcode runtime library paths
1761   --enable-gnome          enable build of bgnome-console GUI [default=no]
1762   --enable-bat            enable build of bat Qt4 GUI [default=no]
1763   --enable-bwx-console    enable build of wxWidgets console [default=no]
1764   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1765                           KDE [default=no]
1766   --enable-smartalloc     enable smartalloc debugging support [default=no]
1767   --enable-lockmgr        enable lock manager support [default=no]
1768   --enable-static-tools   enable static tape tools [default=no]
1769   --enable-static-fd      enable static File daemon [default=no]
1770   --enable-static-sd      enable static Storage daemon [default=no]
1771   --enable-static-dir     enable static Director [default=no]
1772   --enable-static-cons    enable static Console [default=no]
1773   --enable-client-only    build client (File daemon) only [default=no]
1774   --enable-build-dird     enable building of dird (Director) [default=yes]
1775   --enable-build-stored   enable building of stored (Storage daemon)
1776                           [default=yes]
1777   --disable-conio         disable conio support [default=no]
1778   --enable-ipv6           enable ipv6 support [default=yes]
1779   --disable-readline      disable readline support [default=yes]
1780   --enable-batch-insert   enable the DB batch insert code [default=no]
1781   --disable-largefile     omit support for large files
1782   --disable-afs           disable afs support [default=auto]
1783   --disable-acl           disable acl support [default=auto]
1784   --disable-xattr         disable xattr support [default=auto]
1785
1786 Optional Packages:
1787   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1788   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1789   --with-pic              try to use only PIC/non-PIC objects [default=use
1790                           both]
1791   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1792   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1793   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1794   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1795   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1796   --without-libintl-prefix     don't search for libintl in includedir and libdir
1797   --with-included-gettext use the GNU gettext library included here
1798   --with-readline[=DIR]   specify readline library directory
1799   --with-python[=DIR]     Include Python support. DIR is the Python base
1800                           install directory, default is to search through a
1801                           number of common places for the Python files.
1802   --with-tcp-wrappers[=DIR]
1803                           enable tcpwrappers support
1804   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1805   --with-working-dir=PATH specify path of Bacula working directory
1806   --with-archivedir=PATH  specify path of SD archive directory
1807   --with-basename=RESNAME specify base resource name for daemons
1808   --with-hostname=RESNAME specify host name for daemons
1809   --with-scriptdir=PATH   specify path of Bacula scripts directory
1810   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1811   --with-logdir=PATH      specify path of Bacula logs directory
1812   --with-plugindir=PATH   specify path of Bacula plugins directory
1813   --with-dump-email=EMAIL dump email address
1814   --with-job-email=EMAIL  job output email address
1815   --with-smtp-host=HOST   SMTP mail host address
1816   --with-pid-dir=PATH     specify location of Bacula pid files
1817   --with-subsys-dir=PATH  specify location of Bacula subsys file
1818   --with-baseport=PORT    specify base port address for daemons
1819   --with-dir-password=PASSWORD
1820                           specify Director's password
1821   --with-fd-password=PASSWORD
1822                           specify Client's password
1823   --with-sd-password=PASSWORD
1824                           specify Storage daemon's password
1825   --with-mon-dir-password=PASSWORD
1826                           specify Director's password used by the monitor
1827   --with-mon-fd-password=PASSWORD
1828                           specify Client's password used by the monitor
1829   --with-mon-sd-password=PASSWORD
1830                           specify Storage daemon's password used by the
1831                           monitor
1832   --with-db-name=DBNAME   specify database name [default=bacula]
1833   --with-db-user=UNAME    specify database user [default=bacula]
1834   --with-db-password=PWD  specify database password [default=*none*]
1835   --with-db-port=DBPORT   specify a database port [default=null]
1836   --with-dir-user=USER    specify user for Director daemon
1837   --with-dir-group=GROUP  specify group for Director daemon
1838   --with-sd-user=USER     specify user for Storage daemon
1839   --with-sd-group=GROUP   specify group for Storage daemon
1840   --with-fd-user=USER     specify user for File daemon
1841   --with-fd-group=GROUP   specify group for File daemon
1842   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1843   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1844                           base install directory, [default=/usr/local/pgsql]
1845   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1846                           directory, default is to search through a number of
1847                           common places for the MySQL files.
1848   --with-embedded-mysql[=DIR]
1849                           Include MySQL support. DIR is the MySQL base install
1850                           directory, default is to search through a number of
1851                           common places for the MySQL files.
1852   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1853                           install directory, default is to search through a
1854                           number of common places for the Ingres files.
1855   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1856                           install directory, default is to search through a
1857                           number of common places for the SQLite3 files.
1858   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1859                           directory, default is to search through a number of
1860                           common places for the DBI files.
1861   --with-dbi-driver[=DRIVER]
1862                           Suport for DBI driver. DRIVER is the one DBI driver
1863                           like Mysql, Postgresql, others. Default is to not
1864                           configure any driver.
1865   --with-x                use the X Window System
1866   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1867
1868 Some influential environment variables:
1869   CC          C compiler command
1870   CFLAGS      C compiler flags
1871   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1872               nonstandard directory <lib dir>
1873   LIBS        libraries to pass to the linker, e.g. -l<library>
1874   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1875               you have headers in a nonstandard directory <include dir>
1876   CXX         C++ compiler command
1877   CXXFLAGS    C++ compiler flags
1878   CPP         C preprocessor
1879   WXCONFIG    wx-config command. On some systems, you must set it to
1880               wx-config-2.6 to use wxWidgets 2.6.
1881   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1882   CXXCPP      C++ preprocessor
1883   XMKMF       Path to xmkmf, Makefile generator for X Window System
1884
1885 Use these variables to override the choices made by `configure' or to help
1886 it to find libraries and programs with nonstandard names/locations.
1887
1888 Report bugs to the package provider.
1889 _ACEOF
1890 ac_status=$?
1891 fi
1892
1893 if test "$ac_init_help" = "recursive"; then
1894   # If there are subdirs, report their specific --help.
1895   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1896     test -d "$ac_dir" ||
1897       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1898       continue
1899     ac_builddir=.
1900
1901 case "$ac_dir" in
1902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1903 *)
1904   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1905   # A ".." for each directory in $ac_dir_suffix.
1906   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1907   case $ac_top_builddir_sub in
1908   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1909   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1910   esac ;;
1911 esac
1912 ac_abs_top_builddir=$ac_pwd
1913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1914 # for backward compatibility:
1915 ac_top_builddir=$ac_top_build_prefix
1916
1917 case $srcdir in
1918   .)  # We are building in place.
1919     ac_srcdir=.
1920     ac_top_srcdir=$ac_top_builddir_sub
1921     ac_abs_top_srcdir=$ac_pwd ;;
1922   [\\/]* | ?:[\\/]* )  # Absolute name.
1923     ac_srcdir=$srcdir$ac_dir_suffix;
1924     ac_top_srcdir=$srcdir
1925     ac_abs_top_srcdir=$srcdir ;;
1926   *) # Relative name.
1927     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1928     ac_top_srcdir=$ac_top_build_prefix$srcdir
1929     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1930 esac
1931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1932
1933     cd "$ac_dir" || { ac_status=$?; continue; }
1934     # Check for guested configure.
1935     if test -f "$ac_srcdir/configure.gnu"; then
1936       echo &&
1937       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1938     elif test -f "$ac_srcdir/configure"; then
1939       echo &&
1940       $SHELL "$ac_srcdir/configure" --help=recursive
1941     else
1942       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1943     fi || ac_status=$?
1944     cd "$ac_pwd" || { ac_status=$?; break; }
1945   done
1946 fi
1947
1948 test -n "$ac_init_help" && exit $ac_status
1949 if $ac_init_version; then
1950   cat <<\_ACEOF
1951 configure
1952 generated by GNU Autoconf 2.66
1953
1954 Copyright (C) 2010 Free Software Foundation, Inc.
1955 This configure script is free software; the Free Software Foundation
1956 gives unlimited permission to copy, distribute and modify it.
1957 _ACEOF
1958   exit
1959 fi
1960
1961 ## ------------------------ ##
1962 ## Autoconf initialization. ##
1963 ## ------------------------ ##
1964
1965 # ac_fn_c_try_compile LINENO
1966 # --------------------------
1967 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_c_try_compile ()
1969 {
1970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971   rm -f conftest.$ac_objext
1972   if { { ac_try="$ac_compile"
1973 case "(($ac_try" in
1974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975   *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979   (eval "$ac_compile") 2>conftest.err
1980   ac_status=$?
1981   if test -s conftest.err; then
1982     grep -v '^ *+' conftest.err >conftest.er1
1983     cat conftest.er1 >&5
1984     mv -f conftest.er1 conftest.err
1985   fi
1986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987   test $ac_status = 0; } && {
1988          test -z "$ac_c_werror_flag" ||
1989          test ! -s conftest.err
1990        } && test -s conftest.$ac_objext; then :
1991   ac_retval=0
1992 else
1993   $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996         ac_retval=1
1997 fi
1998   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999   as_fn_set_status $ac_retval
2000
2001 } # ac_fn_c_try_compile
2002
2003 # ac_fn_cxx_try_compile LINENO
2004 # ----------------------------
2005 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2006 ac_fn_cxx_try_compile ()
2007 {
2008   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009   rm -f conftest.$ac_objext
2010   if { { ac_try="$ac_compile"
2011 case "(($ac_try" in
2012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013   *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017   (eval "$ac_compile") 2>conftest.err
2018   ac_status=$?
2019   if test -s conftest.err; then
2020     grep -v '^ *+' conftest.err >conftest.er1
2021     cat conftest.er1 >&5
2022     mv -f conftest.er1 conftest.err
2023   fi
2024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025   test $ac_status = 0; } && {
2026          test -z "$ac_cxx_werror_flag" ||
2027          test ! -s conftest.err
2028        } && test -s conftest.$ac_objext; then :
2029   ac_retval=0
2030 else
2031   $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034         ac_retval=1
2035 fi
2036   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037   as_fn_set_status $ac_retval
2038
2039 } # ac_fn_cxx_try_compile
2040
2041 # ac_fn_c_try_cpp LINENO
2042 # ----------------------
2043 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2044 ac_fn_c_try_cpp ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   if { { ac_try="$ac_cpp conftest.$ac_ext"
2048 case "(($ac_try" in
2049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050   *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2055   ac_status=$?
2056   if test -s conftest.err; then
2057     grep -v '^ *+' conftest.err >conftest.er1
2058     cat conftest.er1 >&5
2059     mv -f conftest.er1 conftest.err
2060   fi
2061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062   test $ac_status = 0; } >/dev/null && {
2063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2064          test ! -s conftest.err
2065        }; then :
2066   ac_retval=0
2067 else
2068   $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071     ac_retval=1
2072 fi
2073   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074   as_fn_set_status $ac_retval
2075
2076 } # ac_fn_c_try_cpp
2077
2078 # ac_fn_c_try_link LINENO
2079 # -----------------------
2080 # Try to link conftest.$ac_ext, and return whether this succeeded.
2081 ac_fn_c_try_link ()
2082 {
2083   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084   rm -f conftest.$ac_objext conftest$ac_exeext
2085   if { { ac_try="$ac_link"
2086 case "(($ac_try" in
2087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088   *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092   (eval "$ac_link") 2>conftest.err
2093   ac_status=$?
2094   if test -s conftest.err; then
2095     grep -v '^ *+' conftest.err >conftest.er1
2096     cat conftest.er1 >&5
2097     mv -f conftest.er1 conftest.err
2098   fi
2099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100   test $ac_status = 0; } && {
2101          test -z "$ac_c_werror_flag" ||
2102          test ! -s conftest.err
2103        } && test -s conftest$ac_exeext && {
2104          test "$cross_compiling" = yes ||
2105          $as_test_x conftest$ac_exeext
2106        }; then :
2107   ac_retval=0
2108 else
2109   $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2111
2112         ac_retval=1
2113 fi
2114   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2115   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2116   # interfere with the next link command; also delete a directory that is
2117   # left behind by Apple's compiler.  We do this before executing the actions.
2118   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2119   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120   as_fn_set_status $ac_retval
2121
2122 } # ac_fn_c_try_link
2123
2124 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2125 # -------------------------------------------------------
2126 # Tests whether HEADER exists and can be compiled using the include files in
2127 # INCLUDES, setting the cache variable VAR accordingly.
2128 ac_fn_c_check_header_compile ()
2129 {
2130   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; }
2133 if eval "test \"\${$3+set}\"" = set; then :
2134   $as_echo_n "(cached) " >&6
2135 else
2136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h.  */
2138 $4
2139 #include <$2>
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142   eval "$3=yes"
2143 else
2144   eval "$3=no"
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 fi
2148 eval ac_res=\$$3
2149                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152
2153 } # ac_fn_c_check_header_compile
2154
2155 # ac_fn_c_try_run LINENO
2156 # ----------------------
2157 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2158 # that executables *can* be run.
2159 ac_fn_c_try_run ()
2160 {
2161   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162   if { { ac_try="$ac_link"
2163 case "(($ac_try" in
2164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165   *) ac_try_echo=$ac_try;;
2166 esac
2167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168 $as_echo "$ac_try_echo"; } >&5
2169   (eval "$ac_link") 2>&5
2170   ac_status=$?
2171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2173   { { case "(($ac_try" in
2174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175   *) ac_try_echo=$ac_try;;
2176 esac
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179   (eval "$ac_try") 2>&5
2180   ac_status=$?
2181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182   test $ac_status = 0; }; }; then :
2183   ac_retval=0
2184 else
2185   $as_echo "$as_me: program exited with status $ac_status" >&5
2186        $as_echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189        ac_retval=$ac_status
2190 fi
2191   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2192   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193   as_fn_set_status $ac_retval
2194
2195 } # ac_fn_c_try_run
2196
2197 # ac_fn_c_check_func LINENO FUNC VAR
2198 # ----------------------------------
2199 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2200 ac_fn_c_check_func ()
2201 {
2202   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if eval "test \"\${$3+set}\"" = set; then :
2206   $as_echo_n "(cached) " >&6
2207 else
2208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h.  */
2210 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2212 #define $2 innocuous_$2
2213
2214 /* System header to define __stub macros and hopefully few prototypes,
2215     which can conflict with char $2 (); below.
2216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2217     <limits.h> exists even on freestanding compilers.  */
2218
2219 #ifdef __STDC__
2220 # include <limits.h>
2221 #else
2222 # include <assert.h>
2223 #endif
2224
2225 #undef $2
2226
2227 /* Override any GCC internal prototype to avoid an error.
2228    Use char because int might match the return type of a GCC
2229    builtin and then its argument prototype would still apply.  */
2230 #ifdef __cplusplus
2231 extern "C"
2232 #endif
2233 char $2 ();
2234 /* The GNU C library defines this for functions which it implements
2235     to always fail with ENOSYS.  Some functions are actually named
2236     something starting with __ and the normal name is an alias.  */
2237 #if defined __stub_$2 || defined __stub___$2
2238 choke me
2239 #endif
2240
2241 int
2242 main ()
2243 {
2244 return $2 ();
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_link "$LINENO"; then :
2250   eval "$3=yes"
2251 else
2252   eval "$3=no"
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext \
2255     conftest$ac_exeext conftest.$ac_ext
2256 fi
2257 eval ac_res=\$$3
2258                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261
2262 } # ac_fn_c_check_func
2263
2264 # ac_fn_cxx_try_cpp LINENO
2265 # ------------------------
2266 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2267 ac_fn_cxx_try_cpp ()
2268 {
2269   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270   if { { ac_try="$ac_cpp conftest.$ac_ext"
2271 case "(($ac_try" in
2272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273   *) ac_try_echo=$ac_try;;
2274 esac
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2278   ac_status=$?
2279   if test -s conftest.err; then
2280     grep -v '^ *+' conftest.err >conftest.er1
2281     cat conftest.er1 >&5
2282     mv -f conftest.er1 conftest.err
2283   fi
2284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285   test $ac_status = 0; } >/dev/null && {
2286          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2287          test ! -s conftest.err
2288        }; then :
2289   ac_retval=0
2290 else
2291   $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2293
2294     ac_retval=1
2295 fi
2296   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2297   as_fn_set_status $ac_retval
2298
2299 } # ac_fn_cxx_try_cpp
2300
2301 # ac_fn_cxx_try_link LINENO
2302 # -------------------------
2303 # Try to link conftest.$ac_ext, and return whether this succeeded.
2304 ac_fn_cxx_try_link ()
2305 {
2306   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307   rm -f conftest.$ac_objext conftest$ac_exeext
2308   if { { ac_try="$ac_link"
2309 case "(($ac_try" in
2310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311   *) ac_try_echo=$ac_try;;
2312 esac
2313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314 $as_echo "$ac_try_echo"; } >&5
2315   (eval "$ac_link") 2>conftest.err
2316   ac_status=$?
2317   if test -s conftest.err; then
2318     grep -v '^ *+' conftest.err >conftest.er1
2319     cat conftest.er1 >&5
2320     mv -f conftest.er1 conftest.err
2321   fi
2322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323   test $ac_status = 0; } && {
2324          test -z "$ac_cxx_werror_flag" ||
2325          test ! -s conftest.err
2326        } && test -s conftest$ac_exeext && {
2327          test "$cross_compiling" = yes ||
2328          $as_test_x conftest$ac_exeext
2329        }; then :
2330   ac_retval=0
2331 else
2332   $as_echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335         ac_retval=1
2336 fi
2337   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2338   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2339   # interfere with the next link command; also delete a directory that is
2340   # left behind by Apple's compiler.  We do this before executing the actions.
2341   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2342   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343   as_fn_set_status $ac_retval
2344
2345 } # ac_fn_cxx_try_link
2346
2347 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2348 # -------------------------------------------
2349 # Tests whether TYPE exists after having included INCLUDES, setting cache
2350 # variable VAR accordingly.
2351 ac_fn_c_check_type ()
2352 {
2353   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2355 $as_echo_n "checking for $2... " >&6; }
2356 if eval "test \"\${$3+set}\"" = set; then :
2357   $as_echo_n "(cached) " >&6
2358 else
2359   eval "$3=no"
2360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h.  */
2362 $4
2363 int
2364 main ()
2365 {
2366 if (sizeof ($2))
2367          return 0;
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h.  */
2375 $4
2376 int
2377 main ()
2378 {
2379 if (sizeof (($2)))
2380             return 0;
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 if ac_fn_c_try_compile "$LINENO"; then :
2386
2387 else
2388   eval "$3=yes"
2389 fi
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 fi
2392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 fi
2394 eval ac_res=\$$3
2395                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2397   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398
2399 } # ac_fn_c_check_type
2400
2401 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2402 # -------------------------------------------------------
2403 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2404 # the include files in INCLUDES and setting the cache variable VAR
2405 # accordingly.
2406 ac_fn_c_check_header_mongrel ()
2407 {
2408   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409   if eval "test \"\${$3+set}\"" = set; then :
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval "test \"\${$3+set}\"" = set; then :
2413   $as_echo_n "(cached) " >&6
2414 fi
2415 eval ac_res=\$$3
2416                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2418 else
2419   # Is the header compilable?
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2421 $as_echo_n "checking $2 usability... " >&6; }
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h.  */
2424 $4
2425 #include <$2>
2426 _ACEOF
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428   ac_header_compiler=yes
2429 else
2430   ac_header_compiler=no
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2434 $as_echo "$ac_header_compiler" >&6; }
2435
2436 # Is the header present?
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2438 $as_echo_n "checking $2 presence... " >&6; }
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h.  */
2441 #include <$2>
2442 _ACEOF
2443 if ac_fn_c_try_cpp "$LINENO"; then :
2444   ac_header_preproc=yes
2445 else
2446   ac_header_preproc=no
2447 fi
2448 rm -f conftest.err conftest.$ac_ext
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2450 $as_echo "$ac_header_preproc" >&6; }
2451
2452 # So?  What about this header?
2453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2454   yes:no: )
2455     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2456 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2458 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2459     ;;
2460   no:yes:* )
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2462 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2464 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2465     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2466 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2468 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2469     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2470 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2471     ;;
2472 esac
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if eval "test \"\${$3+set}\"" = set; then :
2476   $as_echo_n "(cached) " >&6
2477 else
2478   eval "$3=\$ac_header_compiler"
2479 fi
2480 eval ac_res=\$$3
2481                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482 $as_echo "$ac_res" >&6; }
2483 fi
2484   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2485
2486 } # ac_fn_c_check_header_mongrel
2487
2488 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2489 # --------------------------------------------
2490 # Tries to find the compile-time value of EXPR in a program that includes
2491 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2492 # computed
2493 ac_fn_c_compute_int ()
2494 {
2495   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496   if test "$cross_compiling" = yes; then
2497     # Depending upon the size, compute the lo and hi bounds.
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h.  */
2500 $4
2501 int
2502 main ()
2503 {
2504 static int test_array [1 - 2 * !(($2) >= 0)];
2505 test_array [0] = 0
2506
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 if ac_fn_c_try_compile "$LINENO"; then :
2512   ac_lo=0 ac_mid=0
2513   while :; do
2514     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h.  */
2516 $4
2517 int
2518 main ()
2519 {
2520 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2521 test_array [0] = 0
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_c_try_compile "$LINENO"; then :
2528   ac_hi=$ac_mid; break
2529 else
2530   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2531                         if test $ac_lo -le $ac_mid; then
2532                           ac_lo= ac_hi=
2533                           break
2534                         fi
2535                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2536 fi
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538   done
2539 else
2540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h.  */
2542 $4
2543 int
2544 main ()
2545 {
2546 static int test_array [1 - 2 * !(($2) < 0)];
2547 test_array [0] = 0
2548
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554   ac_hi=-1 ac_mid=-1
2555   while :; do
2556     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h.  */
2558 $4
2559 int
2560 main ()
2561 {
2562 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2563 test_array [0] = 0
2564
2565   ;
2566   return 0;
2567 }
2568 _ACEOF
2569 if ac_fn_c_try_compile "$LINENO"; then :
2570   ac_lo=$ac_mid; break
2571 else
2572   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2573                         if test $ac_mid -le $ac_hi; then
2574                           ac_lo= ac_hi=
2575                           break
2576                         fi
2577                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2578 fi
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580   done
2581 else
2582   ac_lo= ac_hi=
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 fi
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 # Binary search between lo and hi bounds.
2588 while test "x$ac_lo" != "x$ac_hi"; do
2589   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h.  */
2592 $4
2593 int
2594 main ()
2595 {
2596 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2597 test_array [0] = 0
2598
2599   ;
2600   return 0;
2601 }
2602 _ACEOF
2603 if ac_fn_c_try_compile "$LINENO"; then :
2604   ac_hi=$ac_mid
2605 else
2606   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2607 fi
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 done
2610 case $ac_lo in #((
2611 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2612 '') ac_retval=1 ;;
2613 esac
2614   else
2615     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h.  */
2617 $4
2618 static long int longval () { return $2; }
2619 static unsigned long int ulongval () { return $2; }
2620 #include <stdio.h>
2621 #include <stdlib.h>
2622 int
2623 main ()
2624 {
2625
2626   FILE *f = fopen ("conftest.val", "w");
2627   if (! f)
2628     return 1;
2629   if (($2) < 0)
2630     {
2631       long int i = longval ();
2632       if (i != ($2))
2633         return 1;
2634       fprintf (f, "%ld", i);
2635     }
2636   else
2637     {
2638       unsigned long int i = ulongval ();
2639       if (i != ($2))
2640         return 1;
2641       fprintf (f, "%lu", i);
2642     }
2643   /* Do not output a trailing newline, as this causes \r\n confusion
2644      on some platforms.  */
2645   return ferror (f) || fclose (f) != 0;
2646
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_c_try_run "$LINENO"; then :
2652   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2653 else
2654   ac_retval=1
2655 fi
2656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2657   conftest.$ac_objext conftest.beam conftest.$ac_ext
2658 rm -f conftest.val
2659
2660   fi
2661   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2662   as_fn_set_status $ac_retval
2663
2664 } # ac_fn_c_compute_int
2665
2666 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2667 # ----------------------------------------------------
2668 # Tries to find if the field MEMBER exists in type AGGR, after including
2669 # INCLUDES, setting cache variable VAR accordingly.
2670 ac_fn_c_check_member ()
2671 {
2672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2674 $as_echo_n "checking for $2.$3... " >&6; }
2675 if eval "test \"\${$4+set}\"" = set; then :
2676   $as_echo_n "(cached) " >&6
2677 else
2678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h.  */
2680 $5
2681 int
2682 main ()
2683 {
2684 static $2 ac_aggr;
2685 if (ac_aggr.$3)
2686 return 0;
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 if ac_fn_c_try_compile "$LINENO"; then :
2692   eval "$4=yes"
2693 else
2694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h.  */
2696 $5
2697 int
2698 main ()
2699 {
2700 static $2 ac_aggr;
2701 if (sizeof ac_aggr.$3)
2702 return 0;
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 if ac_fn_c_try_compile "$LINENO"; then :
2708   eval "$4=yes"
2709 else
2710   eval "$4=no"
2711 fi
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 fi
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 fi
2716 eval ac_res=\$$4
2717                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2718 $as_echo "$ac_res" >&6; }
2719   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2720
2721 } # ac_fn_c_check_member
2722
2723 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2724 # ---------------------------------------------
2725 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2726 # accordingly.
2727 ac_fn_c_check_decl ()
2728 {
2729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2730   as_decl_name=`echo $2|sed 's/ *(.*//'`
2731   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2733 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2734 if eval "test \"\${$3+set}\"" = set; then :
2735   $as_echo_n "(cached) " >&6
2736 else
2737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h.  */
2739 $4
2740 int
2741 main ()
2742 {
2743 #ifndef $as_decl_name
2744 #ifdef __cplusplus
2745   (void) $as_decl_use;
2746 #else
2747   (void) $as_decl_name;
2748 #endif
2749 #endif
2750
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 if ac_fn_c_try_compile "$LINENO"; then :
2756   eval "$3=yes"
2757 else
2758   eval "$3=no"
2759 fi
2760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 fi
2762 eval ac_res=\$$3
2763                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2764 $as_echo "$ac_res" >&6; }
2765   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2766
2767 } # ac_fn_c_check_decl
2768
2769 # ac_fn_cxx_try_run LINENO
2770 # ------------------------
2771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2772 # that executables *can* be run.
2773 ac_fn_cxx_try_run ()
2774 {
2775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2776   if { { ac_try="$ac_link"
2777 case "(($ac_try" in
2778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779   *) ac_try_echo=$ac_try;;
2780 esac
2781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2782 $as_echo "$ac_try_echo"; } >&5
2783   (eval "$ac_link") 2>&5
2784   ac_status=$?
2785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2786   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2787   { { case "(($ac_try" in
2788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789   *) ac_try_echo=$ac_try;;
2790 esac
2791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792 $as_echo "$ac_try_echo"; } >&5
2793   (eval "$ac_try") 2>&5
2794   ac_status=$?
2795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2796   test $ac_status = 0; }; }; then :
2797   ac_retval=0
2798 else
2799   $as_echo "$as_me: program exited with status $ac_status" >&5
2800        $as_echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803        ac_retval=$ac_status
2804 fi
2805   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2806   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2807   as_fn_set_status $ac_retval
2808
2809 } # ac_fn_cxx_try_run
2810 cat >config.log <<_ACEOF
2811 This file contains any messages produced by compilers while
2812 running configure, to aid debugging if configure makes a mistake.
2813
2814 It was created by $as_me, which was
2815 generated by GNU Autoconf 2.66.  Invocation command line was
2816
2817   $ $0 $@
2818
2819 _ACEOF
2820 exec 5>>config.log
2821 {
2822 cat <<_ASUNAME
2823 ## --------- ##
2824 ## Platform. ##
2825 ## --------- ##
2826
2827 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2828 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2829 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2830 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2831 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2832
2833 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2834 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2835
2836 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2837 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2838 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2839 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2840 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2841 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2842 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2843
2844 _ASUNAME
2845
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851     $as_echo "PATH: $as_dir"
2852   done
2853 IFS=$as_save_IFS
2854
2855 } >&5
2856
2857 cat >&5 <<_ACEOF
2858
2859
2860 ## ----------- ##
2861 ## Core tests. ##
2862 ## ----------- ##
2863
2864 _ACEOF
2865
2866
2867 # Keep a trace of the command line.
2868 # Strip out --no-create and --no-recursion so they do not pile up.
2869 # Strip out --silent because we don't want to record it for future runs.
2870 # Also quote any args containing shell meta-characters.
2871 # Make two passes to allow for proper duplicate-argument suppression.
2872 ac_configure_args=
2873 ac_configure_args0=
2874 ac_configure_args1=
2875 ac_must_keep_next=false
2876 for ac_pass in 1 2
2877 do
2878   for ac_arg
2879   do
2880     case $ac_arg in
2881     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2882     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2883     | -silent | --silent | --silen | --sile | --sil)
2884       continue ;;
2885     *\'*)
2886       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2887     esac
2888     case $ac_pass in
2889     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2890     2)
2891       as_fn_append ac_configure_args1 " '$ac_arg'"
2892       if test $ac_must_keep_next = true; then
2893         ac_must_keep_next=false # Got value, back to normal.
2894       else
2895         case $ac_arg in
2896           *=* | --config-cache | -C | -disable-* | --disable-* \
2897           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2898           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2899           | -with-* | --with-* | -without-* | --without-* | --x)
2900             case "$ac_configure_args0 " in
2901               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2902             esac
2903             ;;
2904           -* ) ac_must_keep_next=true ;;
2905         esac
2906       fi
2907       as_fn_append ac_configure_args " '$ac_arg'"
2908       ;;
2909     esac
2910   done
2911 done
2912 { ac_configure_args0=; unset ac_configure_args0;}
2913 { ac_configure_args1=; unset ac_configure_args1;}
2914
2915 # When interrupted or exit'd, cleanup temporary files, and complete
2916 # config.log.  We remove comments because anyway the quotes in there
2917 # would cause problems or look ugly.
2918 # WARNING: Use '\'' to represent an apostrophe within the trap.
2919 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2920 trap 'exit_status=$?
2921   # Save into config.log some information that might help in debugging.
2922   {
2923     echo
2924
2925     $as_echo "## ---------------- ##
2926 ## Cache variables. ##
2927 ## ---------------- ##"
2928     echo
2929     # The following way of writing the cache mishandles newlines in values,
2930 (
2931   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2932     eval ac_val=\$$ac_var
2933     case $ac_val in #(
2934     *${as_nl}*)
2935       case $ac_var in #(
2936       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2937 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2938       esac
2939       case $ac_var in #(
2940       _ | IFS | as_nl) ;; #(
2941       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2942       *) { eval $ac_var=; unset $ac_var;} ;;
2943       esac ;;
2944     esac
2945   done
2946   (set) 2>&1 |
2947     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2948     *${as_nl}ac_space=\ *)
2949       sed -n \
2950         "s/'\''/'\''\\\\'\'''\''/g;
2951           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2952       ;; #(
2953     *)
2954       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2955       ;;
2956     esac |
2957     sort
2958 )
2959     echo
2960
2961     $as_echo "## ----------------- ##
2962 ## Output variables. ##
2963 ## ----------------- ##"
2964     echo
2965     for ac_var in $ac_subst_vars
2966     do
2967       eval ac_val=\$$ac_var
2968       case $ac_val in
2969       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2970       esac
2971       $as_echo "$ac_var='\''$ac_val'\''"
2972     done | sort
2973     echo
2974
2975     if test -n "$ac_subst_files"; then
2976       $as_echo "## ------------------- ##
2977 ## File substitutions. ##
2978 ## ------------------- ##"
2979       echo
2980       for ac_var in $ac_subst_files
2981       do
2982         eval ac_val=\$$ac_var
2983         case $ac_val in
2984         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2985         esac
2986         $as_echo "$ac_var='\''$ac_val'\''"
2987       done | sort
2988       echo
2989     fi
2990
2991     if test -s confdefs.h; then
2992       $as_echo "## ----------- ##
2993 ## confdefs.h. ##
2994 ## ----------- ##"
2995       echo
2996       cat confdefs.h
2997       echo
2998     fi
2999     test "$ac_signal" != 0 &&
3000       $as_echo "$as_me: caught signal $ac_signal"
3001     $as_echo "$as_me: exit $exit_status"
3002   } >&5
3003   rm -f core *.core core.conftest.* &&
3004     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3005     exit $exit_status
3006 ' 0
3007 for ac_signal in 1 2 13 15; do
3008   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3009 done
3010 ac_signal=0
3011
3012 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3013 rm -f -r conftest* confdefs.h
3014
3015 $as_echo "/* confdefs.h */" > confdefs.h
3016
3017 # Predefined preprocessor variables.
3018
3019 cat >>confdefs.h <<_ACEOF
3020 #define PACKAGE_NAME "$PACKAGE_NAME"
3021 _ACEOF
3022
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3025 _ACEOF
3026
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3029 _ACEOF
3030
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE_STRING "$PACKAGE_STRING"
3033 _ACEOF
3034
3035 cat >>confdefs.h <<_ACEOF
3036 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3037 _ACEOF
3038
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_URL "$PACKAGE_URL"
3041 _ACEOF
3042
3043
3044 # Let the site file select an alternate cache file if it wants to.
3045 # Prefer an explicitly selected file to automatically selected ones.
3046 ac_site_file1=NONE
3047 ac_site_file2=NONE
3048 if test -n "$CONFIG_SITE"; then
3049   # We do not want a PATH search for config.site.
3050   case $CONFIG_SITE in #((
3051     -*)  ac_site_file1=./$CONFIG_SITE;;
3052     */*) ac_site_file1=$CONFIG_SITE;;
3053     *)   ac_site_file1=./$CONFIG_SITE;;
3054   esac
3055 elif test "x$prefix" != xNONE; then
3056   ac_site_file1=$prefix/share/config.site
3057   ac_site_file2=$prefix/etc/config.site
3058 else
3059   ac_site_file1=$ac_default_prefix/share/config.site
3060   ac_site_file2=$ac_default_prefix/etc/config.site
3061 fi
3062 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3063 do
3064   test "x$ac_site_file" = xNONE && continue
3065   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3066     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3067 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3068     sed 's/^/| /' "$ac_site_file" >&5
3069     . "$ac_site_file" \
3070       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $? "failed to load site script $ac_site_file
3073 See \`config.log' for more details" "$LINENO" 5; }
3074   fi
3075 done
3076
3077 if test -r "$cache_file"; then
3078   # Some versions of bash will fail to source /dev/null (special files
3079   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3080   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3081     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3082 $as_echo "$as_me: loading cache $cache_file" >&6;}
3083     case $cache_file in
3084       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3085       *)                      . "./$cache_file";;
3086     esac
3087   fi
3088 else
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3090 $as_echo "$as_me: creating cache $cache_file" >&6;}
3091   >$cache_file
3092 fi
3093
3094 as_fn_append ac_header_list " stdlib.h"
3095 as_fn_append ac_header_list " unistd.h"
3096 as_fn_append ac_header_list " sys/param.h"
3097 # Check that the precious variables saved in the cache have kept the same
3098 # value.
3099 ac_cache_corrupted=false
3100 for ac_var in $ac_precious_vars; do
3101   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3102   eval ac_new_set=\$ac_env_${ac_var}_set
3103   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3104   eval ac_new_val=\$ac_env_${ac_var}_value
3105   case $ac_old_set,$ac_new_set in
3106     set,)
3107       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3108 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3109       ac_cache_corrupted=: ;;
3110     ,set)
3111       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3112 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3113       ac_cache_corrupted=: ;;
3114     ,);;
3115     *)
3116       if test "x$ac_old_val" != "x$ac_new_val"; then
3117         # differences in whitespace do not lead to failure.
3118         ac_old_val_w=`echo x $ac_old_val`
3119         ac_new_val_w=`echo x $ac_new_val`
3120         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3121           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3122 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3123           ac_cache_corrupted=:
3124         else
3125           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3126 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3127           eval $ac_var=\$ac_old_val
3128         fi
3129         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3130 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3131         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3132 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3133       fi;;
3134   esac
3135   # Pass precious variables to config.status.
3136   if test "$ac_new_set" = set; then
3137     case $ac_new_val in
3138     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3139     *) ac_arg=$ac_var=$ac_new_val ;;
3140     esac
3141     case " $ac_configure_args " in
3142       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3143       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3144     esac
3145   fi
3146 done
3147 if $ac_cache_corrupted; then
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3151 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3152   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3153 fi
3154 ## -------------------- ##
3155 ## Main body of script. ##
3156 ## -------------------- ##
3157
3158 ac_ext=c
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163
3164
3165 BUILD_DIR=`pwd`
3166 cd ..
3167 TOP_DIR=`pwd`
3168 cd ${BUILD_DIR}
3169
3170
3171 ac_aux_dir=
3172 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3173   if test -f "$ac_dir/install-sh"; then
3174     ac_aux_dir=$ac_dir
3175     ac_install_sh="$ac_aux_dir/install-sh -c"
3176     break
3177   elif test -f "$ac_dir/install.sh"; then
3178     ac_aux_dir=$ac_dir
3179     ac_install_sh="$ac_aux_dir/install.sh -c"
3180     break
3181   elif test -f "$ac_dir/shtool"; then
3182     ac_aux_dir=$ac_dir
3183     ac_install_sh="$ac_aux_dir/shtool install -c"
3184     break
3185   fi
3186 done
3187 if test -z "$ac_aux_dir"; then
3188   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3189 fi
3190
3191 # These three variables are undocumented and unsupported,
3192 # and are intended to be withdrawn in a future Autoconf release.
3193 # They can cause serious problems if a builder's source tree is in a directory
3194 # whose full name contains unusual characters.
3195 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3196 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3197 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3198
3199
3200 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3201
3202
3203 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3204 WIN32MAINDIR=${BUILD_DIR}
3205 WIN32TOPDIR=${TOP_DIR}
3206
3207
3208
3209
3210 for ac_prog in true
3211 do
3212   # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3217   $as_echo_n "(cached) " >&6
3218 else
3219   case $TRUEPRG in
3220   [\\/]* | ?:[\\/]*)
3221   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3222   ;;
3223   *)
3224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227   IFS=$as_save_IFS
3228   test -z "$as_dir" && as_dir=.
3229     for ac_exec_ext in '' $ac_executable_extensions; do
3230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233     break 2
3234   fi
3235 done
3236   done
3237 IFS=$as_save_IFS
3238
3239   ;;
3240 esac
3241 fi
3242 TRUEPRG=$ac_cv_path_TRUEPRG
3243 if test -n "$TRUEPRG"; then
3244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3245 $as_echo "$TRUEPRG" >&6; }
3246 else
3247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252   test -n "$TRUEPRG" && break
3253 done
3254 test -n "$TRUEPRG" || TRUEPRG=":"
3255
3256 for ac_prog in false
3257 do
3258   # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3263   $as_echo_n "(cached) " >&6
3264 else
3265   case $FALSEPRG in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275     for ac_exec_ext in '' $ac_executable_extensions; do
3276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282   done
3283 IFS=$as_save_IFS
3284
3285   ;;
3286 esac
3287 fi
3288 FALSEPRG=$ac_cv_path_FALSEPRG
3289 if test -n "$FALSEPRG"; then
3290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3291 $as_echo "$FALSEPRG" >&6; }
3292 else
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 fi
3296
3297
3298   test -n "$FALSEPRG" && break
3299 done
3300 test -n "$FALSEPRG" || FALSEPRG=":"
3301
3302
3303
3304 post_host=
3305 if test "x$BACULA" != x; then
3306    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3307 fi
3308 BACULA=${BACULA:-Bacula}
3309 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3310 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3311 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3312 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3313
3314 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3315 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3316 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3317
3318 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3319 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3320 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3321
3322
3323 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3324
3325 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3326
3327
3328 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3329
3330 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3331
3332
3333 echo "configuring for ${BACULA} $VERSION ($DATE)"
3334
3335
3336
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 if test -n "$ac_tool_prefix"; then
3343   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3344 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if test "${ac_cv_prog_CC+set}" = set; then :
3348   $as_echo_n "(cached) " >&6
3349 else
3350   if test -n "$CC"; then
3351   ac_cv_prog_CC="$CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358     for ac_exec_ext in '' $ac_executable_extensions; do
3359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365   done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379
3380 fi
3381 if test -z "$ac_cv_prog_CC"; then
3382   ac_ct_CC=$CC
3383   # Extract the first word of "gcc", so it can be a program name with args.
3384 set dummy gcc; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3388   $as_echo_n "(cached) " >&6
3389 else
3390   if test -n "$ac_ct_CC"; then
3391   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396   IFS=$as_save_IFS
3397   test -z "$as_dir" && as_dir=.
3398     for ac_exec_ext in '' $ac_executable_extensions; do
3399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3400     ac_cv_prog_ac_ct_CC="gcc"
3401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402     break 2
3403   fi
3404 done
3405   done
3406 IFS=$as_save_IFS
3407
3408 fi
3409 fi
3410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411 if test -n "$ac_ct_CC"; then
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413 $as_echo "$ac_ct_CC" >&6; }
3414 else
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419   if test "x$ac_ct_CC" = x; then
3420     CC=""
3421   else
3422     case $cross_compiling:$ac_tool_warned in
3423 yes:)
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426 ac_tool_warned=yes ;;
3427 esac
3428     CC=$ac_ct_CC
3429   fi
3430 else
3431   CC="$ac_cv_prog_CC"
3432 fi
3433
3434 if test -z "$CC"; then
3435           if test -n "$ac_tool_prefix"; then
3436     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3437 set dummy ${ac_tool_prefix}cc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if test "${ac_cv_prog_CC+set}" = set; then :
3441   $as_echo_n "(cached) " >&6
3442 else
3443   if test -n "$CC"; then
3444   ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449   IFS=$as_save_IFS
3450   test -z "$as_dir" && as_dir=.
3451     for ac_exec_ext in '' $ac_executable_extensions; do
3452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453     ac_cv_prog_CC="${ac_tool_prefix}cc"
3454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455     break 2
3456   fi
3457 done
3458   done
3459 IFS=$as_save_IFS
3460
3461 fi
3462 fi
3463 CC=$ac_cv_prog_CC
3464 if test -n "$CC"; then
3465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3466 $as_echo "$CC" >&6; }
3467 else
3468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 fi
3471
3472
3473   fi
3474 fi
3475 if test -z "$CC"; then
3476   # Extract the first word of "cc", so it can be a program name with args.
3477 set dummy cc; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if test "${ac_cv_prog_CC+set}" = set; then :
3481   $as_echo_n "(cached) " >&6
3482 else
3483   if test -n "$CC"; then
3484   ac_cv_prog_CC="$CC" # Let the user override the test.
3485 else
3486   ac_prog_rejected=no
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3489 do
3490   IFS=$as_save_IFS
3491   test -z "$as_dir" && as_dir=.
3492     for ac_exec_ext in '' $ac_executable_extensions; do
3493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3494     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3495        ac_prog_rejected=yes
3496        continue
3497      fi
3498     ac_cv_prog_CC="cc"
3499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500     break 2
3501   fi
3502 done
3503   done
3504 IFS=$as_save_IFS
3505
3506 if test $ac_prog_rejected = yes; then
3507   # We found a bogon in the path, so make sure we never use it.
3508   set dummy $ac_cv_prog_CC
3509   shift
3510   if test $# != 0; then
3511     # We chose a different compiler from the bogus one.
3512     # However, it has the same basename, so the bogon will be chosen
3513     # first if we set CC to just the basename; use the full file name.
3514     shift
3515     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3516   fi
3517 fi
3518 fi
3519 fi
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3524 else
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529
3530 fi
3531 if test -z "$CC"; then
3532   if test -n "$ac_tool_prefix"; then
3533   for ac_prog in cl.exe
3534   do
3535     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_CC+set}" = set; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   if test -n "$CC"; then
3543   ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550     for ac_exec_ext in '' $ac_executable_extensions; do
3551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557   done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571
3572     test -n "$CC" && break
3573   done
3574 fi
3575 if test -z "$CC"; then
3576   ac_ct_CC=$CC
3577   for ac_prog in cl.exe
3578 do
3579   # Extract the first word of "$ac_prog", so it can be a program name with args.
3580 set dummy $ac_prog; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3584   $as_echo_n "(cached) " >&6
3585 else
3586   if test -n "$ac_ct_CC"; then
3587   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592   IFS=$as_save_IFS
3593   test -z "$as_dir" && as_dir=.
3594     for ac_exec_ext in '' $ac_executable_extensions; do
3595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596     ac_cv_prog_ac_ct_CC="$ac_prog"
3597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598     break 2
3599   fi
3600 done
3601   done
3602 IFS=$as_save_IFS
3603
3604 fi
3605 fi
3606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3607 if test -n "$ac_ct_CC"; then
3608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609 $as_echo "$ac_ct_CC" >&6; }
3610 else
3611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3613 fi
3614
3615
3616   test -n "$ac_ct_CC" && break
3617 done
3618
3619   if test "x$ac_ct_CC" = x; then
3620     CC=""
3621   else
3622     case $cross_compiling:$ac_tool_warned in
3623 yes:)
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3627 esac
3628     CC=$ac_ct_CC
3629   fi
3630 fi
3631
3632 fi
3633
3634
3635 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "no acceptable C compiler found in \$PATH
3638 See \`config.log' for more details" "$LINENO" 5; }
3639
3640 # Provide some information about the compiler.
3641 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3642 set X $ac_compile
3643 ac_compiler=$2
3644 for ac_option in --version -v -V -qversion; do
3645   { { ac_try="$ac_compiler $ac_option >&5"
3646 case "(($ac_try" in
3647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648   *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3653   ac_status=$?
3654   if test -s conftest.err; then
3655     sed '10a\
3656 ... rest of stderr output deleted ...
3657          10q' conftest.err >conftest.er1
3658     cat conftest.er1 >&5
3659   fi
3660   rm -f conftest.er1 conftest.err
3661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662   test $ac_status = 0; }
3663 done
3664
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h.  */
3667
3668 int
3669 main ()
3670 {
3671
3672   ;
3673   return 0;
3674 }
3675 _ACEOF
3676 ac_clean_files_save=$ac_clean_files
3677 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3678 # Try to create an executable without -o first, disregard a.out.
3679 # It will help us diagnose broken compilers, and finding out an intuition
3680 # of exeext.
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3682 $as_echo_n "checking whether the C compiler works... " >&6; }
3683 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3684
3685 # The possible output files:
3686 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3687
3688 ac_rmfiles=
3689 for ac_file in $ac_files
3690 do
3691   case $ac_file in
3692     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3693     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3694   esac
3695 done
3696 rm -f $ac_rmfiles
3697
3698 if { { ac_try="$ac_link_default"
3699 case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705   (eval "$ac_link_default") 2>&5
3706   ac_status=$?
3707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708   test $ac_status = 0; }; then :
3709   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3710 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3711 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3712 # so that the user can short-circuit this test for compilers unknown to
3713 # Autoconf.
3714 for ac_file in $ac_files ''
3715 do
3716   test -f "$ac_file" || continue
3717   case $ac_file in
3718     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3719         ;;
3720     [ab].out )
3721         # We found the default executable, but exeext='' is most
3722         # certainly right.
3723         break;;
3724     *.* )
3725         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3726         then :; else
3727            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3728         fi
3729         # We set ac_cv_exeext here because the later test for it is not
3730         # safe: cross compilers may not add the suffix if given an `-o'
3731         # argument, so we may need to know it at that point already.
3732         # Even if this section looks crufty: it has the advantage of
3733         # actually working.
3734         break;;
3735     * )
3736         break;;
3737   esac
3738 done
3739 test "$ac_cv_exeext" = no && ac_cv_exeext=
3740
3741 else
3742   ac_file=''
3743 fi
3744 if test -z "$ac_file"; then :
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3747 $as_echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error 77 "C compiler cannot create executables
3753 See \`config.log' for more details" "$LINENO" 5; }
3754 else
3755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3756 $as_echo "yes" >&6; }
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3759 $as_echo_n "checking for C compiler default output file name... " >&6; }
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3761 $as_echo "$ac_file" >&6; }
3762 ac_exeext=$ac_cv_exeext
3763
3764 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3765 ac_clean_files=$ac_clean_files_save
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3767 $as_echo_n "checking for suffix of executables... " >&6; }
3768 if { { ac_try="$ac_link"
3769 case "(($ac_try" in
3770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771   *) ac_try_echo=$ac_try;;
3772 esac
3773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774 $as_echo "$ac_try_echo"; } >&5
3775   (eval "$ac_link") 2>&5
3776   ac_status=$?
3777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778   test $ac_status = 0; }; then :
3779   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3780 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3781 # work properly (i.e., refer to `conftest.exe'), while it won't with
3782 # `rm'.
3783 for ac_file in conftest.exe conftest conftest.*; do
3784   test -f "$ac_file" || continue
3785   case $ac_file in
3786     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3787     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3788           break;;
3789     * ) break;;
3790   esac
3791 done
3792 else
3793   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3796 See \`config.log' for more details" "$LINENO" 5; }
3797 fi
3798 rm -f conftest conftest$ac_cv_exeext
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3800 $as_echo "$ac_cv_exeext" >&6; }
3801
3802 rm -f conftest.$ac_ext
3803 EXEEXT=$ac_cv_exeext
3804 ac_exeext=$EXEEXT
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h.  */
3807 #include <stdio.h>
3808 int
3809 main ()
3810 {
3811 FILE *f = fopen ("conftest.out", "w");
3812  return ferror (f) || fclose (f) != 0;
3813
3814   ;
3815   return 0;
3816 }
3817 _ACEOF
3818 ac_clean_files="$ac_clean_files conftest.out"
3819 # Check that the compiler produces executables we can run.  If not, either
3820 # the compiler is broken, or we cross compile.
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3822 $as_echo_n "checking whether we are cross compiling... " >&6; }
3823 if test "$cross_compiling" != yes; then
3824   { { ac_try="$ac_link"
3825 case "(($ac_try" in
3826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827   *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831   (eval "$ac_link") 2>&5
3832   ac_status=$?
3833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834   test $ac_status = 0; }
3835   if { ac_try='./conftest$ac_cv_exeext'
3836   { { case "(($ac_try" in
3837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838   *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842   (eval "$ac_try") 2>&5
3843   ac_status=$?
3844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845   test $ac_status = 0; }; }; then
3846     cross_compiling=no
3847   else
3848     if test "$cross_compiling" = maybe; then
3849         cross_compiling=yes
3850     else
3851         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error $? "cannot run C compiled programs.
3854 If you meant to cross compile, use \`--host'.
3855 See \`config.log' for more details" "$LINENO" 5; }
3856     fi
3857   fi
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3860 $as_echo "$cross_compiling" >&6; }
3861
3862 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3863 ac_clean_files=$ac_clean_files_save
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3865 $as_echo_n "checking for suffix of object files... " >&6; }
3866 if test "${ac_cv_objext+set}" = set; then :
3867   $as_echo_n "(cached) " >&6
3868 else
3869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h.  */
3871
3872 int
3873 main ()
3874 {
3875
3876   ;
3877   return 0;
3878 }
3879 _ACEOF
3880 rm -f conftest.o conftest.obj
3881 if { { ac_try="$ac_compile"
3882 case "(($ac_try" in
3883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884   *) ac_try_echo=$ac_try;;
3885 esac
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888   (eval "$ac_compile") 2>&5
3889   ac_status=$?
3890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891   test $ac_status = 0; }; then :
3892   for ac_file in conftest.o conftest.obj conftest.*; do
3893   test -f "$ac_file" || continue;
3894   case $ac_file in
3895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3896     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3897        break;;
3898   esac
3899 done
3900 else
3901   $as_echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error $? "cannot compute suffix of object files: cannot compile
3907 See \`config.log' for more details" "$LINENO" 5; }
3908 fi
3909 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3912 $as_echo "$ac_cv_objext" >&6; }
3913 OBJEXT=$ac_cv_objext
3914 ac_objext=$OBJEXT
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3916 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3917 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3918   $as_echo_n "(cached) " >&6
3919 else
3920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h.  */
3922
3923 int
3924 main ()
3925 {
3926 #ifndef __GNUC__
3927        choke me
3928 #endif
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 if ac_fn_c_try_compile "$LINENO"; then :
3935   ac_compiler_gnu=yes
3936 else
3937   ac_compiler_gnu=no
3938 fi
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3941
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3944 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3945 if test $ac_compiler_gnu = yes; then
3946   GCC=yes
3947 else
3948   GCC=
3949 fi
3950 ac_test_CFLAGS=${CFLAGS+set}
3951 ac_save_CFLAGS=$CFLAGS
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3953 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3954 if test "${ac_cv_prog_cc_g+set}" = set; then :
3955   $as_echo_n "(cached) " >&6
3956 else
3957   ac_save_c_werror_flag=$ac_c_werror_flag
3958    ac_c_werror_flag=yes
3959    ac_cv_prog_cc_g=no
3960    CFLAGS="-g"
3961    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h.  */
3963
3964 int
3965 main ()
3966 {
3967
3968   ;
3969   return 0;
3970 }
3971 _ACEOF
3972 if ac_fn_c_try_compile "$LINENO"; then :
3973   ac_cv_prog_cc_g=yes
3974 else
3975   CFLAGS=""
3976       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h.  */
3978
3979 int
3980 main ()
3981 {
3982
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988
3989 else
3990   ac_c_werror_flag=$ac_save_c_werror_flag
3991          CFLAGS="-g"
3992          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h.  */
3994
3995 int
3996 main ()
3997 {
3998
3999   ;
4000   return 0;
4001 }
4002 _ACEOF
4003 if ac_fn_c_try_compile "$LINENO"; then :
4004   ac_cv_prog_cc_g=yes
4005 fi
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 fi
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 fi
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011    ac_c_werror_flag=$ac_save_c_werror_flag
4012 fi
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4014 $as_echo "$ac_cv_prog_cc_g" >&6; }
4015 if test "$ac_test_CFLAGS" = set; then
4016   CFLAGS=$ac_save_CFLAGS
4017 elif test $ac_cv_prog_cc_g = yes; then
4018   if test "$GCC" = yes; then
4019     CFLAGS="-g -O2"
4020   else
4021     CFLAGS="-g"
4022   fi
4023 else
4024   if test "$GCC" = yes; then
4025     CFLAGS="-O2"
4026   else
4027     CFLAGS=
4028   fi
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4031 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4032 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4033   $as_echo_n "(cached) " >&6
4034 else
4035   ac_cv_prog_cc_c89=no
4036 ac_save_CC=$CC
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h.  */
4039 #include <stdarg.h>
4040 #include <stdio.h>
4041 #include <sys/types.h>
4042 #include <sys/stat.h>
4043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4044 struct buf { int x; };
4045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4046 static char *e (p, i)
4047      char **p;
4048      int i;
4049 {
4050   return p[i];
4051 }
4052 static char *f (char * (*g) (char **, int), char **p, ...)
4053 {
4054   char *s;
4055   va_list v;
4056   va_start (v,p);
4057   s = g (p, va_arg (v,int));
4058   va_end (v);
4059   return s;
4060 }
4061
4062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4063    function prototypes and stuff, but not '\xHH' hex character constants.
4064    These don't provoke an error unfortunately, instead are silently treated
4065    as 'x'.  The following induces an error, until -std is added to get
4066    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4067    array size at least.  It's necessary to write '\x00'==0 to get something
4068    that's true only with -std.  */
4069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4070
4071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4072    inside strings and character constants.  */
4073 #define FOO(x) 'x'
4074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4075
4076 int test (int i, double x);
4077 struct s1 {int (*f) (int a);};
4078 struct s2 {int (*f) (double a);};
4079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080 int argc;
4081 char **argv;
4082 int
4083 main ()
4084 {
4085 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4091         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4092 do
4093   CC="$ac_save_CC $ac_arg"
4094   if ac_fn_c_try_compile "$LINENO"; then :
4095   ac_cv_prog_cc_c89=$ac_arg
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext
4098   test "x$ac_cv_prog_cc_c89" != "xno" && break
4099 done
4100 rm -f conftest.$ac_ext
4101 CC=$ac_save_CC
4102
4103 fi
4104 # AC_CACHE_VAL
4105 case "x$ac_cv_prog_cc_c89" in
4106   x)
4107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4108 $as_echo "none needed" >&6; } ;;
4109   xno)
4110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4111 $as_echo "unsupported" >&6; } ;;
4112   *)
4113     CC="$CC $ac_cv_prog_cc_c89"
4114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4115 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4116 esac
4117 if test "x$ac_cv_prog_cc_c89" != xno; then :
4118
4119 fi
4120
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126
4127 ac_ext=cpp
4128 ac_cpp='$CXXCPP $CPPFLAGS'
4129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4132 if test -z "$CXX"; then
4133   if test -n "$CCC"; then
4134     CXX=$CCC
4135   else
4136     if test -n "$ac_tool_prefix"; then
4137   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4138   do
4139     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if test "${ac_cv_prog_CXX+set}" = set; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   if test -n "$CXX"; then
4147   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154     for ac_exec_ext in '' $ac_executable_extensions; do
4155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161   done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 CXX=$ac_cv_prog_CXX
4167 if test -n "$CXX"; then
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4169 $as_echo "$CXX" >&6; }
4170 else
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175
4176     test -n "$CXX" && break
4177   done
4178 fi
4179 if test -z "$CXX"; then
4180   ac_ct_CXX=$CXX
4181   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4182 do
4183   # Extract the first word of "$ac_prog", so it can be a program name with args.
4184 set dummy $ac_prog; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if test -n "$ac_ct_CXX"; then
4191   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198     for ac_exec_ext in '' $ac_executable_extensions; do
4199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200     ac_cv_prog_ac_ct_CXX="$ac_prog"
4201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202     break 2
4203   fi
4204 done
4205   done
4206 IFS=$as_save_IFS
4207
4208 fi
4209 fi
4210 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4211 if test -n "$ac_ct_CXX"; then
4212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4213 $as_echo "$ac_ct_CXX" >&6; }
4214 else
4215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4217 fi
4218
4219
4220   test -n "$ac_ct_CXX" && break
4221 done
4222
4223   if test "x$ac_ct_CXX" = x; then
4224     CXX="g++"
4225   else
4226     case $cross_compiling:$ac_tool_warned in
4227 yes:)
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4230 ac_tool_warned=yes ;;
4231 esac
4232     CXX=$ac_ct_CXX
4233   fi
4234 fi
4235
4236   fi
4237 fi
4238 # Provide some information about the compiler.
4239 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4240 set X $ac_compile
4241 ac_compiler=$2
4242 for ac_option in --version -v -V -qversion; do
4243   { { ac_try="$ac_compiler $ac_option >&5"
4244 case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4249 $as_echo "$ac_try_echo"; } >&5
4250   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4251   ac_status=$?
4252   if test -s conftest.err; then
4253     sed '10a\
4254 ... rest of stderr output deleted ...
4255          10q' conftest.err >conftest.er1
4256     cat conftest.er1 >&5
4257   fi
4258   rm -f conftest.er1 conftest.err
4259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260   test $ac_status = 0; }
4261 done
4262
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4264 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4265 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4266   $as_echo_n "(cached) " >&6
4267 else
4268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h.  */
4270
4271 int
4272 main ()
4273 {
4274 #ifndef __GNUC__
4275        choke me
4276 #endif
4277
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 if ac_fn_cxx_try_compile "$LINENO"; then :
4283   ac_compiler_gnu=yes
4284 else
4285   ac_compiler_gnu=no
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4289
4290 fi
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4292 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4293 if test $ac_compiler_gnu = yes; then
4294   GXX=yes
4295 else
4296   GXX=
4297 fi
4298 ac_test_CXXFLAGS=${CXXFLAGS+set}
4299 ac_save_CXXFLAGS=$CXXFLAGS
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4301 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4302 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4303   $as_echo_n "(cached) " >&6
4304 else
4305   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4306    ac_cxx_werror_flag=yes
4307    ac_cv_prog_cxx_g=no
4308    CXXFLAGS="-g"
4309    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h.  */
4311
4312 int
4313 main ()
4314 {
4315
4316   ;
4317   return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_cxx_try_compile "$LINENO"; then :
4321   ac_cv_prog_cxx_g=yes
4322 else
4323   CXXFLAGS=""
4324       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h.  */
4326
4327 int
4328 main ()
4329 {
4330
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_cxx_try_compile "$LINENO"; then :
4336
4337 else
4338   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4339          CXXFLAGS="-g"
4340          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342
4343 int
4344 main ()
4345 {
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_cxx_try_compile "$LINENO"; then :
4352   ac_cv_prog_cxx_g=yes
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 fi
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4360 fi
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4362 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4363 if test "$ac_test_CXXFLAGS" = set; then
4364   CXXFLAGS=$ac_save_CXXFLAGS
4365 elif test $ac_cv_prog_cxx_g = yes; then
4366   if test "$GXX" = yes; then
4367     CXXFLAGS="-g -O2"
4368   else
4369     CXXFLAGS="-g"
4370   fi
4371 else
4372   if test "$GXX" = yes; then
4373     CXXFLAGS="-O2"
4374   else
4375     CXXFLAGS=
4376   fi
4377 fi
4378 ac_ext=c
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383
4384 if test "x$CC" != xcc; then
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4386 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4387 else
4388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4389 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4390 fi
4391 set dummy $CC; ac_cc=`$as_echo "$2" |
4392                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4393 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4394   $as_echo_n "(cached) " >&6
4395 else
4396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h.  */
4398
4399 int
4400 main ()
4401 {
4402
4403   ;
4404   return 0;
4405 }
4406 _ACEOF
4407 # Make sure it works both with $CC and with simple cc.
4408 # We do the test twice because some compilers refuse to overwrite an
4409 # existing .o file with -o, though they will create one.
4410 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4411 rm -f conftest2.*
4412 if { { case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418   (eval "$ac_try") 2>&5
4419   ac_status=$?
4420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421   test $ac_status = 0; } &&
4422    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424   *) ac_try_echo=$ac_try;;
4425 esac
4426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4427 $as_echo "$ac_try_echo"; } >&5
4428   (eval "$ac_try") 2>&5
4429   ac_status=$?
4430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431   test $ac_status = 0; };
4432 then
4433   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4434   if test "x$CC" != xcc; then
4435     # Test first that cc exists at all.
4436     if { ac_try='cc -c conftest.$ac_ext >&5'
4437   { { 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; }; }; then
4447       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4448       rm -f conftest2.*
4449       if { { case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 $as_echo "$ac_try_echo"; } >&5
4455   (eval "$ac_try") 2>&5
4456   ac_status=$?
4457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458   test $ac_status = 0; } &&
4459          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461   *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465   (eval "$ac_try") 2>&5
4466   ac_status=$?
4467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468   test $ac_status = 0; };
4469       then
4470         # cc works too.
4471         :
4472       else
4473         # cc exists but doesn't like -o.
4474         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4475       fi
4476     fi
4477   fi
4478 else
4479   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4480 fi
4481 rm -f core conftest*
4482
4483 fi
4484 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4486 $as_echo "yes" >&6; }
4487 else
4488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4490
4491 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4492
4493 fi
4494
4495 ac_ext=c
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4501 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4502 # On Suns, sometimes $CPP names a directory.
4503 if test -n "$CPP" && test -d "$CPP"; then
4504   CPP=
4505 fi
4506 if test -z "$CPP"; then
4507   if test "${ac_cv_prog_CPP+set}" = set; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510       # Double quotes because CPP needs to be expanded
4511     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4512     do
4513       ac_preproc_ok=false
4514 for ac_c_preproc_warn_flag in '' yes
4515 do
4516   # Use a header file that comes with gcc, so configuring glibc
4517   # with a fresh cross-compiler works.
4518   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519   # <limits.h> exists even on freestanding compilers.
4520   # On the NeXT, cc -E runs the code through the compiler's parser,
4521   # not just through cpp. "Syntax error" is here to catch this case.
4522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524 #ifdef __STDC__
4525 # include <limits.h>
4526 #else
4527 # include <assert.h>
4528 #endif
4529                      Syntax error
4530 _ACEOF
4531 if ac_fn_c_try_cpp "$LINENO"; then :
4532
4533 else
4534   # Broken: fails on valid input.
4535 continue
4536 fi
4537 rm -f conftest.err conftest.$ac_ext
4538
4539   # OK, works on sane cases.  Now check whether nonexistent headers
4540   # can be detected and how.
4541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h.  */
4543 #include <ac_nonexistent.h>
4544 _ACEOF
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4546   # Broken: success on invalid input.
4547 continue
4548 else
4549   # Passes both tests.
4550 ac_preproc_ok=:
4551 break
4552 fi
4553 rm -f conftest.err conftest.$ac_ext
4554
4555 done
4556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4557 rm -f conftest.err conftest.$ac_ext
4558 if $ac_preproc_ok; then :
4559   break
4560 fi
4561
4562     done
4563     ac_cv_prog_CPP=$CPP
4564
4565 fi
4566   CPP=$ac_cv_prog_CPP
4567 else
4568   ac_cv_prog_CPP=$CPP
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4571 $as_echo "$CPP" >&6; }
4572 ac_preproc_ok=false
4573 for ac_c_preproc_warn_flag in '' yes
4574 do
4575   # Use a header file that comes with gcc, so configuring glibc
4576   # with a fresh cross-compiler works.
4577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578   # <limits.h> exists even on freestanding compilers.
4579   # On the NeXT, cc -E runs the code through the compiler's parser,
4580   # not just through cpp. "Syntax error" is here to catch this case.
4581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583 #ifdef __STDC__
4584 # include <limits.h>
4585 #else
4586 # include <assert.h>
4587 #endif
4588                      Syntax error
4589 _ACEOF
4590 if ac_fn_c_try_cpp "$LINENO"; then :
4591
4592 else
4593   # Broken: fails on valid input.
4594 continue
4595 fi
4596 rm -f conftest.err conftest.$ac_ext
4597
4598   # OK, works on sane cases.  Now check whether nonexistent headers
4599   # can be detected and how.
4600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h.  */
4602 #include <ac_nonexistent.h>
4603 _ACEOF
4604 if ac_fn_c_try_cpp "$LINENO"; then :
4605   # Broken: success on invalid input.
4606 continue
4607 else
4608   # Passes both tests.
4609 ac_preproc_ok=:
4610 break
4611 fi
4612 rm -f conftest.err conftest.$ac_ext
4613
4614 done
4615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4616 rm -f conftest.err conftest.$ac_ext
4617 if $ac_preproc_ok; then :
4618
4619 else
4620   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4623 See \`config.log' for more details" "$LINENO" 5; }
4624 fi
4625
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631
4632
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4634 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4635 if test "${ac_cv_path_GREP+set}" = set; then :
4636   $as_echo_n "(cached) " >&6
4637 else
4638   if test -z "$GREP"; then
4639   ac_path_GREP_found=false
4640   # Loop through the user's path and test for each of PROGNAME-LIST
4641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4643 do
4644   IFS=$as_save_IFS
4645   test -z "$as_dir" && as_dir=.
4646     for ac_prog in grep ggrep; do
4647     for ac_exec_ext in '' $ac_executable_extensions; do
4648       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4649       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4650 # Check for GNU ac_path_GREP and select it if it is found.
4651   # Check for GNU $ac_path_GREP
4652 case `"$ac_path_GREP" --version 2>&1` in
4653 *GNU*)
4654   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4655 *)
4656   ac_count=0
4657   $as_echo_n 0123456789 >"conftest.in"
4658   while :
4659   do
4660     cat "conftest.in" "conftest.in" >"conftest.tmp"
4661     mv "conftest.tmp" "conftest.in"
4662     cp "conftest.in" "conftest.nl"
4663     $as_echo 'GREP' >> "conftest.nl"
4664     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4665     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4666     as_fn_arith $ac_count + 1 && ac_count=$as_val
4667     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4668       # Best one so far, save it but keep looking for a better one
4669       ac_cv_path_GREP="$ac_path_GREP"
4670       ac_path_GREP_max=$ac_count
4671     fi
4672     # 10*(2^10) chars as input seems more than enough
4673     test $ac_count -gt 10 && break
4674   done
4675   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4676 esac
4677
4678       $ac_path_GREP_found && break 3
4679     done
4680   done
4681   done
4682 IFS=$as_save_IFS
4683   if test -z "$ac_cv_path_GREP"; then
4684     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4685   fi
4686 else
4687   ac_cv_path_GREP=$GREP
4688 fi
4689
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4692 $as_echo "$ac_cv_path_GREP" >&6; }
4693  GREP="$ac_cv_path_GREP"
4694
4695
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4697 $as_echo_n "checking for egrep... " >&6; }
4698 if test "${ac_cv_path_EGREP+set}" = set; then :
4699   $as_echo_n "(cached) " >&6
4700 else
4701   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4702    then ac_cv_path_EGREP="$GREP -E"
4703    else
4704      if test -z "$EGREP"; then
4705   ac_path_EGREP_found=false
4706   # Loop through the user's path and test for each of PROGNAME-LIST
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712     for ac_prog in egrep; do
4713     for ac_exec_ext in '' $ac_executable_extensions; do
4714       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4715       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4716 # Check for GNU ac_path_EGREP and select it if it is found.
4717   # Check for GNU $ac_path_EGREP
4718 case `"$ac_path_EGREP" --version 2>&1` in
4719 *GNU*)
4720   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4721 *)
4722   ac_count=0
4723   $as_echo_n 0123456789 >"conftest.in"
4724   while :
4725   do
4726     cat "conftest.in" "conftest.in" >"conftest.tmp"
4727     mv "conftest.tmp" "conftest.in"
4728     cp "conftest.in" "conftest.nl"
4729     $as_echo 'EGREP' >> "conftest.nl"
4730     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4732     as_fn_arith $ac_count + 1 && ac_count=$as_val
4733     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4734       # Best one so far, save it but keep looking for a better one
4735       ac_cv_path_EGREP="$ac_path_EGREP"
4736       ac_path_EGREP_max=$ac_count
4737     fi
4738     # 10*(2^10) chars as input seems more than enough
4739     test $ac_count -gt 10 && break
4740   done
4741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4742 esac
4743
4744       $ac_path_EGREP_found && break 3
4745     done
4746   done
4747   done
4748 IFS=$as_save_IFS
4749   if test -z "$ac_cv_path_EGREP"; then
4750     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4751   fi
4752 else
4753   ac_cv_path_EGREP=$EGREP
4754 fi
4755
4756    fi
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4759 $as_echo "$ac_cv_path_EGREP" >&6; }
4760  EGREP="$ac_cv_path_EGREP"
4761
4762
4763 if test $ac_cv_c_compiler_gnu = yes; then
4764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4765 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4766 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4767   $as_echo_n "(cached) " >&6
4768 else
4769     ac_pattern="Autoconf.*'x'"
4770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h.  */
4772 #include <sgtty.h>
4773 Autoconf TIOCGETP
4774 _ACEOF
4775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4777   ac_cv_prog_gcc_traditional=yes
4778 else
4779   ac_cv_prog_gcc_traditional=no
4780 fi
4781 rm -f conftest*
4782
4783
4784   if test $ac_cv_prog_gcc_traditional = no; then
4785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h.  */
4787 #include <termio.h>
4788 Autoconf TCGETA
4789 _ACEOF
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4792   ac_cv_prog_gcc_traditional=yes
4793 fi
4794 rm -f conftest*
4795
4796   fi
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4799 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4800   if test $ac_cv_prog_gcc_traditional = yes; then
4801     CC="$CC -traditional"
4802   fi
4803 fi
4804
4805 BASECC=`basename $CC`
4806 have_gcc=no
4807 if test "x$BASECC" = xgcc; then
4808    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4809
4810    have_gcc=yes
4811 fi
4812 # Extract the first word of "$CXX", so it can be a program name with args.
4813 set dummy $CXX; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_path_CXX+set}" = set; then :
4817   $as_echo_n "(cached) " >&6
4818 else
4819   case $CXX in
4820   [\\/]* | ?:[\\/]*)
4821   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4822   ;;
4823   *)
4824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829     for ac_exec_ext in '' $ac_executable_extensions; do
4830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836   done
4837 IFS=$as_save_IFS
4838
4839   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4840   ;;
4841 esac
4842 fi
4843 CXX=$ac_cv_path_CXX
4844 if test -n "$CXX"; then
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4846 $as_echo "$CXX" >&6; }
4847 else
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851
4852
4853 if test ! -e $CXX; then
4854    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4855 fi
4856
4857 # Find a good install program.  We prefer a C program (faster),
4858 # so one script is as good as another.  But avoid the broken or
4859 # incompatible versions:
4860 # SysV /etc/install, /usr/sbin/install
4861 # SunOS /usr/etc/install
4862 # IRIX /sbin/install
4863 # AIX /bin/install
4864 # AmigaOS /C/install, which installs bootblocks on floppy discs
4865 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4868 # OS/2's system install, which has a completely different semantic
4869 # ./install, which can be erroneously created by make from ./install.sh.
4870 # Reject install programs that cannot install multiple files.
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4872 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4873 if test -z "$INSTALL"; then
4874 if test "${ac_cv_path_install+set}" = set; then :
4875   $as_echo_n "(cached) " >&6
4876 else
4877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882     # Account for people who put trailing slashes in PATH elements.
4883 case $as_dir/ in #((
4884   ./ | .// | /[cC]/* | \
4885   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4886   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4887   /usr/ucb/* ) ;;
4888   *)
4889     # OSF1 and SCO ODT 3.0 have their own names for install.
4890     # Don't use installbsd from OSF since it installs stuff as root
4891     # by default.
4892     for ac_prog in ginstall scoinst install; do
4893       for ac_exec_ext in '' $ac_executable_extensions; do
4894         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4895           if test $ac_prog = install &&
4896             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4897             # AIX install.  It has an incompatible calling convention.
4898             :
4899           elif test $ac_prog = install &&
4900             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4901             # program-specific install script used by HP pwplus--don't use.
4902             :
4903           else
4904             rm -rf conftest.one conftest.two conftest.dir
4905             echo one > conftest.one
4906             echo two > conftest.two
4907             mkdir conftest.dir
4908             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4909               test -s conftest.one && test -s conftest.two &&
4910               test -s conftest.dir/conftest.one &&
4911               test -s conftest.dir/conftest.two
4912             then
4913               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4914               break 3
4915             fi
4916           fi
4917         fi
4918       done
4919     done
4920     ;;
4921 esac
4922
4923   done
4924 IFS=$as_save_IFS
4925
4926 rm -rf conftest.one conftest.two conftest.dir
4927
4928 fi
4929   if test "${ac_cv_path_install+set}" = set; then
4930     INSTALL=$ac_cv_path_install
4931   else
4932     # As a last resort, use the slow shell script.  Don't cache a
4933     # value for INSTALL within a source directory, because that will
4934     # break other packages using the cache if that directory is
4935     # removed, or if the value is a relative name.
4936     INSTALL=$ac_install_sh
4937   fi
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4940 $as_echo "$INSTALL" >&6; }
4941
4942 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4943 # It thinks the first close brace ends the variable substitution.
4944 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4945
4946 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4947
4948 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4949
4950 # Extract the first word of "mv", so it can be a program name with args.
4951 set dummy mv; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_path_MV+set}" = set; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   case $MV in
4958   [\\/]* | ?:[\\/]*)
4959   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4960   ;;
4961   *)
4962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965   IFS=$as_save_IFS
4966   test -z "$as_dir" && as_dir=.
4967     for ac_exec_ext in '' $ac_executable_extensions; do
4968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971     break 2
4972   fi
4973 done
4974   done
4975 IFS=$as_save_IFS
4976
4977   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4978   ;;
4979 esac
4980 fi
4981 MV=$ac_cv_path_MV
4982 if test -n "$MV"; then
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4984 $as_echo "$MV" >&6; }
4985 else
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990
4991 # Extract the first word of "rm", so it can be a program name with args.
4992 set dummy rm; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if test "${ac_cv_path_REMOVE+set}" = set; then :
4996   $as_echo_n "(cached) " >&6
4997 else
4998   case $REMOVE in
4999   [\\/]* | ?:[\\/]*)
5000   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5001   ;;
5002   *)
5003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006   IFS=$as_save_IFS
5007   test -z "$as_dir" && as_dir=.
5008     for ac_exec_ext in '' $ac_executable_extensions; do
5009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012     break 2
5013   fi
5014 done
5015   done
5016 IFS=$as_save_IFS
5017
5018   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5019   ;;
5020 esac
5021 fi
5022 REMOVE=$ac_cv_path_REMOVE
5023 if test -n "$REMOVE"; then
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5025 $as_echo "$REMOVE" >&6; }
5026 else
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 fi
5030
5031
5032 # Extract the first word of "cp", so it can be a program name with args.
5033 set dummy cp; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if test "${ac_cv_path_CP+set}" = set; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039   case $CP in
5040   [\\/]* | ?:[\\/]*)
5041   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5042   ;;
5043   *)
5044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047   IFS=$as_save_IFS
5048   test -z "$as_dir" && as_dir=.
5049     for ac_exec_ext in '' $ac_executable_extensions; do
5050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053     break 2
5054   fi
5055 done
5056   done
5057 IFS=$as_save_IFS
5058
5059   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5060   ;;
5061 esac
5062 fi
5063 CP=$ac_cv_path_CP
5064 if test -n "$CP"; then
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5066 $as_echo "$CP" >&6; }
5067 else
5068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5070 fi
5071
5072
5073 # Extract the first word of "sed", so it can be a program name with args.
5074 set dummy sed; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if test "${ac_cv_path_SED+set}" = set; then :
5078   $as_echo_n "(cached) " >&6
5079 else
5080   case $SED in
5081   [\\/]* | ?:[\\/]*)
5082   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5083   ;;
5084   *)
5085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090     for ac_exec_ext in '' $ac_executable_extensions; do
5091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094     break 2
5095   fi
5096 done
5097   done
5098 IFS=$as_save_IFS
5099
5100   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5101   ;;
5102 esac
5103 fi
5104 SED=$ac_cv_path_SED
5105 if test -n "$SED"; then
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5107 $as_echo "$SED" >&6; }
5108 else
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5111 fi
5112
5113
5114 # Extract the first word of "echo", so it can be a program name with args.
5115 set dummy echo; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if test "${ac_cv_path_ECHO+set}" = set; then :
5119   $as_echo_n "(cached) " >&6
5120 else
5121   case $ECHO in
5122   [\\/]* | ?:[\\/]*)
5123   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5124   ;;
5125   *)
5126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129   IFS=$as_save_IFS
5130   test -z "$as_dir" && as_dir=.
5131     for ac_exec_ext in '' $ac_executable_extensions; do
5132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135     break 2
5136   fi
5137 done
5138   done
5139 IFS=$as_save_IFS
5140
5141   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5142   ;;
5143 esac
5144 fi
5145 ECHO=$ac_cv_path_ECHO
5146 if test -n "$ECHO"; then
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5148 $as_echo "$ECHO" >&6; }
5149 else
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5152 fi
5153
5154
5155 # Extract the first word of "cmp", so it can be a program name with args.
5156 set dummy cmp; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if test "${ac_cv_path_CMP+set}" = set; then :
5160   $as_echo_n "(cached) " >&6
5161 else
5162   case $CMP in
5163   [\\/]* | ?:[\\/]*)
5164   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5165   ;;
5166   *)
5167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170   IFS=$as_save_IFS
5171   test -z "$as_dir" && as_dir=.
5172     for ac_exec_ext in '' $ac_executable_extensions; do
5173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179   done
5180 IFS=$as_save_IFS
5181
5182   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5183   ;;
5184 esac
5185 fi
5186 CMP=$ac_cv_path_CMP
5187 if test -n "$CMP"; then
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5189 $as_echo "$CMP" >&6; }
5190 else
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194
5195
5196 # Extract the first word of "tbl", so it can be a program name with args.
5197 set dummy tbl; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if test "${ac_cv_path_TBL+set}" = set; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   case $TBL in
5204   [\\/]* | ?:[\\/]*)
5205   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5206   ;;
5207   *)
5208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213     for ac_exec_ext in '' $ac_executable_extensions; do
5214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220   done
5221 IFS=$as_save_IFS
5222
5223   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5224   ;;
5225 esac
5226 fi
5227 TBL=$ac_cv_path_TBL
5228 if test -n "$TBL"; then
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5230 $as_echo "$TBL" >&6; }
5231 else
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237 # Extract the first word of "ar", so it can be a program name with args.
5238 set dummy ar; ac_word=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if test "${ac_cv_path_AR+set}" = set; then :
5242   $as_echo_n "(cached) " >&6
5243 else
5244   case $AR in
5245   [\\/]* | ?:[\\/]*)
5246   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5247   ;;
5248   *)
5249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252   IFS=$as_save_IFS
5253   test -z "$as_dir" && as_dir=.
5254     for ac_exec_ext in '' $ac_executable_extensions; do
5255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258     break 2
5259   fi
5260 done
5261   done
5262 IFS=$as_save_IFS
5263
5264   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5265   ;;
5266 esac
5267 fi
5268 AR=$ac_cv_path_AR
5269 if test -n "$AR"; then
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5271 $as_echo "$AR" >&6; }
5272 else
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5275 fi
5276
5277
5278 # Extract the first word of "openssl", so it can be a program name with args.
5279 set dummy openssl; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5283   $as_echo_n "(cached) " >&6
5284 else
5285   case $OPENSSL in
5286   [\\/]* | ?:[\\/]*)
5287   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5288   ;;
5289   *)
5290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295     for ac_exec_ext in '' $ac_executable_extensions; do
5296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299     break 2
5300   fi
5301 done
5302   done
5303 IFS=$as_save_IFS
5304
5305   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5306   ;;
5307 esac
5308 fi
5309 OPENSSL=$ac_cv_path_OPENSSL
5310 if test -n "$OPENSSL"; then
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5312 $as_echo "$OPENSSL" >&6; }
5313 else
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5316 fi
5317
5318
5319 # Extract the first word of "mtx", so it can be a program name with args.
5320 set dummy mtx; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if test "${ac_cv_path_MTX+set}" = set; then :
5324   $as_echo_n "(cached) " >&6
5325 else
5326   case $MTX in
5327   [\\/]* | ?:[\\/]*)
5328   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5329   ;;
5330   *)
5331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334   IFS=$as_save_IFS
5335   test -z "$as_dir" && as_dir=.
5336     for ac_exec_ext in '' $ac_executable_extensions; do
5337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340     break 2
5341   fi
5342 done
5343   done
5344 IFS=$as_save_IFS
5345
5346   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5347   ;;
5348 esac
5349 fi
5350 MTX=$ac_cv_path_MTX
5351 if test -n "$MTX"; then
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5353 $as_echo "$MTX" >&6; }
5354 else
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359
5360 # Extract the first word of "dd", so it can be a program name with args.
5361 set dummy dd; ac_word=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if test "${ac_cv_path_DD+set}" = set; then :
5365   $as_echo_n "(cached) " >&6
5366 else
5367   case $DD in
5368   [\\/]* | ?:[\\/]*)
5369   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5370   ;;
5371   *)
5372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375   IFS=$as_save_IFS
5376   test -z "$as_dir" && as_dir=.
5377     for ac_exec_ext in '' $ac_executable_extensions; do
5378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381     break 2
5382   fi
5383 done
5384   done
5385 IFS=$as_save_IFS
5386
5387   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5388   ;;
5389 esac
5390 fi
5391 DD=$ac_cv_path_DD
5392 if test -n "$DD"; then
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5394 $as_echo "$DD" >&6; }
5395 else
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399
5400
5401 # Extract the first word of "mkisofs", so it can be a program name with args.
5402 set dummy mkisofs; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5406   $as_echo_n "(cached) " >&6
5407 else
5408   case $MKISOFS in
5409   [\\/]* | ?:[\\/]*)
5410   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5411   ;;
5412   *)
5413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418     for ac_exec_ext in '' $ac_executable_extensions; do
5419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422     break 2
5423   fi
5424 done
5425   done
5426 IFS=$as_save_IFS
5427
5428   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5429   ;;
5430 esac
5431 fi
5432 MKISOFS=$ac_cv_path_MKISOFS
5433 if test -n "$MKISOFS"; then
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5435 $as_echo "$MKISOFS" >&6; }
5436 else
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441
5442 # Extract the first word of "python", so it can be a program name with args.
5443 set dummy python; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if test "${ac_cv_path_PYTHON+set}" = set; then :
5447   $as_echo_n "(cached) " >&6
5448 else
5449   case $PYTHON in
5450   [\\/]* | ?:[\\/]*)
5451   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5452   ;;
5453   *)
5454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457   IFS=$as_save_IFS
5458   test -z "$as_dir" && as_dir=.
5459     for ac_exec_ext in '' $ac_executable_extensions; do
5460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463     break 2
5464   fi
5465 done
5466   done
5467 IFS=$as_save_IFS
5468
5469   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5470   ;;
5471 esac
5472 fi
5473 PYTHON=$ac_cv_path_PYTHON
5474 if test -n "$PYTHON"; then
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5476 $as_echo "$PYTHON" >&6; }
5477 else
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481
5482
5483 # Extract the first word of "growisofs", so it can be a program name with args.
5484 set dummy growisofs; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5488   $as_echo_n "(cached) " >&6
5489 else
5490   case $GROWISOFS in
5491   [\\/]* | ?:[\\/]*)
5492   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5493   ;;
5494   *)
5495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498   IFS=$as_save_IFS
5499   test -z "$as_dir" && as_dir=.
5500     for ac_exec_ext in '' $ac_executable_extensions; do
5501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504     break 2
5505   fi
5506 done
5507   done
5508 IFS=$as_save_IFS
5509
5510   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5511   ;;
5512 esac
5513 fi
5514 GROWISOFS=$ac_cv_path_GROWISOFS
5515 if test -n "$GROWISOFS"; then
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5517 $as_echo "$GROWISOFS" >&6; }
5518 else
5519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 fi
5522
5523
5524 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5525 set dummy dvd+rw-mediainfo; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5529   $as_echo_n "(cached) " >&6
5530 else
5531   case $DVDRWMEDIAINFO in
5532   [\\/]* | ?:[\\/]*)
5533   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5534   ;;
5535   *)
5536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539   IFS=$as_save_IFS
5540   test -z "$as_dir" && as_dir=.
5541     for ac_exec_ext in '' $ac_executable_extensions; do
5542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545     break 2
5546   fi
5547 done
5548   done
5549 IFS=$as_save_IFS
5550
5551   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5552   ;;
5553 esac
5554 fi
5555 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5556 if test -n "$DVDRWMEDIAINFO"; then
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5558 $as_echo "$DVDRWMEDIAINFO" >&6; }
5559 else
5560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 fi
5563
5564
5565 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5566 set dummy dvd+rw-format; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5570   $as_echo_n "(cached) " >&6
5571 else
5572   case $DVDRWFORMAT in
5573   [\\/]* | ?:[\\/]*)
5574   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5575   ;;
5576   *)
5577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582     for ac_exec_ext in '' $ac_executable_extensions; do
5583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5584     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586     break 2
5587   fi
5588 done
5589   done
5590 IFS=$as_save_IFS
5591
5592   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5593   ;;
5594 esac
5595 fi
5596 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5597 if test -n "$DVDRWFORMAT"; then
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5599 $as_echo "$DVDRWFORMAT" >&6; }
5600 else
5601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605
5606 # Extract the first word of "pkg-config", so it can be a program name with args.
5607 set dummy pkg-config; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5611   $as_echo_n "(cached) " >&6
5612 else
5613   case $PKGCONFIG in
5614   [\\/]* | ?:[\\/]*)
5615   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5616   ;;
5617   *)
5618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621   IFS=$as_save_IFS
5622   test -z "$as_dir" && as_dir=.
5623     for ac_exec_ext in '' $ac_executable_extensions; do
5624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5625     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627     break 2
5628   fi
5629 done
5630   done
5631 IFS=$as_save_IFS
5632
5633   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5634   ;;
5635 esac
5636 fi
5637 PKGCONFIG=$ac_cv_path_PKGCONFIG
5638 if test -n "$PKGCONFIG"; then
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5640 $as_echo "$PKGCONFIG" >&6; }
5641 else
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645
5646
5647 # Extract the first word of "qmake", so it can be a program name with args.
5648 set dummy qmake; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_path_QMAKE+set}" = set; then :
5652   $as_echo_n "(cached) " >&6
5653 else
5654   case $QMAKE in
5655   [\\/]* | ?:[\\/]*)
5656   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5657   ;;
5658   *)
5659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662   IFS=$as_save_IFS
5663   test -z "$as_dir" && as_dir=.
5664     for ac_exec_ext in '' $ac_executable_extensions; do
5665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668     break 2
5669   fi
5670 done
5671   done
5672 IFS=$as_save_IFS
5673
5674   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5675   ;;
5676 esac
5677 fi
5678 QMAKE=$ac_cv_path_QMAKE
5679 if test -n "$QMAKE"; then
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5681 $as_echo "$QMAKE" >&6; }
5682 else
5683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687
5688 # Extract the first word of "gmake", so it can be a program name with args.
5689 set dummy gmake; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_path_GMAKE+set}" = set; then :
5693   $as_echo_n "(cached) " >&6
5694 else
5695   case $GMAKE in
5696   [\\/]* | ?:[\\/]*)
5697   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5698   ;;
5699   *)
5700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5702 do
5703   IFS=$as_save_IFS
5704   test -z "$as_dir" && as_dir=.
5705     for ac_exec_ext in '' $ac_executable_extensions; do
5706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709     break 2
5710   fi
5711 done
5712   done
5713 IFS=$as_save_IFS
5714
5715   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5716   ;;
5717 esac
5718 fi
5719 GMAKE=$ac_cv_path_GMAKE
5720 if test -n "$GMAKE"; then
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5722 $as_echo "$GMAKE" >&6; }
5723 else
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5726 fi
5727
5728
5729
5730 if test "x$WXCONFIG" = x; then
5731    WXCONFIG=wx-config
5732 fi
5733 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5734 set dummy ${WXCONFIG}; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5738   $as_echo_n "(cached) " >&6
5739 else
5740   case $WXCONFIG in
5741   [\\/]* | ?:[\\/]*)
5742   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5743   ;;
5744   *)
5745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748   IFS=$as_save_IFS
5749   test -z "$as_dir" && as_dir=.
5750     for ac_exec_ext in '' $ac_executable_extensions; do
5751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754     break 2
5755   fi
5756 done
5757   done
5758 IFS=$as_save_IFS
5759
5760   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5761   ;;
5762 esac
5763 fi
5764 WXCONFIG=$ac_cv_path_WXCONFIG
5765 if test -n "$WXCONFIG"; then
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5767 $as_echo "$WXCONFIG" >&6; }
5768 else
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5771 fi
5772
5773
5774
5775 # Extract the first word of "cdrecord", so it can be a program name with args.
5776 set dummy cdrecord; ac_word=$2
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778 $as_echo_n "checking for $ac_word... " >&6; }
5779 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5780   $as_echo_n "(cached) " >&6
5781 else
5782   case $CDRECORD in
5783   [\\/]* | ?:[\\/]*)
5784   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5785   ;;
5786   *)
5787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH
5789 do
5790   IFS=$as_save_IFS
5791   test -z "$as_dir" && as_dir=.
5792     for ac_exec_ext in '' $ac_executable_extensions; do
5793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5794     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796     break 2
5797   fi
5798 done
5799   done
5800 IFS=$as_save_IFS
5801
5802   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5803   ;;
5804 esac
5805 fi
5806 CDRECORD=$ac_cv_path_CDRECORD
5807 if test -n "$CDRECORD"; then
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5809 $as_echo "$CDRECORD" >&6; }
5810 else
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5813 fi
5814
5815
5816 # Extract the first word of "pidof", so it can be a program name with args.
5817 set dummy pidof; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if test "${ac_cv_path_PIDOF+set}" = set; then :
5821   $as_echo_n "(cached) " >&6
5822 else
5823   case $PIDOF in
5824   [\\/]* | ?:[\\/]*)
5825   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5826   ;;
5827   *)
5828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833     for ac_exec_ext in '' $ac_executable_extensions; do
5834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840   done
5841 IFS=$as_save_IFS
5842
5843   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5844   ;;
5845 esac
5846 fi
5847 PIDOF=$ac_cv_path_PIDOF
5848 if test -n "$PIDOF"; then
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5850 $as_echo "$PIDOF" >&6; }
5851 else
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5854 fi
5855
5856
5857 for ac_prog in gawk mawk nawk awk
5858 do
5859   # Extract the first word of "$ac_prog", so it can be a program name with args.
5860 set dummy $ac_prog; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if test "${ac_cv_prog_AWK+set}" = set; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   if test -n "$AWK"; then
5867   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872   IFS=$as_save_IFS
5873   test -z "$as_dir" && as_dir=.
5874     for ac_exec_ext in '' $ac_executable_extensions; do
5875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876     ac_cv_prog_AWK="$ac_prog"
5877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878     break 2
5879   fi
5880 done
5881   done
5882 IFS=$as_save_IFS
5883
5884 fi
5885 fi
5886 AWK=$ac_cv_prog_AWK
5887 if test -n "$AWK"; then
5888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5889 $as_echo "$AWK" >&6; }
5890 else
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894
5895
5896   test -n "$AWK" && break
5897 done
5898
5899 # Some AWK programs fail, so test it and warn the user
5900 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5901       { if ((prog == $2) || (("(" prog ")") == $2) ||
5902       (("" prog "") == $2) ||
5903       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5904 else
5905   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5906    The regex engine of $AWK is too broken to be used you
5907    might want to install GNU AWK.
5908    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5909 fi
5910 THE_AWK=$AWK
5911 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5912 set dummy $THE_AWK; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_path_AWK+set}" = set; then :
5916   $as_echo_n "(cached) " >&6
5917 else
5918   case $AWK in
5919   [\\/]* | ?:[\\/]*)
5920   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5921   ;;
5922   *)
5923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928     for ac_exec_ext in '' $ac_executable_extensions; do
5929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932     break 2
5933   fi
5934 done
5935   done
5936 IFS=$as_save_IFS
5937
5938   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5939   ;;
5940 esac
5941 fi
5942 AWK=$ac_cv_path_AWK
5943 if test -n "$AWK"; then
5944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5945 $as_echo "$AWK" >&6; }
5946 else
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952
5953
5954 test -n "$ARFLAG" || ARFLAGS="cr"
5955
5956
5957 MAKE_SHELL=/bin/sh
5958
5959
5960
5961
5962
5963
5964
5965 use_libtool=yes
5966 # Check whether --enable-libtool was given.
5967 if test "${enable_libtool+set}" = set; then :
5968   enableval=$enable_libtool;
5969        if test x$enableval = xno; then
5970           use_libtool=no
5971        fi
5972
5973
5974 fi
5975
5976 case `pwd` in
5977   *\ * | *\     *)
5978     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5979 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5980 esac
5981
5982
5983
5984 macro_version='2.2.6'
5985 macro_revision='1.3012'
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999 ltmain="$ac_aux_dir/ltmain.sh"
6000
6001 # Make sure we can run config.sub.
6002 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6003   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6004
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6006 $as_echo_n "checking build system type... " >&6; }
6007 if test "${ac_cv_build+set}" = set; then :
6008   $as_echo_n "(cached) " >&6
6009 else
6010   ac_build_alias=$build_alias
6011 test "x$ac_build_alias" = x &&
6012   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6013 test "x$ac_build_alias" = x &&
6014   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6015 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6016   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6017
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6020 $as_echo "$ac_cv_build" >&6; }
6021 case $ac_cv_build in
6022 *-*-*) ;;
6023 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6024 esac
6025 build=$ac_cv_build
6026 ac_save_IFS=$IFS; IFS='-'
6027 set x $ac_cv_build
6028 shift
6029 build_cpu=$1
6030 build_vendor=$2
6031 shift; shift
6032 # Remember, the first character of IFS is used to create $*,
6033 # except with old shells:
6034 build_os=$*
6035 IFS=$ac_save_IFS
6036 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6037
6038
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6040 $as_echo_n "checking host system type... " >&6; }
6041 if test "${ac_cv_host+set}" = set; then :
6042   $as_echo_n "(cached) " >&6
6043 else
6044   if test "x$host_alias" = x; then
6045   ac_cv_host=$ac_cv_build
6046 else
6047   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6048     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6049 fi
6050
6051 fi
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6053 $as_echo "$ac_cv_host" >&6; }
6054 case $ac_cv_host in
6055 *-*-*) ;;
6056 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6057 esac
6058 host=$ac_cv_host
6059 ac_save_IFS=$IFS; IFS='-'
6060 set x $ac_cv_host
6061 shift
6062 host_cpu=$1
6063 host_vendor=$2
6064 shift; shift
6065 # Remember, the first character of IFS is used to create $*,
6066 # except with old shells:
6067 host_os=$*
6068 IFS=$ac_save_IFS
6069 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6070
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6073 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6074 if test "${ac_cv_path_SED+set}" = set; then :
6075   $as_echo_n "(cached) " >&6
6076 else
6077             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6078      for ac_i in 1 2 3 4 5 6 7; do
6079        ac_script="$ac_script$as_nl$ac_script"
6080      done
6081      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6082      { ac_script=; unset ac_script;}
6083      if test -z "$SED"; then
6084   ac_path_SED_found=false
6085   # Loop through the user's path and test for each of PROGNAME-LIST
6086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089   IFS=$as_save_IFS
6090   test -z "$as_dir" && as_dir=.
6091     for ac_prog in sed gsed; do
6092     for ac_exec_ext in '' $ac_executable_extensions; do
6093       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6094       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6095 # Check for GNU ac_path_SED and select it if it is found.
6096   # Check for GNU $ac_path_SED
6097 case `"$ac_path_SED" --version 2>&1` in
6098 *GNU*)
6099   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6100 *)
6101   ac_count=0
6102   $as_echo_n 0123456789 >"conftest.in"
6103   while :
6104   do
6105     cat "conftest.in" "conftest.in" >"conftest.tmp"
6106     mv "conftest.tmp" "conftest.in"
6107     cp "conftest.in" "conftest.nl"
6108     $as_echo '' >> "conftest.nl"
6109     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6110     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6111     as_fn_arith $ac_count + 1 && ac_count=$as_val
6112     if test $ac_count -gt ${ac_path_SED_max-0}; then
6113       # Best one so far, save it but keep looking for a better one
6114       ac_cv_path_SED="$ac_path_SED"
6115       ac_path_SED_max=$ac_count
6116     fi
6117     # 10*(2^10) chars as input seems more than enough
6118     test $ac_count -gt 10 && break
6119   done
6120   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6121 esac
6122
6123       $ac_path_SED_found && break 3
6124     done
6125   done
6126   done
6127 IFS=$as_save_IFS
6128   if test -z "$ac_cv_path_SED"; then
6129     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6130   fi
6131 else
6132   ac_cv_path_SED=$SED
6133 fi
6134
6135 fi
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6137 $as_echo "$ac_cv_path_SED" >&6; }
6138  SED="$ac_cv_path_SED"
6139   rm -f conftest.sed
6140
6141 test -z "$SED" && SED=sed
6142 Xsed="$SED -e 1s/^X//"
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6155 $as_echo_n "checking for fgrep... " >&6; }
6156 if test "${ac_cv_path_FGREP+set}" = set; then :
6157   $as_echo_n "(cached) " >&6
6158 else
6159   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6160    then ac_cv_path_FGREP="$GREP -F"
6161    else
6162      if test -z "$FGREP"; then
6163   ac_path_FGREP_found=false
6164   # Loop through the user's path and test for each of PROGNAME-LIST
6165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6167 do
6168   IFS=$as_save_IFS
6169   test -z "$as_dir" && as_dir=.
6170     for ac_prog in fgrep; do
6171     for ac_exec_ext in '' $ac_executable_extensions; do
6172       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6173       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6174 # Check for GNU ac_path_FGREP and select it if it is found.
6175   # Check for GNU $ac_path_FGREP
6176 case `"$ac_path_FGREP" --version 2>&1` in
6177 *GNU*)
6178   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6179 *)
6180   ac_count=0
6181   $as_echo_n 0123456789 >"conftest.in"
6182   while :
6183   do
6184     cat "conftest.in" "conftest.in" >"conftest.tmp"
6185     mv "conftest.tmp" "conftest.in"
6186     cp "conftest.in" "conftest.nl"
6187     $as_echo 'FGREP' >> "conftest.nl"
6188     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6189     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6190     as_fn_arith $ac_count + 1 && ac_count=$as_val
6191     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6192       # Best one so far, save it but keep looking for a better one
6193       ac_cv_path_FGREP="$ac_path_FGREP"
6194       ac_path_FGREP_max=$ac_count
6195     fi
6196     # 10*(2^10) chars as input seems more than enough
6197     test $ac_count -gt 10 && break
6198   done
6199   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6200 esac
6201
6202       $ac_path_FGREP_found && break 3
6203     done
6204   done
6205   done
6206 IFS=$as_save_IFS
6207   if test -z "$ac_cv_path_FGREP"; then
6208     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6209   fi
6210 else
6211   ac_cv_path_FGREP=$FGREP
6212 fi
6213
6214    fi
6215 fi
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6217 $as_echo "$ac_cv_path_FGREP" >&6; }
6218  FGREP="$ac_cv_path_FGREP"
6219
6220
6221 test -z "$GREP" && GREP=grep
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241 # Check whether --with-gnu-ld was given.
6242 if test "${with_gnu_ld+set}" = set; then :
6243   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6244 else
6245   with_gnu_ld=no
6246 fi
6247
6248 ac_prog=ld
6249 if test "$GCC" = yes; then
6250   # Check if gcc -print-prog-name=ld gives a path.
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6252 $as_echo_n "checking for ld used by $CC... " >&6; }
6253   case $host in
6254   *-*-mingw*)
6255     # gcc leaves a trailing carriage return which upsets mingw
6256     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6257   *)
6258     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6259   esac
6260   case $ac_prog in
6261     # Accept absolute paths.
6262     [\\/]* | ?:[\\/]*)
6263       re_direlt='/[^/][^/]*/\.\./'
6264       # Canonicalize the pathname of ld
6265       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6266       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6267         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6268       done
6269       test -z "$LD" && LD="$ac_prog"
6270       ;;
6271   "")
6272     # If it fails, then pretend we aren't using GCC.
6273     ac_prog=ld
6274     ;;
6275   *)
6276     # If it is relative, then search for the first ld in PATH.
6277     with_gnu_ld=unknown
6278     ;;
6279   esac
6280 elif test "$with_gnu_ld" = yes; then
6281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6282 $as_echo_n "checking for GNU ld... " >&6; }
6283 else
6284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6285 $as_echo_n "checking for non-GNU ld... " >&6; }
6286 fi
6287 if test "${lt_cv_path_LD+set}" = set; then :
6288   $as_echo_n "(cached) " >&6
6289 else
6290   if test -z "$LD"; then
6291   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6292   for ac_dir in $PATH; do
6293     IFS="$lt_save_ifs"
6294     test -z "$ac_dir" && ac_dir=.
6295     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6296       lt_cv_path_LD="$ac_dir/$ac_prog"
6297       # Check to see if the program is GNU ld.  I'd rather use --version,
6298       # but apparently some variants of GNU ld only accept -v.
6299       # Break only if it was the GNU/non-GNU ld that we prefer.
6300       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6301       *GNU* | *'with BFD'*)
6302         test "$with_gnu_ld" != no && break
6303         ;;
6304       *)
6305         test "$with_gnu_ld" != yes && break
6306         ;;
6307       esac
6308     fi
6309   done
6310   IFS="$lt_save_ifs"
6311 else
6312   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6313 fi
6314 fi
6315
6316 LD="$lt_cv_path_LD"
6317 if test -n "$LD"; then
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6319 $as_echo "$LD" >&6; }
6320 else
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6323 fi
6324 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6326 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6327 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6328   $as_echo_n "(cached) " >&6
6329 else
6330   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6331 case `$LD -v 2>&1 </dev/null` in
6332 *GNU* | *'with BFD'*)
6333   lt_cv_prog_gnu_ld=yes
6334   ;;
6335 *)
6336   lt_cv_prog_gnu_ld=no
6337   ;;
6338 esac
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6341 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6342 with_gnu_ld=$lt_cv_prog_gnu_ld
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6353 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6354 if test "${lt_cv_path_NM+set}" = set; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   if test -n "$NM"; then
6358   # Let the user override the test.
6359   lt_cv_path_NM="$NM"
6360 else
6361   lt_nm_to_check="${ac_tool_prefix}nm"
6362   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6363     lt_nm_to_check="$lt_nm_to_check nm"
6364   fi
6365   for lt_tmp_nm in $lt_nm_to_check; do
6366     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6367     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6368       IFS="$lt_save_ifs"
6369       test -z "$ac_dir" && ac_dir=.
6370       tmp_nm="$ac_dir/$lt_tmp_nm"
6371       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6372         # Check to see if the nm accepts a BSD-compat flag.
6373         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6374         #   nm: unknown option "B" ignored
6375         # Tru64's nm complains that /dev/null is an invalid object file
6376         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6377         */dev/null* | *'Invalid file or object type'*)
6378           lt_cv_path_NM="$tmp_nm -B"
6379           break
6380           ;;
6381         *)
6382           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6383           */dev/null*)
6384             lt_cv_path_NM="$tmp_nm -p"
6385             break
6386             ;;
6387           *)
6388             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6389             continue # so that we can try to find one that supports BSD flags
6390             ;;
6391           esac
6392           ;;
6393         esac
6394       fi
6395     done
6396     IFS="$lt_save_ifs"
6397   done
6398   : ${lt_cv_path_NM=no}
6399 fi
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6402 $as_echo "$lt_cv_path_NM" >&6; }
6403 if test "$lt_cv_path_NM" != "no"; then
6404   NM="$lt_cv_path_NM"
6405 else
6406   # Didn't find any BSD compatible name lister, look for dumpbin.
6407   if test -n "$ac_tool_prefix"; then
6408   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6409   do
6410     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417   if test -n "$DUMPBIN"; then
6418   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   test -z "$as_dir" && as_dir=.
6425     for ac_exec_ext in '' $ac_executable_extensions; do
6426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6427     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432   done
6433 IFS=$as_save_IFS
6434
6435 fi
6436 fi
6437 DUMPBIN=$ac_cv_prog_DUMPBIN
6438 if test -n "$DUMPBIN"; then
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6440 $as_echo "$DUMPBIN" >&6; }
6441 else
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6444 fi
6445
6446
6447     test -n "$DUMPBIN" && break
6448   done
6449 fi
6450 if test -z "$DUMPBIN"; then
6451   ac_ct_DUMPBIN=$DUMPBIN
6452   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6453 do
6454   # Extract the first word of "$ac_prog", so it can be a program name with args.
6455 set dummy $ac_prog; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   if test -n "$ac_ct_DUMPBIN"; then
6462   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469     for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476   done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6482 if test -n "$ac_ct_DUMPBIN"; then
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6484 $as_echo "$ac_ct_DUMPBIN" >&6; }
6485 else
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490
6491   test -n "$ac_ct_DUMPBIN" && break
6492 done
6493
6494   if test "x$ac_ct_DUMPBIN" = x; then
6495     DUMPBIN=":"
6496   else
6497     case $cross_compiling:$ac_tool_warned in
6498 yes:)
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501 ac_tool_warned=yes ;;
6502 esac
6503     DUMPBIN=$ac_ct_DUMPBIN
6504   fi
6505 fi
6506
6507
6508   if test "$DUMPBIN" != ":"; then
6509     NM="$DUMPBIN"
6510   fi
6511 fi
6512 test -z "$NM" && NM=nm
6513
6514
6515
6516
6517
6518
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6520 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6521 if test "${lt_cv_nm_interface+set}" = set; then :
6522   $as_echo_n "(cached) " >&6
6523 else
6524   lt_cv_nm_interface="BSD nm"
6525   echo "int some_variable = 0;" > conftest.$ac_ext
6526   (eval echo "\"\$as_me:6526: $ac_compile\"" >&5)
6527   (eval "$ac_compile" 2>conftest.err)
6528   cat conftest.err >&5
6529   (eval echo "\"\$as_me:6529: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6530   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6531   cat conftest.err >&5
6532   (eval echo "\"\$as_me:6532: output\"" >&5)
6533   cat conftest.out >&5
6534   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6535     lt_cv_nm_interface="MS dumpbin"
6536   fi
6537   rm -f conftest*
6538 fi
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6540 $as_echo "$lt_cv_nm_interface" >&6; }
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6543 $as_echo_n "checking whether ln -s works... " >&6; }
6544 LN_S=$as_ln_s
6545 if test "$LN_S" = "ln -s"; then
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6547 $as_echo "yes" >&6; }
6548 else
6549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6550 $as_echo "no, using $LN_S" >&6; }
6551 fi
6552
6553 # find the maximum length of command line arguments
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6555 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6556 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6557   $as_echo_n "(cached) " >&6
6558 else
6559     i=0
6560   teststring="ABCD"
6561
6562   case $build_os in
6563   msdosdjgpp*)
6564     # On DJGPP, this test can blow up pretty badly due to problems in libc
6565     # (any single argument exceeding 2000 bytes causes a buffer overrun
6566     # during glob expansion).  Even if it were fixed, the result of this
6567     # check would be larger than it should be.
6568     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6569     ;;
6570
6571   gnu*)
6572     # Under GNU Hurd, this test is not required because there is
6573     # no limit to the length of command line arguments.
6574     # Libtool will interpret -1 as no limit whatsoever
6575     lt_cv_sys_max_cmd_len=-1;
6576     ;;
6577
6578   cygwin* | mingw* | cegcc*)
6579     # On Win9x/ME, this test blows up -- it succeeds, but takes
6580     # about 5 minutes as the teststring grows exponentially.
6581     # Worse, since 9x/ME are not pre-emptively multitasking,
6582     # you end up with a "frozen" computer, even though with patience
6583     # the test eventually succeeds (with a max line length of 256k).
6584     # Instead, let's just punt: use the minimum linelength reported by
6585     # all of the supported platforms: 8192 (on NT/2K/XP).
6586     lt_cv_sys_max_cmd_len=8192;
6587     ;;
6588
6589   amigaos*)
6590     # On AmigaOS with pdksh, this test takes hours, literally.
6591     # So we just punt and use a minimum line length of 8192.
6592     lt_cv_sys_max_cmd_len=8192;
6593     ;;
6594
6595   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6596     # This has been around since 386BSD, at least.  Likely further.
6597     if test -x /sbin/sysctl; then
6598       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6599     elif test -x /usr/sbin/sysctl; then
6600       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6601     else
6602       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6603     fi
6604     # And add a safety zone
6605     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6606     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6607     ;;
6608
6609   interix*)
6610     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6611     lt_cv_sys_max_cmd_len=196608
6612     ;;
6613
6614   osf*)
6615     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6616     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6617     # nice to cause kernel panics so lets avoid the loop below.
6618     # First set a reasonable default.
6619     lt_cv_sys_max_cmd_len=16384
6620     #
6621     if test -x /sbin/sysconfig; then
6622       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6623         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6624       esac
6625     fi
6626     ;;
6627   sco3.2v5*)
6628     lt_cv_sys_max_cmd_len=102400
6629     ;;
6630   sysv5* | sco5v6* | sysv4.2uw2*)
6631     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6632     if test -n "$kargmax"; then
6633       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6634     else
6635       lt_cv_sys_max_cmd_len=32768
6636     fi
6637     ;;
6638   *)
6639     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6640     if test -n "$lt_cv_sys_max_cmd_len"; then
6641       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6642       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6643     else
6644       # Make teststring a little bigger before we do anything with it.
6645       # a 1K string should be a reasonable start.
6646       for i in 1 2 3 4 5 6 7 8 ; do
6647         teststring=$teststring$teststring
6648       done
6649       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6650       # If test is not a shell built-in, we'll probably end up computing a
6651       # maximum length that is only half of the actual maximum length, but
6652       # we can't tell.
6653       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6654                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6655               test $i != 17 # 1/2 MB should be enough
6656       do
6657         i=`expr $i + 1`
6658         teststring=$teststring$teststring
6659       done
6660       # Only check the string length outside the loop.
6661       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6662       teststring=
6663       # Add a significant safety factor because C++ compilers can tack on
6664       # massive amounts of additional arguments before passing them to the
6665       # linker.  It appears as though 1/2 is a usable value.
6666       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6667     fi
6668     ;;
6669   esac
6670
6671 fi
6672
6673 if test -n $lt_cv_sys_max_cmd_len ; then
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6675 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6676 else
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6678 $as_echo "none" >&6; }
6679 fi
6680 max_cmd_len=$lt_cv_sys_max_cmd_len
6681
6682
6683
6684
6685
6686
6687 : ${CP="cp -f"}
6688 : ${MV="mv -f"}
6689 : ${RM="rm -f"}
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6692 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6693 # Try some XSI features
6694 xsi_shell=no
6695 ( _lt_dummy="a/b/c"
6696   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6697       = c,a/b,, \
6698     && eval 'test $(( 1 + 1 )) -eq 2 \
6699     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6700   && xsi_shell=yes
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6702 $as_echo "$xsi_shell" >&6; }
6703
6704
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6706 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6707 lt_shell_append=no
6708 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6709     >/dev/null 2>&1 \
6710   && lt_shell_append=yes
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6712 $as_echo "$lt_shell_append" >&6; }
6713
6714
6715 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6716   lt_unset=unset
6717 else
6718   lt_unset=false
6719 fi
6720
6721
6722
6723
6724
6725 # test EBCDIC or ASCII
6726 case `echo X|tr X '\101'` in
6727  A) # ASCII based system
6728     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6729   lt_SP2NL='tr \040 \012'
6730   lt_NL2SP='tr \015\012 \040\040'
6731   ;;
6732  *) # EBCDIC based system
6733   lt_SP2NL='tr \100 \n'
6734   lt_NL2SP='tr \r\n \100\100'
6735   ;;
6736 esac
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6747 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6748 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   lt_cv_ld_reload_flag='-r'
6752 fi
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6754 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6755 reload_flag=$lt_cv_ld_reload_flag
6756 case $reload_flag in
6757 "" | " "*) ;;
6758 *) reload_flag=" $reload_flag" ;;
6759 esac
6760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6761 case $host_os in
6762   darwin*)
6763     if test "$GCC" = yes; then
6764       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6765     else
6766       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6767     fi
6768     ;;
6769 esac
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779 if test -n "$ac_tool_prefix"; then
6780   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   if test -n "$OBJDUMP"; then
6788   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795     for ac_exec_ext in '' $ac_executable_extensions; do
6796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802   done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 OBJDUMP=$ac_cv_prog_OBJDUMP
6808 if test -n "$OBJDUMP"; then
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6810 $as_echo "$OBJDUMP" >&6; }
6811 else
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815
6816
6817 fi
6818 if test -z "$ac_cv_prog_OBJDUMP"; then
6819   ac_ct_OBJDUMP=$OBJDUMP
6820   # Extract the first word of "objdump", so it can be a program name with args.
6821 set dummy objdump; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6825   $as_echo_n "(cached) " >&6
6826 else
6827   if test -n "$ac_ct_OBJDUMP"; then
6828   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835     for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842   done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6848 if test -n "$ac_ct_OBJDUMP"; then
6849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6850 $as_echo "$ac_ct_OBJDUMP" >&6; }
6851 else
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855
6856   if test "x$ac_ct_OBJDUMP" = x; then
6857     OBJDUMP="false"
6858   else
6859     case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865     OBJDUMP=$ac_ct_OBJDUMP
6866   fi
6867 else
6868   OBJDUMP="$ac_cv_prog_OBJDUMP"
6869 fi
6870
6871 test -z "$OBJDUMP" && OBJDUMP=objdump
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6882 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6883 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6884   $as_echo_n "(cached) " >&6
6885 else
6886   lt_cv_file_magic_cmd='$MAGIC_CMD'
6887 lt_cv_file_magic_test_file=
6888 lt_cv_deplibs_check_method='unknown'
6889 # Need to set the preceding variable on all platforms that support
6890 # interlibrary dependencies.
6891 # 'none' -- dependencies not supported.
6892 # `unknown' -- same as none, but documents that we really don't know.
6893 # 'pass_all' -- all dependencies passed with no checks.
6894 # 'test_compile' -- check by making test program.
6895 # 'file_magic [[regex]]' -- check by looking for files in library path
6896 # which responds to the $file_magic_cmd with a given extended regex.
6897 # If you have `file' or equivalent on your system and you're not sure
6898 # whether `pass_all' will *always* work, you probably want this one.
6899
6900 case $host_os in
6901 aix[4-9]*)
6902   lt_cv_deplibs_check_method=pass_all
6903   ;;
6904
6905 beos*)
6906   lt_cv_deplibs_check_method=pass_all
6907   ;;
6908
6909 bsdi[45]*)
6910   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6911   lt_cv_file_magic_cmd='/usr/bin/file -L'
6912   lt_cv_file_magic_test_file=/shlib/libc.so
6913   ;;
6914
6915 cygwin*)
6916   # func_win32_libid is a shell function defined in ltmain.sh
6917   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6918   lt_cv_file_magic_cmd='func_win32_libid'
6919   ;;
6920
6921 mingw* | pw32*)
6922   # Base MSYS/MinGW do not provide the 'file' command needed by
6923   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6924   # unless we find 'file', for example because we are cross-compiling.
6925   if ( file / ) >/dev/null 2>&1; then
6926     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6927     lt_cv_file_magic_cmd='func_win32_libid'
6928   else
6929     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6930     lt_cv_file_magic_cmd='$OBJDUMP -f'
6931   fi
6932   ;;
6933
6934 cegcc)
6935   # use the weaker test based on 'objdump'. See mingw*.
6936   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6937   lt_cv_file_magic_cmd='$OBJDUMP -f'
6938   ;;
6939
6940 darwin* | rhapsody*)
6941   lt_cv_deplibs_check_method=pass_all
6942   ;;
6943
6944 freebsd* | dragonfly*)
6945   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6946     case $host_cpu in
6947     i*86 )
6948       # Not sure whether the presence of OpenBSD here was a mistake.
6949       # Let's accept both of them until this is cleared up.
6950       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6951       lt_cv_file_magic_cmd=/usr/bin/file
6952       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6953       ;;
6954     esac
6955   else
6956     lt_cv_deplibs_check_method=pass_all
6957   fi
6958   ;;
6959
6960 gnu*)
6961   lt_cv_deplibs_check_method=pass_all
6962   ;;
6963
6964 hpux10.20* | hpux11*)
6965   lt_cv_file_magic_cmd=/usr/bin/file
6966   case $host_cpu in
6967   ia64*)
6968     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6969     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6970     ;;
6971   hppa*64*)
6972     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]'
6973     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6974     ;;
6975   *)
6976     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6977     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6978     ;;
6979   esac
6980   ;;
6981
6982 interix[3-9]*)
6983   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6984   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6985   ;;
6986
6987 irix5* | irix6* | nonstopux*)
6988   case $LD in
6989   *-32|*"-32 ") libmagic=32-bit;;
6990   *-n32|*"-n32 ") libmagic=N32;;
6991   *-64|*"-64 ") libmagic=64-bit;;
6992   *) libmagic=never-match;;
6993   esac
6994   lt_cv_deplibs_check_method=pass_all
6995   ;;
6996
6997 # This must be Linux ELF.
6998 linux* | k*bsd*-gnu)
6999   lt_cv_deplibs_check_method=pass_all
7000   ;;
7001
7002 netbsd*)
7003   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7004     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7005   else
7006     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7007   fi
7008   ;;
7009
7010 newos6*)
7011   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7012   lt_cv_file_magic_cmd=/usr/bin/file
7013   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7014   ;;
7015
7016 *nto* | *qnx*)
7017   lt_cv_deplibs_check_method=pass_all
7018   ;;
7019
7020 openbsd*)
7021   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7022     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7023   else
7024     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7025   fi
7026   ;;
7027
7028 osf3* | osf4* | osf5*)
7029   lt_cv_deplibs_check_method=pass_all
7030   ;;
7031
7032 rdos*)
7033   lt_cv_deplibs_check_method=pass_all
7034   ;;
7035
7036 solaris*)
7037   lt_cv_deplibs_check_method=pass_all
7038   ;;
7039
7040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7041   lt_cv_deplibs_check_method=pass_all
7042   ;;
7043
7044 sysv4 | sysv4.3*)
7045   case $host_vendor in
7046   motorola)
7047     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]'
7048     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7049     ;;
7050   ncr)
7051     lt_cv_deplibs_check_method=pass_all
7052     ;;
7053   sequent)
7054     lt_cv_file_magic_cmd='/bin/file'
7055     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7056     ;;
7057   sni)
7058     lt_cv_file_magic_cmd='/bin/file'
7059     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7060     lt_cv_file_magic_test_file=/lib/libc.so
7061     ;;
7062   siemens)
7063     lt_cv_deplibs_check_method=pass_all
7064     ;;
7065   pc)
7066     lt_cv_deplibs_check_method=pass_all
7067     ;;
7068   esac
7069   ;;
7070
7071 tpf*)
7072   lt_cv_deplibs_check_method=pass_all
7073   ;;
7074 esac
7075
7076 fi
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7078 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7079 file_magic_cmd=$lt_cv_file_magic_cmd
7080 deplibs_check_method=$lt_cv_deplibs_check_method
7081 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094 if test -n "$ac_tool_prefix"; then
7095   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}ar; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if test "${ac_cv_prog_AR+set}" = set; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   if test -n "$AR"; then
7103   ac_cv_prog_AR="$AR" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110     for ac_exec_ext in '' $ac_executable_extensions; do
7111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112     ac_cv_prog_AR="${ac_tool_prefix}ar"
7113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117   done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 AR=$ac_cv_prog_AR
7123 if test -n "$AR"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7125 $as_echo "$AR" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131
7132 fi
7133 if test -z "$ac_cv_prog_AR"; then
7134   ac_ct_AR=$AR
7135   # Extract the first word of "ar", so it can be a program name with args.
7136 set dummy ar; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   if test -n "$ac_ct_AR"; then
7143   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150     for ac_exec_ext in '' $ac_executable_extensions; do
7151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152     ac_cv_prog_ac_ct_AR="ar"
7153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157   done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7163 if test -n "$ac_ct_AR"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7165 $as_echo "$ac_ct_AR" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171   if test "x$ac_ct_AR" = x; then
7172     AR="false"
7173   else
7174     case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180     AR=$ac_ct_AR
7181   fi
7182 else
7183   AR="$ac_cv_prog_AR"
7184 fi
7185
7186 test -z "$AR" && AR=ar
7187 test -z "$AR_FLAGS" && AR_FLAGS=cru
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199 if test -n "$ac_tool_prefix"; then
7200   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}strip; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if test "${ac_cv_prog_STRIP+set}" = set; then :
7205   $as_echo_n "(cached) " >&6
7206 else
7207   if test -n "$STRIP"; then
7208   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215     for ac_exec_ext in '' $ac_executable_extensions; do
7216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222   done
7223 IFS=$as_save_IFS
7224
7225 fi
7226 fi
7227 STRIP=$ac_cv_prog_STRIP
7228 if test -n "$STRIP"; then
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7230 $as_echo "$STRIP" >&6; }
7231 else
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234 fi
7235
7236
7237 fi
7238 if test -z "$ac_cv_prog_STRIP"; then
7239   ac_ct_STRIP=$STRIP
7240   # Extract the first word of "strip", so it can be a program name with args.
7241 set dummy strip; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7245   $as_echo_n "(cached) " >&6
7246 else
7247   if test -n "$ac_ct_STRIP"; then
7248   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255     for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_prog_ac_ct_STRIP="strip"
7258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262   done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7268 if test -n "$ac_ct_STRIP"; then
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7270 $as_echo "$ac_ct_STRIP" >&6; }
7271 else
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276   if test "x$ac_ct_STRIP" = x; then
7277     STRIP=":"
7278   else
7279     case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285     STRIP=$ac_ct_STRIP
7286   fi
7287 else
7288   STRIP="$ac_cv_prog_STRIP"
7289 fi
7290
7291 test -z "$STRIP" && STRIP=:
7292
7293
7294
7295
7296
7297
7298 if test -n "$ac_tool_prefix"; then
7299   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7300 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306   if test -n "$RANLIB"; then
7307   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312   IFS=$as_save_IFS
7313   test -z "$as_dir" && as_dir=.
7314     for ac_exec_ext in '' $ac_executable_extensions; do
7315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318     break 2
7319   fi
7320 done
7321   done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 RANLIB=$ac_cv_prog_RANLIB
7327 if test -n "$RANLIB"; then
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7329 $as_echo "$RANLIB" >&6; }
7330 else
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334
7335
7336 fi
7337 if test -z "$ac_cv_prog_RANLIB"; then
7338   ac_ct_RANLIB=$RANLIB
7339   # Extract the first word of "ranlib", so it can be a program name with args.
7340 set dummy ranlib; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   if test -n "$ac_ct_RANLIB"; then
7347   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352   IFS=$as_save_IFS
7353   test -z "$as_dir" && as_dir=.
7354     for ac_exec_ext in '' $ac_executable_extensions; do
7355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356     ac_cv_prog_ac_ct_RANLIB="ranlib"
7357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358     break 2
7359   fi
7360 done
7361   done
7362 IFS=$as_save_IFS
7363
7364 fi
7365 fi
7366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7367 if test -n "$ac_ct_RANLIB"; then
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7369 $as_echo "$ac_ct_RANLIB" >&6; }
7370 else
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375   if test "x$ac_ct_RANLIB" = x; then
7376     RANLIB=":"
7377   else
7378     case $cross_compiling:$ac_tool_warned in
7379 yes:)
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7382 ac_tool_warned=yes ;;
7383 esac
7384     RANLIB=$ac_ct_RANLIB
7385   fi
7386 else
7387   RANLIB="$ac_cv_prog_RANLIB"
7388 fi
7389
7390 test -z "$RANLIB" && RANLIB=:
7391
7392
7393
7394
7395
7396
7397 # Determine commands to create old-style static archives.
7398 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7399 old_postinstall_cmds='chmod 644 $oldlib'
7400 old_postuninstall_cmds=
7401
7402 if test -n "$RANLIB"; then
7403   case $host_os in
7404   openbsd*)
7405     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7406     ;;
7407   *)
7408     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7409     ;;
7410   esac
7411   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7412 fi
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447 # If no C compiler was specified, use CC.
7448 LTCC=${LTCC-"$CC"}
7449
7450 # If no C compiler flags were specified, use CFLAGS.
7451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7452
7453 # Allow CC to be a program name with arguments.
7454 compiler=$CC
7455
7456
7457 # Check for command to grab the raw symbol name followed by C symbol from nm.
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7459 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7460 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463
7464 # These are sane defaults that work on at least a few old systems.
7465 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7466
7467 # Character class describing NM global symbol codes.
7468 symcode='[BCDEGRST]'
7469
7470 # Regexp to match symbols that can be accessed directly from C.
7471 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7472
7473 # Define system-specific variables.
7474 case $host_os in
7475 aix*)
7476   symcode='[BCDT]'
7477   ;;
7478 cygwin* | mingw* | pw32* | cegcc*)
7479   symcode='[ABCDGISTW]'
7480   ;;
7481 hpux*)
7482   if test "$host_cpu" = ia64; then
7483     symcode='[ABCDEGRST]'
7484   fi
7485   ;;
7486 irix* | nonstopux*)
7487   symcode='[BCDEGRST]'
7488   ;;
7489 osf*)
7490   symcode='[BCDEGQRST]'
7491   ;;
7492 solaris*)
7493   symcode='[BDRT]'
7494   ;;
7495 sco3.2v5*)
7496   symcode='[DT]'
7497   ;;
7498 sysv4.2uw2*)
7499   symcode='[DT]'
7500   ;;
7501 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7502   symcode='[ABDT]'
7503   ;;
7504 sysv4)
7505   symcode='[DFNSTU]'
7506   ;;
7507 esac
7508
7509 # If we're using GNU nm, then use its standard symbol codes.
7510 case `$NM -V 2>&1` in
7511 *GNU* | *'with BFD'*)
7512   symcode='[ABCDGIRSTW]' ;;
7513 esac
7514
7515 # Transform an extracted symbol line into a proper C declaration.
7516 # Some systems (esp. on ia64) link data and code symbols differently,
7517 # so use this general approach.
7518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7519
7520 # Transform an extracted symbol line into symbol name and symbol address
7521 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7522 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'"
7523
7524 # Handle CRLF in mingw tool chain
7525 opt_cr=
7526 case $build_os in
7527 mingw*)
7528   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7529   ;;
7530 esac
7531
7532 # Try without a prefix underscore, then with it.
7533 for ac_symprfx in "" "_"; do
7534
7535   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7536   symxfrm="\\1 $ac_symprfx\\2 \\2"
7537
7538   # Write the raw and C identifiers.
7539   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7540     # Fake it for dumpbin and say T for any non-static function
7541     # and D for any global variable.
7542     # Also find C++ and __fastcall symbols from MSVC++,
7543     # which start with @ or ?.
7544     lt_cv_sys_global_symbol_pipe="$AWK '"\
7545 "     {last_section=section; section=\$ 3};"\
7546 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7547 "     \$ 0!~/External *\|/{next};"\
7548 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7549 "     {if(hide[section]) next};"\
7550 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7551 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7552 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7553 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7554 "     ' prfx=^$ac_symprfx"
7555   else
7556     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7557   fi
7558
7559   # Check to see that the pipe works correctly.
7560   pipe_works=no
7561
7562   rm -f conftest*
7563   cat > conftest.$ac_ext <<_LT_EOF
7564 #ifdef __cplusplus
7565 extern "C" {
7566 #endif
7567 char nm_test_var;
7568 void nm_test_func(void);
7569 void nm_test_func(void){}
7570 #ifdef __cplusplus
7571 }
7572 #endif
7573 int main(){nm_test_var='a';nm_test_func();return(0);}
7574 _LT_EOF
7575
7576   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7577   (eval $ac_compile) 2>&5
7578   ac_status=$?
7579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580   test $ac_status = 0; }; then
7581     # Now try to grab the symbols.
7582     nlist=conftest.nm
7583     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7584   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7585   ac_status=$?
7586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587   test $ac_status = 0; } && test -s "$nlist"; then
7588       # Try sorting and uniquifying the output.
7589       if sort "$nlist" | uniq > "$nlist"T; then
7590         mv -f "$nlist"T "$nlist"
7591       else
7592         rm -f "$nlist"T
7593       fi
7594
7595       # Make sure that we snagged all the symbols we need.
7596       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7597         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7598           cat <<_LT_EOF > conftest.$ac_ext
7599 #ifdef __cplusplus
7600 extern "C" {
7601 #endif
7602
7603 _LT_EOF
7604           # Now generate the symbol file.
7605           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7606
7607           cat <<_LT_EOF >> conftest.$ac_ext
7608
7609 /* The mapping between symbol names and symbols.  */
7610 const struct {
7611   const char *name;
7612   void       *address;
7613 }
7614 lt__PROGRAM__LTX_preloaded_symbols[] =
7615 {
7616   { "@PROGRAM@", (void *) 0 },
7617 _LT_EOF
7618           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7619           cat <<\_LT_EOF >> conftest.$ac_ext
7620   {0, (void *) 0}
7621 };
7622
7623 /* This works around a problem in FreeBSD linker */
7624 #ifdef FREEBSD_WORKAROUND
7625 static const void *lt_preloaded_setup() {
7626   return lt__PROGRAM__LTX_preloaded_symbols;
7627 }
7628 #endif
7629
7630 #ifdef __cplusplus
7631 }
7632 #endif
7633 _LT_EOF
7634           # Now try linking the two files.
7635           mv conftest.$ac_objext conftstm.$ac_objext
7636           lt_save_LIBS="$LIBS"
7637           lt_save_CFLAGS="$CFLAGS"
7638           LIBS="conftstm.$ac_objext"
7639           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7640           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7641   (eval $ac_link) 2>&5
7642   ac_status=$?
7643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7645             pipe_works=yes
7646           fi
7647           LIBS="$lt_save_LIBS"
7648           CFLAGS="$lt_save_CFLAGS"
7649         else
7650           echo "cannot find nm_test_func in $nlist" >&5
7651         fi
7652       else
7653         echo "cannot find nm_test_var in $nlist" >&5
7654       fi
7655     else
7656       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7657     fi
7658   else
7659     echo "$progname: failed program was:" >&5
7660     cat conftest.$ac_ext >&5
7661   fi
7662   rm -rf conftest* conftst*
7663
7664   # Do not use the global_symbol_pipe unless it works.
7665   if test "$pipe_works" = yes; then
7666     break
7667   else
7668     lt_cv_sys_global_symbol_pipe=
7669   fi
7670 done
7671
7672 fi
7673
7674 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7675   lt_cv_sys_global_symbol_to_cdecl=
7676 fi
7677 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7679 $as_echo "failed" >&6; }
7680 else
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7682 $as_echo "ok" >&6; }
7683 fi
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 # Check whether --enable-libtool-lock was given.
7707 if test "${enable_libtool_lock+set}" = set; then :
7708   enableval=$enable_libtool_lock;
7709 fi
7710
7711 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7712
7713 # Some flags need to be propagated to the compiler or linker for good
7714 # libtool support.
7715 case $host in
7716 ia64-*-hpux*)
7717   # Find out which ABI we are using.
7718   echo 'int i;' > conftest.$ac_ext
7719   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7720   (eval $ac_compile) 2>&5
7721   ac_status=$?
7722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723   test $ac_status = 0; }; then
7724     case `/usr/bin/file conftest.$ac_objext` in
7725       *ELF-32*)
7726         HPUX_IA64_MODE="32"
7727         ;;
7728       *ELF-64*)
7729         HPUX_IA64_MODE="64"
7730         ;;
7731     esac
7732   fi
7733   rm -rf conftest*
7734   ;;
7735 *-*-irix6*)
7736   # Find out which ABI we are using.
7737   echo '#line 7737 "configure"' > conftest.$ac_ext
7738   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7739   (eval $ac_compile) 2>&5
7740   ac_status=$?
7741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742   test $ac_status = 0; }; then
7743     if test "$lt_cv_prog_gnu_ld" = yes; then
7744       case `/usr/bin/file conftest.$ac_objext` in
7745         *32-bit*)
7746           LD="${LD-ld} -melf32bsmip"
7747           ;;
7748         *N32*)
7749           LD="${LD-ld} -melf32bmipn32"
7750           ;;
7751         *64-bit*)
7752           LD="${LD-ld} -melf64bmip"
7753         ;;
7754       esac
7755     else
7756       case `/usr/bin/file conftest.$ac_objext` in
7757         *32-bit*)
7758           LD="${LD-ld} -32"
7759           ;;
7760         *N32*)
7761           LD="${LD-ld} -n32"
7762           ;;
7763         *64-bit*)
7764           LD="${LD-ld} -64"
7765           ;;
7766       esac
7767     fi
7768   fi
7769   rm -rf conftest*
7770   ;;
7771
7772 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7773 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7774   # Find out which ABI we are using.
7775   echo 'int i;' > conftest.$ac_ext
7776   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7777   (eval $ac_compile) 2>&5
7778   ac_status=$?
7779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780   test $ac_status = 0; }; then
7781     case `/usr/bin/file conftest.o` in
7782       *32-bit*)
7783         case $host in
7784           x86_64-*kfreebsd*-gnu)
7785             LD="${LD-ld} -m elf_i386_fbsd"
7786             ;;
7787           x86_64-*linux*)
7788             LD="${LD-ld} -m elf_i386"
7789             ;;
7790           ppc64-*linux*|powerpc64-*linux*)
7791             LD="${LD-ld} -m elf32ppclinux"
7792             ;;
7793           s390x-*linux*)
7794             LD="${LD-ld} -m elf_s390"
7795             ;;
7796           sparc64-*linux*)
7797             LD="${LD-ld} -m elf32_sparc"
7798             ;;
7799         esac
7800         ;;
7801       *64-bit*)
7802         case $host in
7803           x86_64-*kfreebsd*-gnu)
7804             LD="${LD-ld} -m elf_x86_64_fbsd"
7805             ;;
7806           x86_64-*linux*)
7807             LD="${LD-ld} -m elf_x86_64"
7808             ;;
7809           ppc*-*linux*|powerpc*-*linux*)
7810             LD="${LD-ld} -m elf64ppc"
7811             ;;
7812           s390*-*linux*|s390*-*tpf*)
7813             LD="${LD-ld} -m elf64_s390"
7814             ;;
7815           sparc*-*linux*)
7816             LD="${LD-ld} -m elf64_sparc"
7817             ;;
7818         esac
7819         ;;
7820     esac
7821   fi
7822   rm -rf conftest*
7823   ;;
7824
7825 *-*-sco3.2v5*)
7826   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7827   SAVE_CFLAGS="$CFLAGS"
7828   CFLAGS="$CFLAGS -belf"
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7830 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7831 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7832   $as_echo_n "(cached) " >&6
7833 else
7834   ac_ext=c
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
7840      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h.  */
7842
7843 int
7844 main ()
7845 {
7846
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 if ac_fn_c_try_link "$LINENO"; then :
7852   lt_cv_cc_needs_belf=yes
7853 else
7854   lt_cv_cc_needs_belf=no
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext \
7857     conftest$ac_exeext conftest.$ac_ext
7858      ac_ext=c
7859 ac_cpp='$CPP $CPPFLAGS'
7860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863
7864 fi
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7866 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7867   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7868     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7869     CFLAGS="$SAVE_CFLAGS"
7870   fi
7871   ;;
7872 sparc*-*solaris*)
7873   # Find out which ABI we are using.
7874   echo 'int i;' > conftest.$ac_ext
7875   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7876   (eval $ac_compile) 2>&5
7877   ac_status=$?
7878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7879   test $ac_status = 0; }; then
7880     case `/usr/bin/file conftest.o` in
7881     *64-bit*)
7882       case $lt_cv_prog_gnu_ld in
7883       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7884       *)
7885         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7886           LD="${LD-ld} -64"
7887         fi
7888         ;;
7889       esac
7890       ;;
7891     esac
7892   fi
7893   rm -rf conftest*
7894   ;;
7895 esac
7896
7897 need_locks="$enable_libtool_lock"
7898
7899
7900   case $host_os in
7901     rhapsody* | darwin*)
7902     if test -n "$ac_tool_prefix"; then
7903   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7904 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7908   $as_echo_n "(cached) " >&6
7909 else
7910   if test -n "$DSYMUTIL"; then
7911   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7915 do
7916   IFS=$as_save_IFS
7917   test -z "$as_dir" && as_dir=.
7918     for ac_exec_ext in '' $ac_executable_extensions; do
7919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7920     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922     break 2
7923   fi
7924 done
7925   done
7926 IFS=$as_save_IFS
7927
7928 fi
7929 fi
7930 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7931 if test -n "$DSYMUTIL"; then
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7933 $as_echo "$DSYMUTIL" >&6; }
7934 else
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7937 fi
7938
7939
7940 fi
7941 if test -z "$ac_cv_prog_DSYMUTIL"; then
7942   ac_ct_DSYMUTIL=$DSYMUTIL
7943   # Extract the first word of "dsymutil", so it can be a program name with args.
7944 set dummy dsymutil; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   if test -n "$ac_ct_DSYMUTIL"; then
7951   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958     for ac_exec_ext in '' $ac_executable_extensions; do
7959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965   done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7971 if test -n "$ac_ct_DSYMUTIL"; then
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7973 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979   if test "x$ac_ct_DSYMUTIL" = x; then
7980     DSYMUTIL=":"
7981   else
7982     case $cross_compiling:$ac_tool_warned in
7983 yes:)
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7986 ac_tool_warned=yes ;;
7987 esac
7988     DSYMUTIL=$ac_ct_DSYMUTIL
7989   fi
7990 else
7991   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7992 fi
7993
7994     if test -n "$ac_tool_prefix"; then
7995   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7996 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   if test -n "$NMEDIT"; then
8003   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008   IFS=$as_save_IFS
8009   test -z "$as_dir" && as_dir=.
8010     for ac_exec_ext in '' $ac_executable_extensions; do
8011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014     break 2
8015   fi
8016 done
8017   done
8018 IFS=$as_save_IFS
8019
8020 fi
8021 fi
8022 NMEDIT=$ac_cv_prog_NMEDIT
8023 if test -n "$NMEDIT"; then
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8025 $as_echo "$NMEDIT" >&6; }
8026 else
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031
8032 fi
8033 if test -z "$ac_cv_prog_NMEDIT"; then
8034   ac_ct_NMEDIT=$NMEDIT
8035   # Extract the first word of "nmedit", so it can be a program name with args.
8036 set dummy nmedit; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8040   $as_echo_n "(cached) " >&6
8041 else
8042   if test -n "$ac_ct_NMEDIT"; then
8043   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048   IFS=$as_save_IFS
8049   test -z "$as_dir" && as_dir=.
8050     for ac_exec_ext in '' $ac_executable_extensions; do
8051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8052     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054     break 2
8055   fi
8056 done
8057   done
8058 IFS=$as_save_IFS
8059
8060 fi
8061 fi
8062 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8063 if test -n "$ac_ct_NMEDIT"; then
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8065 $as_echo "$ac_ct_NMEDIT" >&6; }
8066 else
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8069 fi
8070
8071   if test "x$ac_ct_NMEDIT" = x; then
8072     NMEDIT=":"
8073   else
8074     case $cross_compiling:$ac_tool_warned in
8075 yes:)
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8078 ac_tool_warned=yes ;;
8079 esac
8080     NMEDIT=$ac_ct_NMEDIT
8081   fi
8082 else
8083   NMEDIT="$ac_cv_prog_NMEDIT"
8084 fi
8085
8086     if test -n "$ac_tool_prefix"; then
8087   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8088 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if test "${ac_cv_prog_LIPO+set}" = set; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   if test -n "$LIPO"; then
8095   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100   IFS=$as_save_IFS
8101   test -z "$as_dir" && as_dir=.
8102     for ac_exec_ext in '' $ac_executable_extensions; do
8103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8104     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106     break 2
8107   fi
8108 done
8109   done
8110 IFS=$as_save_IFS
8111
8112 fi
8113 fi
8114 LIPO=$ac_cv_prog_LIPO
8115 if test -n "$LIPO"; then
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8117 $as_echo "$LIPO" >&6; }
8118 else
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123
8124 fi
8125 if test -z "$ac_cv_prog_LIPO"; then
8126   ac_ct_LIPO=$LIPO
8127   # Extract the first word of "lipo", so it can be a program name with args.
8128 set dummy lipo; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   if test -n "$ac_ct_LIPO"; then
8135   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8139 do
8140   IFS=$as_save_IFS
8141   test -z "$as_dir" && as_dir=.
8142     for ac_exec_ext in '' $ac_executable_extensions; do
8143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144     ac_cv_prog_ac_ct_LIPO="lipo"
8145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146     break 2
8147   fi
8148 done
8149   done
8150 IFS=$as_save_IFS
8151
8152 fi
8153 fi
8154 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8155 if test -n "$ac_ct_LIPO"; then
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8157 $as_echo "$ac_ct_LIPO" >&6; }
8158 else
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8161 fi
8162
8163   if test "x$ac_ct_LIPO" = x; then
8164     LIPO=":"
8165   else
8166     case $cross_compiling:$ac_tool_warned in
8167 yes:)
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8170 ac_tool_warned=yes ;;
8171 esac
8172     LIPO=$ac_ct_LIPO
8173   fi
8174 else
8175   LIPO="$ac_cv_prog_LIPO"
8176 fi
8177
8178     if test -n "$ac_tool_prefix"; then
8179   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8180 set dummy ${ac_tool_prefix}otool; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8184   $as_echo_n "(cached) " >&6
8185 else
8186   if test -n "$OTOOL"; then
8187   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192   IFS=$as_save_IFS
8193   test -z "$as_dir" && as_dir=.
8194     for ac_exec_ext in '' $ac_executable_extensions; do
8195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8196     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198     break 2
8199   fi
8200 done
8201   done
8202 IFS=$as_save_IFS
8203
8204 fi
8205 fi
8206 OTOOL=$ac_cv_prog_OTOOL
8207 if test -n "$OTOOL"; then
8208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8209 $as_echo "$OTOOL" >&6; }
8210 else
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8213 fi
8214
8215
8216 fi
8217 if test -z "$ac_cv_prog_OTOOL"; then
8218   ac_ct_OTOOL=$OTOOL
8219   # Extract the first word of "otool", so it can be a program name with args.
8220 set dummy otool; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8224   $as_echo_n "(cached) " >&6
8225 else
8226   if test -n "$ac_ct_OTOOL"; then
8227   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8228 else
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 for as_dir in $PATH
8231 do
8232   IFS=$as_save_IFS
8233   test -z "$as_dir" && as_dir=.
8234     for ac_exec_ext in '' $ac_executable_extensions; do
8235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8236     ac_cv_prog_ac_ct_OTOOL="otool"
8237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238     break 2
8239   fi
8240 done
8241   done
8242 IFS=$as_save_IFS
8243
8244 fi
8245 fi
8246 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8247 if test -n "$ac_ct_OTOOL"; then
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8249 $as_echo "$ac_ct_OTOOL" >&6; }
8250 else
8251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8253 fi
8254
8255   if test "x$ac_ct_OTOOL" = x; then
8256     OTOOL=":"
8257   else
8258     case $cross_compiling:$ac_tool_warned in
8259 yes:)
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8262 ac_tool_warned=yes ;;
8263 esac
8264     OTOOL=$ac_ct_OTOOL
8265   fi
8266 else
8267   OTOOL="$ac_cv_prog_OTOOL"
8268 fi
8269
8270     if test -n "$ac_tool_prefix"; then
8271   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8272 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8276   $as_echo_n "(cached) " >&6
8277 else
8278   if test -n "$OTOOL64"; then
8279   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284   IFS=$as_save_IFS
8285   test -z "$as_dir" && as_dir=.
8286     for ac_exec_ext in '' $ac_executable_extensions; do
8287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290     break 2
8291   fi
8292 done
8293   done
8294 IFS=$as_save_IFS
8295
8296 fi
8297 fi
8298 OTOOL64=$ac_cv_prog_OTOOL64
8299 if test -n "$OTOOL64"; then
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8301 $as_echo "$OTOOL64" >&6; }
8302 else
8303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 fi
8306
8307
8308 fi
8309 if test -z "$ac_cv_prog_OTOOL64"; then
8310   ac_ct_OTOOL64=$OTOOL64
8311   # Extract the first word of "otool64", so it can be a program name with args.
8312 set dummy otool64; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8316   $as_echo_n "(cached) " >&6
8317 else
8318   if test -n "$ac_ct_OTOOL64"; then
8319   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8323 do
8324   IFS=$as_save_IFS
8325   test -z "$as_dir" && as_dir=.
8326     for ac_exec_ext in '' $ac_executable_extensions; do
8327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328     ac_cv_prog_ac_ct_OTOOL64="otool64"
8329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330     break 2
8331   fi
8332 done
8333   done
8334 IFS=$as_save_IFS
8335
8336 fi
8337 fi
8338 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8339 if test -n "$ac_ct_OTOOL64"; then
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8341 $as_echo "$ac_ct_OTOOL64" >&6; }
8342 else
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8345 fi
8346
8347   if test "x$ac_ct_OTOOL64" = x; then
8348     OTOOL64=":"
8349   else
8350     case $cross_compiling:$ac_tool_warned in
8351 yes:)
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8354 ac_tool_warned=yes ;;
8355 esac
8356     OTOOL64=$ac_ct_OTOOL64
8357   fi
8358 else
8359   OTOOL64="$ac_cv_prog_OTOOL64"
8360 fi
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8389 $as_echo_n "checking for -single_module linker flag... " >&6; }
8390 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8391   $as_echo_n "(cached) " >&6
8392 else
8393   lt_cv_apple_cc_single_mod=no
8394       if test -z "${LT_MULTI_MODULE}"; then
8395         # By default we will add the -single_module flag. You can override
8396         # by either setting the environment variable LT_MULTI_MODULE
8397         # non-empty at configure time, or by adding -multi_module to the
8398         # link flags.
8399         rm -rf libconftest.dylib*
8400         echo "int foo(void){return 1;}" > conftest.c
8401         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8402 -dynamiclib -Wl,-single_module conftest.c" >&5
8403         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8404           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8405         _lt_result=$?
8406         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8407           lt_cv_apple_cc_single_mod=yes
8408         else
8409           cat conftest.err >&5
8410         fi
8411         rm -rf libconftest.dylib*
8412         rm -f conftest.*
8413       fi
8414 fi
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8416 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8418 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8419 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8420   $as_echo_n "(cached) " >&6
8421 else
8422   lt_cv_ld_exported_symbols_list=no
8423       save_LDFLAGS=$LDFLAGS
8424       echo "_main" > conftest.sym
8425       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8426       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h.  */
8428
8429 int
8430 main ()
8431 {
8432
8433   ;
8434   return 0;
8435 }
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"; then :
8438   lt_cv_ld_exported_symbols_list=yes
8439 else
8440   lt_cv_ld_exported_symbols_list=no
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext \
8443     conftest$ac_exeext conftest.$ac_ext
8444         LDFLAGS="$save_LDFLAGS"
8445
8446 fi
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8448 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8449     case $host_os in
8450     rhapsody* | darwin1.[012])
8451       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8452     darwin1.*)
8453       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8454     darwin*) # darwin 5.x on
8455       # if running on 10.5 or later, the deployment target defaults
8456       # to the OS version, if on x86, and 10.4, the deployment
8457       # target defaults to 10.4. Don't you love it?
8458       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8459         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8460           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8461         10.[012]*)
8462           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8463         10.*)
8464           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8465       esac
8466     ;;
8467   esac
8468     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8469       _lt_dar_single_mod='$single_module'
8470     fi
8471     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8472       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8473     else
8474       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8475     fi
8476     if test "$DSYMUTIL" != ":"; then
8477       _lt_dsymutil='~$DSYMUTIL $lib || :'
8478     else
8479       _lt_dsymutil=
8480     fi
8481     ;;
8482   esac
8483
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8485 $as_echo_n "checking for ANSI C header files... " >&6; }
8486 if test "${ac_cv_header_stdc+set}" = set; then :
8487   $as_echo_n "(cached) " >&6
8488 else
8489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h.  */
8491 #include <stdlib.h>
8492 #include <stdarg.h>
8493 #include <string.h>
8494 #include <float.h>
8495
8496 int
8497 main ()
8498 {
8499
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 if ac_fn_c_try_compile "$LINENO"; then :
8505   ac_cv_header_stdc=yes
8506 else
8507   ac_cv_header_stdc=no
8508 fi
8509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510
8511 if test $ac_cv_header_stdc = yes; then
8512   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h.  */
8515 #include <string.h>
8516
8517 _ACEOF
8518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8519   $EGREP "memchr" >/dev/null 2>&1; then :
8520
8521 else
8522   ac_cv_header_stdc=no
8523 fi
8524 rm -f conftest*
8525
8526 fi
8527
8528 if test $ac_cv_header_stdc = yes; then
8529   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h.  */
8532 #include <stdlib.h>
8533
8534 _ACEOF
8535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8536   $EGREP "free" >/dev/null 2>&1; then :
8537
8538 else
8539   ac_cv_header_stdc=no
8540 fi
8541 rm -f conftest*
8542
8543 fi
8544
8545 if test $ac_cv_header_stdc = yes; then
8546   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8547   if test "$cross_compiling" = yes; then :
8548   :
8549 else
8550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h.  */
8552 #include <ctype.h>
8553 #include <stdlib.h>
8554 #if ((' ' & 0x0FF) == 0x020)
8555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8557 #else
8558 # define ISLOWER(c) \
8559                    (('a' <= (c) && (c) <= 'i') \
8560                      || ('j' <= (c) && (c) <= 'r') \
8561                      || ('s' <= (c) && (c) <= 'z'))
8562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8563 #endif
8564
8565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8566 int
8567 main ()
8568 {
8569   int i;
8570   for (i = 0; i < 256; i++)
8571     if (XOR (islower (i), ISLOWER (i))
8572         || toupper (i) != TOUPPER (i))
8573       return 2;
8574   return 0;
8575 }
8576 _ACEOF
8577 if ac_fn_c_try_run "$LINENO"; then :
8578
8579 else
8580   ac_cv_header_stdc=no
8581 fi
8582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8583   conftest.$ac_objext conftest.beam conftest.$ac_ext
8584 fi
8585
8586 fi
8587 fi
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8589 $as_echo "$ac_cv_header_stdc" >&6; }
8590 if test $ac_cv_header_stdc = yes; then
8591
8592 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8593
8594 fi
8595
8596 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8597 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8598                   inttypes.h stdint.h unistd.h
8599 do :
8600   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8601 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8602 "
8603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8604   cat >>confdefs.h <<_ACEOF
8605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8606 _ACEOF
8607
8608 fi
8609
8610 done
8611
8612
8613 for ac_header in dlfcn.h
8614 do :
8615   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8616 "
8617 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8618   cat >>confdefs.h <<_ACEOF
8619 #define HAVE_DLFCN_H 1
8620 _ACEOF
8621
8622 fi
8623
8624 done
8625
8626
8627
8628 ac_ext=cpp
8629 ac_cpp='$CXXCPP $CPPFLAGS'
8630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8633 if test -z "$CXX"; then
8634   if test -n "$CCC"; then
8635     CXX=$CCC
8636   else
8637     if test -n "$ac_tool_prefix"; then
8638   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8639   do
8640     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643 $as_echo_n "checking for $ac_word... " >&6; }
8644 if test "${ac_cv_prog_CXX+set}" = set; then :
8645   $as_echo_n "(cached) " >&6
8646 else
8647   if test -n "$CXX"; then
8648   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8649 else
8650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 for as_dir in $PATH
8652 do
8653   IFS=$as_save_IFS
8654   test -z "$as_dir" && as_dir=.
8655     for ac_exec_ext in '' $ac_executable_extensions; do
8656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8657     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659     break 2
8660   fi
8661 done
8662   done
8663 IFS=$as_save_IFS
8664
8665 fi
8666 fi
8667 CXX=$ac_cv_prog_CXX
8668 if test -n "$CXX"; then
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8670 $as_echo "$CXX" >&6; }
8671 else
8672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8674 fi
8675
8676
8677     test -n "$CXX" && break
8678   done
8679 fi
8680 if test -z "$CXX"; then
8681   ac_ct_CXX=$CXX
8682   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8683 do
8684   # Extract the first word of "$ac_prog", so it can be a program name with args.
8685 set dummy $ac_prog; ac_word=$2
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8689   $as_echo_n "(cached) " >&6
8690 else
8691   if test -n "$ac_ct_CXX"; then
8692   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8693 else
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8696 do
8697   IFS=$as_save_IFS
8698   test -z "$as_dir" && as_dir=.
8699     for ac_exec_ext in '' $ac_executable_extensions; do
8700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8701     ac_cv_prog_ac_ct_CXX="$ac_prog"
8702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703     break 2
8704   fi
8705 done
8706   done
8707 IFS=$as_save_IFS
8708
8709 fi
8710 fi
8711 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8712 if test -n "$ac_ct_CXX"; then
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8714 $as_echo "$ac_ct_CXX" >&6; }
8715 else
8716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8718 fi
8719
8720
8721   test -n "$ac_ct_CXX" && break
8722 done
8723
8724   if test "x$ac_ct_CXX" = x; then
8725     CXX="g++"
8726   else
8727     case $cross_compiling:$ac_tool_warned in
8728 yes:)
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8731 ac_tool_warned=yes ;;
8732 esac
8733     CXX=$ac_ct_CXX
8734   fi
8735 fi
8736
8737   fi
8738 fi
8739 # Provide some information about the compiler.
8740 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8741 set X $ac_compile
8742 ac_compiler=$2
8743 for ac_option in --version -v -V -qversion; do
8744   { { ac_try="$ac_compiler $ac_option >&5"
8745 case "(($ac_try" in
8746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747   *) ac_try_echo=$ac_try;;
8748 esac
8749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8750 $as_echo "$ac_try_echo"; } >&5
8751   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8752   ac_status=$?
8753   if test -s conftest.err; then
8754     sed '10a\
8755 ... rest of stderr output deleted ...
8756          10q' conftest.err >conftest.er1
8757     cat conftest.er1 >&5
8758   fi
8759   rm -f conftest.er1 conftest.err
8760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8761   test $ac_status = 0; }
8762 done
8763
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8765 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8766 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8767   $as_echo_n "(cached) " >&6
8768 else
8769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h.  */
8771
8772 int
8773 main ()
8774 {
8775 #ifndef __GNUC__
8776        choke me
8777 #endif
8778
8779   ;
8780   return 0;
8781 }
8782 _ACEOF
8783 if ac_fn_cxx_try_compile "$LINENO"; then :
8784   ac_compiler_gnu=yes
8785 else
8786   ac_compiler_gnu=no
8787 fi
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8790
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8793 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8794 if test $ac_compiler_gnu = yes; then
8795   GXX=yes
8796 else
8797   GXX=
8798 fi
8799 ac_test_CXXFLAGS=${CXXFLAGS+set}
8800 ac_save_CXXFLAGS=$CXXFLAGS
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8802 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8803 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8804   $as_echo_n "(cached) " >&6
8805 else
8806   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8807    ac_cxx_werror_flag=yes
8808    ac_cv_prog_cxx_g=no
8809    CXXFLAGS="-g"
8810    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h.  */
8812
8813 int
8814 main ()
8815 {
8816
8817   ;
8818   return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_cxx_try_compile "$LINENO"; then :
8822   ac_cv_prog_cxx_g=yes
8823 else
8824   CXXFLAGS=""
8825       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h.  */
8827
8828 int
8829 main ()
8830 {
8831
8832   ;
8833   return 0;
8834 }
8835 _ACEOF
8836 if ac_fn_cxx_try_compile "$LINENO"; then :
8837
8838 else
8839   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8840          CXXFLAGS="-g"
8841          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h.  */
8843
8844 int
8845 main ()
8846 {
8847
8848   ;
8849   return 0;
8850 }
8851 _ACEOF
8852 if ac_fn_cxx_try_compile "$LINENO"; then :
8853   ac_cv_prog_cxx_g=yes
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 fi
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8861 fi
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8863 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8864 if test "$ac_test_CXXFLAGS" = set; then
8865   CXXFLAGS=$ac_save_CXXFLAGS
8866 elif test $ac_cv_prog_cxx_g = yes; then
8867   if test "$GXX" = yes; then
8868     CXXFLAGS="-g -O2"
8869   else
8870     CXXFLAGS="-g"
8871   fi
8872 else
8873   if test "$GXX" = yes; then
8874     CXXFLAGS="-O2"
8875   else
8876     CXXFLAGS=
8877   fi
8878 fi
8879 ac_ext=c
8880 ac_cpp='$CPP $CPPFLAGS'
8881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8884
8885 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8886     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8887     (test "X$CXX" != "Xg++"))) ; then
8888   ac_ext=cpp
8889 ac_cpp='$CXXCPP $CPPFLAGS'
8890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8894 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8895 if test -z "$CXXCPP"; then
8896   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8897   $as_echo_n "(cached) " >&6
8898 else
8899       # Double quotes because CXXCPP needs to be expanded
8900     for CXXCPP in "$CXX -E" "/lib/cpp"
8901     do
8902       ac_preproc_ok=false
8903 for ac_cxx_preproc_warn_flag in '' yes
8904 do
8905   # Use a header file that comes with gcc, so configuring glibc
8906   # with a fresh cross-compiler works.
8907   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8908   # <limits.h> exists even on freestanding compilers.
8909   # On the NeXT, cc -E runs the code through the compiler's parser,
8910   # not just through cpp. "Syntax error" is here to catch this case.
8911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h.  */
8913 #ifdef __STDC__
8914 # include <limits.h>
8915 #else
8916 # include <assert.h>
8917 #endif
8918                      Syntax error
8919 _ACEOF
8920 if ac_fn_cxx_try_cpp "$LINENO"; then :
8921
8922 else
8923   # Broken: fails on valid input.
8924 continue
8925 fi
8926 rm -f conftest.err conftest.$ac_ext
8927
8928   # OK, works on sane cases.  Now check whether nonexistent headers
8929   # can be detected and how.
8930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h.  */
8932 #include <ac_nonexistent.h>
8933 _ACEOF
8934 if ac_fn_cxx_try_cpp "$LINENO"; then :
8935   # Broken: success on invalid input.
8936 continue
8937 else
8938   # Passes both tests.
8939 ac_preproc_ok=:
8940 break
8941 fi
8942 rm -f conftest.err conftest.$ac_ext
8943
8944 done
8945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8946 rm -f conftest.err conftest.$ac_ext
8947 if $ac_preproc_ok; then :
8948   break
8949 fi
8950
8951     done
8952     ac_cv_prog_CXXCPP=$CXXCPP
8953
8954 fi
8955   CXXCPP=$ac_cv_prog_CXXCPP
8956 else
8957   ac_cv_prog_CXXCPP=$CXXCPP
8958 fi
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8960 $as_echo "$CXXCPP" >&6; }
8961 ac_preproc_ok=false
8962 for ac_cxx_preproc_warn_flag in '' yes
8963 do
8964   # Use a header file that comes with gcc, so configuring glibc
8965   # with a fresh cross-compiler works.
8966   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8967   # <limits.h> exists even on freestanding compilers.
8968   # On the NeXT, cc -E runs the code through the compiler's parser,
8969   # not just through cpp. "Syntax error" is here to catch this case.
8970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h.  */
8972 #ifdef __STDC__
8973 # include <limits.h>
8974 #else
8975 # include <assert.h>
8976 #endif
8977                      Syntax error
8978 _ACEOF
8979 if ac_fn_cxx_try_cpp "$LINENO"; then :
8980
8981 else
8982   # Broken: fails on valid input.
8983 continue
8984 fi
8985 rm -f conftest.err conftest.$ac_ext
8986
8987   # OK, works on sane cases.  Now check whether nonexistent headers
8988   # can be detected and how.
8989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h.  */
8991 #include <ac_nonexistent.h>
8992 _ACEOF
8993 if ac_fn_cxx_try_cpp "$LINENO"; then :
8994   # Broken: success on invalid input.
8995 continue
8996 else
8997   # Passes both tests.
8998 ac_preproc_ok=:
8999 break
9000 fi
9001 rm -f conftest.err conftest.$ac_ext
9002
9003 done
9004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9005 rm -f conftest.err conftest.$ac_ext
9006 if $ac_preproc_ok; then :
9007
9008 else
9009   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9011 _lt_caught_CXX_error=yes; }
9012 fi
9013
9014 ac_ext=c
9015 ac_cpp='$CPP $CPPFLAGS'
9016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9019
9020 else
9021   _lt_caught_CXX_error=yes
9022 fi
9023
9024
9025
9026
9027
9028 # Set options
9029 # Check whether --enable-shared was given.
9030 if test "${enable_shared+set}" = set; then :
9031   enableval=$enable_shared; p=${PACKAGE-default}
9032     case $enableval in
9033     yes) enable_shared=yes ;;
9034     no) enable_shared=no ;;
9035     *)
9036       enable_shared=no
9037       # Look at the argument we got.  We use all the common list separators.
9038       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9039       for pkg in $enableval; do
9040         IFS="$lt_save_ifs"
9041         if test "X$pkg" = "X$p"; then
9042           enable_shared=yes
9043         fi
9044       done
9045       IFS="$lt_save_ifs"
9046       ;;
9047     esac
9048 else
9049   enable_shared=yes
9050 fi
9051
9052
9053
9054
9055
9056
9057
9058 # Check whether --enable-static was given.
9059 if test "${enable_static+set}" = set; then :
9060   enableval=$enable_static; p=${PACKAGE-default}
9061     case $enableval in
9062     yes) enable_static=yes ;;
9063     no) enable_static=no ;;
9064     *)
9065      enable_static=no
9066       # Look at the argument we got.  We use all the common list separators.
9067       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9068       for pkg in $enableval; do
9069         IFS="$lt_save_ifs"
9070         if test "X$pkg" = "X$p"; then
9071           enable_static=yes
9072         fi
9073       done
9074       IFS="$lt_save_ifs"
9075       ;;
9076     esac
9077 else
9078   enable_static=no
9079 fi
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090         enable_dlopen=no
9091
9092
9093   enable_win32_dll=no
9094
9095
9096
9097
9098
9099 # Check whether --with-pic was given.
9100 if test "${with_pic+set}" = set; then :
9101   withval=$with_pic; pic_mode="$withval"
9102 else
9103   pic_mode=default
9104 fi
9105
9106
9107 test -z "$pic_mode" && pic_mode=default
9108
9109
9110
9111
9112
9113
9114
9115   # Check whether --enable-fast-install was given.
9116 if test "${enable_fast_install+set}" = set; then :
9117   enableval=$enable_fast_install; p=${PACKAGE-default}
9118     case $enableval in
9119     yes) enable_fast_install=yes ;;
9120     no) enable_fast_install=no ;;
9121     *)
9122       enable_fast_install=no
9123       # Look at the argument we got.  We use all the common list separators.
9124       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9125       for pkg in $enableval; do
9126         IFS="$lt_save_ifs"
9127         if test "X$pkg" = "X$p"; then
9128           enable_fast_install=yes
9129         fi
9130       done
9131       IFS="$lt_save_ifs"
9132       ;;
9133     esac
9134 else
9135   enable_fast_install=yes
9136 fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148 # This can be used to rebuild libtool when needed
9149 LIBTOOL_DEPS="$ltmain"
9150
9151 # Always use our own libtool.
9152 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178 test -z "$LN_S" && LN_S="ln -s"
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193 if test -n "${ZSH_VERSION+set}" ; then
9194    setopt NO_GLOB_SUBST
9195 fi
9196
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9198 $as_echo_n "checking for objdir... " >&6; }
9199 if test "${lt_cv_objdir+set}" = set; then :
9200   $as_echo_n "(cached) " >&6
9201 else
9202   rm -f .libs 2>/dev/null
9203 mkdir .libs 2>/dev/null
9204 if test -d .libs; then
9205   lt_cv_objdir=.libs
9206 else
9207   # MS-DOS does not allow filenames that begin with a dot.
9208   lt_cv_objdir=_libs
9209 fi
9210 rmdir .libs 2>/dev/null
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9213 $as_echo "$lt_cv_objdir" >&6; }
9214 objdir=$lt_cv_objdir
9215
9216
9217
9218
9219
9220 cat >>confdefs.h <<_ACEOF
9221 #define LT_OBJDIR "$lt_cv_objdir/"
9222 _ACEOF
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240 case $host_os in
9241 aix3*)
9242   # AIX sometimes has problems with the GCC collect2 program.  For some
9243   # reason, if we set the COLLECT_NAMES environment variable, the problems
9244   # vanish in a puff of smoke.
9245   if test "X${COLLECT_NAMES+set}" != Xset; then
9246     COLLECT_NAMES=
9247     export COLLECT_NAMES
9248   fi
9249   ;;
9250 esac
9251
9252 # Sed substitution that helps us do robust quoting.  It backslashifies
9253 # metacharacters that are still active within double-quoted strings.
9254 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9255
9256 # Same as above, but do not quote variable references.
9257 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9258
9259 # Sed substitution to delay expansion of an escaped shell variable in a
9260 # double_quote_subst'ed string.
9261 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9262
9263 # Sed substitution to delay expansion of an escaped single quote.
9264 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9265
9266 # Sed substitution to avoid accidental globbing in evaled expressions
9267 no_glob_subst='s/\*/\\\*/g'
9268
9269 # Global variables:
9270 ofile=libtool
9271 can_build_shared=yes
9272
9273 # All known linkers require a `.a' archive for static linking (except MSVC,
9274 # which needs '.lib').
9275 libext=a
9276
9277 with_gnu_ld="$lt_cv_prog_gnu_ld"
9278
9279 old_CC="$CC"
9280 old_CFLAGS="$CFLAGS"
9281
9282 # Set sane defaults for various variables
9283 test -z "$CC" && CC=cc
9284 test -z "$LTCC" && LTCC=$CC
9285 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9286 test -z "$LD" && LD=ld
9287 test -z "$ac_objext" && ac_objext=o
9288
9289 for cc_temp in $compiler""; do
9290   case $cc_temp in
9291     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9292     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9293     \-*) ;;
9294     *) break;;
9295   esac
9296 done
9297 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9298
9299
9300 # Only perform the check for file, if the check method requires it
9301 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9302 case $deplibs_check_method in
9303 file_magic*)
9304   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9306 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9307 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9308   $as_echo_n "(cached) " >&6
9309 else
9310   case $MAGIC_CMD in
9311 [\\/*] |  ?:[\\/]*)
9312   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9313   ;;
9314 *)
9315   lt_save_MAGIC_CMD="$MAGIC_CMD"
9316   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9317   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9318   for ac_dir in $ac_dummy; do
9319     IFS="$lt_save_ifs"
9320     test -z "$ac_dir" && ac_dir=.
9321     if test -f $ac_dir/${ac_tool_prefix}file; then
9322       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9323       if test -n "$file_magic_test_file"; then
9324         case $deplibs_check_method in
9325         "file_magic "*)
9326           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9327           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9328           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9329             $EGREP "$file_magic_regex" > /dev/null; then
9330             :
9331           else
9332             cat <<_LT_EOF 1>&2
9333
9334 *** Warning: the command libtool uses to detect shared libraries,
9335 *** $file_magic_cmd, produces output that libtool cannot recognize.
9336 *** The result is that libtool may fail to recognize shared libraries
9337 *** as such.  This will affect the creation of libtool libraries that
9338 *** depend on shared libraries, but programs linked with such libtool
9339 *** libraries will work regardless of this problem.  Nevertheless, you
9340 *** may want to report the problem to your system manager and/or to
9341 *** bug-libtool@gnu.org
9342
9343 _LT_EOF
9344           fi ;;
9345         esac
9346       fi
9347       break
9348     fi
9349   done
9350   IFS="$lt_save_ifs"
9351   MAGIC_CMD="$lt_save_MAGIC_CMD"
9352   ;;
9353 esac
9354 fi
9355
9356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9357 if test -n "$MAGIC_CMD"; then
9358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9359 $as_echo "$MAGIC_CMD" >&6; }
9360 else
9361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9363 fi
9364
9365
9366
9367
9368
9369 if test -z "$lt_cv_path_MAGIC_CMD"; then
9370   if test -n "$ac_tool_prefix"; then
9371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9372 $as_echo_n "checking for file... " >&6; }
9373 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9374   $as_echo_n "(cached) " >&6
9375 else
9376   case $MAGIC_CMD in
9377 [\\/*] |  ?:[\\/]*)
9378   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9379   ;;
9380 *)
9381   lt_save_MAGIC_CMD="$MAGIC_CMD"
9382   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9383   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9384   for ac_dir in $ac_dummy; do
9385     IFS="$lt_save_ifs"
9386     test -z "$ac_dir" && ac_dir=.
9387     if test -f $ac_dir/file; then
9388       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9389       if test -n "$file_magic_test_file"; then
9390         case $deplibs_check_method in
9391         "file_magic "*)
9392           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9393           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9394           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9395             $EGREP "$file_magic_regex" > /dev/null; then
9396             :
9397           else
9398             cat <<_LT_EOF 1>&2
9399
9400 *** Warning: the command libtool uses to detect shared libraries,
9401 *** $file_magic_cmd, produces output that libtool cannot recognize.
9402 *** The result is that libtool may fail to recognize shared libraries
9403 *** as such.  This will affect the creation of libtool libraries that
9404 *** depend on shared libraries, but programs linked with such libtool
9405 *** libraries will work regardless of this problem.  Nevertheless, you
9406 *** may want to report the problem to your system manager and/or to
9407 *** bug-libtool@gnu.org
9408
9409 _LT_EOF
9410           fi ;;
9411         esac
9412       fi
9413       break
9414     fi
9415   done
9416   IFS="$lt_save_ifs"
9417   MAGIC_CMD="$lt_save_MAGIC_CMD"
9418   ;;
9419 esac
9420 fi
9421
9422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9423 if test -n "$MAGIC_CMD"; then
9424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9425 $as_echo "$MAGIC_CMD" >&6; }
9426 else
9427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9429 fi
9430
9431
9432   else
9433     MAGIC_CMD=:
9434   fi
9435 fi
9436
9437   fi
9438   ;;
9439 esac
9440
9441 # Use C for the default configuration in the libtool script
9442
9443 lt_save_CC="$CC"
9444 ac_ext=c
9445 ac_cpp='$CPP $CPPFLAGS'
9446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9449
9450
9451 # Source file extension for C test sources.
9452 ac_ext=c
9453
9454 # Object file extension for compiled C test sources.
9455 objext=o
9456 objext=$objext
9457
9458 # Code to be used in simple compile tests
9459 lt_simple_compile_test_code="int some_variable = 0;"
9460
9461 # Code to be used in simple link tests
9462 lt_simple_link_test_code='int main(){return(0);}'
9463
9464
9465
9466
9467
9468
9469
9470 # If no C compiler was specified, use CC.
9471 LTCC=${LTCC-"$CC"}
9472
9473 # If no C compiler flags were specified, use CFLAGS.
9474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9475
9476 # Allow CC to be a program name with arguments.
9477 compiler=$CC
9478
9479 # Save the default compiler, since it gets overwritten when the other
9480 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9481 compiler_DEFAULT=$CC
9482
9483 # save warnings/boilerplate of simple test code
9484 ac_outfile=conftest.$ac_objext
9485 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9486 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9487 _lt_compiler_boilerplate=`cat conftest.err`
9488 $RM conftest*
9489
9490 ac_outfile=conftest.$ac_objext
9491 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9492 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9493 _lt_linker_boilerplate=`cat conftest.err`
9494 $RM -r conftest*
9495
9496
9497 ## CAVEAT EMPTOR:
9498 ## There is no encapsulation within the following macros, do not change
9499 ## the running order or otherwise move them around unless you know exactly
9500 ## what you are doing...
9501 if test -n "$compiler"; then
9502
9503 lt_prog_compiler_no_builtin_flag=
9504
9505 if test "$GCC" = yes; then
9506   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9507
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9509 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9510 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9511   $as_echo_n "(cached) " >&6
9512 else
9513   lt_cv_prog_compiler_rtti_exceptions=no
9514    ac_outfile=conftest.$ac_objext
9515    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9516    lt_compiler_flag="-fno-rtti -fno-exceptions"
9517    # Insert the option either (1) after the last *FLAGS variable, or
9518    # (2) before a word containing "conftest.", or (3) at the end.
9519    # Note that $ac_compile itself does not contain backslashes and begins
9520    # with a dollar sign (not a hyphen), so the echo should work correctly.
9521    # The option is referenced via a variable to avoid confusing sed.
9522    lt_compile=`echo "$ac_compile" | $SED \
9523    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9524    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9525    -e 's:$: $lt_compiler_flag:'`
9526    (eval echo "\"\$as_me:9526: $lt_compile\"" >&5)
9527    (eval "$lt_compile" 2>conftest.err)
9528    ac_status=$?
9529    cat conftest.err >&5
9530    echo "$as_me:9530: \$? = $ac_status" >&5
9531    if (exit $ac_status) && test -s "$ac_outfile"; then
9532      # The compiler can only warn and ignore the option if not recognized
9533      # So say no if there are warnings other than the usual output.
9534      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9535      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9536      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9537        lt_cv_prog_compiler_rtti_exceptions=yes
9538      fi
9539    fi
9540    $RM conftest*
9541
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9544 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9545
9546 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9547     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9548 else
9549     :
9550 fi
9551
9552 fi
9553
9554
9555
9556
9557
9558
9559   lt_prog_compiler_wl=
9560 lt_prog_compiler_pic=
9561 lt_prog_compiler_static=
9562
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9564 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9565
9566   if test "$GCC" = yes; then
9567     lt_prog_compiler_wl='-Wl,'
9568     lt_prog_compiler_static='-static'
9569
9570     case $host_os in
9571       aix*)
9572       # All AIX code is PIC.
9573       if test "$host_cpu" = ia64; then
9574         # AIX 5 now supports IA64 processor
9575         lt_prog_compiler_static='-Bstatic'
9576       fi
9577       ;;
9578
9579     amigaos*)
9580       case $host_cpu in
9581       powerpc)
9582             # see comment about AmigaOS4 .so support
9583             lt_prog_compiler_pic='-fPIC'
9584         ;;
9585       m68k)
9586             # FIXME: we need at least 68020 code to build shared libraries, but
9587             # adding the `-m68020' flag to GCC prevents building anything better,
9588             # like `-m68040'.
9589             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9590         ;;
9591       esac
9592       ;;
9593
9594     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9595       # PIC is the default for these OSes.
9596       ;;
9597
9598     mingw* | cygwin* | pw32* | os2* | cegcc*)
9599       # This hack is so that the source file can tell whether it is being
9600       # built for inclusion in a dll (and should export symbols for example).
9601       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9602       # (--disable-auto-import) libraries
9603       lt_prog_compiler_pic='-DDLL_EXPORT'
9604       ;;
9605
9606     darwin* | rhapsody*)
9607       # PIC is the default on this platform
9608       # Common symbols not allowed in MH_DYLIB files
9609       lt_prog_compiler_pic='-fno-common'
9610       ;;
9611
9612     hpux*)
9613       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9614       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9615       # sets the default TLS model and affects inlining.
9616       case $host_cpu in
9617       hppa*64*)
9618         # +Z the default
9619         ;;
9620       *)
9621         lt_prog_compiler_pic='-fPIC'
9622         ;;
9623       esac
9624       ;;
9625
9626     interix[3-9]*)
9627       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9628       # Instead, we relocate shared libraries at runtime.
9629       ;;
9630
9631     msdosdjgpp*)
9632       # Just because we use GCC doesn't mean we suddenly get shared libraries
9633       # on systems that don't support them.
9634       lt_prog_compiler_can_build_shared=no
9635       enable_shared=no
9636       ;;
9637
9638     *nto* | *qnx*)
9639       # QNX uses GNU C++, but need to define -shared option too, otherwise
9640       # it will coredump.
9641       lt_prog_compiler_pic='-fPIC -shared'
9642       ;;
9643
9644     sysv4*MP*)
9645       if test -d /usr/nec; then
9646         lt_prog_compiler_pic=-Kconform_pic
9647       fi
9648       ;;
9649
9650     *)
9651       lt_prog_compiler_pic='-fPIC'
9652       ;;
9653     esac
9654   else
9655     # PORTME Check for flag to pass linker flags through the system compiler.
9656     case $host_os in
9657     aix*)
9658       lt_prog_compiler_wl='-Wl,'
9659       if test "$host_cpu" = ia64; then
9660         # AIX 5 now supports IA64 processor
9661         lt_prog_compiler_static='-Bstatic'
9662       else
9663         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9664       fi
9665       ;;
9666
9667     mingw* | cygwin* | pw32* | os2* | cegcc*)
9668       # This hack is so that the source file can tell whether it is being
9669       # built for inclusion in a dll (and should export symbols for example).
9670       lt_prog_compiler_pic='-DDLL_EXPORT'
9671       ;;
9672
9673     hpux9* | hpux10* | hpux11*)
9674       lt_prog_compiler_wl='-Wl,'
9675       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9676       # not for PA HP-UX.
9677       case $host_cpu in
9678       hppa*64*|ia64*)
9679         # +Z the default
9680         ;;
9681       *)
9682         lt_prog_compiler_pic='+Z'
9683         ;;
9684       esac
9685       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9686       lt_prog_compiler_static='${wl}-a ${wl}archive'
9687       ;;
9688
9689     irix5* | irix6* | nonstopux*)
9690       lt_prog_compiler_wl='-Wl,'
9691       # PIC (with -KPIC) is the default.
9692       lt_prog_compiler_static='-non_shared'
9693       ;;
9694
9695     linux* | k*bsd*-gnu)
9696       case $cc_basename in
9697       # old Intel for x86_64 which still supported -KPIC.
9698       ecc*)
9699         lt_prog_compiler_wl='-Wl,'
9700         lt_prog_compiler_pic='-KPIC'
9701         lt_prog_compiler_static='-static'
9702         ;;
9703       # icc used to be incompatible with GCC.
9704       # ICC 10 doesn't accept -KPIC any more.
9705       icc* | ifort*)
9706         lt_prog_compiler_wl='-Wl,'
9707         lt_prog_compiler_pic='-fPIC'
9708         lt_prog_compiler_static='-static'
9709         ;;
9710       # Lahey Fortran 8.1.
9711       lf95*)
9712         lt_prog_compiler_wl='-Wl,'
9713         lt_prog_compiler_pic='--shared'
9714         lt_prog_compiler_static='--static'
9715         ;;
9716       pgcc* | pgf77* | pgf90* | pgf95*)
9717         # Portland Group compilers (*not* the Pentium gcc compiler,
9718         # which looks to be a dead project)
9719         lt_prog_compiler_wl='-Wl,'
9720         lt_prog_compiler_pic='-fpic'
9721         lt_prog_compiler_static='-Bstatic'
9722         ;;
9723       ccc*)
9724         lt_prog_compiler_wl='-Wl,'
9725         # All Alpha code is PIC.
9726         lt_prog_compiler_static='-non_shared'
9727         ;;
9728       xl*)
9729         # IBM XL C 8.0/Fortran 10.1 on PPC
9730         lt_prog_compiler_wl='-Wl,'
9731         lt_prog_compiler_pic='-qpic'
9732         lt_prog_compiler_static='-qstaticlink'
9733         ;;
9734       *)
9735         case `$CC -V 2>&1 | sed 5q` in
9736         *Sun\ C*)
9737           # Sun C 5.9
9738           lt_prog_compiler_pic='-KPIC'
9739           lt_prog_compiler_static='-Bstatic'
9740           lt_prog_compiler_wl='-Wl,'
9741           ;;
9742         *Sun\ F*)
9743           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9744           lt_prog_compiler_pic='-KPIC'
9745           lt_prog_compiler_static='-Bstatic'
9746           lt_prog_compiler_wl=''
9747           ;;
9748         esac
9749         ;;
9750       esac
9751       ;;
9752
9753     newsos6)
9754       lt_prog_compiler_pic='-KPIC'
9755       lt_prog_compiler_static='-Bstatic'
9756       ;;
9757
9758     *nto* | *qnx*)
9759       # QNX uses GNU C++, but need to define -shared option too, otherwise
9760       # it will coredump.
9761       lt_prog_compiler_pic='-fPIC -shared'
9762       ;;
9763
9764     osf3* | osf4* | osf5*)
9765       lt_prog_compiler_wl='-Wl,'
9766       # All OSF/1 code is PIC.
9767       lt_prog_compiler_static='-non_shared'
9768       ;;
9769
9770     rdos*)
9771       lt_prog_compiler_static='-non_shared'
9772       ;;
9773
9774     solaris*)
9775       lt_prog_compiler_pic='-KPIC'
9776       lt_prog_compiler_static='-Bstatic'
9777       case $cc_basename in
9778       f77* | f90* | f95*)
9779         lt_prog_compiler_wl='-Qoption ld ';;
9780       *)
9781         lt_prog_compiler_wl='-Wl,';;
9782       esac
9783       ;;
9784
9785     sunos4*)
9786       lt_prog_compiler_wl='-Qoption ld '
9787       lt_prog_compiler_pic='-PIC'
9788       lt_prog_compiler_static='-Bstatic'
9789       ;;
9790
9791     sysv4 | sysv4.2uw2* | sysv4.3*)
9792       lt_prog_compiler_wl='-Wl,'
9793       lt_prog_compiler_pic='-KPIC'
9794       lt_prog_compiler_static='-Bstatic'
9795       ;;
9796
9797     sysv4*MP*)
9798       if test -d /usr/nec ;then
9799         lt_prog_compiler_pic='-Kconform_pic'
9800         lt_prog_compiler_static='-Bstatic'
9801       fi
9802       ;;
9803
9804     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9805       lt_prog_compiler_wl='-Wl,'
9806       lt_prog_compiler_pic='-KPIC'
9807       lt_prog_compiler_static='-Bstatic'
9808       ;;
9809
9810     unicos*)
9811       lt_prog_compiler_wl='-Wl,'
9812       lt_prog_compiler_can_build_shared=no
9813       ;;
9814
9815     uts4*)
9816       lt_prog_compiler_pic='-pic'
9817       lt_prog_compiler_static='-Bstatic'
9818       ;;
9819
9820     *)
9821       lt_prog_compiler_can_build_shared=no
9822       ;;
9823     esac
9824   fi
9825
9826 case $host_os in
9827   # For platforms which do not support PIC, -DPIC is meaningless:
9828   *djgpp*)
9829     lt_prog_compiler_pic=
9830     ;;
9831   *)
9832     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9833     ;;
9834 esac
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9836 $as_echo "$lt_prog_compiler_pic" >&6; }
9837
9838
9839
9840
9841
9842
9843 #
9844 # Check to make sure the PIC flag actually works.
9845 #
9846 if test -n "$lt_prog_compiler_pic"; then
9847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9848 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9849 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9850   $as_echo_n "(cached) " >&6
9851 else
9852   lt_cv_prog_compiler_pic_works=no
9853    ac_outfile=conftest.$ac_objext
9854    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9855    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9856    # Insert the option either (1) after the last *FLAGS variable, or
9857    # (2) before a word containing "conftest.", or (3) at the end.
9858    # Note that $ac_compile itself does not contain backslashes and begins
9859    # with a dollar sign (not a hyphen), so the echo should work correctly.
9860    # The option is referenced via a variable to avoid confusing sed.
9861    lt_compile=`echo "$ac_compile" | $SED \
9862    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9863    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9864    -e 's:$: $lt_compiler_flag:'`
9865    (eval echo "\"\$as_me:9865: $lt_compile\"" >&5)
9866    (eval "$lt_compile" 2>conftest.err)
9867    ac_status=$?
9868    cat conftest.err >&5
9869    echo "$as_me:9869: \$? = $ac_status" >&5
9870    if (exit $ac_status) && test -s "$ac_outfile"; then
9871      # The compiler can only warn and ignore the option if not recognized
9872      # So say no if there are warnings other than the usual output.
9873      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9874      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9875      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9876        lt_cv_prog_compiler_pic_works=yes
9877      fi
9878    fi
9879    $RM conftest*
9880
9881 fi
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9883 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9884
9885 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9886     case $lt_prog_compiler_pic in
9887      "" | " "*) ;;
9888      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9889      esac
9890 else
9891     lt_prog_compiler_pic=
9892      lt_prog_compiler_can_build_shared=no
9893 fi
9894
9895 fi
9896
9897
9898
9899
9900
9901
9902 #
9903 # Check to make sure the static flag actually works.
9904 #
9905 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9907 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9908 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9909   $as_echo_n "(cached) " >&6
9910 else
9911   lt_cv_prog_compiler_static_works=no
9912    save_LDFLAGS="$LDFLAGS"
9913    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9914    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9915    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9916      # The linker can only warn and ignore the option if not recognized
9917      # So say no if there are warnings
9918      if test -s conftest.err; then
9919        # Append any errors to the config.log.
9920        cat conftest.err 1>&5
9921        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9922        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9923        if diff conftest.exp conftest.er2 >/dev/null; then
9924          lt_cv_prog_compiler_static_works=yes
9925        fi
9926      else
9927        lt_cv_prog_compiler_static_works=yes
9928      fi
9929    fi
9930    $RM -r conftest*
9931    LDFLAGS="$save_LDFLAGS"
9932
9933 fi
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9935 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9936
9937 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9938     :
9939 else
9940     lt_prog_compiler_static=
9941 fi
9942
9943
9944
9945
9946
9947
9948
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9950 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9951 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9952   $as_echo_n "(cached) " >&6
9953 else
9954   lt_cv_prog_compiler_c_o=no
9955    $RM -r conftest 2>/dev/null
9956    mkdir conftest
9957    cd conftest
9958    mkdir out
9959    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9960
9961    lt_compiler_flag="-o out/conftest2.$ac_objext"
9962    # Insert the option either (1) after the last *FLAGS variable, or
9963    # (2) before a word containing "conftest.", or (3) at the end.
9964    # Note that $ac_compile itself does not contain backslashes and begins
9965    # with a dollar sign (not a hyphen), so the echo should work correctly.
9966    lt_compile=`echo "$ac_compile" | $SED \
9967    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9968    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9969    -e 's:$: $lt_compiler_flag:'`
9970    (eval echo "\"\$as_me:9970: $lt_compile\"" >&5)
9971    (eval "$lt_compile" 2>out/conftest.err)
9972    ac_status=$?
9973    cat out/conftest.err >&5
9974    echo "$as_me:9974: \$? = $ac_status" >&5
9975    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9976    then
9977      # The compiler can only warn and ignore the option if not recognized
9978      # So say no if there are warnings
9979      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9980      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9981      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9982        lt_cv_prog_compiler_c_o=yes
9983      fi
9984    fi
9985    chmod u+w . 2>&5
9986    $RM conftest*
9987    # SGI C++ compiler will create directory out/ii_files/ for
9988    # template instantiation
9989    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9990    $RM out/* && rmdir out
9991    cd ..
9992    $RM -r conftest
9993    $RM conftest*
9994
9995 fi
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9997 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9998
9999
10000
10001
10002
10003
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10005 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10006 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10007   $as_echo_n "(cached) " >&6
10008 else
10009   lt_cv_prog_compiler_c_o=no
10010    $RM -r conftest 2>/dev/null
10011    mkdir conftest
10012    cd conftest
10013    mkdir out
10014    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10015
10016    lt_compiler_flag="-o out/conftest2.$ac_objext"
10017    # Insert the option either (1) after the last *FLAGS variable, or
10018    # (2) before a word containing "conftest.", or (3) at the end.
10019    # Note that $ac_compile itself does not contain backslashes and begins
10020    # with a dollar sign (not a hyphen), so the echo should work correctly.
10021    lt_compile=`echo "$ac_compile" | $SED \
10022    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10024    -e 's:$: $lt_compiler_flag:'`
10025    (eval echo "\"\$as_me:10025: $lt_compile\"" >&5)
10026    (eval "$lt_compile" 2>out/conftest.err)
10027    ac_status=$?
10028    cat out/conftest.err >&5
10029    echo "$as_me:10029: \$? = $ac_status" >&5
10030    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10031    then
10032      # The compiler can only warn and ignore the option if not recognized
10033      # So say no if there are warnings
10034      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10035      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10036      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10037        lt_cv_prog_compiler_c_o=yes
10038      fi
10039    fi
10040    chmod u+w . 2>&5
10041    $RM conftest*
10042    # SGI C++ compiler will create directory out/ii_files/ for
10043    # template instantiation
10044    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10045    $RM out/* && rmdir out
10046    cd ..
10047    $RM -r conftest
10048    $RM conftest*
10049
10050 fi
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10052 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10053
10054
10055
10056
10057 hard_links="nottested"
10058 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10059   # do not overwrite the value of need_locks provided by the user
10060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10061 $as_echo_n "checking if we can lock with hard links... " >&6; }
10062   hard_links=yes
10063   $RM conftest*
10064   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10065   touch conftest.a
10066   ln conftest.a conftest.b 2>&5 || hard_links=no
10067   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10069 $as_echo "$hard_links" >&6; }
10070   if test "$hard_links" = no; then
10071     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10072 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10073     need_locks=warn
10074   fi
10075 else
10076   need_locks=no
10077 fi
10078
10079
10080
10081
10082
10083
10084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10085 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10086
10087   runpath_var=
10088   allow_undefined_flag=
10089   always_export_symbols=no
10090   archive_cmds=
10091   archive_expsym_cmds=
10092   compiler_needs_object=no
10093   enable_shared_with_static_runtimes=no
10094   export_dynamic_flag_spec=
10095   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10096   hardcode_automatic=no
10097   hardcode_direct=no
10098   hardcode_direct_absolute=no
10099   hardcode_libdir_flag_spec=
10100   hardcode_libdir_flag_spec_ld=
10101   hardcode_libdir_separator=
10102   hardcode_minus_L=no
10103   hardcode_shlibpath_var=unsupported
10104   inherit_rpath=no
10105   link_all_deplibs=unknown
10106   module_cmds=
10107   module_expsym_cmds=
10108   old_archive_from_new_cmds=
10109   old_archive_from_expsyms_cmds=
10110   thread_safe_flag_spec=
10111   whole_archive_flag_spec=
10112   # include_expsyms should be a list of space-separated symbols to be *always*
10113   # included in the symbol list
10114   include_expsyms=
10115   # exclude_expsyms can be an extended regexp of symbols to exclude
10116   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10117   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10118   # as well as any symbol that contains `d'.
10119   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10120   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10121   # platforms (ab)use it in PIC code, but their linkers get confused if
10122   # the symbol is explicitly referenced.  Since portable code cannot
10123   # rely on this symbol name, it's probably fine to never include it in
10124   # preloaded symbol tables.
10125   # Exclude shared library initialization/finalization symbols.
10126   extract_expsyms_cmds=
10127
10128   case $host_os in
10129   cygwin* | mingw* | pw32* | cegcc*)
10130     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10131     # When not using gcc, we currently assume that we are using
10132     # Microsoft Visual C++.
10133     if test "$GCC" != yes; then
10134       with_gnu_ld=no
10135     fi
10136     ;;
10137   interix*)
10138     # we just hope/assume this is gcc and not c89 (= MSVC++)
10139     with_gnu_ld=yes
10140     ;;
10141   openbsd*)
10142     with_gnu_ld=no
10143     ;;
10144   esac
10145
10146   ld_shlibs=yes
10147   if test "$with_gnu_ld" = yes; then
10148     # If archive_cmds runs LD, not CC, wlarc should be empty
10149     wlarc='${wl}'
10150
10151     # Set some defaults for GNU ld with shared library support. These
10152     # are reset later if shared libraries are not supported. Putting them
10153     # here allows them to be overridden if necessary.
10154     runpath_var=LD_RUN_PATH
10155     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10156     export_dynamic_flag_spec='${wl}--export-dynamic'
10157     # ancient GNU ld didn't support --whole-archive et. al.
10158     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10159       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10160     else
10161       whole_archive_flag_spec=
10162     fi
10163     supports_anon_versioning=no
10164     case `$LD -v 2>&1` in
10165       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10166       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10167       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10168       *\ 2.11.*) ;; # other 2.11 versions
10169       *) supports_anon_versioning=yes ;;
10170     esac
10171
10172     # See if GNU ld supports shared libraries.
10173     case $host_os in
10174     aix[3-9]*)
10175       # On AIX/PPC, the GNU linker is very broken
10176       if test "$host_cpu" != ia64; then
10177         ld_shlibs=no
10178         cat <<_LT_EOF 1>&2
10179
10180 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10181 *** to be unable to reliably create shared libraries on AIX.
10182 *** Therefore, libtool is disabling shared libraries support.  If you
10183 *** really care for shared libraries, you may want to modify your PATH
10184 *** so that a non-GNU linker is found, and then restart.
10185
10186 _LT_EOF
10187       fi
10188       ;;
10189
10190     amigaos*)
10191       case $host_cpu in
10192       powerpc)
10193             # see comment about AmigaOS4 .so support
10194             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10195             archive_expsym_cmds=''
10196         ;;
10197       m68k)
10198             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)'
10199             hardcode_libdir_flag_spec='-L$libdir'
10200             hardcode_minus_L=yes
10201         ;;
10202       esac
10203       ;;
10204
10205     beos*)
10206       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10207         allow_undefined_flag=unsupported
10208         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10209         # support --undefined.  This deserves some investigation.  FIXME
10210         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211       else
10212         ld_shlibs=no
10213       fi
10214       ;;
10215
10216     cygwin* | mingw* | pw32* | cegcc*)
10217       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10218       # as there is no search path for DLLs.
10219       hardcode_libdir_flag_spec='-L$libdir'
10220       allow_undefined_flag=unsupported
10221       always_export_symbols=no
10222       enable_shared_with_static_runtimes=yes
10223       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10224
10225       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10226         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10227         # If the export-symbols file already is a .def file (1st line
10228         # is EXPORTS), use it as is; otherwise, prepend...
10229         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10230           cp $export_symbols $output_objdir/$soname.def;
10231         else
10232           echo EXPORTS > $output_objdir/$soname.def;
10233           cat $export_symbols >> $output_objdir/$soname.def;
10234         fi~
10235         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10236       else
10237         ld_shlibs=no
10238       fi
10239       ;;
10240
10241     interix[3-9]*)
10242       hardcode_direct=no
10243       hardcode_shlibpath_var=no
10244       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10245       export_dynamic_flag_spec='${wl}-E'
10246       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10247       # Instead, shared libraries are loaded at an image base (0x10000000 by
10248       # default) and relocated if they conflict, which is a slow very memory
10249       # consuming and fragmenting process.  To avoid this, we pick a random,
10250       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10251       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10252       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10253       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'
10254       ;;
10255
10256     gnu* | linux* | tpf* | k*bsd*-gnu)
10257       tmp_diet=no
10258       if test "$host_os" = linux-dietlibc; then
10259         case $cc_basename in
10260           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10261         esac
10262       fi
10263       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10264          && test "$tmp_diet" = no
10265       then
10266         tmp_addflag=
10267         tmp_sharedflag='-shared'
10268         case $cc_basename,$host_cpu in
10269         pgcc*)                          # Portland Group C compiler
10270           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'
10271           tmp_addflag=' $pic_flag'
10272           ;;
10273         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10274           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'
10275           tmp_addflag=' $pic_flag -Mnomain' ;;
10276         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10277           tmp_addflag=' -i_dynamic' ;;
10278         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10279           tmp_addflag=' -i_dynamic -nofor_main' ;;
10280         ifc* | ifort*)                  # Intel Fortran compiler
10281           tmp_addflag=' -nofor_main' ;;
10282         lf95*)                          # Lahey Fortran 8.1
10283           whole_archive_flag_spec=
10284           tmp_sharedflag='--shared' ;;
10285         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10286           tmp_sharedflag='-qmkshrobj'
10287           tmp_addflag= ;;
10288         esac
10289         case `$CC -V 2>&1 | sed 5q` in
10290         *Sun\ C*)                       # Sun C 5.9
10291           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'
10292           compiler_needs_object=yes
10293           tmp_sharedflag='-G' ;;
10294         *Sun\ F*)                       # Sun Fortran 8.3
10295           tmp_sharedflag='-G' ;;
10296         esac
10297         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10298
10299         if test "x$supports_anon_versioning" = xyes; then
10300           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10301             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10302             echo "local: *; };" >> $output_objdir/$libname.ver~
10303             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10304         fi
10305
10306         case $cc_basename in
10307         xlf*)
10308           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10309           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10310           hardcode_libdir_flag_spec=
10311           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10312           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10313           if test "x$supports_anon_versioning" = xyes; then
10314             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10315               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10316               echo "local: *; };" >> $output_objdir/$libname.ver~
10317               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10318           fi
10319           ;;
10320         esac
10321       else
10322         ld_shlibs=no
10323       fi
10324       ;;
10325
10326     netbsd*)
10327       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10328         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10329         wlarc=
10330       else
10331         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10332         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10333       fi
10334       ;;
10335
10336     solaris*)
10337       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10338         ld_shlibs=no
10339         cat <<_LT_EOF 1>&2
10340
10341 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10342 *** create shared libraries on Solaris systems.  Therefore, libtool
10343 *** is disabling shared libraries support.  We urge you to upgrade GNU
10344 *** binutils to release 2.9.1 or newer.  Another option is to modify
10345 *** your PATH or compiler configuration so that the native linker is
10346 *** used, and then restart.
10347
10348 _LT_EOF
10349       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10350         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10351         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10352       else
10353         ld_shlibs=no
10354       fi
10355       ;;
10356
10357     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10358       case `$LD -v 2>&1` in
10359         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10360         ld_shlibs=no
10361         cat <<_LT_EOF 1>&2
10362
10363 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10364 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10365 *** is disabling shared libraries support.  We urge you to upgrade GNU
10366 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10367 *** your PATH or compiler configuration so that the native linker is
10368 *** used, and then restart.
10369
10370 _LT_EOF
10371         ;;
10372         *)
10373           # For security reasons, it is highly recommended that you always
10374           # use absolute paths for naming shared libraries, and exclude the
10375           # DT_RUNPATH tag from executables and libraries.  But doing so
10376           # requires that you compile everything twice, which is a pain.
10377           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10378             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10379             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10380             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10381           else
10382             ld_shlibs=no
10383           fi
10384         ;;
10385       esac
10386       ;;
10387
10388     sunos4*)
10389       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10390       wlarc=
10391       hardcode_direct=yes
10392       hardcode_shlibpath_var=no
10393       ;;
10394
10395     *)
10396       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10397         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10398         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10399       else
10400         ld_shlibs=no
10401       fi
10402       ;;
10403     esac
10404
10405     if test "$ld_shlibs" = no; then
10406       runpath_var=
10407       hardcode_libdir_flag_spec=
10408       export_dynamic_flag_spec=
10409       whole_archive_flag_spec=
10410     fi
10411   else
10412     # PORTME fill in a description of your system's linker (not GNU ld)
10413     case $host_os in
10414     aix3*)
10415       allow_undefined_flag=unsupported
10416       always_export_symbols=yes
10417       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'
10418       # Note: this linker hardcodes the directories in LIBPATH if there
10419       # are no directories specified by -L.
10420       hardcode_minus_L=yes
10421       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10422         # Neither direct hardcoding nor static linking is supported with a
10423         # broken collect2.
10424         hardcode_direct=unsupported
10425       fi
10426       ;;
10427
10428     aix[4-9]*)
10429       if test "$host_cpu" = ia64; then
10430         # On IA64, the linker does run time linking by default, so we don't
10431         # have to do anything special.
10432         aix_use_runtimelinking=no
10433         exp_sym_flag='-Bexport'
10434         no_entry_flag=""
10435       else
10436         # If we're using GNU nm, then we don't want the "-C" option.
10437         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10438         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10439           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'
10440         else
10441           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'
10442         fi
10443         aix_use_runtimelinking=no
10444
10445         # Test if we are trying to use run time linking or normal
10446         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10447         # need to do runtime linking.
10448         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10449           for ld_flag in $LDFLAGS; do
10450           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10451             aix_use_runtimelinking=yes
10452             break
10453           fi
10454           done
10455           ;;
10456         esac
10457
10458         exp_sym_flag='-bexport'
10459         no_entry_flag='-bnoentry'
10460       fi
10461
10462       # When large executables or shared objects are built, AIX ld can
10463       # have problems creating the table of contents.  If linking a library
10464       # or program results in "error TOC overflow" add -mminimal-toc to
10465       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10466       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10467
10468       archive_cmds=''
10469       hardcode_direct=yes
10470       hardcode_direct_absolute=yes
10471       hardcode_libdir_separator=':'
10472       link_all_deplibs=yes
10473       file_list_spec='${wl}-f,'
10474
10475       if test "$GCC" = yes; then
10476         case $host_os in aix4.[012]|aix4.[012].*)
10477         # We only want to do this on AIX 4.2 and lower, the check
10478         # below for broken collect2 doesn't work under 4.3+
10479           collect2name=`${CC} -print-prog-name=collect2`
10480           if test -f "$collect2name" &&
10481            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10482           then
10483           # We have reworked collect2
10484           :
10485           else
10486           # We have old collect2
10487           hardcode_direct=unsupported
10488           # It fails to find uninstalled libraries when the uninstalled
10489           # path is not listed in the libpath.  Setting hardcode_minus_L
10490           # to unsupported forces relinking
10491           hardcode_minus_L=yes
10492           hardcode_libdir_flag_spec='-L$libdir'
10493           hardcode_libdir_separator=
10494           fi
10495           ;;
10496         esac
10497         shared_flag='-shared'
10498         if test "$aix_use_runtimelinking" = yes; then
10499           shared_flag="$shared_flag "'${wl}-G'
10500         fi
10501       else
10502         # not using gcc
10503         if test "$host_cpu" = ia64; then
10504         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10505         # chokes on -Wl,-G. The following line is correct:
10506           shared_flag='-G'
10507         else
10508           if test "$aix_use_runtimelinking" = yes; then
10509             shared_flag='${wl}-G'
10510           else
10511             shared_flag='${wl}-bM:SRE'
10512           fi
10513         fi
10514       fi
10515
10516       export_dynamic_flag_spec='${wl}-bexpall'
10517       # It seems that -bexpall does not export symbols beginning with
10518       # underscore (_), so it is better to generate a list of symbols to export.
10519       always_export_symbols=yes
10520       if test "$aix_use_runtimelinking" = yes; then
10521         # Warning - without using the other runtime loading flags (-brtl),
10522         # -berok will link without error, but may produce a broken library.
10523         allow_undefined_flag='-berok'
10524         # Determine the default libpath from the value encoded in an
10525         # empty executable.
10526         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h.  */
10528
10529 int
10530 main ()
10531 {
10532
10533   ;
10534   return 0;
10535 }
10536 _ACEOF
10537 if ac_fn_c_try_link "$LINENO"; then :
10538
10539 lt_aix_libpath_sed='
10540     /Import File Strings/,/^$/ {
10541         /^0/ {
10542             s/^0  *\(.*\)$/\1/
10543             p
10544         }
10545     }'
10546 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10547 # Check for a 64-bit object if we didn't find anything.
10548 if test -z "$aix_libpath"; then
10549   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10550 fi
10551 fi
10552 rm -f core conftest.err conftest.$ac_objext \
10553     conftest$ac_exeext conftest.$ac_ext
10554 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10555
10556         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10557         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"
10558       else
10559         if test "$host_cpu" = ia64; then
10560           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10561           allow_undefined_flag="-z nodefs"
10562           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"
10563         else
10564          # Determine the default libpath from the value encoded in an
10565          # empty executable.
10566          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h.  */
10568
10569 int
10570 main ()
10571 {
10572
10573   ;
10574   return 0;
10575 }
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"; then :
10578
10579 lt_aix_libpath_sed='
10580     /Import File Strings/,/^$/ {
10581         /^0/ {
10582             s/^0  *\(.*\)$/\1/
10583             p
10584         }
10585     }'
10586 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10587 # Check for a 64-bit object if we didn't find anything.
10588 if test -z "$aix_libpath"; then
10589   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10590 fi
10591 fi
10592 rm -f core conftest.err conftest.$ac_objext \
10593     conftest$ac_exeext conftest.$ac_ext
10594 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10595
10596          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10597           # Warning - without using the other run time loading flags,
10598           # -berok will link without error, but may produce a broken library.
10599           no_undefined_flag=' ${wl}-bernotok'
10600           allow_undefined_flag=' ${wl}-berok'
10601           # Exported symbols can be pulled into shared objects from archives
10602           whole_archive_flag_spec='$convenience'
10603           archive_cmds_need_lc=yes
10604           # This is similar to how AIX traditionally builds its shared libraries.
10605           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'
10606         fi
10607       fi
10608       ;;
10609
10610     amigaos*)
10611       case $host_cpu in
10612       powerpc)
10613             # see comment about AmigaOS4 .so support
10614             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10615             archive_expsym_cmds=''
10616         ;;
10617       m68k)
10618             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)'
10619             hardcode_libdir_flag_spec='-L$libdir'
10620             hardcode_minus_L=yes
10621         ;;
10622       esac
10623       ;;
10624
10625     bsdi[45]*)
10626       export_dynamic_flag_spec=-rdynamic
10627       ;;
10628
10629     cygwin* | mingw* | pw32* | cegcc*)
10630       # When not using gcc, we currently assume that we are using
10631       # Microsoft Visual C++.
10632       # hardcode_libdir_flag_spec is actually meaningless, as there is
10633       # no search path for DLLs.
10634       hardcode_libdir_flag_spec=' '
10635       allow_undefined_flag=unsupported
10636       # Tell ltmain to make .lib files, not .a files.
10637       libext=lib
10638       # Tell ltmain to make .dll files, not .so files.
10639       shrext_cmds=".dll"
10640       # FIXME: Setting linknames here is a bad hack.
10641       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10642       # The linker will automatically build a .lib file if we build a DLL.
10643       old_archive_from_new_cmds='true'
10644       # FIXME: Should let the user specify the lib program.
10645       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10646       fix_srcfile_path='`cygpath -w "$srcfile"`'
10647       enable_shared_with_static_runtimes=yes
10648       ;;
10649
10650     darwin* | rhapsody*)
10651
10652
10653   archive_cmds_need_lc=no
10654   hardcode_direct=no
10655   hardcode_automatic=yes
10656   hardcode_shlibpath_var=unsupported
10657   whole_archive_flag_spec=''
10658   link_all_deplibs=yes
10659   allow_undefined_flag="$_lt_dar_allow_undefined"
10660   case $cc_basename in
10661      ifort*) _lt_dar_can_shared=yes ;;
10662      *) _lt_dar_can_shared=$GCC ;;
10663   esac
10664   if test "$_lt_dar_can_shared" = "yes"; then
10665     output_verbose_link_cmd=echo
10666     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10667     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10668     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}"
10669     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}"
10670
10671   else
10672   ld_shlibs=no
10673   fi
10674
10675       ;;
10676
10677     dgux*)
10678       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679       hardcode_libdir_flag_spec='-L$libdir'
10680       hardcode_shlibpath_var=no
10681       ;;
10682
10683     freebsd1*)
10684       ld_shlibs=no
10685       ;;
10686
10687     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10688     # support.  Future versions do this automatically, but an explicit c++rt0.o
10689     # does not break anything, and helps significantly (at the cost of a little
10690     # extra space).
10691     freebsd2.2*)
10692       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10693       hardcode_libdir_flag_spec='-R$libdir'
10694       hardcode_direct=yes
10695       hardcode_shlibpath_var=no
10696       ;;
10697
10698     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10699     freebsd2*)
10700       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10701       hardcode_direct=yes
10702       hardcode_minus_L=yes
10703       hardcode_shlibpath_var=no
10704       ;;
10705
10706     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10707     freebsd* | dragonfly*)
10708       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10709       hardcode_libdir_flag_spec='-R$libdir'
10710       hardcode_direct=yes
10711       hardcode_shlibpath_var=no
10712       ;;
10713
10714     hpux9*)
10715       if test "$GCC" = yes; then
10716         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'
10717       else
10718         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'
10719       fi
10720       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10721       hardcode_libdir_separator=:
10722       hardcode_direct=yes
10723
10724       # hardcode_minus_L: Not really in the search PATH,
10725       # but as the default location of the library.
10726       hardcode_minus_L=yes
10727       export_dynamic_flag_spec='${wl}-E'
10728       ;;
10729
10730     hpux10*)
10731       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10732         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10733       else
10734         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10735       fi
10736       if test "$with_gnu_ld" = no; then
10737         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10738         hardcode_libdir_flag_spec_ld='+b $libdir'
10739         hardcode_libdir_separator=:
10740         hardcode_direct=yes
10741         hardcode_direct_absolute=yes
10742         export_dynamic_flag_spec='${wl}-E'
10743         # hardcode_minus_L: Not really in the search PATH,
10744         # but as the default location of the library.
10745         hardcode_minus_L=yes
10746       fi
10747       ;;
10748
10749     hpux11*)
10750       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10751         case $host_cpu in
10752         hppa*64*)
10753           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10754           ;;
10755         ia64*)
10756           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10757           ;;
10758         *)
10759           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10760           ;;
10761         esac
10762       else
10763         case $host_cpu in
10764         hppa*64*)
10765           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10766           ;;
10767         ia64*)
10768           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10769           ;;
10770         *)
10771           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10772           ;;
10773         esac
10774       fi
10775       if test "$with_gnu_ld" = no; then
10776         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10777         hardcode_libdir_separator=:
10778
10779         case $host_cpu in
10780         hppa*64*|ia64*)
10781           hardcode_direct=no
10782           hardcode_shlibpath_var=no
10783           ;;
10784         *)
10785           hardcode_direct=yes
10786           hardcode_direct_absolute=yes
10787           export_dynamic_flag_spec='${wl}-E'
10788
10789           # hardcode_minus_L: Not really in the search PATH,
10790           # but as the default location of the library.
10791           hardcode_minus_L=yes
10792           ;;
10793         esac
10794       fi
10795       ;;
10796
10797     irix5* | irix6* | nonstopux*)
10798       if test "$GCC" = yes; then
10799         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'
10800         # Try to use the -exported_symbol ld option, if it does not
10801         # work, assume that -exports_file does not work either and
10802         # implicitly export all symbols.
10803         save_LDFLAGS="$LDFLAGS"
10804         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10805         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h.  */
10807 int foo(void) {}
10808 _ACEOF
10809 if ac_fn_c_try_link "$LINENO"; then :
10810   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'
10811
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext \
10814     conftest$ac_exeext conftest.$ac_ext
10815         LDFLAGS="$save_LDFLAGS"
10816       else
10817         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'
10818         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'
10819       fi
10820       archive_cmds_need_lc='no'
10821       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10822       hardcode_libdir_separator=:
10823       inherit_rpath=yes
10824       link_all_deplibs=yes
10825       ;;
10826
10827     netbsd*)
10828       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10829         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10830       else
10831         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10832       fi
10833       hardcode_libdir_flag_spec='-R$libdir'
10834       hardcode_direct=yes
10835       hardcode_shlibpath_var=no
10836       ;;
10837
10838     newsos6)
10839       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840       hardcode_direct=yes
10841       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10842       hardcode_libdir_separator=:
10843       hardcode_shlibpath_var=no
10844       ;;
10845
10846     *nto* | *qnx*)
10847       ;;
10848
10849     openbsd*)
10850       if test -f /usr/libexec/ld.so; then
10851         hardcode_direct=yes
10852         hardcode_shlibpath_var=no
10853         hardcode_direct_absolute=yes
10854         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10855           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10856           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10857           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10858           export_dynamic_flag_spec='${wl}-E'
10859         else
10860           case $host_os in
10861            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10862              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10863              hardcode_libdir_flag_spec='-R$libdir'
10864              ;;
10865            *)
10866              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10867              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10868              ;;
10869           esac
10870         fi
10871       else
10872         ld_shlibs=no
10873       fi
10874       ;;
10875
10876     os2*)
10877       hardcode_libdir_flag_spec='-L$libdir'
10878       hardcode_minus_L=yes
10879       allow_undefined_flag=unsupported
10880       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'
10881       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10882       ;;
10883
10884     osf3*)
10885       if test "$GCC" = yes; then
10886         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10887         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'
10888       else
10889         allow_undefined_flag=' -expect_unresolved \*'
10890         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'
10891       fi
10892       archive_cmds_need_lc='no'
10893       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10894       hardcode_libdir_separator=:
10895       ;;
10896
10897     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10898       if test "$GCC" = yes; then
10899         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10900         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'
10901         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10902       else
10903         allow_undefined_flag=' -expect_unresolved \*'
10904         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'
10905         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~
10906         $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'
10907
10908         # Both c and cxx compiler support -rpath directly
10909         hardcode_libdir_flag_spec='-rpath $libdir'
10910       fi
10911       archive_cmds_need_lc='no'
10912       hardcode_libdir_separator=:
10913       ;;
10914
10915     solaris*)
10916       no_undefined_flag=' -z defs'
10917       if test "$GCC" = yes; then
10918         wlarc='${wl}'
10919         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10920         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10922       else
10923         case `$CC -V 2>&1` in
10924         *"Compilers 5.0"*)
10925           wlarc=''
10926           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10927           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10928           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10929           ;;
10930         *)
10931           wlarc='${wl}'
10932           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10933           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10934           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10935           ;;
10936         esac
10937       fi
10938       hardcode_libdir_flag_spec='-R$libdir'
10939       hardcode_shlibpath_var=no
10940       case $host_os in
10941       solaris2.[0-5] | solaris2.[0-5].*) ;;
10942       *)
10943         # The compiler driver will combine and reorder linker options,
10944         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10945         # but is careful enough not to reorder.
10946         # Supported since Solaris 2.6 (maybe 2.5.1?)
10947         if test "$GCC" = yes; then
10948           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10949         else
10950           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10951         fi
10952         ;;
10953       esac
10954       link_all_deplibs=yes
10955       ;;
10956
10957     sunos4*)
10958       if test "x$host_vendor" = xsequent; then
10959         # Use $CC to link under sequent, because it throws in some extra .o
10960         # files that make .init and .fini sections work.
10961         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10962       else
10963         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10964       fi
10965       hardcode_libdir_flag_spec='-L$libdir'
10966       hardcode_direct=yes
10967       hardcode_minus_L=yes
10968       hardcode_shlibpath_var=no
10969       ;;
10970
10971     sysv4)
10972       case $host_vendor in
10973         sni)
10974           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975           hardcode_direct=yes # is this really true???
10976         ;;
10977         siemens)
10978           ## LD is ld it makes a PLAMLIB
10979           ## CC just makes a GrossModule.
10980           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10981           reload_cmds='$CC -r -o $output$reload_objs'
10982           hardcode_direct=no
10983         ;;
10984         motorola)
10985           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10987         ;;
10988       esac
10989       runpath_var='LD_RUN_PATH'
10990       hardcode_shlibpath_var=no
10991       ;;
10992
10993     sysv4.3*)
10994       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10995       hardcode_shlibpath_var=no
10996       export_dynamic_flag_spec='-Bexport'
10997       ;;
10998
10999     sysv4*MP*)
11000       if test -d /usr/nec; then
11001         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11002         hardcode_shlibpath_var=no
11003         runpath_var=LD_RUN_PATH
11004         hardcode_runpath_var=yes
11005         ld_shlibs=yes
11006       fi
11007       ;;
11008
11009     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11010       no_undefined_flag='${wl}-z,text'
11011       archive_cmds_need_lc=no
11012       hardcode_shlibpath_var=no
11013       runpath_var='LD_RUN_PATH'
11014
11015       if test "$GCC" = yes; then
11016         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018       else
11019         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021       fi
11022       ;;
11023
11024     sysv5* | sco3.2v5* | sco5v6*)
11025       # Note: We can NOT use -z defs as we might desire, because we do not
11026       # link with -lc, and that would cause any symbols used from libc to
11027       # always be unresolved, which means just about no library would
11028       # ever link correctly.  If we're not using GNU ld we use -z text
11029       # though, which does catch some bad symbols but isn't as heavy-handed
11030       # as -z defs.
11031       no_undefined_flag='${wl}-z,text'
11032       allow_undefined_flag='${wl}-z,nodefs'
11033       archive_cmds_need_lc=no
11034       hardcode_shlibpath_var=no
11035       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11036       hardcode_libdir_separator=':'
11037       link_all_deplibs=yes
11038       export_dynamic_flag_spec='${wl}-Bexport'
11039       runpath_var='LD_RUN_PATH'
11040
11041       if test "$GCC" = yes; then
11042         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11043         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11044       else
11045         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11046         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11047       fi
11048       ;;
11049
11050     uts4*)
11051       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11052       hardcode_libdir_flag_spec='-L$libdir'
11053       hardcode_shlibpath_var=no
11054       ;;
11055
11056     *)
11057       ld_shlibs=no
11058       ;;
11059     esac
11060
11061     if test x$host_vendor = xsni; then
11062       case $host in
11063       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11064         export_dynamic_flag_spec='${wl}-Blargedynsym'
11065         ;;
11066       esac
11067     fi
11068   fi
11069
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11071 $as_echo "$ld_shlibs" >&6; }
11072 test "$ld_shlibs" = no && can_build_shared=no
11073
11074 with_gnu_ld=$with_gnu_ld
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090 #
11091 # Do we need to explicitly link libc?
11092 #
11093 case "x$archive_cmds_need_lc" in
11094 x|xyes)
11095   # Assume -lc should be added
11096   archive_cmds_need_lc=yes
11097
11098   if test "$enable_shared" = yes && test "$GCC" = yes; then
11099     case $archive_cmds in
11100     *'~'*)
11101       # FIXME: we may have to deal with multi-command sequences.
11102       ;;
11103     '$CC '*)
11104       # Test whether the compiler implicitly links with -lc since on some
11105       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11106       # to ld, don't add -lc before -lgcc.
11107       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11108 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11109       $RM conftest*
11110       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11111
11112       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11113   (eval $ac_compile) 2>&5
11114   ac_status=$?
11115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11116   test $ac_status = 0; } 2>conftest.err; then
11117         soname=conftest
11118         lib=conftest
11119         libobjs=conftest.$ac_objext
11120         deplibs=
11121         wl=$lt_prog_compiler_wl
11122         pic_flag=$lt_prog_compiler_pic
11123         compiler_flags=-v
11124         linker_flags=-v
11125         verstring=
11126         output_objdir=.
11127         libname=conftest
11128         lt_save_allow_undefined_flag=$allow_undefined_flag
11129         allow_undefined_flag=
11130         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11131   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11132   ac_status=$?
11133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11134   test $ac_status = 0; }
11135         then
11136           archive_cmds_need_lc=no
11137         else
11138           archive_cmds_need_lc=yes
11139         fi
11140         allow_undefined_flag=$lt_save_allow_undefined_flag
11141       else
11142         cat conftest.err 1>&5
11143       fi
11144       $RM conftest*
11145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11146 $as_echo "$archive_cmds_need_lc" >&6; }
11147       ;;
11148     esac
11149   fi
11150   ;;
11151 esac
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11310 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11311
11312 if test "$GCC" = yes; then
11313   case $host_os in
11314     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11315     *) lt_awk_arg="/^libraries:/" ;;
11316   esac
11317   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11318   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11319     # if the path contains ";" then we assume it to be the separator
11320     # otherwise default to the standard path separator (i.e. ":") - it is
11321     # assumed that no part of a normal pathname contains ";" but that should
11322     # okay in the real world where ";" in dirpaths is itself problematic.
11323     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11324   else
11325     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11326   fi
11327   # Ok, now we have the path, separated by spaces, we can step through it
11328   # and add multilib dir if necessary.
11329   lt_tmp_lt_search_path_spec=
11330   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11331   for lt_sys_path in $lt_search_path_spec; do
11332     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11333       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11334     else
11335       test -d "$lt_sys_path" && \
11336         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11337     fi
11338   done
11339   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11340 BEGIN {RS=" "; FS="/|\n";} {
11341   lt_foo="";
11342   lt_count=0;
11343   for (lt_i = NF; lt_i > 0; lt_i--) {
11344     if ($lt_i != "" && $lt_i != ".") {
11345       if ($lt_i == "..") {
11346         lt_count++;
11347       } else {
11348         if (lt_count == 0) {
11349           lt_foo="/" $lt_i lt_foo;
11350         } else {
11351           lt_count--;
11352         }
11353       }
11354     }
11355   }
11356   if (lt_foo != "") { lt_freq[lt_foo]++; }
11357   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11358 }'`
11359   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11360 else
11361   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11362 fi
11363 library_names_spec=
11364 libname_spec='lib$name'
11365 soname_spec=
11366 shrext_cmds=".so"
11367 postinstall_cmds=
11368 postuninstall_cmds=
11369 finish_cmds=
11370 finish_eval=
11371 shlibpath_var=
11372 shlibpath_overrides_runpath=unknown
11373 version_type=none
11374 dynamic_linker="$host_os ld.so"
11375 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11376 need_lib_prefix=unknown
11377 hardcode_into_libs=no
11378
11379 # when you set need_version to no, make sure it does not cause -set_version
11380 # flags to be left without arguments
11381 need_version=unknown
11382
11383 case $host_os in
11384 aix3*)
11385   version_type=linux
11386   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11387   shlibpath_var=LIBPATH
11388
11389   # AIX 3 has no versioning support, so we append a major version to the name.
11390   soname_spec='${libname}${release}${shared_ext}$major'
11391   ;;
11392
11393 aix[4-9]*)
11394   version_type=linux
11395   need_lib_prefix=no
11396   need_version=no
11397   hardcode_into_libs=yes
11398   if test "$host_cpu" = ia64; then
11399     # AIX 5 supports IA64
11400     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11401     shlibpath_var=LD_LIBRARY_PATH
11402   else
11403     # With GCC up to 2.95.x, collect2 would create an import file
11404     # for dependence libraries.  The import file would start with
11405     # the line `#! .'.  This would cause the generated library to
11406     # depend on `.', always an invalid library.  This was fixed in
11407     # development snapshots of GCC prior to 3.0.
11408     case $host_os in
11409       aix4 | aix4.[01] | aix4.[01].*)
11410       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11411            echo ' yes '
11412            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11413         :
11414       else
11415         can_build_shared=no
11416       fi
11417       ;;
11418     esac
11419     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11420     # soname into executable. Probably we can add versioning support to
11421     # collect2, so additional links can be useful in future.
11422     if test "$aix_use_runtimelinking" = yes; then
11423       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11424       # instead of lib<name>.a to let people know that these are not
11425       # typical AIX shared libraries.
11426       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427     else
11428       # We preserve .a as extension for shared libraries through AIX4.2
11429       # and later when we are not doing run time linking.
11430       library_names_spec='${libname}${release}.a $libname.a'
11431       soname_spec='${libname}${release}${shared_ext}$major'
11432     fi
11433     shlibpath_var=LIBPATH
11434   fi
11435   ;;
11436
11437 amigaos*)
11438   case $host_cpu in
11439   powerpc)
11440     # Since July 2007 AmigaOS4 officially supports .so libraries.
11441     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443     ;;
11444   m68k)
11445     library_names_spec='$libname.ixlibrary $libname.a'
11446     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11447     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'
11448     ;;
11449   esac
11450   ;;
11451
11452 beos*)
11453   library_names_spec='${libname}${shared_ext}'
11454   dynamic_linker="$host_os ld.so"
11455   shlibpath_var=LIBRARY_PATH
11456   ;;
11457
11458 bsdi[45]*)
11459   version_type=linux
11460   need_version=no
11461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462   soname_spec='${libname}${release}${shared_ext}$major'
11463   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11464   shlibpath_var=LD_LIBRARY_PATH
11465   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11466   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11467   # the default ld.so.conf also contains /usr/contrib/lib and
11468   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11469   # libtool to hard-code these into programs
11470   ;;
11471
11472 cygwin* | mingw* | pw32* | cegcc*)
11473   version_type=windows
11474   shrext_cmds=".dll"
11475   need_version=no
11476   need_lib_prefix=no
11477
11478   case $GCC,$host_os in
11479   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11480     library_names_spec='$libname.dll.a'
11481     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11482     postinstall_cmds='base_file=`basename \${file}`~
11483       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11484       dldir=$destdir/`dirname \$dlpath`~
11485       test -d \$dldir || mkdir -p \$dldir~
11486       $install_prog $dir/$dlname \$dldir/$dlname~
11487       chmod a+x \$dldir/$dlname~
11488       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11489         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11490       fi'
11491     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11492       dlpath=$dir/\$dldll~
11493        $RM \$dlpath'
11494     shlibpath_overrides_runpath=yes
11495
11496     case $host_os in
11497     cygwin*)
11498       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11499       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11500       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11501       ;;
11502     mingw* | cegcc*)
11503       # MinGW DLLs use traditional 'lib' prefix
11504       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11505       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11506       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11507         # It is most probably a Windows format PATH printed by
11508         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11509         # path with ; separators, and with drive letters. We can handle the
11510         # drive letters (cygwin fileutils understands them), so leave them,
11511         # especially as we might pass files found there to a mingw objdump,
11512         # which wouldn't understand a cygwinified path. Ahh.
11513         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11514       else
11515         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11516       fi
11517       ;;
11518     pw32*)
11519       # pw32 DLLs use 'pw' prefix rather than 'lib'
11520       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11521       ;;
11522     esac
11523     ;;
11524
11525   *)
11526     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11527     ;;
11528   esac
11529   dynamic_linker='Win32 ld.exe'
11530   # FIXME: first we should search . and the directory the executable is in
11531   shlibpath_var=PATH
11532   ;;
11533
11534 darwin* | rhapsody*)
11535   dynamic_linker="$host_os dyld"
11536   version_type=darwin
11537   need_lib_prefix=no
11538   need_version=no
11539   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11540   soname_spec='${libname}${release}${major}$shared_ext'
11541   shlibpath_overrides_runpath=yes
11542   shlibpath_var=DYLD_LIBRARY_PATH
11543   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11544
11545   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11546   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11547   ;;
11548
11549 dgux*)
11550   version_type=linux
11551   need_lib_prefix=no
11552   need_version=no
11553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11554   soname_spec='${libname}${release}${shared_ext}$major'
11555   shlibpath_var=LD_LIBRARY_PATH
11556   ;;
11557
11558 freebsd1*)
11559   dynamic_linker=no
11560   ;;
11561
11562 freebsd* | dragonfly*)
11563   # DragonFly does not have aout.  When/if they implement a new
11564   # versioning mechanism, adjust this.
11565   if test -x /usr/bin/objformat; then
11566     objformat=`/usr/bin/objformat`
11567   else
11568     case $host_os in
11569     freebsd[123]*) objformat=aout ;;
11570     *) objformat=elf ;;
11571     esac
11572   fi
11573   version_type=freebsd-$objformat
11574   case $version_type in
11575     freebsd-elf*)
11576       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11577       need_version=no
11578       need_lib_prefix=no
11579       ;;
11580     freebsd-*)
11581       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11582       need_version=yes
11583       ;;
11584   esac
11585   shlibpath_var=LD_LIBRARY_PATH
11586   case $host_os in
11587   freebsd2*)
11588     shlibpath_overrides_runpath=yes
11589     ;;
11590   freebsd3.[01]* | freebsdelf3.[01]*)
11591     shlibpath_overrides_runpath=yes
11592     hardcode_into_libs=yes
11593     ;;
11594   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11595   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11596     shlibpath_overrides_runpath=no
11597     hardcode_into_libs=yes
11598     ;;
11599   *) # from 4.6 on, and DragonFly
11600     shlibpath_overrides_runpath=yes
11601     hardcode_into_libs=yes
11602     ;;
11603   esac
11604   ;;
11605
11606 gnu*)
11607   version_type=linux
11608   need_lib_prefix=no
11609   need_version=no
11610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11611   soname_spec='${libname}${release}${shared_ext}$major'
11612   shlibpath_var=LD_LIBRARY_PATH
11613   hardcode_into_libs=yes
11614   ;;
11615
11616 hpux9* | hpux10* | hpux11*)
11617   # Give a soname corresponding to the major version so that dld.sl refuses to
11618   # link against other versions.
11619   version_type=sunos
11620   need_lib_prefix=no
11621   need_version=no
11622   case $host_cpu in
11623   ia64*)
11624     shrext_cmds='.so'
11625     hardcode_into_libs=yes
11626     dynamic_linker="$host_os dld.so"
11627     shlibpath_var=LD_LIBRARY_PATH
11628     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630     soname_spec='${libname}${release}${shared_ext}$major'
11631     if test "X$HPUX_IA64_MODE" = X32; then
11632       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11633     else
11634       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11635     fi
11636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11637     ;;
11638   hppa*64*)
11639     shrext_cmds='.sl'
11640     hardcode_into_libs=yes
11641     dynamic_linker="$host_os dld.sl"
11642     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11643     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645     soname_spec='${libname}${release}${shared_ext}$major'
11646     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11647     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11648     ;;
11649   *)
11650     shrext_cmds='.sl'
11651     dynamic_linker="$host_os dld.sl"
11652     shlibpath_var=SHLIB_PATH
11653     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655     soname_spec='${libname}${release}${shared_ext}$major'
11656     ;;
11657   esac
11658   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11659   postinstall_cmds='chmod 555 $lib'
11660   ;;
11661
11662 interix[3-9]*)
11663   version_type=linux
11664   need_lib_prefix=no
11665   need_version=no
11666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11667   soname_spec='${libname}${release}${shared_ext}$major'
11668   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11669   shlibpath_var=LD_LIBRARY_PATH
11670   shlibpath_overrides_runpath=no
11671   hardcode_into_libs=yes
11672   ;;
11673
11674 irix5* | irix6* | nonstopux*)
11675   case $host_os in
11676     nonstopux*) version_type=nonstopux ;;
11677     *)
11678         if test "$lt_cv_prog_gnu_ld" = yes; then
11679                 version_type=linux
11680         else
11681                 version_type=irix
11682         fi ;;
11683   esac
11684   need_lib_prefix=no
11685   need_version=no
11686   soname_spec='${libname}${release}${shared_ext}$major'
11687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11688   case $host_os in
11689   irix5* | nonstopux*)
11690     libsuff= shlibsuff=
11691     ;;
11692   *)
11693     case $LD in # libtool.m4 will add one of these switches to LD
11694     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11695       libsuff= shlibsuff= libmagic=32-bit;;
11696     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11697       libsuff=32 shlibsuff=N32 libmagic=N32;;
11698     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11699       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11700     *) libsuff= shlibsuff= libmagic=never-match;;
11701     esac
11702     ;;
11703   esac
11704   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11705   shlibpath_overrides_runpath=no
11706   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11707   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11708   hardcode_into_libs=yes
11709   ;;
11710
11711 # No shared lib support for Linux oldld, aout, or coff.
11712 linux*oldld* | linux*aout* | linux*coff*)
11713   dynamic_linker=no
11714   ;;
11715
11716 # This must be Linux ELF.
11717 linux* | k*bsd*-gnu)
11718   version_type=linux
11719   need_lib_prefix=no
11720   need_version=no
11721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11722   soname_spec='${libname}${release}${shared_ext}$major'
11723   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11724   shlibpath_var=LD_LIBRARY_PATH
11725   shlibpath_overrides_runpath=no
11726   # Some binutils ld are patched to set DT_RUNPATH
11727   save_LDFLAGS=$LDFLAGS
11728   save_libdir=$libdir
11729   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11730        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h.  */
11733
11734 int
11735 main ()
11736 {
11737
11738   ;
11739   return 0;
11740 }
11741 _ACEOF
11742 if ac_fn_c_try_link "$LINENO"; then :
11743   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11744   shlibpath_overrides_runpath=yes
11745 fi
11746 fi
11747 rm -f core conftest.err conftest.$ac_objext \
11748     conftest$ac_exeext conftest.$ac_ext
11749   LDFLAGS=$save_LDFLAGS
11750   libdir=$save_libdir
11751
11752   # This implies no fast_install, which is unacceptable.
11753   # Some rework will be needed to allow for fast_install
11754   # before this can be enabled.
11755   hardcode_into_libs=yes
11756
11757   # Append ld.so.conf contents to the search path
11758   if test -f /etc/ld.so.conf; then
11759     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' ' '`
11760     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11761   fi
11762
11763   # We used to test for /lib/ld.so.1 and disable shared libraries on
11764   # powerpc, because MkLinux only supported shared libraries with the
11765   # GNU dynamic linker.  Since this was broken with cross compilers,
11766   # most powerpc-linux boxes support dynamic linking these days and
11767   # people can always --disable-shared, the test was removed, and we
11768   # assume the GNU/Linux dynamic linker is in use.
11769   dynamic_linker='GNU/Linux ld.so'
11770   ;;
11771
11772 netbsd*)
11773   version_type=sunos
11774   need_lib_prefix=no
11775   need_version=no
11776   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11777     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11778     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11779     dynamic_linker='NetBSD (a.out) ld.so'
11780   else
11781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11782     soname_spec='${libname}${release}${shared_ext}$major'
11783     dynamic_linker='NetBSD ld.elf_so'
11784   fi
11785   shlibpath_var=LD_LIBRARY_PATH
11786   shlibpath_overrides_runpath=yes
11787   hardcode_into_libs=yes
11788   ;;
11789
11790 newsos6)
11791   version_type=linux
11792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793   shlibpath_var=LD_LIBRARY_PATH
11794   shlibpath_overrides_runpath=yes
11795   ;;
11796
11797 *nto* | *qnx*)
11798   version_type=qnx
11799   need_lib_prefix=no
11800   need_version=no
11801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802   soname_spec='${libname}${release}${shared_ext}$major'
11803   shlibpath_var=LD_LIBRARY_PATH
11804   shlibpath_overrides_runpath=no
11805   hardcode_into_libs=yes
11806   dynamic_linker='ldqnx.so'
11807   ;;
11808
11809 openbsd*)
11810   version_type=sunos
11811   sys_lib_dlsearch_path_spec="/usr/lib"
11812   need_lib_prefix=no
11813   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11814   case $host_os in
11815     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11816     *)                          need_version=no  ;;
11817   esac
11818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11819   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11820   shlibpath_var=LD_LIBRARY_PATH
11821   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11822     case $host_os in
11823       openbsd2.[89] | openbsd2.[89].*)
11824         shlibpath_overrides_runpath=no
11825         ;;
11826       *)
11827         shlibpath_overrides_runpath=yes
11828         ;;
11829       esac
11830   else
11831     shlibpath_overrides_runpath=yes
11832   fi
11833   ;;
11834
11835 os2*)
11836   libname_spec='$name'
11837   shrext_cmds=".dll"
11838   need_lib_prefix=no
11839   library_names_spec='$libname${shared_ext} $libname.a'
11840   dynamic_linker='OS/2 ld.exe'
11841   shlibpath_var=LIBPATH
11842   ;;
11843
11844 osf3* | osf4* | osf5*)
11845   version_type=osf
11846   need_lib_prefix=no
11847   need_version=no
11848   soname_spec='${libname}${release}${shared_ext}$major'
11849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850   shlibpath_var=LD_LIBRARY_PATH
11851   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11852   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11853   ;;
11854
11855 rdos*)
11856   dynamic_linker=no
11857   ;;
11858
11859 solaris*)
11860   version_type=linux
11861   need_lib_prefix=no
11862   need_version=no
11863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864   soname_spec='${libname}${release}${shared_ext}$major'
11865   shlibpath_var=LD_LIBRARY_PATH
11866   shlibpath_overrides_runpath=yes
11867   hardcode_into_libs=yes
11868   # ldd complains unless libraries are executable
11869   postinstall_cmds='chmod +x $lib'
11870   ;;
11871
11872 sunos4*)
11873   version_type=sunos
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11875   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11876   shlibpath_var=LD_LIBRARY_PATH
11877   shlibpath_overrides_runpath=yes
11878   if test "$with_gnu_ld" = yes; then
11879     need_lib_prefix=no
11880   fi
11881   need_version=yes
11882   ;;
11883
11884 sysv4 | sysv4.3*)
11885   version_type=linux
11886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887   soname_spec='${libname}${release}${shared_ext}$major'
11888   shlibpath_var=LD_LIBRARY_PATH
11889   case $host_vendor in
11890     sni)
11891       shlibpath_overrides_runpath=no
11892       need_lib_prefix=no
11893       runpath_var=LD_RUN_PATH
11894       ;;
11895     siemens)
11896       need_lib_prefix=no
11897       ;;
11898     motorola)
11899       need_lib_prefix=no
11900       need_version=no
11901       shlibpath_overrides_runpath=no
11902       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11903       ;;
11904   esac
11905   ;;
11906
11907 sysv4*MP*)
11908   if test -d /usr/nec ;then
11909     version_type=linux
11910     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11911     soname_spec='$libname${shared_ext}.$major'
11912     shlibpath_var=LD_LIBRARY_PATH
11913   fi
11914   ;;
11915
11916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11917   version_type=freebsd-elf
11918   need_lib_prefix=no
11919   need_version=no
11920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11921   soname_spec='${libname}${release}${shared_ext}$major'
11922   shlibpath_var=LD_LIBRARY_PATH
11923   shlibpath_overrides_runpath=yes
11924   hardcode_into_libs=yes
11925   if test "$with_gnu_ld" = yes; then
11926     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11927   else
11928     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11929     case $host_os in
11930       sco3.2v5*)
11931         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11932         ;;
11933     esac
11934   fi
11935   sys_lib_dlsearch_path_spec='/usr/lib'
11936   ;;
11937
11938 tpf*)
11939   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11940   version_type=linux
11941   need_lib_prefix=no
11942   need_version=no
11943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944   shlibpath_var=LD_LIBRARY_PATH
11945   shlibpath_overrides_runpath=no
11946   hardcode_into_libs=yes
11947   ;;
11948
11949 uts4*)
11950   version_type=linux
11951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952   soname_spec='${libname}${release}${shared_ext}$major'
11953   shlibpath_var=LD_LIBRARY_PATH
11954   ;;
11955
11956 *)
11957   dynamic_linker=no
11958   ;;
11959 esac
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11961 $as_echo "$dynamic_linker" >&6; }
11962 test "$dynamic_linker" = no && can_build_shared=no
11963
11964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11965 if test "$GCC" = yes; then
11966   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11967 fi
11968
11969 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11970   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11971 fi
11972 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11973   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11974 fi
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12063 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12064 hardcode_action=
12065 if test -n "$hardcode_libdir_flag_spec" ||
12066    test -n "$runpath_var" ||
12067    test "X$hardcode_automatic" = "Xyes" ; then
12068
12069   # We can hardcode non-existent directories.
12070   if test "$hardcode_direct" != no &&
12071      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12072      # have to relink, otherwise we might link with an installed library
12073      # when we should be linking with a yet-to-be-installed one
12074      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12075      test "$hardcode_minus_L" != no; then
12076     # Linking always hardcodes the temporary library directory.
12077     hardcode_action=relink
12078   else
12079     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12080     hardcode_action=immediate
12081   fi
12082 else
12083   # We cannot hardcode anything, or else we can only hardcode existing
12084   # directories.
12085   hardcode_action=unsupported
12086 fi
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12088 $as_echo "$hardcode_action" >&6; }
12089
12090 if test "$hardcode_action" = relink ||
12091    test "$inherit_rpath" = yes; then
12092   # Fast installation is not supported
12093   enable_fast_install=no
12094 elif test "$shlibpath_overrides_runpath" = yes ||
12095      test "$enable_shared" = no; then
12096   # Fast installation is not necessary
12097   enable_fast_install=needless
12098 fi
12099
12100
12101
12102
12103
12104
12105   if test "x$enable_dlopen" != xyes; then
12106   enable_dlopen=unknown
12107   enable_dlopen_self=unknown
12108   enable_dlopen_self_static=unknown
12109 else
12110   lt_cv_dlopen=no
12111   lt_cv_dlopen_libs=
12112
12113   case $host_os in
12114   beos*)
12115     lt_cv_dlopen="load_add_on"
12116     lt_cv_dlopen_libs=
12117     lt_cv_dlopen_self=yes
12118     ;;
12119
12120   mingw* | pw32* | cegcc*)
12121     lt_cv_dlopen="LoadLibrary"
12122     lt_cv_dlopen_libs=
12123     ;;
12124
12125   cygwin*)
12126     lt_cv_dlopen="dlopen"
12127     lt_cv_dlopen_libs=
12128     ;;
12129
12130   darwin*)
12131   # if libdl is installed we need to link against it
12132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12133 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12134 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12135   $as_echo_n "(cached) " >&6
12136 else
12137   ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-ldl  $LIBS"
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h.  */
12141
12142 /* Override any GCC internal prototype to avoid an error.
12143    Use char because int might match the return type of a GCC
12144    builtin and then its argument prototype would still apply.  */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char dlopen ();
12149 int
12150 main ()
12151 {
12152 return dlopen ();
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_link "$LINENO"; then :
12158   ac_cv_lib_dl_dlopen=yes
12159 else
12160   ac_cv_lib_dl_dlopen=no
12161 fi
12162 rm -f core conftest.err conftest.$ac_objext \
12163     conftest$ac_exeext conftest.$ac_ext
12164 LIBS=$ac_check_lib_save_LIBS
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12167 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12168 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12169   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12170 else
12171
12172     lt_cv_dlopen="dyld"
12173     lt_cv_dlopen_libs=
12174     lt_cv_dlopen_self=yes
12175
12176 fi
12177
12178     ;;
12179
12180   *)
12181     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12182 if test "x$ac_cv_func_shl_load" = x""yes; then :
12183   lt_cv_dlopen="shl_load"
12184 else
12185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12186 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12187 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12188   $as_echo_n "(cached) " >&6
12189 else
12190   ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-ldld  $LIBS"
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h.  */
12194
12195 /* Override any GCC internal prototype to avoid an error.
12196    Use char because int might match the return type of a GCC
12197    builtin and then its argument prototype would still apply.  */
12198 #ifdef __cplusplus
12199 extern "C"
12200 #endif
12201 char shl_load ();
12202 int
12203 main ()
12204 {
12205 return shl_load ();
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 if ac_fn_c_try_link "$LINENO"; then :
12211   ac_cv_lib_dld_shl_load=yes
12212 else
12213   ac_cv_lib_dld_shl_load=no
12214 fi
12215 rm -f core conftest.err conftest.$ac_objext \
12216     conftest$ac_exeext conftest.$ac_ext
12217 LIBS=$ac_check_lib_save_LIBS
12218 fi
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12220 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12221 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12222   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12223 else
12224   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12225 if test "x$ac_cv_func_dlopen" = x""yes; then :
12226   lt_cv_dlopen="dlopen"
12227 else
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12229 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12230 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12231   $as_echo_n "(cached) " >&6
12232 else
12233   ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-ldl  $LIBS"
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h.  */
12237
12238 /* Override any GCC internal prototype to avoid an error.
12239    Use char because int might match the return type of a GCC
12240    builtin and then its argument prototype would still apply.  */
12241 #ifdef __cplusplus
12242 extern "C"
12243 #endif
12244 char dlopen ();
12245 int
12246 main ()
12247 {
12248 return dlopen ();
12249   ;
12250   return 0;
12251 }
12252 _ACEOF
12253 if ac_fn_c_try_link "$LINENO"; then :
12254   ac_cv_lib_dl_dlopen=yes
12255 else
12256   ac_cv_lib_dl_dlopen=no
12257 fi
12258 rm -f core conftest.err conftest.$ac_objext \
12259     conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12261 fi
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12263 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12264 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12265   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12266 else
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12268 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12269 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12270   $as_echo_n "(cached) " >&6
12271 else
12272   ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-lsvld  $LIBS"
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h.  */
12276
12277 /* Override any GCC internal prototype to avoid an error.
12278    Use char because int might match the return type of a GCC
12279    builtin and then its argument prototype would still apply.  */
12280 #ifdef __cplusplus
12281 extern "C"
12282 #endif
12283 char dlopen ();
12284 int
12285 main ()
12286 {
12287 return dlopen ();
12288   ;
12289   return 0;
12290 }
12291 _ACEOF
12292 if ac_fn_c_try_link "$LINENO"; then :
12293   ac_cv_lib_svld_dlopen=yes
12294 else
12295   ac_cv_lib_svld_dlopen=no
12296 fi
12297 rm -f core conftest.err conftest.$ac_objext \
12298     conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12302 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12303 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12304   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12305 else
12306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12307 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12308 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12309   $as_echo_n "(cached) " >&6
12310 else
12311   ac_check_lib_save_LIBS=$LIBS
12312 LIBS="-ldld  $LIBS"
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h.  */
12315
12316 /* Override any GCC internal prototype to avoid an error.
12317    Use char because int might match the return type of a GCC
12318    builtin and then its argument prototype would still apply.  */
12319 #ifdef __cplusplus
12320 extern "C"
12321 #endif
12322 char dld_link ();
12323 int
12324 main ()
12325 {
12326 return dld_link ();
12327   ;
12328   return 0;
12329 }
12330 _ACEOF
12331 if ac_fn_c_try_link "$LINENO"; then :
12332   ac_cv_lib_dld_dld_link=yes
12333 else
12334   ac_cv_lib_dld_dld_link=no
12335 fi
12336 rm -f core conftest.err conftest.$ac_objext \
12337     conftest$ac_exeext conftest.$ac_ext
12338 LIBS=$ac_check_lib_save_LIBS
12339 fi
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12341 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12342 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12343   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12344 fi
12345
12346
12347 fi
12348
12349
12350 fi
12351
12352
12353 fi
12354
12355
12356 fi
12357
12358
12359 fi
12360
12361     ;;
12362   esac
12363
12364   if test "x$lt_cv_dlopen" != xno; then
12365     enable_dlopen=yes
12366   else
12367     enable_dlopen=no
12368   fi
12369
12370   case $lt_cv_dlopen in
12371   dlopen)
12372     save_CPPFLAGS="$CPPFLAGS"
12373     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12374
12375     save_LDFLAGS="$LDFLAGS"
12376     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12377
12378     save_LIBS="$LIBS"
12379     LIBS="$lt_cv_dlopen_libs $LIBS"
12380
12381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12382 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12383 if test "${lt_cv_dlopen_self+set}" = set; then :
12384   $as_echo_n "(cached) " >&6
12385 else
12386           if test "$cross_compiling" = yes; then :
12387   lt_cv_dlopen_self=cross
12388 else
12389   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12390   lt_status=$lt_dlunknown
12391   cat > conftest.$ac_ext <<_LT_EOF
12392 #line 12392 "configure"
12393 #include "confdefs.h"
12394
12395 #if HAVE_DLFCN_H
12396 #include <dlfcn.h>
12397 #endif
12398
12399 #include <stdio.h>
12400
12401 #ifdef RTLD_GLOBAL
12402 #  define LT_DLGLOBAL           RTLD_GLOBAL
12403 #else
12404 #  ifdef DL_GLOBAL
12405 #    define LT_DLGLOBAL         DL_GLOBAL
12406 #  else
12407 #    define LT_DLGLOBAL         0
12408 #  endif
12409 #endif
12410
12411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12412    find out it does not work in some platform. */
12413 #ifndef LT_DLLAZY_OR_NOW
12414 #  ifdef RTLD_LAZY
12415 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12416 #  else
12417 #    ifdef DL_LAZY
12418 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12419 #    else
12420 #      ifdef RTLD_NOW
12421 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12422 #      else
12423 #        ifdef DL_NOW
12424 #          define LT_DLLAZY_OR_NOW      DL_NOW
12425 #        else
12426 #          define LT_DLLAZY_OR_NOW      0
12427 #        endif
12428 #      endif
12429 #    endif
12430 #  endif
12431 #endif
12432
12433 void fnord() { int i=42;}
12434 int main ()
12435 {
12436   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12437   int status = $lt_dlunknown;
12438
12439   if (self)
12440     {
12441       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12442       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12443       /* dlclose (self); */
12444     }
12445   else
12446     puts (dlerror ());
12447
12448   return status;
12449 }
12450 _LT_EOF
12451   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12452   (eval $ac_link) 2>&5
12453   ac_status=$?
12454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12455   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12456     (./conftest; exit; ) >&5 2>/dev/null
12457     lt_status=$?
12458     case x$lt_status in
12459       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12460       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12461       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12462     esac
12463   else :
12464     # compilation failed
12465     lt_cv_dlopen_self=no
12466   fi
12467 fi
12468 rm -fr conftest*
12469
12470
12471 fi
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12473 $as_echo "$lt_cv_dlopen_self" >&6; }
12474
12475     if test "x$lt_cv_dlopen_self" = xyes; then
12476       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12477       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12478 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12479 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12480   $as_echo_n "(cached) " >&6
12481 else
12482           if test "$cross_compiling" = yes; then :
12483   lt_cv_dlopen_self_static=cross
12484 else
12485   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12486   lt_status=$lt_dlunknown
12487   cat > conftest.$ac_ext <<_LT_EOF
12488 #line 12488 "configure"
12489 #include "confdefs.h"
12490
12491 #if HAVE_DLFCN_H
12492 #include <dlfcn.h>
12493 #endif
12494
12495 #include <stdio.h>
12496
12497 #ifdef RTLD_GLOBAL
12498 #  define LT_DLGLOBAL           RTLD_GLOBAL
12499 #else
12500 #  ifdef DL_GLOBAL
12501 #    define LT_DLGLOBAL         DL_GLOBAL
12502 #  else
12503 #    define LT_DLGLOBAL         0
12504 #  endif
12505 #endif
12506
12507 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12508    find out it does not work in some platform. */
12509 #ifndef LT_DLLAZY_OR_NOW
12510 #  ifdef RTLD_LAZY
12511 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12512 #  else
12513 #    ifdef DL_LAZY
12514 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12515 #    else
12516 #      ifdef RTLD_NOW
12517 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12518 #      else
12519 #        ifdef DL_NOW
12520 #          define LT_DLLAZY_OR_NOW      DL_NOW
12521 #        else
12522 #          define LT_DLLAZY_OR_NOW      0
12523 #        endif
12524 #      endif
12525 #    endif
12526 #  endif
12527 #endif
12528
12529 void fnord() { int i=42;}
12530 int main ()
12531 {
12532   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12533   int status = $lt_dlunknown;
12534
12535   if (self)
12536     {
12537       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12538       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12539       /* dlclose (self); */
12540     }
12541   else
12542     puts (dlerror ());
12543
12544   return status;
12545 }
12546 _LT_EOF
12547   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12548   (eval $ac_link) 2>&5
12549   ac_status=$?
12550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12551   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12552     (./conftest; exit; ) >&5 2>/dev/null
12553     lt_status=$?
12554     case x$lt_status in
12555       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12556       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12557       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12558     esac
12559   else :
12560     # compilation failed
12561     lt_cv_dlopen_self_static=no
12562   fi
12563 fi
12564 rm -fr conftest*
12565
12566
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12569 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12570     fi
12571
12572     CPPFLAGS="$save_CPPFLAGS"
12573     LDFLAGS="$save_LDFLAGS"
12574     LIBS="$save_LIBS"
12575     ;;
12576   esac
12577
12578   case $lt_cv_dlopen_self in
12579   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12580   *) enable_dlopen_self=unknown ;;
12581   esac
12582
12583   case $lt_cv_dlopen_self_static in
12584   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12585   *) enable_dlopen_self_static=unknown ;;
12586   esac
12587 fi
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605 striplib=
12606 old_striplib=
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12608 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12609 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12610   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12611   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12613 $as_echo "yes" >&6; }
12614 else
12615 # FIXME - insert some real tests, host_os isn't really good enough
12616   case $host_os in
12617   darwin*)
12618     if test -n "$STRIP" ; then
12619       striplib="$STRIP -x"
12620       old_striplib="$STRIP -S"
12621       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622 $as_echo "yes" >&6; }
12623     else
12624       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626     fi
12627     ;;
12628   *)
12629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12631     ;;
12632   esac
12633 fi
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646   # Report which library types will actually be built
12647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12648 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12650 $as_echo "$can_build_shared" >&6; }
12651
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12653 $as_echo_n "checking whether to build shared libraries... " >&6; }
12654   test "$can_build_shared" = "no" && enable_shared=no
12655
12656   # On AIX, shared libraries and static libraries use the same namespace, and
12657   # are all built from PIC.
12658   case $host_os in
12659   aix3*)
12660     test "$enable_shared" = yes && enable_static=no
12661     if test -n "$RANLIB"; then
12662       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12663       postinstall_cmds='$RANLIB $lib'
12664     fi
12665     ;;
12666
12667   aix[4-9]*)
12668     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12669       test "$enable_shared" = yes && enable_static=no
12670     fi
12671     ;;
12672   esac
12673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12674 $as_echo "$enable_shared" >&6; }
12675
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12677 $as_echo_n "checking whether to build static libraries... " >&6; }
12678   # Make sure either enable_shared or enable_static is yes.
12679   test "$enable_shared" = yes || enable_static=yes
12680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12681 $as_echo "$enable_static" >&6; }
12682
12683
12684
12685
12686 fi
12687 ac_ext=c
12688 ac_cpp='$CPP $CPPFLAGS'
12689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12692
12693 CC="$lt_save_CC"
12694
12695
12696 ac_ext=cpp
12697 ac_cpp='$CXXCPP $CPPFLAGS'
12698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12701
12702 archive_cmds_need_lc_CXX=no
12703 allow_undefined_flag_CXX=
12704 always_export_symbols_CXX=no
12705 archive_expsym_cmds_CXX=
12706 compiler_needs_object_CXX=no
12707 export_dynamic_flag_spec_CXX=
12708 hardcode_direct_CXX=no
12709 hardcode_direct_absolute_CXX=no
12710 hardcode_libdir_flag_spec_CXX=
12711 hardcode_libdir_flag_spec_ld_CXX=
12712 hardcode_libdir_separator_CXX=
12713 hardcode_minus_L_CXX=no
12714 hardcode_shlibpath_var_CXX=unsupported
12715 hardcode_automatic_CXX=no
12716 inherit_rpath_CXX=no
12717 module_cmds_CXX=
12718 module_expsym_cmds_CXX=
12719 link_all_deplibs_CXX=unknown
12720 old_archive_cmds_CXX=$old_archive_cmds
12721 no_undefined_flag_CXX=
12722 whole_archive_flag_spec_CXX=
12723 enable_shared_with_static_runtimes_CXX=no
12724
12725 # Source file extension for C++ test sources.
12726 ac_ext=cpp
12727
12728 # Object file extension for compiled C++ test sources.
12729 objext=o
12730 objext_CXX=$objext
12731
12732 # No sense in running all these tests if we already determined that
12733 # the CXX compiler isn't working.  Some variables (like enable_shared)
12734 # are currently assumed to apply to all compilers on this platform,
12735 # and will be corrupted by setting them based on a non-working compiler.
12736 if test "$_lt_caught_CXX_error" != yes; then
12737   # Code to be used in simple compile tests
12738   lt_simple_compile_test_code="int some_variable = 0;"
12739
12740   # Code to be used in simple link tests
12741   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12742
12743   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12744
12745
12746
12747
12748
12749
12750 # If no C compiler was specified, use CC.
12751 LTCC=${LTCC-"$CC"}
12752
12753 # If no C compiler flags were specified, use CFLAGS.
12754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12755
12756 # Allow CC to be a program name with arguments.
12757 compiler=$CC
12758
12759
12760   # save warnings/boilerplate of simple test code
12761   ac_outfile=conftest.$ac_objext
12762 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12763 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12764 _lt_compiler_boilerplate=`cat conftest.err`
12765 $RM conftest*
12766
12767   ac_outfile=conftest.$ac_objext
12768 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12769 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12770 _lt_linker_boilerplate=`cat conftest.err`
12771 $RM -r conftest*
12772
12773
12774   # Allow CC to be a program name with arguments.
12775   lt_save_CC=$CC
12776   lt_save_LD=$LD
12777   lt_save_GCC=$GCC
12778   GCC=$GXX
12779   lt_save_with_gnu_ld=$with_gnu_ld
12780   lt_save_path_LD=$lt_cv_path_LD
12781   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12782     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12783   else
12784     $as_unset lt_cv_prog_gnu_ld
12785   fi
12786   if test -n "${lt_cv_path_LDCXX+set}"; then
12787     lt_cv_path_LD=$lt_cv_path_LDCXX
12788   else
12789     $as_unset lt_cv_path_LD
12790   fi
12791   test -z "${LDCXX+set}" || LD=$LDCXX
12792   CC=${CXX-"c++"}
12793   compiler=$CC
12794   compiler_CXX=$CC
12795   for cc_temp in $compiler""; do
12796   case $cc_temp in
12797     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12798     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12799     \-*) ;;
12800     *) break;;
12801   esac
12802 done
12803 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12804
12805
12806   if test -n "$compiler"; then
12807     # We don't want -fno-exception when compiling C++ code, so set the
12808     # no_builtin_flag separately
12809     if test "$GXX" = yes; then
12810       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12811     else
12812       lt_prog_compiler_no_builtin_flag_CXX=
12813     fi
12814
12815     if test "$GXX" = yes; then
12816       # Set up default GNU C++ configuration
12817
12818
12819
12820 # Check whether --with-gnu-ld was given.
12821 if test "${with_gnu_ld+set}" = set; then :
12822   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12823 else
12824   with_gnu_ld=no
12825 fi
12826
12827 ac_prog=ld
12828 if test "$GCC" = yes; then
12829   # Check if gcc -print-prog-name=ld gives a path.
12830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12831 $as_echo_n "checking for ld used by $CC... " >&6; }
12832   case $host in
12833   *-*-mingw*)
12834     # gcc leaves a trailing carriage return which upsets mingw
12835     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12836   *)
12837     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12838   esac
12839   case $ac_prog in
12840     # Accept absolute paths.
12841     [\\/]* | ?:[\\/]*)
12842       re_direlt='/[^/][^/]*/\.\./'
12843       # Canonicalize the pathname of ld
12844       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12845       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12846         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12847       done
12848       test -z "$LD" && LD="$ac_prog"
12849       ;;
12850   "")
12851     # If it fails, then pretend we aren't using GCC.
12852     ac_prog=ld
12853     ;;
12854   *)
12855     # If it is relative, then search for the first ld in PATH.
12856     with_gnu_ld=unknown
12857     ;;
12858   esac
12859 elif test "$with_gnu_ld" = yes; then
12860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12861 $as_echo_n "checking for GNU ld... " >&6; }
12862 else
12863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12864 $as_echo_n "checking for non-GNU ld... " >&6; }
12865 fi
12866 if test "${lt_cv_path_LD+set}" = set; then :
12867   $as_echo_n "(cached) " >&6
12868 else
12869   if test -z "$LD"; then
12870   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12871   for ac_dir in $PATH; do
12872     IFS="$lt_save_ifs"
12873     test -z "$ac_dir" && ac_dir=.
12874     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12875       lt_cv_path_LD="$ac_dir/$ac_prog"
12876       # Check to see if the program is GNU ld.  I'd rather use --version,
12877       # but apparently some variants of GNU ld only accept -v.
12878       # Break only if it was the GNU/non-GNU ld that we prefer.
12879       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12880       *GNU* | *'with BFD'*)
12881         test "$with_gnu_ld" != no && break
12882         ;;
12883       *)
12884         test "$with_gnu_ld" != yes && break
12885         ;;
12886       esac
12887     fi
12888   done
12889   IFS="$lt_save_ifs"
12890 else
12891   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12892 fi
12893 fi
12894
12895 LD="$lt_cv_path_LD"
12896 if test -n "$LD"; then
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12898 $as_echo "$LD" >&6; }
12899 else
12900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901 $as_echo "no" >&6; }
12902 fi
12903 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12905 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12906 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12907   $as_echo_n "(cached) " >&6
12908 else
12909   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12910 case `$LD -v 2>&1 </dev/null` in
12911 *GNU* | *'with BFD'*)
12912   lt_cv_prog_gnu_ld=yes
12913   ;;
12914 *)
12915   lt_cv_prog_gnu_ld=no
12916   ;;
12917 esac
12918 fi
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12920 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12921 with_gnu_ld=$lt_cv_prog_gnu_ld
12922
12923
12924
12925
12926
12927
12928
12929       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12930       # archiving commands below assume that GNU ld is being used.
12931       if test "$with_gnu_ld" = yes; then
12932         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12933         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'
12934
12935         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12936         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12937
12938         # If archive_cmds runs LD, not CC, wlarc should be empty
12939         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12940         #     investigate it a little bit more. (MM)
12941         wlarc='${wl}'
12942
12943         # ancient GNU ld didn't support --whole-archive et. al.
12944         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12945           $GREP 'no-whole-archive' > /dev/null; then
12946           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12947         else
12948           whole_archive_flag_spec_CXX=
12949         fi
12950       else
12951         with_gnu_ld=no
12952         wlarc=
12953
12954         # A generic and very simple default shared library creation
12955         # command for GNU C++ for the case where it uses the native
12956         # linker, instead of GNU ld.  If possible, this setting should
12957         # overridden to take advantage of the native linker features on
12958         # the platform it is being used on.
12959         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12960       fi
12961
12962       # Commands to make compiler produce verbose output that lists
12963       # what "hidden" libraries, object files and flags are used when
12964       # linking a shared library.
12965       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12966
12967     else
12968       GXX=no
12969       with_gnu_ld=no
12970       wlarc=
12971     fi
12972
12973     # PORTME: fill in a description of your system's C++ link characteristics
12974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12975 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12976     ld_shlibs_CXX=yes
12977     case $host_os in
12978       aix3*)
12979         # FIXME: insert proper C++ library support
12980         ld_shlibs_CXX=no
12981         ;;
12982       aix[4-9]*)
12983         if test "$host_cpu" = ia64; then
12984           # On IA64, the linker does run time linking by default, so we don't
12985           # have to do anything special.
12986           aix_use_runtimelinking=no
12987           exp_sym_flag='-Bexport'
12988           no_entry_flag=""
12989         else
12990           aix_use_runtimelinking=no
12991
12992           # Test if we are trying to use run time linking or normal
12993           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12994           # need to do runtime linking.
12995           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12996             for ld_flag in $LDFLAGS; do
12997               case $ld_flag in
12998               *-brtl*)
12999                 aix_use_runtimelinking=yes
13000                 break
13001                 ;;
13002               esac
13003             done
13004             ;;
13005           esac
13006
13007           exp_sym_flag='-bexport'
13008           no_entry_flag='-bnoentry'
13009         fi
13010
13011         # When large executables or shared objects are built, AIX ld can
13012         # have problems creating the table of contents.  If linking a library
13013         # or program results in "error TOC overflow" add -mminimal-toc to
13014         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13015         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13016
13017         archive_cmds_CXX=''
13018         hardcode_direct_CXX=yes
13019         hardcode_direct_absolute_CXX=yes
13020         hardcode_libdir_separator_CXX=':'
13021         link_all_deplibs_CXX=yes
13022         file_list_spec_CXX='${wl}-f,'
13023
13024         if test "$GXX" = yes; then
13025           case $host_os in aix4.[012]|aix4.[012].*)
13026           # We only want to do this on AIX 4.2 and lower, the check
13027           # below for broken collect2 doesn't work under 4.3+
13028           collect2name=`${CC} -print-prog-name=collect2`
13029           if test -f "$collect2name" &&
13030              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13031           then
13032             # We have reworked collect2
13033             :
13034           else
13035             # We have old collect2
13036             hardcode_direct_CXX=unsupported
13037             # It fails to find uninstalled libraries when the uninstalled
13038             # path is not listed in the libpath.  Setting hardcode_minus_L
13039             # to unsupported forces relinking
13040             hardcode_minus_L_CXX=yes
13041             hardcode_libdir_flag_spec_CXX='-L$libdir'
13042             hardcode_libdir_separator_CXX=
13043           fi
13044           esac
13045           shared_flag='-shared'
13046           if test "$aix_use_runtimelinking" = yes; then
13047             shared_flag="$shared_flag "'${wl}-G'
13048           fi
13049         else
13050           # not using gcc
13051           if test "$host_cpu" = ia64; then
13052           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13053           # chokes on -Wl,-G. The following line is correct:
13054           shared_flag='-G'
13055           else
13056             if test "$aix_use_runtimelinking" = yes; then
13057               shared_flag='${wl}-G'
13058             else
13059               shared_flag='${wl}-bM:SRE'
13060             fi
13061           fi
13062         fi
13063
13064         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13065         # It seems that -bexpall does not export symbols beginning with
13066         # underscore (_), so it is better to generate a list of symbols to
13067         # export.
13068         always_export_symbols_CXX=yes
13069         if test "$aix_use_runtimelinking" = yes; then
13070           # Warning - without using the other runtime loading flags (-brtl),
13071           # -berok will link without error, but may produce a broken library.
13072           allow_undefined_flag_CXX='-berok'
13073           # Determine the default libpath from the value encoded in an empty
13074           # executable.
13075           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h.  */
13077
13078 int
13079 main ()
13080 {
13081
13082   ;
13083   return 0;
13084 }
13085 _ACEOF
13086 if ac_fn_cxx_try_link "$LINENO"; then :
13087
13088 lt_aix_libpath_sed='
13089     /Import File Strings/,/^$/ {
13090         /^0/ {
13091             s/^0  *\(.*\)$/\1/
13092             p
13093         }
13094     }'
13095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13096 # Check for a 64-bit object if we didn't find anything.
13097 if test -z "$aix_libpath"; then
13098   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13099 fi
13100 fi
13101 rm -f core conftest.err conftest.$ac_objext \
13102     conftest$ac_exeext conftest.$ac_ext
13103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13104
13105           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13106
13107           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"
13108         else
13109           if test "$host_cpu" = ia64; then
13110             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13111             allow_undefined_flag_CXX="-z nodefs"
13112             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"
13113           else
13114             # Determine the default libpath from the value encoded in an
13115             # empty executable.
13116             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h.  */
13118
13119 int
13120 main ()
13121 {
13122
13123   ;
13124   return 0;
13125 }
13126 _ACEOF
13127 if ac_fn_cxx_try_link "$LINENO"; then :
13128
13129 lt_aix_libpath_sed='
13130     /Import File Strings/,/^$/ {
13131         /^0/ {
13132             s/^0  *\(.*\)$/\1/
13133             p
13134         }
13135     }'
13136 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13137 # Check for a 64-bit object if we didn't find anything.
13138 if test -z "$aix_libpath"; then
13139   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13140 fi
13141 fi
13142 rm -f core conftest.err conftest.$ac_objext \
13143     conftest$ac_exeext conftest.$ac_ext
13144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13145
13146             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13147             # Warning - without using the other run time loading flags,
13148             # -berok will link without error, but may produce a broken library.
13149             no_undefined_flag_CXX=' ${wl}-bernotok'
13150             allow_undefined_flag_CXX=' ${wl}-berok'
13151             # Exported symbols can be pulled into shared objects from archives
13152             whole_archive_flag_spec_CXX='$convenience'
13153             archive_cmds_need_lc_CXX=yes
13154             # This is similar to how AIX traditionally builds its shared
13155             # libraries.
13156             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'
13157           fi
13158         fi
13159         ;;
13160
13161       beos*)
13162         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13163           allow_undefined_flag_CXX=unsupported
13164           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13165           # support --undefined.  This deserves some investigation.  FIXME
13166           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13167         else
13168           ld_shlibs_CXX=no
13169         fi
13170         ;;
13171
13172       chorus*)
13173         case $cc_basename in
13174           *)
13175           # FIXME: insert proper C++ library support
13176           ld_shlibs_CXX=no
13177           ;;
13178         esac
13179         ;;
13180
13181       cygwin* | mingw* | pw32* | cegcc*)
13182         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13183         # as there is no search path for DLLs.
13184         hardcode_libdir_flag_spec_CXX='-L$libdir'
13185         allow_undefined_flag_CXX=unsupported
13186         always_export_symbols_CXX=no
13187         enable_shared_with_static_runtimes_CXX=yes
13188
13189         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13190           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'
13191           # If the export-symbols file already is a .def file (1st line
13192           # is EXPORTS), use it as is; otherwise, prepend...
13193           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13194             cp $export_symbols $output_objdir/$soname.def;
13195           else
13196             echo EXPORTS > $output_objdir/$soname.def;
13197             cat $export_symbols >> $output_objdir/$soname.def;
13198           fi~
13199           $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'
13200         else
13201           ld_shlibs_CXX=no
13202         fi
13203         ;;
13204       darwin* | rhapsody*)
13205
13206
13207   archive_cmds_need_lc_CXX=no
13208   hardcode_direct_CXX=no
13209   hardcode_automatic_CXX=yes
13210   hardcode_shlibpath_var_CXX=unsupported
13211   whole_archive_flag_spec_CXX=''
13212   link_all_deplibs_CXX=yes
13213   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13214   case $cc_basename in
13215      ifort*) _lt_dar_can_shared=yes ;;
13216      *) _lt_dar_can_shared=$GCC ;;
13217   esac
13218   if test "$_lt_dar_can_shared" = "yes"; then
13219     output_verbose_link_cmd=echo
13220     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}"
13221     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13222     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}"
13223     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}"
13224        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13225       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}"
13226       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}"
13227     fi
13228
13229   else
13230   ld_shlibs_CXX=no
13231   fi
13232
13233         ;;
13234
13235       dgux*)
13236         case $cc_basename in
13237           ec++*)
13238             # FIXME: insert proper C++ library support
13239             ld_shlibs_CXX=no
13240             ;;
13241           ghcx*)
13242             # Green Hills C++ Compiler
13243             # FIXME: insert proper C++ library support
13244             ld_shlibs_CXX=no
13245             ;;
13246           *)
13247             # FIXME: insert proper C++ library support
13248             ld_shlibs_CXX=no
13249             ;;
13250         esac
13251         ;;
13252
13253       freebsd[12]*)
13254         # C++ shared libraries reported to be fairly broken before
13255         # switch to ELF
13256         ld_shlibs_CXX=no
13257         ;;
13258
13259       freebsd-elf*)
13260         archive_cmds_need_lc_CXX=no
13261         ;;
13262
13263       freebsd* | dragonfly*)
13264         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13265         # conventions
13266         ld_shlibs_CXX=yes
13267         ;;
13268
13269       gnu*)
13270         ;;
13271
13272       hpux9*)
13273         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13274         hardcode_libdir_separator_CXX=:
13275         export_dynamic_flag_spec_CXX='${wl}-E'
13276         hardcode_direct_CXX=yes
13277         hardcode_minus_L_CXX=yes # Not in the search PATH,
13278                                              # but as the default
13279                                              # location of the library.
13280
13281         case $cc_basename in
13282           CC*)
13283             # FIXME: insert proper C++ library support
13284             ld_shlibs_CXX=no
13285             ;;
13286           aCC*)
13287             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'
13288             # Commands to make compiler produce verbose output that lists
13289             # what "hidden" libraries, object files and flags are used when
13290             # linking a shared library.
13291             #
13292             # There doesn't appear to be a way to prevent this compiler from
13293             # explicitly linking system object files so we need to strip them
13294             # from the output so that they don't get included in the library
13295             # dependencies.
13296             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'
13297             ;;
13298           *)
13299             if test "$GXX" = yes; then
13300               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'
13301             else
13302               # FIXME: insert proper C++ library support
13303               ld_shlibs_CXX=no
13304             fi
13305             ;;
13306         esac
13307         ;;
13308
13309       hpux10*|hpux11*)
13310         if test $with_gnu_ld = no; then
13311           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13312           hardcode_libdir_separator_CXX=:
13313
13314           case $host_cpu in
13315             hppa*64*|ia64*)
13316               ;;
13317             *)
13318               export_dynamic_flag_spec_CXX='${wl}-E'
13319               ;;
13320           esac
13321         fi
13322         case $host_cpu in
13323           hppa*64*|ia64*)
13324             hardcode_direct_CXX=no
13325             hardcode_shlibpath_var_CXX=no
13326             ;;
13327           *)
13328             hardcode_direct_CXX=yes
13329             hardcode_direct_absolute_CXX=yes
13330             hardcode_minus_L_CXX=yes # Not in the search PATH,
13331                                                  # but as the default
13332                                                  # location of the library.
13333             ;;
13334         esac
13335
13336         case $cc_basename in
13337           CC*)
13338             # FIXME: insert proper C++ library support
13339             ld_shlibs_CXX=no
13340             ;;
13341           aCC*)
13342             case $host_cpu in
13343               hppa*64*)
13344                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13345                 ;;
13346               ia64*)
13347                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13348                 ;;
13349               *)
13350                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13351                 ;;
13352             esac
13353             # Commands to make compiler produce verbose output that lists
13354             # what "hidden" libraries, object files and flags are used when
13355             # linking a shared library.
13356             #
13357             # There doesn't appear to be a way to prevent this compiler from
13358             # explicitly linking system object files so we need to strip them
13359             # from the output so that they don't get included in the library
13360             # dependencies.
13361             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'
13362             ;;
13363           *)
13364             if test "$GXX" = yes; then
13365               if test $with_gnu_ld = no; then
13366                 case $host_cpu in
13367                   hppa*64*)
13368                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13369                     ;;
13370                   ia64*)
13371                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13372                     ;;
13373                   *)
13374                     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'
13375                     ;;
13376                 esac
13377               fi
13378             else
13379               # FIXME: insert proper C++ library support
13380               ld_shlibs_CXX=no
13381             fi
13382             ;;
13383         esac
13384         ;;
13385
13386       interix[3-9]*)
13387         hardcode_direct_CXX=no
13388         hardcode_shlibpath_var_CXX=no
13389         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13390         export_dynamic_flag_spec_CXX='${wl}-E'
13391         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13392         # Instead, shared libraries are loaded at an image base (0x10000000 by
13393         # default) and relocated if they conflict, which is a slow very memory
13394         # consuming and fragmenting process.  To avoid this, we pick a random,
13395         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13396         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13397         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'
13398         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'
13399         ;;
13400       irix5* | irix6*)
13401         case $cc_basename in
13402           CC*)
13403             # SGI C++
13404             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'
13405
13406             # Archives containing C++ object files must be created using
13407             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13408             # necessary to make sure instantiated templates are included
13409             # in the archive.
13410             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13411             ;;
13412           *)
13413             if test "$GXX" = yes; then
13414               if test "$with_gnu_ld" = no; then
13415                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13416               else
13417                 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'
13418               fi
13419             fi
13420             link_all_deplibs_CXX=yes
13421             ;;
13422         esac
13423         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13424         hardcode_libdir_separator_CXX=:
13425         inherit_rpath_CXX=yes
13426         ;;
13427
13428       linux* | k*bsd*-gnu)
13429         case $cc_basename in
13430           KCC*)
13431             # Kuck and Associates, Inc. (KAI) C++ Compiler
13432
13433             # KCC will only create a shared library if the output file
13434             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13435             # to its proper name (with version) after linking.
13436             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'
13437             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'
13438             # Commands to make compiler produce verbose output that lists
13439             # what "hidden" libraries, object files and flags are used when
13440             # linking a shared library.
13441             #
13442             # There doesn't appear to be a way to prevent this compiler from
13443             # explicitly linking system object files so we need to strip them
13444             # from the output so that they don't get included in the library
13445             # dependencies.
13446             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'
13447
13448             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13449             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13450
13451             # Archives containing C++ object files must be created using
13452             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13453             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13454             ;;
13455           icpc* | ecpc* )
13456             # Intel C++
13457             with_gnu_ld=yes
13458             # version 8.0 and above of icpc choke on multiply defined symbols
13459             # if we add $predep_objects and $postdep_objects, however 7.1 and
13460             # earlier do not add the objects themselves.
13461             case `$CC -V 2>&1` in
13462               *"Version 7."*)
13463                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13464                 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'
13465                 ;;
13466               *)  # Version 8.0 or newer
13467                 tmp_idyn=
13468                 case $host_cpu in
13469                   ia64*) tmp_idyn=' -i_dynamic';;
13470                 esac
13471                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13472                 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'
13473                 ;;
13474             esac
13475             archive_cmds_need_lc_CXX=no
13476             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13477             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13478             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13479             ;;
13480           pgCC* | pgcpp*)
13481             # Portland Group C++ compiler
13482             case `$CC -V` in
13483             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13484               prelink_cmds_CXX='tpldir=Template.dir~
13485                 rm -rf $tpldir~
13486                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13487                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13488               old_archive_cmds_CXX='tpldir=Template.dir~
13489                 rm -rf $tpldir~
13490                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13491                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13492                 $RANLIB $oldlib'
13493               archive_cmds_CXX='tpldir=Template.dir~
13494                 rm -rf $tpldir~
13495                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13496                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13497               archive_expsym_cmds_CXX='tpldir=Template.dir~
13498                 rm -rf $tpldir~
13499                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13500                 $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'
13501               ;;
13502             *) # Version 6 will use weak symbols
13503               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13504               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'
13505               ;;
13506             esac
13507
13508             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13509             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13510             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'
13511             ;;
13512           cxx*)
13513             # Compaq C++
13514             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13515             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'
13516
13517             runpath_var=LD_RUN_PATH
13518             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13519             hardcode_libdir_separator_CXX=:
13520
13521             # Commands to make compiler produce verbose output that lists
13522             # what "hidden" libraries, object files and flags are used when
13523             # linking a shared library.
13524             #
13525             # There doesn't appear to be a way to prevent this compiler from
13526             # explicitly linking system object files so we need to strip them
13527             # from the output so that they don't get included in the library
13528             # dependencies.
13529             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'
13530             ;;
13531           xl*)
13532             # IBM XL 8.0 on PPC, with GNU ld
13533             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13534             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13535             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13536             if test "x$supports_anon_versioning" = xyes; then
13537               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13538                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13539                 echo "local: *; };" >> $output_objdir/$libname.ver~
13540                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13541             fi
13542             ;;
13543           *)
13544             case `$CC -V 2>&1 | sed 5q` in
13545             *Sun\ C*)
13546               # Sun C++ 5.9
13547               no_undefined_flag_CXX=' -zdefs'
13548               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13549               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'
13550               hardcode_libdir_flag_spec_CXX='-R$libdir'
13551               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'
13552               compiler_needs_object_CXX=yes
13553
13554               # Not sure whether something based on
13555               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13556               # would be better.
13557               output_verbose_link_cmd='echo'
13558
13559               # Archives containing C++ object files must be created using
13560               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13561               # necessary to make sure instantiated templates are included
13562               # in the archive.
13563               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13564               ;;
13565             esac
13566             ;;
13567         esac
13568         ;;
13569
13570       lynxos*)
13571         # FIXME: insert proper C++ library support
13572         ld_shlibs_CXX=no
13573         ;;
13574
13575       m88k*)
13576         # FIXME: insert proper C++ library support
13577         ld_shlibs_CXX=no
13578         ;;
13579
13580       mvs*)
13581         case $cc_basename in
13582           cxx*)
13583             # FIXME: insert proper C++ library support
13584             ld_shlibs_CXX=no
13585             ;;
13586           *)
13587             # FIXME: insert proper C++ library support
13588             ld_shlibs_CXX=no
13589             ;;
13590         esac
13591         ;;
13592
13593       netbsd*)
13594         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13595           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13596           wlarc=
13597           hardcode_libdir_flag_spec_CXX='-R$libdir'
13598           hardcode_direct_CXX=yes
13599           hardcode_shlibpath_var_CXX=no
13600         fi
13601         # Workaround some broken pre-1.5 toolchains
13602         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13603         ;;
13604
13605       *nto* | *qnx*)
13606         ld_shlibs_CXX=yes
13607         ;;
13608
13609       openbsd2*)
13610         # C++ shared libraries are fairly broken
13611         ld_shlibs_CXX=no
13612         ;;
13613
13614       openbsd*)
13615         if test -f /usr/libexec/ld.so; then
13616           hardcode_direct_CXX=yes
13617           hardcode_shlibpath_var_CXX=no
13618           hardcode_direct_absolute_CXX=yes
13619           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13620           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13621           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13622             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13623             export_dynamic_flag_spec_CXX='${wl}-E'
13624             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13625           fi
13626           output_verbose_link_cmd=echo
13627         else
13628           ld_shlibs_CXX=no
13629         fi
13630         ;;
13631
13632       osf3* | osf4* | osf5*)
13633         case $cc_basename in
13634           KCC*)
13635             # Kuck and Associates, Inc. (KAI) C++ Compiler
13636
13637             # KCC will only create a shared library if the output file
13638             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13639             # to its proper name (with version) after linking.
13640             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'
13641
13642             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13643             hardcode_libdir_separator_CXX=:
13644
13645             # Archives containing C++ object files must be created using
13646             # the KAI C++ compiler.
13647             case $host in
13648               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13649               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13650             esac
13651             ;;
13652           RCC*)
13653             # Rational C++ 2.4.1
13654             # FIXME: insert proper C++ library support
13655             ld_shlibs_CXX=no
13656             ;;
13657           cxx*)
13658             case $host in
13659               osf3*)
13660                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13661                 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'
13662                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13663                 ;;
13664               *)
13665                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13666                 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'
13667                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13668                   echo "-hidden">> $lib.exp~
13669                   $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~
13670                   $RM $lib.exp'
13671                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13672                 ;;
13673             esac
13674
13675             hardcode_libdir_separator_CXX=:
13676
13677             # Commands to make compiler produce verbose output that lists
13678             # what "hidden" libraries, object files and flags are used when
13679             # linking a shared library.
13680             #
13681             # There doesn't appear to be a way to prevent this compiler from
13682             # explicitly linking system object files so we need to strip them
13683             # from the output so that they don't get included in the library
13684             # dependencies.
13685             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'
13686             ;;
13687           *)
13688             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13689               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13690               case $host in
13691                 osf3*)
13692                   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'
13693                   ;;
13694                 *)
13695                   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'
13696                   ;;
13697               esac
13698
13699               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13700               hardcode_libdir_separator_CXX=:
13701
13702               # Commands to make compiler produce verbose output that lists
13703               # what "hidden" libraries, object files and flags are used when
13704               # linking a shared library.
13705               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13706
13707             else
13708               # FIXME: insert proper C++ library support
13709               ld_shlibs_CXX=no
13710             fi
13711             ;;
13712         esac
13713         ;;
13714
13715       psos*)
13716         # FIXME: insert proper C++ library support
13717         ld_shlibs_CXX=no
13718         ;;
13719
13720       sunos4*)
13721         case $cc_basename in
13722           CC*)
13723             # Sun C++ 4.x
13724             # FIXME: insert proper C++ library support
13725             ld_shlibs_CXX=no
13726             ;;
13727           lcc*)
13728             # Lucid
13729             # FIXME: insert proper C++ library support
13730             ld_shlibs_CXX=no
13731             ;;
13732           *)
13733             # FIXME: insert proper C++ library support
13734             ld_shlibs_CXX=no
13735             ;;
13736         esac
13737         ;;
13738
13739       solaris*)
13740         case $cc_basename in
13741           CC*)
13742             # Sun C++ 4.2, 5.x and Centerline C++
13743             archive_cmds_need_lc_CXX=yes
13744             no_undefined_flag_CXX=' -zdefs'
13745             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13746             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13747               $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'
13748
13749             hardcode_libdir_flag_spec_CXX='-R$libdir'
13750             hardcode_shlibpath_var_CXX=no
13751             case $host_os in
13752               solaris2.[0-5] | solaris2.[0-5].*) ;;
13753               *)
13754                 # The compiler driver will combine and reorder linker options,
13755                 # but understands `-z linker_flag'.
13756                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13757                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13758                 ;;
13759             esac
13760             link_all_deplibs_CXX=yes
13761
13762             output_verbose_link_cmd='echo'
13763
13764             # Archives containing C++ object files must be created using
13765             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13766             # necessary to make sure instantiated templates are included
13767             # in the archive.
13768             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13769             ;;
13770           gcx*)
13771             # Green Hills C++ Compiler
13772             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13773
13774             # The C++ compiler must be used to create the archive.
13775             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13776             ;;
13777           *)
13778             # GNU C++ compiler with Solaris linker
13779             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13780               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13781               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13782                 archive_cmds_CXX='$CC -shared -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 -shared -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 -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13790               else
13791                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13792                 # platform.
13793                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13794                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13795                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13796
13797                 # Commands to make compiler produce verbose output that lists
13798                 # what "hidden" libraries, object files and flags are used when
13799                 # linking a shared library.
13800                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13801               fi
13802
13803               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13804               case $host_os in
13805                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13806                 *)
13807                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13808                   ;;
13809               esac
13810             fi
13811             ;;
13812         esac
13813         ;;
13814
13815     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13816       no_undefined_flag_CXX='${wl}-z,text'
13817       archive_cmds_need_lc_CXX=no
13818       hardcode_shlibpath_var_CXX=no
13819       runpath_var='LD_RUN_PATH'
13820
13821       case $cc_basename in
13822         CC*)
13823           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13824           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13825           ;;
13826         *)
13827           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829           ;;
13830       esac
13831       ;;
13832
13833       sysv5* | sco3.2v5* | sco5v6*)
13834         # Note: We can NOT use -z defs as we might desire, because we do not
13835         # link with -lc, and that would cause any symbols used from libc to
13836         # always be unresolved, which means just about no library would
13837         # ever link correctly.  If we're not using GNU ld we use -z text
13838         # though, which does catch some bad symbols but isn't as heavy-handed
13839         # as -z defs.
13840         no_undefined_flag_CXX='${wl}-z,text'
13841         allow_undefined_flag_CXX='${wl}-z,nodefs'
13842         archive_cmds_need_lc_CXX=no
13843         hardcode_shlibpath_var_CXX=no
13844         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13845         hardcode_libdir_separator_CXX=':'
13846         link_all_deplibs_CXX=yes
13847         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13848         runpath_var='LD_RUN_PATH'
13849
13850         case $cc_basename in
13851           CC*)
13852             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13853             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13854             ;;
13855           *)
13856             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13857             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13858             ;;
13859         esac
13860       ;;
13861
13862       tandem*)
13863         case $cc_basename in
13864           NCC*)
13865             # NonStop-UX NCC 3.20
13866             # FIXME: insert proper C++ library support
13867             ld_shlibs_CXX=no
13868             ;;
13869           *)
13870             # FIXME: insert proper C++ library support
13871             ld_shlibs_CXX=no
13872             ;;
13873         esac
13874         ;;
13875
13876       vxworks*)
13877         # FIXME: insert proper C++ library support
13878         ld_shlibs_CXX=no
13879         ;;
13880
13881       *)
13882         # FIXME: insert proper C++ library support
13883         ld_shlibs_CXX=no
13884         ;;
13885     esac
13886
13887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13888 $as_echo "$ld_shlibs_CXX" >&6; }
13889     test "$ld_shlibs_CXX" = no && can_build_shared=no
13890
13891     GCC_CXX="$GXX"
13892     LD_CXX="$LD"
13893
13894     ## CAVEAT EMPTOR:
13895     ## There is no encapsulation within the following macros, do not change
13896     ## the running order or otherwise move them around unless you know exactly
13897     ## what you are doing...
13898     # Dependencies to place before and after the object being linked:
13899 predep_objects_CXX=
13900 postdep_objects_CXX=
13901 predeps_CXX=
13902 postdeps_CXX=
13903 compiler_lib_search_path_CXX=
13904
13905 cat > conftest.$ac_ext <<_LT_EOF
13906 class Foo
13907 {
13908 public:
13909   Foo (void) { a = 0; }
13910 private:
13911   int a;
13912 };
13913 _LT_EOF
13914
13915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13916   (eval $ac_compile) 2>&5
13917   ac_status=$?
13918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13919   test $ac_status = 0; }; then
13920   # Parse the compiler output and extract the necessary
13921   # objects, libraries and library flags.
13922
13923   # Sentinel used to keep track of whether or not we are before
13924   # the conftest object file.
13925   pre_test_object_deps_done=no
13926
13927   for p in `eval "$output_verbose_link_cmd"`; do
13928     case $p in
13929
13930     -L* | -R* | -l*)
13931        # Some compilers place space between "-{L,R}" and the path.
13932        # Remove the space.
13933        if test $p = "-L" ||
13934           test $p = "-R"; then
13935          prev=$p
13936          continue
13937        else
13938          prev=
13939        fi
13940
13941        if test "$pre_test_object_deps_done" = no; then
13942          case $p in
13943          -L* | -R*)
13944            # Internal compiler library paths should come after those
13945            # provided the user.  The postdeps already come after the
13946            # user supplied libs so there is no need to process them.
13947            if test -z "$compiler_lib_search_path_CXX"; then
13948              compiler_lib_search_path_CXX="${prev}${p}"
13949            else
13950              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13951            fi
13952            ;;
13953          # The "-l" case would never come before the object being
13954          # linked, so don't bother handling this case.
13955          esac
13956        else
13957          if test -z "$postdeps_CXX"; then
13958            postdeps_CXX="${prev}${p}"
13959          else
13960            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13961          fi
13962        fi
13963        ;;
13964
13965     *.$objext)
13966        # This assumes that the test object file only shows up
13967        # once in the compiler output.
13968        if test "$p" = "conftest.$objext"; then
13969          pre_test_object_deps_done=yes
13970          continue
13971        fi
13972
13973        if test "$pre_test_object_deps_done" = no; then
13974          if test -z "$predep_objects_CXX"; then
13975            predep_objects_CXX="$p"
13976          else
13977            predep_objects_CXX="$predep_objects_CXX $p"
13978          fi
13979        else
13980          if test -z "$postdep_objects_CXX"; then
13981            postdep_objects_CXX="$p"
13982          else
13983            postdep_objects_CXX="$postdep_objects_CXX $p"
13984          fi
13985        fi
13986        ;;
13987
13988     *) ;; # Ignore the rest.
13989
13990     esac
13991   done
13992
13993   # Clean up.
13994   rm -f a.out a.exe
13995 else
13996   echo "libtool.m4: error: problem compiling CXX test program"
13997 fi
13998
13999 $RM -f confest.$objext
14000
14001 # PORTME: override above test on systems where it is broken
14002 case $host_os in
14003 interix[3-9]*)
14004   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14005   # hack all around it, let's just trust "g++" to DTRT.
14006   predep_objects_CXX=
14007   postdep_objects_CXX=
14008   postdeps_CXX=
14009   ;;
14010
14011 linux*)
14012   case `$CC -V 2>&1 | sed 5q` in
14013   *Sun\ C*)
14014     # Sun C++ 5.9
14015
14016     # The more standards-conforming stlport4 library is
14017     # incompatible with the Cstd library. Avoid specifying
14018     # it if it's in CXXFLAGS. Ignore libCrun as
14019     # -library=stlport4 depends on it.
14020     case " $CXX $CXXFLAGS " in
14021     *" -library=stlport4 "*)
14022       solaris_use_stlport4=yes
14023       ;;
14024     esac
14025
14026     if test "$solaris_use_stlport4" != yes; then
14027       postdeps_CXX='-library=Cstd -library=Crun'
14028     fi
14029     ;;
14030   esac
14031   ;;
14032
14033 solaris*)
14034   case $cc_basename in
14035   CC*)
14036     # The more standards-conforming stlport4 library is
14037     # incompatible with the Cstd library. Avoid specifying
14038     # it if it's in CXXFLAGS. Ignore libCrun as
14039     # -library=stlport4 depends on it.
14040     case " $CXX $CXXFLAGS " in
14041     *" -library=stlport4 "*)
14042       solaris_use_stlport4=yes
14043       ;;
14044     esac
14045
14046     # Adding this requires a known-good setup of shared libraries for
14047     # Sun compiler versions before 5.6, else PIC objects from an old
14048     # archive will be linked into the output, leading to subtle bugs.
14049     if test "$solaris_use_stlport4" != yes; then
14050       postdeps_CXX='-library=Cstd -library=Crun'
14051     fi
14052     ;;
14053   esac
14054   ;;
14055 esac
14056
14057
14058 case " $postdeps_CXX " in
14059 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14060 esac
14061  compiler_lib_search_dirs_CXX=
14062 if test -n "${compiler_lib_search_path_CXX}"; then
14063  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14064 fi
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096     lt_prog_compiler_wl_CXX=
14097 lt_prog_compiler_pic_CXX=
14098 lt_prog_compiler_static_CXX=
14099
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14101 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14102
14103   # C++ specific cases for pic, static, wl, etc.
14104   if test "$GXX" = yes; then
14105     lt_prog_compiler_wl_CXX='-Wl,'
14106     lt_prog_compiler_static_CXX='-static'
14107
14108     case $host_os in
14109     aix*)
14110       # All AIX code is PIC.
14111       if test "$host_cpu" = ia64; then
14112         # AIX 5 now supports IA64 processor
14113         lt_prog_compiler_static_CXX='-Bstatic'
14114       fi
14115       ;;
14116
14117     amigaos*)
14118       case $host_cpu in
14119       powerpc)
14120             # see comment about AmigaOS4 .so support
14121             lt_prog_compiler_pic_CXX='-fPIC'
14122         ;;
14123       m68k)
14124             # FIXME: we need at least 68020 code to build shared libraries, but
14125             # adding the `-m68020' flag to GCC prevents building anything better,
14126             # like `-m68040'.
14127             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14128         ;;
14129       esac
14130       ;;
14131
14132     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14133       # PIC is the default for these OSes.
14134       ;;
14135     mingw* | cygwin* | os2* | pw32* | cegcc*)
14136       # This hack is so that the source file can tell whether it is being
14137       # built for inclusion in a dll (and should export symbols for example).
14138       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14139       # (--disable-auto-import) libraries
14140       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14141       ;;
14142     darwin* | rhapsody*)
14143       # PIC is the default on this platform
14144       # Common symbols not allowed in MH_DYLIB files
14145       lt_prog_compiler_pic_CXX='-fno-common'
14146       ;;
14147     *djgpp*)
14148       # DJGPP does not support shared libraries at all
14149       lt_prog_compiler_pic_CXX=
14150       ;;
14151     interix[3-9]*)
14152       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14153       # Instead, we relocate shared libraries at runtime.
14154       ;;
14155     sysv4*MP*)
14156       if test -d /usr/nec; then
14157         lt_prog_compiler_pic_CXX=-Kconform_pic
14158       fi
14159       ;;
14160     hpux*)
14161       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14162       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14163       # sets the default TLS model and affects inlining.
14164       case $host_cpu in
14165       hppa*64*)
14166         ;;
14167       *)
14168         lt_prog_compiler_pic_CXX='-fPIC'
14169         ;;
14170       esac
14171       ;;
14172     *qnx* | *nto*)
14173       # QNX uses GNU C++, but need to define -shared option too, otherwise
14174       # it will coredump.
14175       lt_prog_compiler_pic_CXX='-fPIC -shared'
14176       ;;
14177     *)
14178       lt_prog_compiler_pic_CXX='-fPIC'
14179       ;;
14180     esac
14181   else
14182     case $host_os in
14183       aix[4-9]*)
14184         # All AIX code is PIC.
14185         if test "$host_cpu" = ia64; then
14186           # AIX 5 now supports IA64 processor
14187           lt_prog_compiler_static_CXX='-Bstatic'
14188         else
14189           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14190         fi
14191         ;;
14192       chorus*)
14193         case $cc_basename in
14194         cxch68*)
14195           # Green Hills C++ Compiler
14196           # _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"
14197           ;;
14198         esac
14199         ;;
14200       dgux*)
14201         case $cc_basename in
14202           ec++*)
14203             lt_prog_compiler_pic_CXX='-KPIC'
14204             ;;
14205           ghcx*)
14206             # Green Hills C++ Compiler
14207             lt_prog_compiler_pic_CXX='-pic'
14208             ;;
14209           *)
14210             ;;
14211         esac
14212         ;;
14213       freebsd* | dragonfly*)
14214         # FreeBSD uses GNU C++
14215         ;;
14216       hpux9* | hpux10* | hpux11*)
14217         case $cc_basename in
14218           CC*)
14219             lt_prog_compiler_wl_CXX='-Wl,'
14220             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14221             if test "$host_cpu" != ia64; then
14222               lt_prog_compiler_pic_CXX='+Z'
14223             fi
14224             ;;
14225           aCC*)
14226             lt_prog_compiler_wl_CXX='-Wl,'
14227             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14228             case $host_cpu in
14229             hppa*64*|ia64*)
14230               # +Z the default
14231               ;;
14232             *)
14233               lt_prog_compiler_pic_CXX='+Z'
14234               ;;
14235             esac
14236             ;;
14237           *)
14238             ;;
14239         esac
14240         ;;
14241       interix*)
14242         # This is c89, which is MS Visual C++ (no shared libs)
14243         # Anyone wants to do a port?
14244         ;;
14245       irix5* | irix6* | nonstopux*)
14246         case $cc_basename in
14247           CC*)
14248             lt_prog_compiler_wl_CXX='-Wl,'
14249             lt_prog_compiler_static_CXX='-non_shared'
14250             # CC pic flag -KPIC is the default.
14251             ;;
14252           *)
14253             ;;
14254         esac
14255         ;;
14256       linux* | k*bsd*-gnu)
14257         case $cc_basename in
14258           KCC*)
14259             # KAI C++ Compiler
14260             lt_prog_compiler_wl_CXX='--backend -Wl,'
14261             lt_prog_compiler_pic_CXX='-fPIC'
14262             ;;
14263           ecpc* )
14264             # old Intel C++ for x86_64 which still supported -KPIC.
14265             lt_prog_compiler_wl_CXX='-Wl,'
14266             lt_prog_compiler_pic_CXX='-KPIC'
14267             lt_prog_compiler_static_CXX='-static'
14268             ;;
14269           icpc* )
14270             # Intel C++, used to be incompatible with GCC.
14271             # ICC 10 doesn't accept -KPIC any more.
14272             lt_prog_compiler_wl_CXX='-Wl,'
14273             lt_prog_compiler_pic_CXX='-fPIC'
14274             lt_prog_compiler_static_CXX='-static'
14275             ;;
14276           pgCC* | pgcpp*)
14277             # Portland Group C++ compiler
14278             lt_prog_compiler_wl_CXX='-Wl,'
14279             lt_prog_compiler_pic_CXX='-fpic'
14280             lt_prog_compiler_static_CXX='-Bstatic'
14281             ;;
14282           cxx*)
14283             # Compaq C++
14284             # Make sure the PIC flag is empty.  It appears that all Alpha
14285             # Linux and Compaq Tru64 Unix objects are PIC.
14286             lt_prog_compiler_pic_CXX=
14287             lt_prog_compiler_static_CXX='-non_shared'
14288             ;;
14289           xlc* | xlC*)
14290             # IBM XL 8.0 on PPC
14291             lt_prog_compiler_wl_CXX='-Wl,'
14292             lt_prog_compiler_pic_CXX='-qpic'
14293             lt_prog_compiler_static_CXX='-qstaticlink'
14294             ;;
14295           *)
14296             case `$CC -V 2>&1 | sed 5q` in
14297             *Sun\ C*)
14298               # Sun C++ 5.9
14299               lt_prog_compiler_pic_CXX='-KPIC'
14300               lt_prog_compiler_static_CXX='-Bstatic'
14301               lt_prog_compiler_wl_CXX='-Qoption ld '
14302               ;;
14303             esac
14304             ;;
14305         esac
14306         ;;
14307       lynxos*)
14308         ;;
14309       m88k*)
14310         ;;
14311       mvs*)
14312         case $cc_basename in
14313           cxx*)
14314             lt_prog_compiler_pic_CXX='-W c,exportall'
14315             ;;
14316           *)
14317             ;;
14318         esac
14319         ;;
14320       netbsd*)
14321         ;;
14322       *qnx* | *nto*)
14323         # QNX uses GNU C++, but need to define -shared option too, otherwise
14324         # it will coredump.
14325         lt_prog_compiler_pic_CXX='-fPIC -shared'
14326         ;;
14327       osf3* | osf4* | osf5*)
14328         case $cc_basename in
14329           KCC*)
14330             lt_prog_compiler_wl_CXX='--backend -Wl,'
14331             ;;
14332           RCC*)
14333             # Rational C++ 2.4.1
14334             lt_prog_compiler_pic_CXX='-pic'
14335             ;;
14336           cxx*)
14337             # Digital/Compaq C++
14338             lt_prog_compiler_wl_CXX='-Wl,'
14339             # Make sure the PIC flag is empty.  It appears that all Alpha
14340             # Linux and Compaq Tru64 Unix objects are PIC.
14341             lt_prog_compiler_pic_CXX=
14342             lt_prog_compiler_static_CXX='-non_shared'
14343             ;;
14344           *)
14345             ;;
14346         esac
14347         ;;
14348       psos*)
14349         ;;
14350       solaris*)
14351         case $cc_basename in
14352           CC*)
14353             # Sun C++ 4.2, 5.x and Centerline C++
14354             lt_prog_compiler_pic_CXX='-KPIC'
14355             lt_prog_compiler_static_CXX='-Bstatic'
14356             lt_prog_compiler_wl_CXX='-Qoption ld '
14357             ;;
14358           gcx*)
14359             # Green Hills C++ Compiler
14360             lt_prog_compiler_pic_CXX='-PIC'
14361             ;;
14362           *)
14363             ;;
14364         esac
14365         ;;
14366       sunos4*)
14367         case $cc_basename in
14368           CC*)
14369             # Sun C++ 4.x
14370             lt_prog_compiler_pic_CXX='-pic'
14371             lt_prog_compiler_static_CXX='-Bstatic'
14372             ;;
14373           lcc*)
14374             # Lucid
14375             lt_prog_compiler_pic_CXX='-pic'
14376             ;;
14377           *)
14378             ;;
14379         esac
14380         ;;
14381       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14382         case $cc_basename in
14383           CC*)
14384             lt_prog_compiler_wl_CXX='-Wl,'
14385             lt_prog_compiler_pic_CXX='-KPIC'
14386             lt_prog_compiler_static_CXX='-Bstatic'
14387             ;;
14388         esac
14389         ;;
14390       tandem*)
14391         case $cc_basename in
14392           NCC*)
14393             # NonStop-UX NCC 3.20
14394             lt_prog_compiler_pic_CXX='-KPIC'
14395             ;;
14396           *)
14397             ;;
14398         esac
14399         ;;
14400       vxworks*)
14401         ;;
14402       *)
14403         lt_prog_compiler_can_build_shared_CXX=no
14404         ;;
14405     esac
14406   fi
14407
14408 case $host_os in
14409   # For platforms which do not support PIC, -DPIC is meaningless:
14410   *djgpp*)
14411     lt_prog_compiler_pic_CXX=
14412     ;;
14413   *)
14414     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14415     ;;
14416 esac
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14418 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14419
14420
14421
14422 #
14423 # Check to make sure the PIC flag actually works.
14424 #
14425 if test -n "$lt_prog_compiler_pic_CXX"; then
14426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14427 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14428 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14429   $as_echo_n "(cached) " >&6
14430 else
14431   lt_cv_prog_compiler_pic_works_CXX=no
14432    ac_outfile=conftest.$ac_objext
14433    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14434    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14435    # Insert the option either (1) after the last *FLAGS variable, or
14436    # (2) before a word containing "conftest.", or (3) at the end.
14437    # Note that $ac_compile itself does not contain backslashes and begins
14438    # with a dollar sign (not a hyphen), so the echo should work correctly.
14439    # The option is referenced via a variable to avoid confusing sed.
14440    lt_compile=`echo "$ac_compile" | $SED \
14441    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14442    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14443    -e 's:$: $lt_compiler_flag:'`
14444    (eval echo "\"\$as_me:14444: $lt_compile\"" >&5)
14445    (eval "$lt_compile" 2>conftest.err)
14446    ac_status=$?
14447    cat conftest.err >&5
14448    echo "$as_me:14448: \$? = $ac_status" >&5
14449    if (exit $ac_status) && test -s "$ac_outfile"; then
14450      # The compiler can only warn and ignore the option if not recognized
14451      # So say no if there are warnings other than the usual output.
14452      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14453      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14454      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14455        lt_cv_prog_compiler_pic_works_CXX=yes
14456      fi
14457    fi
14458    $RM conftest*
14459
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14462 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14463
14464 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14465     case $lt_prog_compiler_pic_CXX in
14466      "" | " "*) ;;
14467      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14468      esac
14469 else
14470     lt_prog_compiler_pic_CXX=
14471      lt_prog_compiler_can_build_shared_CXX=no
14472 fi
14473
14474 fi
14475
14476
14477
14478 #
14479 # Check to make sure the static flag actually works.
14480 #
14481 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14483 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14484 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14485   $as_echo_n "(cached) " >&6
14486 else
14487   lt_cv_prog_compiler_static_works_CXX=no
14488    save_LDFLAGS="$LDFLAGS"
14489    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14490    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14491    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14492      # The linker can only warn and ignore the option if not recognized
14493      # So say no if there are warnings
14494      if test -s conftest.err; then
14495        # Append any errors to the config.log.
14496        cat conftest.err 1>&5
14497        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14498        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14499        if diff conftest.exp conftest.er2 >/dev/null; then
14500          lt_cv_prog_compiler_static_works_CXX=yes
14501        fi
14502      else
14503        lt_cv_prog_compiler_static_works_CXX=yes
14504      fi
14505    fi
14506    $RM -r conftest*
14507    LDFLAGS="$save_LDFLAGS"
14508
14509 fi
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14511 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14512
14513 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14514     :
14515 else
14516     lt_prog_compiler_static_CXX=
14517 fi
14518
14519
14520
14521
14522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14523 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14524 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14525   $as_echo_n "(cached) " >&6
14526 else
14527   lt_cv_prog_compiler_c_o_CXX=no
14528    $RM -r conftest 2>/dev/null
14529    mkdir conftest
14530    cd conftest
14531    mkdir out
14532    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14533
14534    lt_compiler_flag="-o out/conftest2.$ac_objext"
14535    # Insert the option either (1) after the last *FLAGS variable, or
14536    # (2) before a word containing "conftest.", or (3) at the end.
14537    # Note that $ac_compile itself does not contain backslashes and begins
14538    # with a dollar sign (not a hyphen), so the echo should work correctly.
14539    lt_compile=`echo "$ac_compile" | $SED \
14540    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14541    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14542    -e 's:$: $lt_compiler_flag:'`
14543    (eval echo "\"\$as_me:14543: $lt_compile\"" >&5)
14544    (eval "$lt_compile" 2>out/conftest.err)
14545    ac_status=$?
14546    cat out/conftest.err >&5
14547    echo "$as_me:14547: \$? = $ac_status" >&5
14548    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14549    then
14550      # The compiler can only warn and ignore the option if not recognized
14551      # So say no if there are warnings
14552      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14553      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14554      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14555        lt_cv_prog_compiler_c_o_CXX=yes
14556      fi
14557    fi
14558    chmod u+w . 2>&5
14559    $RM conftest*
14560    # SGI C++ compiler will create directory out/ii_files/ for
14561    # template instantiation
14562    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14563    $RM out/* && rmdir out
14564    cd ..
14565    $RM -r conftest
14566    $RM conftest*
14567
14568 fi
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14570 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14571
14572
14573
14574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14575 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14576 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14577   $as_echo_n "(cached) " >&6
14578 else
14579   lt_cv_prog_compiler_c_o_CXX=no
14580    $RM -r conftest 2>/dev/null
14581    mkdir conftest
14582    cd conftest
14583    mkdir out
14584    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14585
14586    lt_compiler_flag="-o out/conftest2.$ac_objext"
14587    # Insert the option either (1) after the last *FLAGS variable, or
14588    # (2) before a word containing "conftest.", or (3) at the end.
14589    # Note that $ac_compile itself does not contain backslashes and begins
14590    # with a dollar sign (not a hyphen), so the echo should work correctly.
14591    lt_compile=`echo "$ac_compile" | $SED \
14592    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14594    -e 's:$: $lt_compiler_flag:'`
14595    (eval echo "\"\$as_me:14595: $lt_compile\"" >&5)
14596    (eval "$lt_compile" 2>out/conftest.err)
14597    ac_status=$?
14598    cat out/conftest.err >&5
14599    echo "$as_me:14599: \$? = $ac_status" >&5
14600    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14601    then
14602      # The compiler can only warn and ignore the option if not recognized
14603      # So say no if there are warnings
14604      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14605      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14606      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14607        lt_cv_prog_compiler_c_o_CXX=yes
14608      fi
14609    fi
14610    chmod u+w . 2>&5
14611    $RM conftest*
14612    # SGI C++ compiler will create directory out/ii_files/ for
14613    # template instantiation
14614    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14615    $RM out/* && rmdir out
14616    cd ..
14617    $RM -r conftest
14618    $RM conftest*
14619
14620 fi
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14622 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14623
14624
14625
14626
14627 hard_links="nottested"
14628 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14629   # do not overwrite the value of need_locks provided by the user
14630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14631 $as_echo_n "checking if we can lock with hard links... " >&6; }
14632   hard_links=yes
14633   $RM conftest*
14634   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14635   touch conftest.a
14636   ln conftest.a conftest.b 2>&5 || hard_links=no
14637   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14639 $as_echo "$hard_links" >&6; }
14640   if test "$hard_links" = no; then
14641     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14642 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14643     need_locks=warn
14644   fi
14645 else
14646   need_locks=no
14647 fi
14648
14649
14650
14651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14652 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14653
14654   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14655   case $host_os in
14656   aix[4-9]*)
14657     # If we're using GNU nm, then we don't want the "-C" option.
14658     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14659     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14660       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'
14661     else
14662       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'
14663     fi
14664     ;;
14665   pw32*)
14666     export_symbols_cmds_CXX="$ltdll_cmds"
14667   ;;
14668   cygwin* | mingw* | cegcc*)
14669     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'
14670   ;;
14671   *)
14672     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14673   ;;
14674   esac
14675   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14676
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14678 $as_echo "$ld_shlibs_CXX" >&6; }
14679 test "$ld_shlibs_CXX" = no && can_build_shared=no
14680
14681 with_gnu_ld_CXX=$with_gnu_ld
14682
14683
14684
14685
14686
14687
14688 #
14689 # Do we need to explicitly link libc?
14690 #
14691 case "x$archive_cmds_need_lc_CXX" in
14692 x|xyes)
14693   # Assume -lc should be added
14694   archive_cmds_need_lc_CXX=yes
14695
14696   if test "$enable_shared" = yes && test "$GCC" = yes; then
14697     case $archive_cmds_CXX in
14698     *'~'*)
14699       # FIXME: we may have to deal with multi-command sequences.
14700       ;;
14701     '$CC '*)
14702       # Test whether the compiler implicitly links with -lc since on some
14703       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14704       # to ld, don't add -lc before -lgcc.
14705       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14706 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14707       $RM conftest*
14708       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14709
14710       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14711   (eval $ac_compile) 2>&5
14712   ac_status=$?
14713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14714   test $ac_status = 0; } 2>conftest.err; then
14715         soname=conftest
14716         lib=conftest
14717         libobjs=conftest.$ac_objext
14718         deplibs=
14719         wl=$lt_prog_compiler_wl_CXX
14720         pic_flag=$lt_prog_compiler_pic_CXX
14721         compiler_flags=-v
14722         linker_flags=-v
14723         verstring=
14724         output_objdir=.
14725         libname=conftest
14726         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14727         allow_undefined_flag_CXX=
14728         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14729   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14730   ac_status=$?
14731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14732   test $ac_status = 0; }
14733         then
14734           archive_cmds_need_lc_CXX=no
14735         else
14736           archive_cmds_need_lc_CXX=yes
14737         fi
14738         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14739       else
14740         cat conftest.err 1>&5
14741       fi
14742       $RM conftest*
14743       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14744 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14745       ;;
14746     esac
14747   fi
14748   ;;
14749 esac
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14815 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14816
14817 library_names_spec=
14818 libname_spec='lib$name'
14819 soname_spec=
14820 shrext_cmds=".so"
14821 postinstall_cmds=
14822 postuninstall_cmds=
14823 finish_cmds=
14824 finish_eval=
14825 shlibpath_var=
14826 shlibpath_overrides_runpath=unknown
14827 version_type=none
14828 dynamic_linker="$host_os ld.so"
14829 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14830 need_lib_prefix=unknown
14831 hardcode_into_libs=no
14832
14833 # when you set need_version to no, make sure it does not cause -set_version
14834 # flags to be left without arguments
14835 need_version=unknown
14836
14837 case $host_os in
14838 aix3*)
14839   version_type=linux
14840   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14841   shlibpath_var=LIBPATH
14842
14843   # AIX 3 has no versioning support, so we append a major version to the name.
14844   soname_spec='${libname}${release}${shared_ext}$major'
14845   ;;
14846
14847 aix[4-9]*)
14848   version_type=linux
14849   need_lib_prefix=no
14850   need_version=no
14851   hardcode_into_libs=yes
14852   if test "$host_cpu" = ia64; then
14853     # AIX 5 supports IA64
14854     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14855     shlibpath_var=LD_LIBRARY_PATH
14856   else
14857     # With GCC up to 2.95.x, collect2 would create an import file
14858     # for dependence libraries.  The import file would start with
14859     # the line `#! .'.  This would cause the generated library to
14860     # depend on `.', always an invalid library.  This was fixed in
14861     # development snapshots of GCC prior to 3.0.
14862     case $host_os in
14863       aix4 | aix4.[01] | aix4.[01].*)
14864       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14865            echo ' yes '
14866            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14867         :
14868       else
14869         can_build_shared=no
14870       fi
14871       ;;
14872     esac
14873     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14874     # soname into executable. Probably we can add versioning support to
14875     # collect2, so additional links can be useful in future.
14876     if test "$aix_use_runtimelinking" = yes; then
14877       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14878       # instead of lib<name>.a to let people know that these are not
14879       # typical AIX shared libraries.
14880       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881     else
14882       # We preserve .a as extension for shared libraries through AIX4.2
14883       # and later when we are not doing run time linking.
14884       library_names_spec='${libname}${release}.a $libname.a'
14885       soname_spec='${libname}${release}${shared_ext}$major'
14886     fi
14887     shlibpath_var=LIBPATH
14888   fi
14889   ;;
14890
14891 amigaos*)
14892   case $host_cpu in
14893   powerpc)
14894     # Since July 2007 AmigaOS4 officially supports .so libraries.
14895     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14896     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897     ;;
14898   m68k)
14899     library_names_spec='$libname.ixlibrary $libname.a'
14900     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14901     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'
14902     ;;
14903   esac
14904   ;;
14905
14906 beos*)
14907   library_names_spec='${libname}${shared_ext}'
14908   dynamic_linker="$host_os ld.so"
14909   shlibpath_var=LIBRARY_PATH
14910   ;;
14911
14912 bsdi[45]*)
14913   version_type=linux
14914   need_version=no
14915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916   soname_spec='${libname}${release}${shared_ext}$major'
14917   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14918   shlibpath_var=LD_LIBRARY_PATH
14919   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14920   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14921   # the default ld.so.conf also contains /usr/contrib/lib and
14922   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14923   # libtool to hard-code these into programs
14924   ;;
14925
14926 cygwin* | mingw* | pw32* | cegcc*)
14927   version_type=windows
14928   shrext_cmds=".dll"
14929   need_version=no
14930   need_lib_prefix=no
14931
14932   case $GCC,$host_os in
14933   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14934     library_names_spec='$libname.dll.a'
14935     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14936     postinstall_cmds='base_file=`basename \${file}`~
14937       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14938       dldir=$destdir/`dirname \$dlpath`~
14939       test -d \$dldir || mkdir -p \$dldir~
14940       $install_prog $dir/$dlname \$dldir/$dlname~
14941       chmod a+x \$dldir/$dlname~
14942       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14943         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14944       fi'
14945     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14946       dlpath=$dir/\$dldll~
14947        $RM \$dlpath'
14948     shlibpath_overrides_runpath=yes
14949
14950     case $host_os in
14951     cygwin*)
14952       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14953       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14954       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14955       ;;
14956     mingw* | cegcc*)
14957       # MinGW DLLs use traditional 'lib' prefix
14958       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14959       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14960       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14961         # It is most probably a Windows format PATH printed by
14962         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14963         # path with ; separators, and with drive letters. We can handle the
14964         # drive letters (cygwin fileutils understands them), so leave them,
14965         # especially as we might pass files found there to a mingw objdump,
14966         # which wouldn't understand a cygwinified path. Ahh.
14967         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14968       else
14969         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14970       fi
14971       ;;
14972     pw32*)
14973       # pw32 DLLs use 'pw' prefix rather than 'lib'
14974       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14975       ;;
14976     esac
14977     ;;
14978
14979   *)
14980     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14981     ;;
14982   esac
14983   dynamic_linker='Win32 ld.exe'
14984   # FIXME: first we should search . and the directory the executable is in
14985   shlibpath_var=PATH
14986   ;;
14987
14988 darwin* | rhapsody*)
14989   dynamic_linker="$host_os dyld"
14990   version_type=darwin
14991   need_lib_prefix=no
14992   need_version=no
14993   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14994   soname_spec='${libname}${release}${major}$shared_ext'
14995   shlibpath_overrides_runpath=yes
14996   shlibpath_var=DYLD_LIBRARY_PATH
14997   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14998
14999   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15000   ;;
15001
15002 dgux*)
15003   version_type=linux
15004   need_lib_prefix=no
15005   need_version=no
15006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15007   soname_spec='${libname}${release}${shared_ext}$major'
15008   shlibpath_var=LD_LIBRARY_PATH
15009   ;;
15010
15011 freebsd1*)
15012   dynamic_linker=no
15013   ;;
15014
15015 freebsd* | dragonfly*)
15016   # DragonFly does not have aout.  When/if they implement a new
15017   # versioning mechanism, adjust this.
15018   if test -x /usr/bin/objformat; then
15019     objformat=`/usr/bin/objformat`
15020   else
15021     case $host_os in
15022     freebsd[123]*) objformat=aout ;;
15023     *) objformat=elf ;;
15024     esac
15025   fi
15026   version_type=freebsd-$objformat
15027   case $version_type in
15028     freebsd-elf*)
15029       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15030       need_version=no
15031       need_lib_prefix=no
15032       ;;
15033     freebsd-*)
15034       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15035       need_version=yes
15036       ;;
15037   esac
15038   shlibpath_var=LD_LIBRARY_PATH
15039   case $host_os in
15040   freebsd2*)
15041     shlibpath_overrides_runpath=yes
15042     ;;
15043   freebsd3.[01]* | freebsdelf3.[01]*)
15044     shlibpath_overrides_runpath=yes
15045     hardcode_into_libs=yes
15046     ;;
15047   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15048   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15049     shlibpath_overrides_runpath=no
15050     hardcode_into_libs=yes
15051     ;;
15052   *) # from 4.6 on, and DragonFly
15053     shlibpath_overrides_runpath=yes
15054     hardcode_into_libs=yes
15055     ;;
15056   esac
15057   ;;
15058
15059 gnu*)
15060   version_type=linux
15061   need_lib_prefix=no
15062   need_version=no
15063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15064   soname_spec='${libname}${release}${shared_ext}$major'
15065   shlibpath_var=LD_LIBRARY_PATH
15066   hardcode_into_libs=yes
15067   ;;
15068
15069 hpux9* | hpux10* | hpux11*)
15070   # Give a soname corresponding to the major version so that dld.sl refuses to
15071   # link against other versions.
15072   version_type=sunos
15073   need_lib_prefix=no
15074   need_version=no
15075   case $host_cpu in
15076   ia64*)
15077     shrext_cmds='.so'
15078     hardcode_into_libs=yes
15079     dynamic_linker="$host_os dld.so"
15080     shlibpath_var=LD_LIBRARY_PATH
15081     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083     soname_spec='${libname}${release}${shared_ext}$major'
15084     if test "X$HPUX_IA64_MODE" = X32; then
15085       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15086     else
15087       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15088     fi
15089     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15090     ;;
15091   hppa*64*)
15092     shrext_cmds='.sl'
15093     hardcode_into_libs=yes
15094     dynamic_linker="$host_os dld.sl"
15095     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15096     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098     soname_spec='${libname}${release}${shared_ext}$major'
15099     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15100     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15101     ;;
15102   *)
15103     shrext_cmds='.sl'
15104     dynamic_linker="$host_os dld.sl"
15105     shlibpath_var=SHLIB_PATH
15106     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108     soname_spec='${libname}${release}${shared_ext}$major'
15109     ;;
15110   esac
15111   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15112   postinstall_cmds='chmod 555 $lib'
15113   ;;
15114
15115 interix[3-9]*)
15116   version_type=linux
15117   need_lib_prefix=no
15118   need_version=no
15119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15120   soname_spec='${libname}${release}${shared_ext}$major'
15121   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15122   shlibpath_var=LD_LIBRARY_PATH
15123   shlibpath_overrides_runpath=no
15124   hardcode_into_libs=yes
15125   ;;
15126
15127 irix5* | irix6* | nonstopux*)
15128   case $host_os in
15129     nonstopux*) version_type=nonstopux ;;
15130     *)
15131         if test "$lt_cv_prog_gnu_ld" = yes; then
15132                 version_type=linux
15133         else
15134                 version_type=irix
15135         fi ;;
15136   esac
15137   need_lib_prefix=no
15138   need_version=no
15139   soname_spec='${libname}${release}${shared_ext}$major'
15140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15141   case $host_os in
15142   irix5* | nonstopux*)
15143     libsuff= shlibsuff=
15144     ;;
15145   *)
15146     case $LD in # libtool.m4 will add one of these switches to LD
15147     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15148       libsuff= shlibsuff= libmagic=32-bit;;
15149     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15150       libsuff=32 shlibsuff=N32 libmagic=N32;;
15151     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15152       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15153     *) libsuff= shlibsuff= libmagic=never-match;;
15154     esac
15155     ;;
15156   esac
15157   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15158   shlibpath_overrides_runpath=no
15159   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15160   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15161   hardcode_into_libs=yes
15162   ;;
15163
15164 # No shared lib support for Linux oldld, aout, or coff.
15165 linux*oldld* | linux*aout* | linux*coff*)
15166   dynamic_linker=no
15167   ;;
15168
15169 # This must be Linux ELF.
15170 linux* | k*bsd*-gnu)
15171   version_type=linux
15172   need_lib_prefix=no
15173   need_version=no
15174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175   soname_spec='${libname}${release}${shared_ext}$major'
15176   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15177   shlibpath_var=LD_LIBRARY_PATH
15178   shlibpath_overrides_runpath=no
15179   # Some binutils ld are patched to set DT_RUNPATH
15180   save_LDFLAGS=$LDFLAGS
15181   save_libdir=$libdir
15182   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15183        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h.  */
15186
15187 int
15188 main ()
15189 {
15190
15191   ;
15192   return 0;
15193 }
15194 _ACEOF
15195 if ac_fn_cxx_try_link "$LINENO"; then :
15196   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15197   shlibpath_overrides_runpath=yes
15198 fi
15199 fi
15200 rm -f core conftest.err conftest.$ac_objext \
15201     conftest$ac_exeext conftest.$ac_ext
15202   LDFLAGS=$save_LDFLAGS
15203   libdir=$save_libdir
15204
15205   # This implies no fast_install, which is unacceptable.
15206   # Some rework will be needed to allow for fast_install
15207   # before this can be enabled.
15208   hardcode_into_libs=yes
15209
15210   # Append ld.so.conf contents to the search path
15211   if test -f /etc/ld.so.conf; then
15212     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' ' '`
15213     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15214   fi
15215
15216   # We used to test for /lib/ld.so.1 and disable shared libraries on
15217   # powerpc, because MkLinux only supported shared libraries with the
15218   # GNU dynamic linker.  Since this was broken with cross compilers,
15219   # most powerpc-linux boxes support dynamic linking these days and
15220   # people can always --disable-shared, the test was removed, and we
15221   # assume the GNU/Linux dynamic linker is in use.
15222   dynamic_linker='GNU/Linux ld.so'
15223   ;;
15224
15225 netbsd*)
15226   version_type=sunos
15227   need_lib_prefix=no
15228   need_version=no
15229   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15231     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15232     dynamic_linker='NetBSD (a.out) ld.so'
15233   else
15234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15235     soname_spec='${libname}${release}${shared_ext}$major'
15236     dynamic_linker='NetBSD ld.elf_so'
15237   fi
15238   shlibpath_var=LD_LIBRARY_PATH
15239   shlibpath_overrides_runpath=yes
15240   hardcode_into_libs=yes
15241   ;;
15242
15243 newsos6)
15244   version_type=linux
15245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246   shlibpath_var=LD_LIBRARY_PATH
15247   shlibpath_overrides_runpath=yes
15248   ;;
15249
15250 *nto* | *qnx*)
15251   version_type=qnx
15252   need_lib_prefix=no
15253   need_version=no
15254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255   soname_spec='${libname}${release}${shared_ext}$major'
15256   shlibpath_var=LD_LIBRARY_PATH
15257   shlibpath_overrides_runpath=no
15258   hardcode_into_libs=yes
15259   dynamic_linker='ldqnx.so'
15260   ;;
15261
15262 openbsd*)
15263   version_type=sunos
15264   sys_lib_dlsearch_path_spec="/usr/lib"
15265   need_lib_prefix=no
15266   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15267   case $host_os in
15268     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15269     *)                          need_version=no  ;;
15270   esac
15271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15272   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15273   shlibpath_var=LD_LIBRARY_PATH
15274   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15275     case $host_os in
15276       openbsd2.[89] | openbsd2.[89].*)
15277         shlibpath_overrides_runpath=no
15278         ;;
15279       *)
15280         shlibpath_overrides_runpath=yes
15281         ;;
15282       esac
15283   else
15284     shlibpath_overrides_runpath=yes
15285   fi
15286   ;;
15287
15288 os2*)
15289   libname_spec='$name'
15290   shrext_cmds=".dll"
15291   need_lib_prefix=no
15292   library_names_spec='$libname${shared_ext} $libname.a'
15293   dynamic_linker='OS/2 ld.exe'
15294   shlibpath_var=LIBPATH
15295   ;;
15296
15297 osf3* | osf4* | osf5*)
15298   version_type=osf
15299   need_lib_prefix=no
15300   need_version=no
15301   soname_spec='${libname}${release}${shared_ext}$major'
15302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303   shlibpath_var=LD_LIBRARY_PATH
15304   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15305   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15306   ;;
15307
15308 rdos*)
15309   dynamic_linker=no
15310   ;;
15311
15312 solaris*)
15313   version_type=linux
15314   need_lib_prefix=no
15315   need_version=no
15316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317   soname_spec='${libname}${release}${shared_ext}$major'
15318   shlibpath_var=LD_LIBRARY_PATH
15319   shlibpath_overrides_runpath=yes
15320   hardcode_into_libs=yes
15321   # ldd complains unless libraries are executable
15322   postinstall_cmds='chmod +x $lib'
15323   ;;
15324
15325 sunos4*)
15326   version_type=sunos
15327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15328   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15329   shlibpath_var=LD_LIBRARY_PATH
15330   shlibpath_overrides_runpath=yes
15331   if test "$with_gnu_ld" = yes; then
15332     need_lib_prefix=no
15333   fi
15334   need_version=yes
15335   ;;
15336
15337 sysv4 | sysv4.3*)
15338   version_type=linux
15339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340   soname_spec='${libname}${release}${shared_ext}$major'
15341   shlibpath_var=LD_LIBRARY_PATH
15342   case $host_vendor in
15343     sni)
15344       shlibpath_overrides_runpath=no
15345       need_lib_prefix=no
15346       runpath_var=LD_RUN_PATH
15347       ;;
15348     siemens)
15349       need_lib_prefix=no
15350       ;;
15351     motorola)
15352       need_lib_prefix=no
15353       need_version=no
15354       shlibpath_overrides_runpath=no
15355       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15356       ;;
15357   esac
15358   ;;
15359
15360 sysv4*MP*)
15361   if test -d /usr/nec ;then
15362     version_type=linux
15363     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15364     soname_spec='$libname${shared_ext}.$major'
15365     shlibpath_var=LD_LIBRARY_PATH
15366   fi
15367   ;;
15368
15369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15370   version_type=freebsd-elf
15371   need_lib_prefix=no
15372   need_version=no
15373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15374   soname_spec='${libname}${release}${shared_ext}$major'
15375   shlibpath_var=LD_LIBRARY_PATH
15376   shlibpath_overrides_runpath=yes
15377   hardcode_into_libs=yes
15378   if test "$with_gnu_ld" = yes; then
15379     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15380   else
15381     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15382     case $host_os in
15383       sco3.2v5*)
15384         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15385         ;;
15386     esac
15387   fi
15388   sys_lib_dlsearch_path_spec='/usr/lib'
15389   ;;
15390
15391 tpf*)
15392   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15393   version_type=linux
15394   need_lib_prefix=no
15395   need_version=no
15396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397   shlibpath_var=LD_LIBRARY_PATH
15398   shlibpath_overrides_runpath=no
15399   hardcode_into_libs=yes
15400   ;;
15401
15402 uts4*)
15403   version_type=linux
15404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405   soname_spec='${libname}${release}${shared_ext}$major'
15406   shlibpath_var=LD_LIBRARY_PATH
15407   ;;
15408
15409 *)
15410   dynamic_linker=no
15411   ;;
15412 esac
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15414 $as_echo "$dynamic_linker" >&6; }
15415 test "$dynamic_linker" = no && can_build_shared=no
15416
15417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15418 if test "$GCC" = yes; then
15419   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15420 fi
15421
15422 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15423   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15424 fi
15425 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15426   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15427 fi
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15465 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15466 hardcode_action_CXX=
15467 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15468    test -n "$runpath_var_CXX" ||
15469    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15470
15471   # We can hardcode non-existent directories.
15472   if test "$hardcode_direct_CXX" != no &&
15473      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15474      # have to relink, otherwise we might link with an installed library
15475      # when we should be linking with a yet-to-be-installed one
15476      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15477      test "$hardcode_minus_L_CXX" != no; then
15478     # Linking always hardcodes the temporary library directory.
15479     hardcode_action_CXX=relink
15480   else
15481     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15482     hardcode_action_CXX=immediate
15483   fi
15484 else
15485   # We cannot hardcode anything, or else we can only hardcode existing
15486   # directories.
15487   hardcode_action_CXX=unsupported
15488 fi
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15490 $as_echo "$hardcode_action_CXX" >&6; }
15491
15492 if test "$hardcode_action_CXX" = relink ||
15493    test "$inherit_rpath_CXX" = yes; then
15494   # Fast installation is not supported
15495   enable_fast_install=no
15496 elif test "$shlibpath_overrides_runpath" = yes ||
15497      test "$enable_shared" = no; then
15498   # Fast installation is not necessary
15499   enable_fast_install=needless
15500 fi
15501
15502
15503
15504
15505
15506
15507
15508   fi # test -n "$compiler"
15509
15510   CC=$lt_save_CC
15511   LDCXX=$LD
15512   LD=$lt_save_LD
15513   GCC=$lt_save_GCC
15514   with_gnu_ld=$lt_save_with_gnu_ld
15515   lt_cv_path_LDCXX=$lt_cv_path_LD
15516   lt_cv_path_LD=$lt_save_path_LD
15517   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15518   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15519 fi # test "$_lt_caught_CXX_error" != yes
15520
15521 ac_ext=c
15522 ac_cpp='$CPP $CPPFLAGS'
15523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539         ac_config_commands="$ac_config_commands libtool"
15540
15541
15542
15543
15544 # Only expand once:
15545
15546
15547
15548
15549 if test x$use_libtool != xno; then
15550    DEFAULT_OBJECT_TYPE=".lo"
15551    DEFAULT_ARCHIVE_TYPE=".la"
15552    DEFAULT_SHARED_OBJECT_TYPE=".la"
15553    LIBTOOL="\$(LIBTOOL)"
15554    LIBTOOL_INSTALL_TARGET="libtool-install"
15555    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15556    LIBTOOL_CLEAN_TARGET="libtool-clean"
15557    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15558    FD_PLUGIN_DIR="src/plugins/fd"
15559    have_plugins=yes
15560 else
15561    DEFAULT_OBJECT_TYPE=".o"
15562    DEFAULT_ARCHIVE_TYPE=".a"
15563    DEFAULT_SHARED_OBJECT_TYPE=".so"
15564    LIBTOOL="# \$(LIBTOOL)"
15565    LIBTOOL_INSTALL_TARGET=""
15566    LIBTOOL_UNINSTALL_TARGET=""
15567    LIBTOOL_CLEAN_TARGET=""
15568    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15569    FD_PLUGIN_DIR=""
15570    have_plugins=no
15571 fi
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583 # Check whether --enable-includes was given.
15584 if test "${enable_includes+set}" = set; then :
15585   enableval=$enable_includes;
15586        if test x$enableval = xyes; then
15587           install_includes=yes
15588        fi
15589
15590
15591 fi
15592
15593
15594
15595 if test x$use_libtool != xno -a x$install_includes = xyes; then
15596    INCLUDE_INSTALL_TARGET="install-includes"
15597    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15598 else
15599    INCLUDE_INSTALL_TARGET=""
15600    INCLUDE_UNINSTALL_TARGET=""
15601 fi
15602
15603
15604
15605
15606
15607 case $host_os in
15608   *cygwin* ) CYGWIN=yes;;
15609          * ) CYGWIN=no;;
15610 esac
15611
15612 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15613 then
15614
15615
15616 if $TRUEPRG; then
15617   HAVE_SUN_OS_TRUE=
15618   HAVE_SUN_OS_FALSE='#'
15619 else
15620   HAVE_SUN_OS_TRUE='#'
15621   HAVE_SUN_OS_FALSE=
15622 fi
15623         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15624
15625 else
15626
15627
15628 if $FALSEPRG; then
15629   HAVE_SUN_OS_TRUE=
15630   HAVE_SUN_OS_FALSE='#'
15631 else
15632   HAVE_SUN_OS_TRUE='#'
15633   HAVE_SUN_OS_FALSE=
15634 fi
15635 fi
15636
15637 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15638 then
15639
15640
15641 if $TRUEPRG; then
15642   HAVE_OSF1_OS_TRUE=
15643   HAVE_OSF1_OS_FALSE='#'
15644 else
15645   HAVE_OSF1_OS_TRUE='#'
15646   HAVE_OSF1_OS_FALSE=
15647 fi
15648         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15649
15650 else
15651
15652
15653 if $FALSEPRG; then
15654   HAVE_OSF1_OS_TRUE=
15655   HAVE_OSF1_OS_FALSE='#'
15656 else
15657   HAVE_OSF1_OS_TRUE='#'
15658   HAVE_OSF1_OS_FALSE=
15659 fi
15660 fi
15661
15662 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15663 then
15664
15665
15666 if $TRUEPRG; then
15667   HAVE_AIX_OS_TRUE=
15668   HAVE_AIX_OS_FALSE='#'
15669 else
15670   HAVE_AIX_OS_TRUE='#'
15671   HAVE_AIX_OS_FALSE=
15672 fi
15673         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15674
15675 else
15676
15677
15678 if $FALSEPRG; then
15679   HAVE_AIX_OS_TRUE=
15680   HAVE_AIX_OS_FALSE='#'
15681 else
15682   HAVE_AIX_OS_TRUE='#'
15683   HAVE_AIX_OS_FALSE=
15684 fi
15685 fi
15686
15687 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15688 then
15689
15690
15691 if $TRUEPRG; then
15692   HAVE_HPUX_OS_TRUE=
15693   HAVE_HPUX_OS_FALSE='#'
15694 else
15695   HAVE_HPUX_OS_TRUE='#'
15696   HAVE_HPUX_OS_FALSE=
15697 fi
15698         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15699
15700 else
15701
15702
15703 if $FALSEPRG; then
15704   HAVE_HPUX_OS_TRUE=
15705   HAVE_HPUX_OS_FALSE='#'
15706 else
15707   HAVE_HPUX_OS_TRUE='#'
15708   HAVE_HPUX_OS_FALSE=
15709 fi
15710 fi
15711
15712 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15713 then
15714
15715
15716 if $TRUEPRG; then
15717   HAVE_LINUX_OS_TRUE=
15718   HAVE_LINUX_OS_FALSE='#'
15719 else
15720   HAVE_LINUX_OS_TRUE='#'
15721   HAVE_LINUX_OS_FALSE=
15722 fi
15723         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15724
15725 else
15726
15727
15728 if $FALSEPRG; then
15729   HAVE_LINUX_OS_TRUE=
15730   HAVE_LINUX_OS_FALSE='#'
15731 else
15732   HAVE_LINUX_OS_TRUE='#'
15733   HAVE_LINUX_OS_FALSE=
15734 fi
15735 fi
15736
15737 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15738 then
15739
15740
15741 if $TRUEPRG; then
15742   HAVE_FREEBSD_OS_TRUE=
15743   HAVE_FREEBSD_OS_FALSE='#'
15744 else
15745   HAVE_FREEBSD_OS_TRUE='#'
15746   HAVE_FREEBSD_OS_FALSE=
15747 fi
15748         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15749
15750 else
15751
15752
15753 if $FALSEPRG; then
15754   HAVE_FREEBSD_OS_TRUE=
15755   HAVE_FREEBSD_OS_FALSE='#'
15756 else
15757   HAVE_FREEBSD_OS_TRUE='#'
15758   HAVE_FREEBSD_OS_FALSE=
15759 fi
15760 fi
15761
15762 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15763 then
15764
15765
15766 if $TRUEPRG; then
15767   HAVE_NETBSD_OS_TRUE=
15768   HAVE_NETBSD_OS_FALSE='#'
15769 else
15770   HAVE_NETBSD_OS_TRUE='#'
15771   HAVE_NETBSD_OS_FALSE=
15772 fi
15773         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15774
15775 else
15776
15777
15778 if $FALSEPRG; then
15779   HAVE_NETBSD_OS_TRUE=
15780   HAVE_NETBSD_OS_FALSE='#'
15781 else
15782   HAVE_NETBSD_OS_TRUE='#'
15783   HAVE_NETBSD_OS_FALSE=
15784 fi
15785 fi
15786
15787 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15788 then
15789
15790
15791 if $TRUEPRG; then
15792   HAVE_OPENBSD_OS_TRUE=
15793   HAVE_OPENBSD_OS_FALSE='#'
15794 else
15795   HAVE_OPENBSD_OS_TRUE='#'
15796   HAVE_OPENBSD_OS_FALSE=
15797 fi
15798         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15799
15800 else
15801
15802
15803 if $FALSEPRG; then
15804   HAVE_OPENBSD_OS_TRUE=
15805   HAVE_OPENBSD_OS_FALSE='#'
15806 else
15807   HAVE_OPENBSD_OS_TRUE='#'
15808   HAVE_OPENBSD_OS_FALSE=
15809 fi
15810 fi
15811
15812 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15813 then
15814
15815
15816 if $TRUEPRG; then
15817   HAVE_BSDI_OS_TRUE=
15818   HAVE_BSDI_OS_FALSE='#'
15819 else
15820   HAVE_BSDI_OS_TRUE='#'
15821   HAVE_BSDI_OS_FALSE=
15822 fi
15823         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15824
15825 else
15826
15827
15828 if $FALSEPRG; then
15829   HAVE_BSDI_OS_TRUE=
15830   HAVE_BSDI_OS_FALSE='#'
15831 else
15832   HAVE_BSDI_OS_TRUE='#'
15833   HAVE_BSDI_OS_FALSE=
15834 fi
15835 fi
15836
15837 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15838 then
15839
15840
15841 if $TRUEPRG; then
15842   HAVE_SGI_OS_TRUE=
15843   HAVE_SGI_OS_FALSE='#'
15844 else
15845   HAVE_SGI_OS_TRUE='#'
15846   HAVE_SGI_OS_FALSE=
15847 fi
15848         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15849
15850 else
15851
15852
15853 if $FALSEPRG; then
15854   HAVE_SGI_OS_TRUE=
15855   HAVE_SGI_OS_FALSE='#'
15856 else
15857   HAVE_SGI_OS_TRUE='#'
15858   HAVE_SGI_OS_FALSE=
15859 fi
15860 fi
15861
15862 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15863 then
15864
15865
15866 if $TRUEPRG; then
15867   HAVE_IRIX_OS_TRUE=
15868   HAVE_IRIX_OS_FALSE='#'
15869 else
15870   HAVE_IRIX_OS_TRUE='#'
15871   HAVE_IRIX_OS_FALSE=
15872 fi
15873         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15874
15875 else
15876
15877
15878 if $FALSEPRG; then
15879   HAVE_IRIX_OS_TRUE=
15880   HAVE_IRIX_OS_FALSE='#'
15881 else
15882   HAVE_IRIX_OS_TRUE='#'
15883   HAVE_IRIX_OS_FALSE=
15884 fi
15885 fi
15886
15887 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15888 then
15889
15890
15891 if $TRUEPRG; then
15892   HAVE_DARWIN_OS_TRUE=
15893   HAVE_DARWIN_OS_FALSE='#'
15894 else
15895   HAVE_DARWIN_OS_TRUE='#'
15896   HAVE_DARWIN_OS_FALSE=
15897 fi
15898     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15899
15900 else
15901
15902
15903 if $FALSEPRG; then
15904   HAVE_DARWIN_OS_TRUE=
15905   HAVE_DARWIN_OS_FALSE='#'
15906 else
15907   HAVE_DARWIN_OS_TRUE='#'
15908   HAVE_DARWIN_OS_FALSE=
15909 fi
15910 fi
15911
15912
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15914 $as_echo_n "checking for Operating System Distribution... " >&6; }
15915 if test "x$DISTNAME" != "x"
15916 then
15917         echo "distname set to $DISTNAME"
15918 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15919 then
15920         DISTNAME=alpha
15921 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15922 then
15923         DISTNAME=aix
15924 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15925 then
15926         DISTNAME=hpux
15927 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15928 then
15929         DISTNAME=solaris
15930 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15931 then
15932         DISTNAME=freebsd
15933 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15934 then
15935         DISTNAME=netbsd
15936 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15937 then
15938         DISTNAME=openbsd
15939 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15940 then
15941         DISTNAME=irix
15942 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15943 then
15944         DISTNAME=bsdi
15945 elif test -f /etc/SuSE-release
15946 then
15947         DISTNAME=suse
15948 elif test -d /etc/SuSEconfig
15949 then
15950         DISTNAME=suse5
15951 elif test -f /etc/mandrake-release
15952 then
15953         DISTNAME=mandrake
15954 elif test -f /etc/whitebox-release
15955 then
15956        DISTNAME=redhat
15957 elif test -f /etc/redhat-release
15958 then
15959         DISTNAME=redhat
15960 elif test -f /etc/gentoo-release
15961 then
15962         DISTNAME=gentoo
15963 elif test -f /etc/debian_version
15964 then
15965         DISTNAME=debian
15966 elif test -f /etc/slackware-version
15967 then
15968         DISTNAME=slackware
15969 elif test x$host_vendor = xapple
15970 then
15971     DISTNAME=osx
15972 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15973 then
15974     DISTNAME=darwin
15975 elif test -f /etc/engarde-version
15976 then
15977         DISTNAME=engarde
15978 elif test -f /etc/arch-release
15979 then
15980         DISTNAME=archlinux
15981 elif test "$CYGWIN" = yes
15982 then
15983         DISTNAME=cygwin
15984         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15985
15986 else
15987         DISTNAME=unknown
15988 fi
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15990 $as_echo "done" >&6; }
15991
15992
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15994 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15995 set x ${MAKE-make}
15996 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15997 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
15998   $as_echo_n "(cached) " >&6
15999 else
16000   cat >conftest.make <<\_ACEOF
16001 SHELL = /bin/sh
16002 all:
16003         @echo '@@@%%%=$(MAKE)=@@@%%%'
16004 _ACEOF
16005 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16006 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16007   *@@@%%%=?*=@@@%%%*)
16008     eval ac_cv_prog_make_${ac_make}_set=yes;;
16009   *)
16010     eval ac_cv_prog_make_${ac_make}_set=no;;
16011 esac
16012 rm -f conftest.make
16013 fi
16014 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16016 $as_echo "yes" >&6; }
16017   SET_MAKE=
16018 else
16019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16021   SET_MAKE="MAKE=${MAKE-make}"
16022 fi
16023
16024
16025
16026         MKINSTALLDIRS=
16027   if test -n "$ac_aux_dir"; then
16028     case "$ac_aux_dir" in
16029       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16030       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16031     esac
16032   fi
16033   if test -z "$MKINSTALLDIRS"; then
16034     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16035   fi
16036
16037
16038
16039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16040 $as_echo_n "checking whether NLS is requested... " >&6; }
16041     # Check whether --enable-nls was given.
16042 if test "${enable_nls+set}" = set; then :
16043   enableval=$enable_nls; USE_NLS=$enableval
16044 else
16045   USE_NLS=yes
16046 fi
16047
16048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16049 $as_echo "$USE_NLS" >&6; }
16050
16051
16052
16053
16054
16055
16056 # Prepare PATH_SEPARATOR.
16057 # The user is always right.
16058 if test "${PATH_SEPARATOR+set}" != set; then
16059   echo "#! /bin/sh" >conf$$.sh
16060   echo  "exit 0"   >>conf$$.sh
16061   chmod +x conf$$.sh
16062   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16063     PATH_SEPARATOR=';'
16064   else
16065     PATH_SEPARATOR=:
16066   fi
16067   rm -f conf$$.sh
16068 fi
16069
16070 # Find out how to test for executable files. Don't use a zero-byte file,
16071 # as systems may use methods other than mode bits to determine executability.
16072 cat >conf$$.file <<_ASEOF
16073 #! /bin/sh
16074 exit 0
16075 _ASEOF
16076 chmod +x conf$$.file
16077 if test -x conf$$.file >/dev/null 2>&1; then
16078   ac_executable_p="test -x"
16079 else
16080   ac_executable_p="test -f"
16081 fi
16082 rm -f conf$$.file
16083
16084 # Extract the first word of "msgfmt", so it can be a program name with args.
16085 set dummy msgfmt; ac_word=$2
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16087 $as_echo_n "checking for $ac_word... " >&6; }
16088 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16089   $as_echo_n "(cached) " >&6
16090 else
16091   case "$MSGFMT" in
16092   [\\/]* | ?:[\\/]*)
16093     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16094     ;;
16095   *)
16096     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16097     for ac_dir in $PATH; do
16098       IFS="$ac_save_IFS"
16099       test -z "$ac_dir" && ac_dir=.
16100       for ac_exec_ext in '' $ac_executable_extensions; do
16101         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16102           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16103           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16104      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16105             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16106             break 2
16107           fi
16108         fi
16109       done
16110     done
16111     IFS="$ac_save_IFS"
16112   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16113     ;;
16114 esac
16115 fi
16116 MSGFMT="$ac_cv_path_MSGFMT"
16117 if test "$MSGFMT" != ":"; then
16118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16119 $as_echo "$MSGFMT" >&6; }
16120 else
16121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122 $as_echo "no" >&6; }
16123 fi
16124
16125   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16126 set dummy gmsgfmt; ac_word=$2
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16128 $as_echo_n "checking for $ac_word... " >&6; }
16129 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16130   $as_echo_n "(cached) " >&6
16131 else
16132   case $GMSGFMT in
16133   [\\/]* | ?:[\\/]*)
16134   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16135   ;;
16136   *)
16137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16138 for as_dir in $PATH
16139 do
16140   IFS=$as_save_IFS
16141   test -z "$as_dir" && as_dir=.
16142     for ac_exec_ext in '' $ac_executable_extensions; do
16143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16144     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16146     break 2
16147   fi
16148 done
16149   done
16150 IFS=$as_save_IFS
16151
16152   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16153   ;;
16154 esac
16155 fi
16156 GMSGFMT=$ac_cv_path_GMSGFMT
16157 if test -n "$GMSGFMT"; then
16158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16159 $as_echo "$GMSGFMT" >&6; }
16160 else
16161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16162 $as_echo "no" >&6; }
16163 fi
16164
16165
16166
16167
16168 # Prepare PATH_SEPARATOR.
16169 # The user is always right.
16170 if test "${PATH_SEPARATOR+set}" != set; then
16171   echo "#! /bin/sh" >conf$$.sh
16172   echo  "exit 0"   >>conf$$.sh
16173   chmod +x conf$$.sh
16174   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16175     PATH_SEPARATOR=';'
16176   else
16177     PATH_SEPARATOR=:
16178   fi
16179   rm -f conf$$.sh
16180 fi
16181
16182 # Find out how to test for executable files. Don't use a zero-byte file,
16183 # as systems may use methods other than mode bits to determine executability.
16184 cat >conf$$.file <<_ASEOF
16185 #! /bin/sh
16186 exit 0
16187 _ASEOF
16188 chmod +x conf$$.file
16189 if test -x conf$$.file >/dev/null 2>&1; then
16190   ac_executable_p="test -x"
16191 else
16192   ac_executable_p="test -f"
16193 fi
16194 rm -f conf$$.file
16195
16196 # Extract the first word of "xgettext", so it can be a program name with args.
16197 set dummy xgettext; ac_word=$2
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16199 $as_echo_n "checking for $ac_word... " >&6; }
16200 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16201   $as_echo_n "(cached) " >&6
16202 else
16203   case "$XGETTEXT" in
16204   [\\/]* | ?:[\\/]*)
16205     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16206     ;;
16207   *)
16208     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16209     for ac_dir in $PATH; do
16210       IFS="$ac_save_IFS"
16211       test -z "$ac_dir" && ac_dir=.
16212       for ac_exec_ext in '' $ac_executable_extensions; do
16213         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16214           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16215           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16216      (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
16217             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16218             break 2
16219           fi
16220         fi
16221       done
16222     done
16223     IFS="$ac_save_IFS"
16224   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16225     ;;
16226 esac
16227 fi
16228 XGETTEXT="$ac_cv_path_XGETTEXT"
16229 if test "$XGETTEXT" != ":"; then
16230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16231 $as_echo "$XGETTEXT" >&6; }
16232 else
16233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16234 $as_echo "no" >&6; }
16235 fi
16236
16237     rm -f messages.po
16238
16239
16240 # Prepare PATH_SEPARATOR.
16241 # The user is always right.
16242 if test "${PATH_SEPARATOR+set}" != set; then
16243   echo "#! /bin/sh" >conf$$.sh
16244   echo  "exit 0"   >>conf$$.sh
16245   chmod +x conf$$.sh
16246   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16247     PATH_SEPARATOR=';'
16248   else
16249     PATH_SEPARATOR=:
16250   fi
16251   rm -f conf$$.sh
16252 fi
16253
16254 # Find out how to test for executable files. Don't use a zero-byte file,
16255 # as systems may use methods other than mode bits to determine executability.
16256 cat >conf$$.file <<_ASEOF
16257 #! /bin/sh
16258 exit 0
16259 _ASEOF
16260 chmod +x conf$$.file
16261 if test -x conf$$.file >/dev/null 2>&1; then
16262   ac_executable_p="test -x"
16263 else
16264   ac_executable_p="test -f"
16265 fi
16266 rm -f conf$$.file
16267
16268 # Extract the first word of "msgmerge", so it can be a program name with args.
16269 set dummy msgmerge; ac_word=$2
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16271 $as_echo_n "checking for $ac_word... " >&6; }
16272 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16273   $as_echo_n "(cached) " >&6
16274 else
16275   case "$MSGMERGE" in
16276   [\\/]* | ?:[\\/]*)
16277     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16278     ;;
16279   *)
16280     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16281     for ac_dir in $PATH; do
16282       IFS="$ac_save_IFS"
16283       test -z "$ac_dir" && ac_dir=.
16284       for ac_exec_ext in '' $ac_executable_extensions; do
16285         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16286           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16287           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16288             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16289             break 2
16290           fi
16291         fi
16292       done
16293     done
16294     IFS="$ac_save_IFS"
16295   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16296     ;;
16297 esac
16298 fi
16299 MSGMERGE="$ac_cv_path_MSGMERGE"
16300 if test "$MSGMERGE" != ":"; then
16301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16302 $as_echo "$MSGMERGE" >&6; }
16303 else
16304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16305 $as_echo "no" >&6; }
16306 fi
16307
16308
16309       if test "$GMSGFMT" != ":"; then
16310             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16311        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16312       : ;
16313     else
16314       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16316 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16317       GMSGFMT=":"
16318     fi
16319   fi
16320
16321       if test "$XGETTEXT" != ":"; then
16322             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16323        (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
16324       : ;
16325     else
16326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16327 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16328       XGETTEXT=":"
16329     fi
16330         rm -f messages.po
16331   fi
16332
16333   ac_config_commands="$ac_config_commands default-1"
16334
16335
16336
16337       if test "X$prefix" = "XNONE"; then
16338     acl_final_prefix="$ac_default_prefix"
16339   else
16340     acl_final_prefix="$prefix"
16341   fi
16342   if test "X$exec_prefix" = "XNONE"; then
16343     acl_final_exec_prefix='${prefix}'
16344   else
16345     acl_final_exec_prefix="$exec_prefix"
16346   fi
16347   acl_save_prefix="$prefix"
16348   prefix="$acl_final_prefix"
16349   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16350   prefix="$acl_save_prefix"
16351
16352
16353 # Check whether --with-gnu-ld was given.
16354 if test "${with_gnu_ld+set}" = set; then :
16355   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16356 else
16357   with_gnu_ld=no
16358 fi
16359
16360 # Prepare PATH_SEPARATOR.
16361 # The user is always right.
16362 if test "${PATH_SEPARATOR+set}" != set; then
16363   echo "#! /bin/sh" >conf$$.sh
16364   echo  "exit 0"   >>conf$$.sh
16365   chmod +x conf$$.sh
16366   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16367     PATH_SEPARATOR=';'
16368   else
16369     PATH_SEPARATOR=:
16370   fi
16371   rm -f conf$$.sh
16372 fi
16373 ac_prog=ld
16374 if test "$GCC" = yes; then
16375   # Check if gcc -print-prog-name=ld gives a path.
16376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16377 $as_echo_n "checking for ld used by GCC... " >&6; }
16378   case $host in
16379   *-*-mingw*)
16380     # gcc leaves a trailing carriage return which upsets mingw
16381     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16382   *)
16383     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16384   esac
16385   case $ac_prog in
16386     # Accept absolute paths.
16387     [\\/]* | [A-Za-z]:[\\/]*)
16388       re_direlt='/[^/][^/]*/\.\./'
16389       # Canonicalize the path of ld
16390       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16391       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16392         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16393       done
16394       test -z "$LD" && LD="$ac_prog"
16395       ;;
16396   "")
16397     # If it fails, then pretend we aren't using GCC.
16398     ac_prog=ld
16399     ;;
16400   *)
16401     # If it is relative, then search for the first ld in PATH.
16402     with_gnu_ld=unknown
16403     ;;
16404   esac
16405 elif test "$with_gnu_ld" = yes; then
16406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16407 $as_echo_n "checking for GNU ld... " >&6; }
16408 else
16409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16410 $as_echo_n "checking for non-GNU ld... " >&6; }
16411 fi
16412 if test "${acl_cv_path_LD+set}" = set; then :
16413   $as_echo_n "(cached) " >&6
16414 else
16415   if test -z "$LD"; then
16416   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16417   for ac_dir in $PATH; do
16418     test -z "$ac_dir" && ac_dir=.
16419     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16420       acl_cv_path_LD="$ac_dir/$ac_prog"
16421       # Check to see if the program is GNU ld.  I'd rather use --version,
16422       # but apparently some GNU ld's only accept -v.
16423       # Break only if it was the GNU/non-GNU ld that we prefer.
16424       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16425       *GNU* | *'with BFD'*)
16426         test "$with_gnu_ld" != no && break ;;
16427       *)
16428         test "$with_gnu_ld" != yes && break ;;
16429       esac
16430     fi
16431   done
16432   IFS="$ac_save_ifs"
16433 else
16434   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16435 fi
16436 fi
16437
16438 LD="$acl_cv_path_LD"
16439 if test -n "$LD"; then
16440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16441 $as_echo "$LD" >&6; }
16442 else
16443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444 $as_echo "no" >&6; }
16445 fi
16446 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16448 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16449 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16450   $as_echo_n "(cached) " >&6
16451 else
16452   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16453 case `$LD -v 2>&1 </dev/null` in
16454 *GNU* | *'with BFD'*)
16455   acl_cv_prog_gnu_ld=yes ;;
16456 *)
16457   acl_cv_prog_gnu_ld=no ;;
16458 esac
16459 fi
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16461 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16462 with_gnu_ld=$acl_cv_prog_gnu_ld
16463
16464
16465
16466
16467                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16468 $as_echo_n "checking for shared library run path origin... " >&6; }
16469 if test "${acl_cv_rpath+set}" = set; then :
16470   $as_echo_n "(cached) " >&6
16471 else
16472
16473     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16474     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16475     . ./conftest.sh
16476     rm -f ./conftest.sh
16477     acl_cv_rpath=done
16478
16479 fi
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16481 $as_echo "$acl_cv_rpath" >&6; }
16482   wl="$acl_cv_wl"
16483   libext="$acl_cv_libext"
16484   shlibext="$acl_cv_shlibext"
16485   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16486   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16487   hardcode_direct="$acl_cv_hardcode_direct"
16488   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16489     # Check whether --enable-rpath was given.
16490 if test "${enable_rpath+set}" = set; then :
16491   enableval=$enable_rpath; :
16492 else
16493   enable_rpath=yes
16494 fi
16495
16496
16497
16498
16499
16500
16501
16502
16503     use_additional=yes
16504
16505   acl_save_prefix="$prefix"
16506   prefix="$acl_final_prefix"
16507   acl_save_exec_prefix="$exec_prefix"
16508   exec_prefix="$acl_final_exec_prefix"
16509
16510     eval additional_includedir=\"$includedir\"
16511     eval additional_libdir=\"$libdir\"
16512
16513   exec_prefix="$acl_save_exec_prefix"
16514   prefix="$acl_save_prefix"
16515
16516
16517 # Check whether --with-libiconv-prefix was given.
16518 if test "${with_libiconv_prefix+set}" = set; then :
16519   withval=$with_libiconv_prefix;
16520     if test "X$withval" = "Xno"; then
16521       use_additional=no
16522     else
16523       if test "X$withval" = "X"; then
16524
16525   acl_save_prefix="$prefix"
16526   prefix="$acl_final_prefix"
16527   acl_save_exec_prefix="$exec_prefix"
16528   exec_prefix="$acl_final_exec_prefix"
16529
16530           eval additional_includedir=\"$includedir\"
16531           eval additional_libdir=\"$libdir\"
16532
16533   exec_prefix="$acl_save_exec_prefix"
16534   prefix="$acl_save_prefix"
16535
16536       else
16537         additional_includedir="$withval/include"
16538         additional_libdir="$withval/lib"
16539       fi
16540     fi
16541
16542 fi
16543
16544       LIBICONV=
16545   LTLIBICONV=
16546   INCICONV=
16547   rpathdirs=
16548   ltrpathdirs=
16549   names_already_handled=
16550   names_next_round='iconv '
16551   while test -n "$names_next_round"; do
16552     names_this_round="$names_next_round"
16553     names_next_round=
16554     for name in $names_this_round; do
16555       already_handled=
16556       for n in $names_already_handled; do
16557         if test "$n" = "$name"; then
16558           already_handled=yes
16559           break
16560         fi
16561       done
16562       if test -z "$already_handled"; then
16563         names_already_handled="$names_already_handled $name"
16564                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16565         eval value=\"\$HAVE_LIB$uppername\"
16566         if test -n "$value"; then
16567           if test "$value" = yes; then
16568             eval value=\"\$LIB$uppername\"
16569             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16570             eval value=\"\$LTLIB$uppername\"
16571             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16572           else
16573                                     :
16574           fi
16575         else
16576                               found_dir=
16577           found_la=
16578           found_so=
16579           found_a=
16580           if test $use_additional = yes; then
16581             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16582               found_dir="$additional_libdir"
16583               found_so="$additional_libdir/lib$name.$shlibext"
16584               if test -f "$additional_libdir/lib$name.la"; then
16585                 found_la="$additional_libdir/lib$name.la"
16586               fi
16587             else
16588               if test -f "$additional_libdir/lib$name.$libext"; then
16589                 found_dir="$additional_libdir"
16590                 found_a="$additional_libdir/lib$name.$libext"
16591                 if test -f "$additional_libdir/lib$name.la"; then
16592                   found_la="$additional_libdir/lib$name.la"
16593                 fi
16594               fi
16595             fi
16596           fi
16597           if test "X$found_dir" = "X"; then
16598             for x in $LDFLAGS $LTLIBICONV; do
16599
16600   acl_save_prefix="$prefix"
16601   prefix="$acl_final_prefix"
16602   acl_save_exec_prefix="$exec_prefix"
16603   exec_prefix="$acl_final_exec_prefix"
16604   eval x=\"$x\"
16605   exec_prefix="$acl_save_exec_prefix"
16606   prefix="$acl_save_prefix"
16607
16608               case "$x" in
16609                 -L*)
16610                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16611                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16612                     found_dir="$dir"
16613                     found_so="$dir/lib$name.$shlibext"
16614                     if test -f "$dir/lib$name.la"; then
16615                       found_la="$dir/lib$name.la"
16616                     fi
16617                   else
16618                     if test -f "$dir/lib$name.$libext"; then
16619                       found_dir="$dir"
16620                       found_a="$dir/lib$name.$libext"
16621                       if test -f "$dir/lib$name.la"; then
16622                         found_la="$dir/lib$name.la"
16623                       fi
16624                     fi
16625                   fi
16626                   ;;
16627               esac
16628               if test "X$found_dir" != "X"; then
16629                 break
16630               fi
16631             done
16632           fi
16633           if test "X$found_dir" != "X"; then
16634                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16635             if test "X$found_so" != "X"; then
16636                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16637                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16638               else
16639                                                                                 haveit=
16640                 for x in $ltrpathdirs; do
16641                   if test "X$x" = "X$found_dir"; then
16642                     haveit=yes
16643                     break
16644                   fi
16645                 done
16646                 if test -z "$haveit"; then
16647                   ltrpathdirs="$ltrpathdirs $found_dir"
16648                 fi
16649                                 if test "$hardcode_direct" = yes; then
16650                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16651                 else
16652                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16653                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16654                                                             haveit=
16655                     for x in $rpathdirs; do
16656                       if test "X$x" = "X$found_dir"; then
16657                         haveit=yes
16658                         break
16659                       fi
16660                     done
16661                     if test -z "$haveit"; then
16662                       rpathdirs="$rpathdirs $found_dir"
16663                     fi
16664                   else
16665                                                                                 haveit=
16666                     for x in $LDFLAGS $LIBICONV; do
16667
16668   acl_save_prefix="$prefix"
16669   prefix="$acl_final_prefix"
16670   acl_save_exec_prefix="$exec_prefix"
16671   exec_prefix="$acl_final_exec_prefix"
16672   eval x=\"$x\"
16673   exec_prefix="$acl_save_exec_prefix"
16674   prefix="$acl_save_prefix"
16675
16676                       if test "X$x" = "X-L$found_dir"; then
16677                         haveit=yes
16678                         break
16679                       fi
16680                     done
16681                     if test -z "$haveit"; then
16682                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16683                     fi
16684                     if test "$hardcode_minus_L" != no; then
16685                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16686                     else
16687                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16688                     fi
16689                   fi
16690                 fi
16691               fi
16692             else
16693               if test "X$found_a" != "X"; then
16694                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16695               else
16696                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16697               fi
16698             fi
16699                         additional_includedir=
16700             case "$found_dir" in
16701               */lib | */lib/)
16702                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16703                 additional_includedir="$basedir/include"
16704                 ;;
16705             esac
16706             if test "X$additional_includedir" != "X"; then
16707                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16708                 haveit=
16709                 if test "X$additional_includedir" = "X/usr/local/include"; then
16710                   if test -n "$GCC"; then
16711                     case $host_os in
16712                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16713                     esac
16714                   fi
16715                 fi
16716                 if test -z "$haveit"; then
16717                   for x in $CPPFLAGS $INCICONV; do
16718
16719   acl_save_prefix="$prefix"
16720   prefix="$acl_final_prefix"
16721   acl_save_exec_prefix="$exec_prefix"
16722   exec_prefix="$acl_final_exec_prefix"
16723   eval x=\"$x\"
16724   exec_prefix="$acl_save_exec_prefix"
16725   prefix="$acl_save_prefix"
16726
16727                     if test "X$x" = "X-I$additional_includedir"; then
16728                       haveit=yes
16729                       break
16730                     fi
16731                   done
16732                   if test -z "$haveit"; then
16733                     if test -d "$additional_includedir"; then
16734                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16735                     fi
16736                   fi
16737                 fi
16738               fi
16739             fi
16740                         if test -n "$found_la"; then
16741                                                         save_libdir="$libdir"
16742               case "$found_la" in
16743                 */* | *\\*) . "$found_la" ;;
16744                 *) . "./$found_la" ;;
16745               esac
16746               libdir="$save_libdir"
16747                             for dep in $dependency_libs; do
16748                 case "$dep" in
16749                   -L*)
16750                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16751                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16752                       haveit=
16753                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16754                         if test -n "$GCC"; then
16755                           case $host_os in
16756                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16757                           esac
16758                         fi
16759                       fi
16760                       if test -z "$haveit"; then
16761                         haveit=
16762                         for x in $LDFLAGS $LIBICONV; do
16763
16764   acl_save_prefix="$prefix"
16765   prefix="$acl_final_prefix"
16766   acl_save_exec_prefix="$exec_prefix"
16767   exec_prefix="$acl_final_exec_prefix"
16768   eval x=\"$x\"
16769   exec_prefix="$acl_save_exec_prefix"
16770   prefix="$acl_save_prefix"
16771
16772                           if test "X$x" = "X-L$additional_libdir"; then
16773                             haveit=yes
16774                             break
16775                           fi
16776                         done
16777                         if test -z "$haveit"; then
16778                           if test -d "$additional_libdir"; then
16779                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16780                           fi
16781                         fi
16782                         haveit=
16783                         for x in $LDFLAGS $LTLIBICONV; do
16784
16785   acl_save_prefix="$prefix"
16786   prefix="$acl_final_prefix"
16787   acl_save_exec_prefix="$exec_prefix"
16788   exec_prefix="$acl_final_exec_prefix"
16789   eval x=\"$x\"
16790   exec_prefix="$acl_save_exec_prefix"
16791   prefix="$acl_save_prefix"
16792
16793                           if test "X$x" = "X-L$additional_libdir"; then
16794                             haveit=yes
16795                             break
16796                           fi
16797                         done
16798                         if test -z "$haveit"; then
16799                           if test -d "$additional_libdir"; then
16800                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16801                           fi
16802                         fi
16803                       fi
16804                     fi
16805                     ;;
16806                   -R*)
16807                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16808                     if test "$enable_rpath" != no; then
16809                                                                   haveit=
16810                       for x in $rpathdirs; do
16811                         if test "X$x" = "X$dir"; then
16812                           haveit=yes
16813                           break
16814                         fi
16815                       done
16816                       if test -z "$haveit"; then
16817                         rpathdirs="$rpathdirs $dir"
16818                       fi
16819                                                                   haveit=
16820                       for x in $ltrpathdirs; do
16821                         if test "X$x" = "X$dir"; then
16822                           haveit=yes
16823                           break
16824                         fi
16825                       done
16826                       if test -z "$haveit"; then
16827                         ltrpathdirs="$ltrpathdirs $dir"
16828                       fi
16829                     fi
16830                     ;;
16831                   -l*)
16832                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16833                     ;;
16834                   *.la)
16835                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16836                     ;;
16837                   *)
16838                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16839                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16840                     ;;
16841                 esac
16842               done
16843             fi
16844           else
16845                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16846             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16847           fi
16848         fi
16849       fi
16850     done
16851   done
16852   if test "X$rpathdirs" != "X"; then
16853     if test -n "$hardcode_libdir_separator"; then
16854                         alldirs=
16855       for found_dir in $rpathdirs; do
16856         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16857       done
16858             acl_save_libdir="$libdir"
16859       libdir="$alldirs"
16860       eval flag=\"$hardcode_libdir_flag_spec\"
16861       libdir="$acl_save_libdir"
16862       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16863     else
16864             for found_dir in $rpathdirs; do
16865         acl_save_libdir="$libdir"
16866         libdir="$found_dir"
16867         eval flag=\"$hardcode_libdir_flag_spec\"
16868         libdir="$acl_save_libdir"
16869         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16870       done
16871     fi
16872   fi
16873   if test "X$ltrpathdirs" != "X"; then
16874             for found_dir in $ltrpathdirs; do
16875       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16876     done
16877   fi
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16897 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16898 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16899   $as_echo_n "(cached) " >&6
16900 else
16901   gt_save_CPPFLAGS="$CPPFLAGS"
16902      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16903      gt_save_LIBS="$LIBS"
16904      LIBS="$LIBS -framework CoreFoundation"
16905      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906 /* end confdefs.h.  */
16907 #include <CFPreferences.h>
16908 int
16909 main ()
16910 {
16911 CFPreferencesCopyAppValue(NULL, NULL)
16912   ;
16913   return 0;
16914 }
16915 _ACEOF
16916 if ac_fn_c_try_link "$LINENO"; then :
16917   gt_cv_func_CFPreferencesCopyAppValue=yes
16918 else
16919   gt_cv_func_CFPreferencesCopyAppValue=no
16920 fi
16921 rm -f core conftest.err conftest.$ac_objext \
16922     conftest$ac_exeext conftest.$ac_ext
16923      CPPFLAGS="$gt_save_CPPFLAGS"
16924      LIBS="$gt_save_LIBS"
16925 fi
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16927 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16928   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16929
16930 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16931
16932   fi
16933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16934 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16935 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16936   $as_echo_n "(cached) " >&6
16937 else
16938   gt_save_CPPFLAGS="$CPPFLAGS"
16939      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16940      gt_save_LIBS="$LIBS"
16941      LIBS="$LIBS -framework CoreFoundation"
16942      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h.  */
16944 #include <CFLocale.h>
16945 int
16946 main ()
16947 {
16948 CFLocaleCopyCurrent();
16949   ;
16950   return 0;
16951 }
16952 _ACEOF
16953 if ac_fn_c_try_link "$LINENO"; then :
16954   gt_cv_func_CFLocaleCopyCurrent=yes
16955 else
16956   gt_cv_func_CFLocaleCopyCurrent=no
16957 fi
16958 rm -f core conftest.err conftest.$ac_objext \
16959     conftest$ac_exeext conftest.$ac_ext
16960      CPPFLAGS="$gt_save_CPPFLAGS"
16961      LIBS="$gt_save_LIBS"
16962 fi
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16964 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16965   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16966
16967 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16968
16969   fi
16970   INTL_MACOSX_LIBS=
16971   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16972     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16973   fi
16974
16975
16976
16977
16978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16979 $as_echo_n "checking whether NLS is requested... " >&6; }
16980     # Check whether --enable-nls was given.
16981 if test "${enable_nls+set}" = set; then :
16982   enableval=$enable_nls; USE_NLS=$enableval
16983 else
16984   USE_NLS=yes
16985 fi
16986
16987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16988 $as_echo "$USE_NLS" >&6; }
16989
16990
16991
16992
16993   LIBINTL=
16994   LTLIBINTL=
16995   POSUB=
16996
16997     if test "$USE_NLS" = "yes"; then
16998     gt_use_preinstalled_gnugettext=no
16999
17000
17001
17002
17003
17004
17005         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17006 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17007 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17008   $as_echo_n "(cached) " >&6
17009 else
17010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011 /* end confdefs.h.  */
17012 #include <libintl.h>
17013 extern int _nl_msg_cat_cntr;
17014 extern int *_nl_domain_bindings;
17015 int
17016 main ()
17017 {
17018 bindtextdomain ("", "");
17019 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17020   ;
17021   return 0;
17022 }
17023 _ACEOF
17024 if ac_fn_c_try_link "$LINENO"; then :
17025   gt_cv_func_gnugettext1_libc=yes
17026 else
17027   gt_cv_func_gnugettext1_libc=no
17028 fi
17029 rm -f core conftest.err conftest.$ac_objext \
17030     conftest$ac_exeext conftest.$ac_ext
17031 fi
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17033 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17034
17035         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17036
17037
17038
17039
17040
17041           am_save_CPPFLAGS="$CPPFLAGS"
17042
17043   for element in $INCICONV; do
17044     haveit=
17045     for x in $CPPFLAGS; do
17046
17047   acl_save_prefix="$prefix"
17048   prefix="$acl_final_prefix"
17049   acl_save_exec_prefix="$exec_prefix"
17050   exec_prefix="$acl_final_exec_prefix"
17051   eval x=\"$x\"
17052   exec_prefix="$acl_save_exec_prefix"
17053   prefix="$acl_save_prefix"
17054
17055       if test "X$x" = "X$element"; then
17056         haveit=yes
17057         break
17058       fi
17059     done
17060     if test -z "$haveit"; then
17061       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17062     fi
17063   done
17064
17065
17066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17067 $as_echo_n "checking for iconv... " >&6; }
17068 if test "${am_cv_func_iconv+set}" = set; then :
17069   $as_echo_n "(cached) " >&6
17070 else
17071
17072     am_cv_func_iconv="no, consider installing GNU libiconv"
17073     am_cv_lib_iconv=no
17074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h.  */
17076 #include <stdlib.h>
17077 #include <iconv.h>
17078 int
17079 main ()
17080 {
17081 iconv_t cd = iconv_open("","");
17082        iconv(cd,NULL,NULL,NULL,NULL);
17083        iconv_close(cd);
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 if ac_fn_c_try_link "$LINENO"; then :
17089   am_cv_func_iconv=yes
17090 fi
17091 rm -f core conftest.err conftest.$ac_objext \
17092     conftest$ac_exeext conftest.$ac_ext
17093     if test "$am_cv_func_iconv" != yes; then
17094       am_save_LIBS="$LIBS"
17095       LIBS="$LIBS $LIBICONV"
17096       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h.  */
17098 #include <stdlib.h>
17099 #include <iconv.h>
17100 int
17101 main ()
17102 {
17103 iconv_t cd = iconv_open("","");
17104          iconv(cd,NULL,NULL,NULL,NULL);
17105          iconv_close(cd);
17106   ;
17107   return 0;
17108 }
17109 _ACEOF
17110 if ac_fn_c_try_link "$LINENO"; then :
17111   am_cv_lib_iconv=yes
17112         am_cv_func_iconv=yes
17113 fi
17114 rm -f core conftest.err conftest.$ac_objext \
17115     conftest$ac_exeext conftest.$ac_ext
17116       LIBS="$am_save_LIBS"
17117     fi
17118
17119 fi
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17121 $as_echo "$am_cv_func_iconv" >&6; }
17122   if test "$am_cv_func_iconv" = yes; then
17123
17124 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17125
17126   fi
17127   if test "$am_cv_lib_iconv" = yes; then
17128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17129 $as_echo_n "checking how to link with libiconv... " >&6; }
17130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17131 $as_echo "$LIBICONV" >&6; }
17132   else
17133             CPPFLAGS="$am_save_CPPFLAGS"
17134     LIBICONV=
17135     LTLIBICONV=
17136   fi
17137
17138
17139
17140
17141
17142
17143     use_additional=yes
17144
17145   acl_save_prefix="$prefix"
17146   prefix="$acl_final_prefix"
17147   acl_save_exec_prefix="$exec_prefix"
17148   exec_prefix="$acl_final_exec_prefix"
17149
17150     eval additional_includedir=\"$includedir\"
17151     eval additional_libdir=\"$libdir\"
17152
17153   exec_prefix="$acl_save_exec_prefix"
17154   prefix="$acl_save_prefix"
17155
17156
17157 # Check whether --with-libintl-prefix was given.
17158 if test "${with_libintl_prefix+set}" = set; then :
17159   withval=$with_libintl_prefix;
17160     if test "X$withval" = "Xno"; then
17161       use_additional=no
17162     else
17163       if test "X$withval" = "X"; then
17164
17165   acl_save_prefix="$prefix"
17166   prefix="$acl_final_prefix"
17167   acl_save_exec_prefix="$exec_prefix"
17168   exec_prefix="$acl_final_exec_prefix"
17169
17170           eval additional_includedir=\"$includedir\"
17171           eval additional_libdir=\"$libdir\"
17172
17173   exec_prefix="$acl_save_exec_prefix"
17174   prefix="$acl_save_prefix"
17175
17176       else
17177         additional_includedir="$withval/include"
17178         additional_libdir="$withval/lib"
17179       fi
17180     fi
17181
17182 fi
17183
17184       LIBINTL=
17185   LTLIBINTL=
17186   INCINTL=
17187   rpathdirs=
17188   ltrpathdirs=
17189   names_already_handled=
17190   names_next_round='intl '
17191   while test -n "$names_next_round"; do
17192     names_this_round="$names_next_round"
17193     names_next_round=
17194     for name in $names_this_round; do
17195       already_handled=
17196       for n in $names_already_handled; do
17197         if test "$n" = "$name"; then
17198           already_handled=yes
17199           break
17200         fi
17201       done
17202       if test -z "$already_handled"; then
17203         names_already_handled="$names_already_handled $name"
17204                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17205         eval value=\"\$HAVE_LIB$uppername\"
17206         if test -n "$value"; then
17207           if test "$value" = yes; then
17208             eval value=\"\$LIB$uppername\"
17209             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17210             eval value=\"\$LTLIB$uppername\"
17211             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17212           else
17213                                     :
17214           fi
17215         else
17216                               found_dir=
17217           found_la=
17218           found_so=
17219           found_a=
17220           if test $use_additional = yes; then
17221             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17222               found_dir="$additional_libdir"
17223               found_so="$additional_libdir/lib$name.$shlibext"
17224               if test -f "$additional_libdir/lib$name.la"; then
17225                 found_la="$additional_libdir/lib$name.la"
17226               fi
17227             else
17228               if test -f "$additional_libdir/lib$name.$libext"; then
17229                 found_dir="$additional_libdir"
17230                 found_a="$additional_libdir/lib$name.$libext"
17231                 if test -f "$additional_libdir/lib$name.la"; then
17232                   found_la="$additional_libdir/lib$name.la"
17233                 fi
17234               fi
17235             fi
17236           fi
17237           if test "X$found_dir" = "X"; then
17238             for x in $LDFLAGS $LTLIBINTL; do
17239
17240   acl_save_prefix="$prefix"
17241   prefix="$acl_final_prefix"
17242   acl_save_exec_prefix="$exec_prefix"
17243   exec_prefix="$acl_final_exec_prefix"
17244   eval x=\"$x\"
17245   exec_prefix="$acl_save_exec_prefix"
17246   prefix="$acl_save_prefix"
17247
17248               case "$x" in
17249                 -L*)
17250                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17251                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17252                     found_dir="$dir"
17253                     found_so="$dir/lib$name.$shlibext"
17254                     if test -f "$dir/lib$name.la"; then
17255                       found_la="$dir/lib$name.la"
17256                     fi
17257                   else
17258                     if test -f "$dir/lib$name.$libext"; then
17259                       found_dir="$dir"
17260                       found_a="$dir/lib$name.$libext"
17261                       if test -f "$dir/lib$name.la"; then
17262                         found_la="$dir/lib$name.la"
17263                       fi
17264                     fi
17265                   fi
17266                   ;;
17267               esac
17268               if test "X$found_dir" != "X"; then
17269                 break
17270               fi
17271             done
17272           fi
17273           if test "X$found_dir" != "X"; then
17274                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17275             if test "X$found_so" != "X"; then
17276                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17277                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17278               else
17279                                                                                 haveit=
17280                 for x in $ltrpathdirs; do
17281                   if test "X$x" = "X$found_dir"; then
17282                     haveit=yes
17283                     break
17284                   fi
17285                 done
17286                 if test -z "$haveit"; then
17287                   ltrpathdirs="$ltrpathdirs $found_dir"
17288                 fi
17289                                 if test "$hardcode_direct" = yes; then
17290                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17291                 else
17292                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17293                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17294                                                             haveit=
17295                     for x in $rpathdirs; do
17296                       if test "X$x" = "X$found_dir"; then
17297                         haveit=yes
17298                         break
17299                       fi
17300                     done
17301                     if test -z "$haveit"; then
17302                       rpathdirs="$rpathdirs $found_dir"
17303                     fi
17304                   else
17305                                                                                 haveit=
17306                     for x in $LDFLAGS $LIBINTL; do
17307
17308   acl_save_prefix="$prefix"
17309   prefix="$acl_final_prefix"
17310   acl_save_exec_prefix="$exec_prefix"
17311   exec_prefix="$acl_final_exec_prefix"
17312   eval x=\"$x\"
17313   exec_prefix="$acl_save_exec_prefix"
17314   prefix="$acl_save_prefix"
17315
17316                       if test "X$x" = "X-L$found_dir"; then
17317                         haveit=yes
17318                         break
17319                       fi
17320                     done
17321                     if test -z "$haveit"; then
17322                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17323                     fi
17324                     if test "$hardcode_minus_L" != no; then
17325                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17326                     else
17327                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17328                     fi
17329                   fi
17330                 fi
17331               fi
17332             else
17333               if test "X$found_a" != "X"; then
17334                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17335               else
17336                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17337               fi
17338             fi
17339                         additional_includedir=
17340             case "$found_dir" in
17341               */lib | */lib/)
17342                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17343                 additional_includedir="$basedir/include"
17344                 ;;
17345             esac
17346             if test "X$additional_includedir" != "X"; then
17347                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17348                 haveit=
17349                 if test "X$additional_includedir" = "X/usr/local/include"; then
17350                   if test -n "$GCC"; then
17351                     case $host_os in
17352                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17353                     esac
17354                   fi
17355                 fi
17356                 if test -z "$haveit"; then
17357                   for x in $CPPFLAGS $INCINTL; do
17358
17359   acl_save_prefix="$prefix"
17360   prefix="$acl_final_prefix"
17361   acl_save_exec_prefix="$exec_prefix"
17362   exec_prefix="$acl_final_exec_prefix"
17363   eval x=\"$x\"
17364   exec_prefix="$acl_save_exec_prefix"
17365   prefix="$acl_save_prefix"
17366
17367                     if test "X$x" = "X-I$additional_includedir"; then
17368                       haveit=yes
17369                       break
17370                     fi
17371                   done
17372                   if test -z "$haveit"; then
17373                     if test -d "$additional_includedir"; then
17374                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17375                     fi
17376                   fi
17377                 fi
17378               fi
17379             fi
17380                         if test -n "$found_la"; then
17381                                                         save_libdir="$libdir"
17382               case "$found_la" in
17383                 */* | *\\*) . "$found_la" ;;
17384                 *) . "./$found_la" ;;
17385               esac
17386               libdir="$save_libdir"
17387                             for dep in $dependency_libs; do
17388                 case "$dep" in
17389                   -L*)
17390                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17391                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17392                       haveit=
17393                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17394                         if test -n "$GCC"; then
17395                           case $host_os in
17396                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17397                           esac
17398                         fi
17399                       fi
17400                       if test -z "$haveit"; then
17401                         haveit=
17402                         for x in $LDFLAGS $LIBINTL; do
17403
17404   acl_save_prefix="$prefix"
17405   prefix="$acl_final_prefix"
17406   acl_save_exec_prefix="$exec_prefix"
17407   exec_prefix="$acl_final_exec_prefix"
17408   eval x=\"$x\"
17409   exec_prefix="$acl_save_exec_prefix"
17410   prefix="$acl_save_prefix"
17411
17412                           if test "X$x" = "X-L$additional_libdir"; then
17413                             haveit=yes
17414                             break
17415                           fi
17416                         done
17417                         if test -z "$haveit"; then
17418                           if test -d "$additional_libdir"; then
17419                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17420                           fi
17421                         fi
17422                         haveit=
17423                         for x in $LDFLAGS $LTLIBINTL; do
17424
17425   acl_save_prefix="$prefix"
17426   prefix="$acl_final_prefix"
17427   acl_save_exec_prefix="$exec_prefix"
17428   exec_prefix="$acl_final_exec_prefix"
17429   eval x=\"$x\"
17430   exec_prefix="$acl_save_exec_prefix"
17431   prefix="$acl_save_prefix"
17432
17433                           if test "X$x" = "X-L$additional_libdir"; then
17434                             haveit=yes
17435                             break
17436                           fi
17437                         done
17438                         if test -z "$haveit"; then
17439                           if test -d "$additional_libdir"; then
17440                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17441                           fi
17442                         fi
17443                       fi
17444                     fi
17445                     ;;
17446                   -R*)
17447                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17448                     if test "$enable_rpath" != no; then
17449                                                                   haveit=
17450                       for x in $rpathdirs; do
17451                         if test "X$x" = "X$dir"; then
17452                           haveit=yes
17453                           break
17454                         fi
17455                       done
17456                       if test -z "$haveit"; then
17457                         rpathdirs="$rpathdirs $dir"
17458                       fi
17459                                                                   haveit=
17460                       for x in $ltrpathdirs; do
17461                         if test "X$x" = "X$dir"; then
17462                           haveit=yes
17463                           break
17464                         fi
17465                       done
17466                       if test -z "$haveit"; then
17467                         ltrpathdirs="$ltrpathdirs $dir"
17468                       fi
17469                     fi
17470                     ;;
17471                   -l*)
17472                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17473                     ;;
17474                   *.la)
17475                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17476                     ;;
17477                   *)
17478                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17479                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17480                     ;;
17481                 esac
17482               done
17483             fi
17484           else
17485                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17486             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17487           fi
17488         fi
17489       fi
17490     done
17491   done
17492   if test "X$rpathdirs" != "X"; then
17493     if test -n "$hardcode_libdir_separator"; then
17494                         alldirs=
17495       for found_dir in $rpathdirs; do
17496         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17497       done
17498             acl_save_libdir="$libdir"
17499       libdir="$alldirs"
17500       eval flag=\"$hardcode_libdir_flag_spec\"
17501       libdir="$acl_save_libdir"
17502       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17503     else
17504             for found_dir in $rpathdirs; do
17505         acl_save_libdir="$libdir"
17506         libdir="$found_dir"
17507         eval flag=\"$hardcode_libdir_flag_spec\"
17508         libdir="$acl_save_libdir"
17509         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17510       done
17511     fi
17512   fi
17513   if test "X$ltrpathdirs" != "X"; then
17514             for found_dir in $ltrpathdirs; do
17515       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17516     done
17517   fi
17518
17519           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17520 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17521 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17522   $as_echo_n "(cached) " >&6
17523 else
17524   gt_save_CPPFLAGS="$CPPFLAGS"
17525             CPPFLAGS="$CPPFLAGS $INCINTL"
17526             gt_save_LIBS="$LIBS"
17527             LIBS="$LIBS $LIBINTL"
17528                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529 /* end confdefs.h.  */
17530 #include <libintl.h>
17531 extern int _nl_msg_cat_cntr;
17532 extern
17533 #ifdef __cplusplus
17534 "C"
17535 #endif
17536 const char *_nl_expand_alias (const char *);
17537 int
17538 main ()
17539 {
17540 bindtextdomain ("", "");
17541 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17542   ;
17543   return 0;
17544 }
17545 _ACEOF
17546 if ac_fn_c_try_link "$LINENO"; then :
17547   gt_cv_func_gnugettext1_libintl=yes
17548 else
17549   gt_cv_func_gnugettext1_libintl=no
17550 fi
17551 rm -f core conftest.err conftest.$ac_objext \
17552     conftest$ac_exeext conftest.$ac_ext
17553                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17554               LIBS="$LIBS $LIBICONV"
17555               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h.  */
17557 #include <libintl.h>
17558 extern int _nl_msg_cat_cntr;
17559 extern
17560 #ifdef __cplusplus
17561 "C"
17562 #endif
17563 const char *_nl_expand_alias (const char *);
17564 int
17565 main ()
17566 {
17567 bindtextdomain ("", "");
17568 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17569   ;
17570   return 0;
17571 }
17572 _ACEOF
17573 if ac_fn_c_try_link "$LINENO"; then :
17574   LIBINTL="$LIBINTL $LIBICONV"
17575                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17576                 gt_cv_func_gnugettext1_libintl=yes
17577
17578 fi
17579 rm -f core conftest.err conftest.$ac_objext \
17580     conftest$ac_exeext conftest.$ac_ext
17581             fi
17582             CPPFLAGS="$gt_save_CPPFLAGS"
17583             LIBS="$gt_save_LIBS"
17584 fi
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17586 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17587         fi
17588
17589                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17590            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17591                 && test "$PACKAGE" != gettext-runtime \
17592                 && test "$PACKAGE" != gettext-tools; }; then
17593           gt_use_preinstalled_gnugettext=yes
17594         else
17595                     LIBINTL=
17596           LTLIBINTL=
17597           INCINTL=
17598         fi
17599
17600
17601
17602     if test -n "$INTL_MACOSX_LIBS"; then
17603       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17604          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17605                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17606         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17607       fi
17608     fi
17609
17610     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17611        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17612
17613 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17614
17615     else
17616       USE_NLS=no
17617     fi
17618   fi
17619
17620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17621 $as_echo_n "checking whether to use NLS... " >&6; }
17622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17623 $as_echo "$USE_NLS" >&6; }
17624   if test "$USE_NLS" = "yes"; then
17625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17626 $as_echo_n "checking where the gettext function comes from... " >&6; }
17627     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17628       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17629         gt_source="external libintl"
17630       else
17631         gt_source="libc"
17632       fi
17633     else
17634       gt_source="included intl directory"
17635     fi
17636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17637 $as_echo "$gt_source" >&6; }
17638   fi
17639
17640   if test "$USE_NLS" = "yes"; then
17641
17642     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17643       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17645 $as_echo_n "checking how to link with libintl... " >&6; }
17646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17647 $as_echo "$LIBINTL" >&6; }
17648
17649   for element in $INCINTL; do
17650     haveit=
17651     for x in $CPPFLAGS; do
17652
17653   acl_save_prefix="$prefix"
17654   prefix="$acl_final_prefix"
17655   acl_save_exec_prefix="$exec_prefix"
17656   exec_prefix="$acl_final_exec_prefix"
17657   eval x=\"$x\"
17658   exec_prefix="$acl_save_exec_prefix"
17659   prefix="$acl_save_prefix"
17660
17661       if test "X$x" = "X$element"; then
17662         haveit=yes
17663         break
17664       fi
17665     done
17666     if test -z "$haveit"; then
17667       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17668     fi
17669   done
17670
17671       fi
17672
17673
17674 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17675
17676
17677 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17678
17679     fi
17680
17681         POSUB=po
17682   fi
17683
17684
17685
17686     INTLLIBS="$LIBINTL"
17687
17688
17689
17690
17691
17692
17693
17694 os_name=`uname -s 2>/dev/null`
17695 if test x${prefix} = xNONE ; then
17696    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17697       sysconfdir=/etc/bacula
17698    fi
17699
17700    if test `eval echo ${libdir}` = NONE/lib ; then
17701       case ${os_name} in
17702       Linux)
17703          os_processor=`uname -p 2>/dev/null`
17704          case ${os_processor} in
17705          x86_64)
17706             libdir=/usr/lib64
17707             ;;
17708          *)
17709             libdir=/usr/lib
17710             ;;
17711          esac
17712          ;;
17713       *)
17714          libdir=/usr/lib
17715          ;;
17716       esac
17717    fi
17718
17719    if test `eval echo ${includedir}` = NONE/include ; then
17720       includedir=/usr/include
17721    fi
17722
17723    if test `eval echo ${datarootdir}` = NONE/share ; then
17724       datarootdir=/usr/share
17725    fi
17726    prefix=
17727 fi
17728
17729 if test x${exec_prefix} = xNONE ; then
17730    exec_prefix=${prefix}
17731 fi
17732
17733 sysconfdir=`eval echo ${sysconfdir}`
17734 datarootdir=`eval echo ${datarootdir}`
17735 docdir=`eval echo ${docdir}`
17736 htmldir=`eval echo ${htmldir}`
17737 libdir=`eval echo ${libdir}`
17738 includedir=`eval echo ${includedir}`
17739 localedir=`eval echo ${datarootdir}/locale`
17740 cat >>confdefs.h <<_ACEOF
17741 #define SYSCONFDIR "$sysconfdir"
17742 _ACEOF
17743
17744 cat >>confdefs.h <<_ACEOF
17745 #define LOCALEDIR "$localedir"
17746 _ACEOF
17747
17748
17749 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17750    sbindir=${exec_prefix}/sbin
17751 fi
17752 sbindir=`eval echo ${sbindir}`
17753
17754 if test x$mandir = x'${prefix}/man' ; then
17755    mandir=/usr/share/man
17756 fi
17757
17758 if test x$htmldir = x${docdir} ; then
17759    htmldir=`eval echo ${docdir}bacula/html`
17760 fi
17761
17762 if test x$docdir = x'/usr/share/doc/' ; then
17763    docdir=`eval echo ${docdir}bacula`
17764 fi
17765
17766
17767 for ac_prog in msgfmt
17768 do
17769   # Extract the first word of "$ac_prog", so it can be a program name with args.
17770 set dummy $ac_prog; ac_word=$2
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17772 $as_echo_n "checking for $ac_word... " >&6; }
17773 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17774   $as_echo_n "(cached) " >&6
17775 else
17776   case $MSGFMT in
17777   [\\/]* | ?:[\\/]*)
17778   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17779   ;;
17780   *)
17781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17782 for as_dir in $PATH
17783 do
17784   IFS=$as_save_IFS
17785   test -z "$as_dir" && as_dir=.
17786     for ac_exec_ext in '' $ac_executable_extensions; do
17787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17788     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17790     break 2
17791   fi
17792 done
17793   done
17794 IFS=$as_save_IFS
17795
17796   ;;
17797 esac
17798 fi
17799 MSGFMT=$ac_cv_path_MSGFMT
17800 if test -n "$MSGFMT"; then
17801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17802 $as_echo "$MSGFMT" >&6; }
17803 else
17804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17805 $as_echo "no" >&6; }
17806 fi
17807
17808
17809   test -n "$MSGFMT" && break
17810 done
17811 test -n "$MSGFMT" || MSGFMT="no"
17812
17813 if test "$MSGFMT" = "no"
17814 then
17815    echo 'msgfmt program not found, disabling NLS !'
17816    USE_NLS=no
17817    USE_INCLUDED_LIBINTL=no
17818 #else
17819
17820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17821 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17822 if test "${ac_cv_gnu_library_2+set}" = set; then :
17823   $as_echo_n "(cached) " >&6
17824 else
17825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h.  */
17827
17828 #include <features.h>
17829 #ifdef __GNU_LIBRARY__
17830  #if (__GLIBC__ >= 2)
17831   Lucky GNU user
17832  #endif
17833 #endif
17834
17835 _ACEOF
17836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17837   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17838   ac_cv_gnu_library_2=yes
17839 else
17840   ac_cv_gnu_library_2=no
17841 fi
17842 rm -f conftest*
17843
17844
17845
17846 fi
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17848 $as_echo "$ac_cv_gnu_library_2" >&6; }
17849
17850     GLIBC2="$ac_cv_gnu_library_2"
17851
17852
17853 if test -n "$ac_tool_prefix"; then
17854   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17857 $as_echo_n "checking for $ac_word... " >&6; }
17858 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17859   $as_echo_n "(cached) " >&6
17860 else
17861   if test -n "$RANLIB"; then
17862   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17863 else
17864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17865 for as_dir in $PATH
17866 do
17867   IFS=$as_save_IFS
17868   test -z "$as_dir" && as_dir=.
17869     for ac_exec_ext in '' $ac_executable_extensions; do
17870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17871     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17873     break 2
17874   fi
17875 done
17876   done
17877 IFS=$as_save_IFS
17878
17879 fi
17880 fi
17881 RANLIB=$ac_cv_prog_RANLIB
17882 if test -n "$RANLIB"; then
17883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17884 $as_echo "$RANLIB" >&6; }
17885 else
17886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17887 $as_echo "no" >&6; }
17888 fi
17889
17890
17891 fi
17892 if test -z "$ac_cv_prog_RANLIB"; then
17893   ac_ct_RANLIB=$RANLIB
17894   # Extract the first word of "ranlib", so it can be a program name with args.
17895 set dummy ranlib; ac_word=$2
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17897 $as_echo_n "checking for $ac_word... " >&6; }
17898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17899   $as_echo_n "(cached) " >&6
17900 else
17901   if test -n "$ac_ct_RANLIB"; then
17902   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17903 else
17904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17905 for as_dir in $PATH
17906 do
17907   IFS=$as_save_IFS
17908   test -z "$as_dir" && as_dir=.
17909     for ac_exec_ext in '' $ac_executable_extensions; do
17910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17911     ac_cv_prog_ac_ct_RANLIB="ranlib"
17912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17913     break 2
17914   fi
17915 done
17916   done
17917 IFS=$as_save_IFS
17918
17919 fi
17920 fi
17921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17922 if test -n "$ac_ct_RANLIB"; then
17923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17924 $as_echo "$ac_ct_RANLIB" >&6; }
17925 else
17926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17927 $as_echo "no" >&6; }
17928 fi
17929
17930   if test "x$ac_ct_RANLIB" = x; then
17931     RANLIB=":"
17932   else
17933     case $cross_compiling:$ac_tool_warned in
17934 yes:)
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17937 ac_tool_warned=yes ;;
17938 esac
17939     RANLIB=$ac_ct_RANLIB
17940   fi
17941 else
17942   RANLIB="$ac_cv_prog_RANLIB"
17943 fi
17944
17945
17946         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17947 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17948 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17949   $as_echo_n "(cached) " >&6
17950 else
17951   ac_check_lib_save_LIBS=$LIBS
17952 LIBS="-lcposix  $LIBS"
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h.  */
17955
17956 /* Override any GCC internal prototype to avoid an error.
17957    Use char because int might match the return type of a GCC
17958    builtin and then its argument prototype would still apply.  */
17959 #ifdef __cplusplus
17960 extern "C"
17961 #endif
17962 char strerror ();
17963 int
17964 main ()
17965 {
17966 return strerror ();
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 if ac_fn_c_try_link "$LINENO"; then :
17972   ac_cv_lib_cposix_strerror=yes
17973 else
17974   ac_cv_lib_cposix_strerror=no
17975 fi
17976 rm -f core conftest.err conftest.$ac_objext \
17977     conftest$ac_exeext conftest.$ac_ext
17978 LIBS=$ac_check_lib_save_LIBS
17979 fi
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17981 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17982 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17983   LIBS="$LIBS -lcposix"
17984 fi
17985
17986
17987
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17989 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17990 if test "${ac_cv_c_const+set}" = set; then :
17991   $as_echo_n "(cached) " >&6
17992 else
17993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h.  */
17995
17996 int
17997 main ()
17998 {
17999 /* FIXME: Include the comments suggested by Paul. */
18000 #ifndef __cplusplus
18001   /* Ultrix mips cc rejects this.  */
18002   typedef int charset[2];
18003   const charset cs;
18004   /* SunOS 4.1.1 cc rejects this.  */
18005   char const *const *pcpcc;
18006   char **ppc;
18007   /* NEC SVR4.0.2 mips cc rejects this.  */
18008   struct point {int x, y;};
18009   static struct point const zero = {0,0};
18010   /* AIX XL C 1.02.0.0 rejects this.
18011      It does not let you subtract one const X* pointer from another in
18012      an arm of an if-expression whose if-part is not a constant
18013      expression */
18014   const char *g = "string";
18015   pcpcc = &g + (g ? g-g : 0);
18016   /* HPUX 7.0 cc rejects these. */
18017   ++pcpcc;
18018   ppc = (char**) pcpcc;
18019   pcpcc = (char const *const *) ppc;
18020   { /* SCO 3.2v4 cc rejects this.  */
18021     char *t;
18022     char const *s = 0 ? (char *) 0 : (char const *) 0;
18023
18024     *t++ = 0;
18025     if (s) return 0;
18026   }
18027   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18028     int x[] = {25, 17};
18029     const int *foo = &x[0];
18030     ++foo;
18031   }
18032   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18033     typedef const int *iptr;
18034     iptr p = 0;
18035     ++p;
18036   }
18037   { /* AIX XL C 1.02.0.0 rejects this saying
18038        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18039     struct s { int j; const int *ap[3]; };
18040     struct s *b; b->j = 5;
18041   }
18042   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18043     const int foo = 10;
18044     if (!foo) return 0;
18045   }
18046   return !cs[0] && !zero.x;
18047 #endif
18048
18049   ;
18050   return 0;
18051 }
18052 _ACEOF
18053 if ac_fn_c_try_compile "$LINENO"; then :
18054   ac_cv_c_const=yes
18055 else
18056   ac_cv_c_const=no
18057 fi
18058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18059 fi
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18061 $as_echo "$ac_cv_c_const" >&6; }
18062 if test $ac_cv_c_const = no; then
18063
18064 $as_echo "#define const /**/" >>confdefs.h
18065
18066 fi
18067
18068
18069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18070 $as_echo_n "checking for signed... " >&6; }
18071 if test "${bh_cv_c_signed+set}" = set; then :
18072   $as_echo_n "(cached) " >&6
18073 else
18074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h.  */
18076
18077 int
18078 main ()
18079 {
18080 signed char x;
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 if ac_fn_c_try_compile "$LINENO"; then :
18086   bh_cv_c_signed=yes
18087 else
18088   bh_cv_c_signed=no
18089 fi
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18091 fi
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18093 $as_echo "$bh_cv_c_signed" >&6; }
18094   if test $bh_cv_c_signed = no; then
18095
18096 $as_echo "#define signed /**/" >>confdefs.h
18097
18098   fi
18099
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18101 $as_echo_n "checking for inline... " >&6; }
18102 if test "${ac_cv_c_inline+set}" = set; then :
18103   $as_echo_n "(cached) " >&6
18104 else
18105   ac_cv_c_inline=no
18106 for ac_kw in inline __inline__ __inline; do
18107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h.  */
18109 #ifndef __cplusplus
18110 typedef int foo_t;
18111 static $ac_kw foo_t static_foo () {return 0; }
18112 $ac_kw foo_t foo () {return 0; }
18113 #endif
18114
18115 _ACEOF
18116 if ac_fn_c_try_compile "$LINENO"; then :
18117   ac_cv_c_inline=$ac_kw
18118 fi
18119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18120   test "$ac_cv_c_inline" != no && break
18121 done
18122
18123 fi
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18125 $as_echo "$ac_cv_c_inline" >&6; }
18126
18127 case $ac_cv_c_inline in
18128   inline | yes) ;;
18129   *)
18130     case $ac_cv_c_inline in
18131       no) ac_val=;;
18132       *) ac_val=$ac_cv_c_inline;;
18133     esac
18134     cat >>confdefs.h <<_ACEOF
18135 #ifndef __cplusplus
18136 #define inline $ac_val
18137 #endif
18138 _ACEOF
18139     ;;
18140 esac
18141
18142 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18143 if test "x$ac_cv_type_off_t" = x""yes; then :
18144
18145 else
18146
18147 cat >>confdefs.h <<_ACEOF
18148 #define off_t long int
18149 _ACEOF
18150
18151 fi
18152
18153 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18154 if test "x$ac_cv_type_size_t" = x""yes; then :
18155
18156 else
18157
18158 cat >>confdefs.h <<_ACEOF
18159 #define size_t unsigned int
18160 _ACEOF
18161
18162 fi
18163
18164
18165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18166 $as_echo_n "checking for long long... " >&6; }
18167 if test "${ac_cv_type_long_long+set}" = set; then :
18168   $as_echo_n "(cached) " >&6
18169 else
18170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h.  */
18172 long long ll = 1LL; int i = 63;
18173 int
18174 main ()
18175 {
18176 long long llmax = (long long) -1;
18177      return ll << i | ll >> i | llmax / ll | llmax % ll;
18178   ;
18179   return 0;
18180 }
18181 _ACEOF
18182 if ac_fn_c_try_link "$LINENO"; then :
18183   ac_cv_type_long_long=yes
18184 else
18185   ac_cv_type_long_long=no
18186 fi
18187 rm -f core conftest.err conftest.$ac_objext \
18188     conftest$ac_exeext conftest.$ac_ext
18189 fi
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18191 $as_echo "$ac_cv_type_long_long" >&6; }
18192   if test $ac_cv_type_long_long = yes; then
18193
18194 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18195
18196   fi
18197
18198
18199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18200 $as_echo_n "checking for long double... " >&6; }
18201 if test "${gt_cv_c_long_double+set}" = set; then :
18202   $as_echo_n "(cached) " >&6
18203 else
18204   if test "$GCC" = yes; then
18205        gt_cv_c_long_double=yes
18206      else
18207        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h.  */
18209
18210          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18211          long double foo = 0.0;
18212          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18213          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18214
18215 int
18216 main ()
18217 {
18218
18219   ;
18220   return 0;
18221 }
18222 _ACEOF
18223 if ac_fn_c_try_compile "$LINENO"; then :
18224   gt_cv_c_long_double=yes
18225 else
18226   gt_cv_c_long_double=no
18227 fi
18228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18229      fi
18230 fi
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18232 $as_echo "$gt_cv_c_long_double" >&6; }
18233   if test $gt_cv_c_long_double = yes; then
18234
18235 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18236
18237   fi
18238
18239
18240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18241 $as_echo_n "checking for wchar_t... " >&6; }
18242 if test "${gt_cv_c_wchar_t+set}" = set; then :
18243   $as_echo_n "(cached) " >&6
18244 else
18245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h.  */
18247 #include <stddef.h>
18248        wchar_t foo = (wchar_t)'\0';
18249 int
18250 main ()
18251 {
18252
18253   ;
18254   return 0;
18255 }
18256 _ACEOF
18257 if ac_fn_c_try_compile "$LINENO"; then :
18258   gt_cv_c_wchar_t=yes
18259 else
18260   gt_cv_c_wchar_t=no
18261 fi
18262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18263 fi
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18265 $as_echo "$gt_cv_c_wchar_t" >&6; }
18266   if test $gt_cv_c_wchar_t = yes; then
18267
18268 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18269
18270   fi
18271
18272
18273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18274 $as_echo_n "checking for wint_t... " >&6; }
18275 if test "${gt_cv_c_wint_t+set}" = set; then :
18276   $as_echo_n "(cached) " >&6
18277 else
18278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h.  */
18280 #include <wchar.h>
18281        wint_t foo = (wchar_t)'\0';
18282 int
18283 main ()
18284 {
18285
18286   ;
18287   return 0;
18288 }
18289 _ACEOF
18290 if ac_fn_c_try_compile "$LINENO"; then :
18291   gt_cv_c_wint_t=yes
18292 else
18293   gt_cv_c_wint_t=no
18294 fi
18295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18296 fi
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18298 $as_echo "$gt_cv_c_wint_t" >&6; }
18299   if test $gt_cv_c_wint_t = yes; then
18300
18301 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18302
18303   fi
18304
18305
18306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18307 $as_echo_n "checking for inttypes.h... " >&6; }
18308 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18309   $as_echo_n "(cached) " >&6
18310 else
18311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h.  */
18313 #include <sys/types.h>
18314 #include <inttypes.h>
18315 int
18316 main ()
18317 {
18318 uintmax_t i = (uintmax_t) -1;
18319   ;
18320   return 0;
18321 }
18322 _ACEOF
18323 if ac_fn_c_try_compile "$LINENO"; then :
18324   gl_cv_header_inttypes_h=yes
18325 else
18326   gl_cv_header_inttypes_h=no
18327 fi
18328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329 fi
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18331 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18332   if test $gl_cv_header_inttypes_h = yes; then
18333
18334 cat >>confdefs.h <<_ACEOF
18335 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18336 _ACEOF
18337
18338   fi
18339
18340
18341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18342 $as_echo_n "checking for stdint.h... " >&6; }
18343 if test "${gl_cv_header_stdint_h+set}" = set; then :
18344   $as_echo_n "(cached) " >&6
18345 else
18346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h.  */
18348 #include <sys/types.h>
18349 #include <stdint.h>
18350 int
18351 main ()
18352 {
18353 uintmax_t i = (uintmax_t) -1;
18354   ;
18355   return 0;
18356 }
18357 _ACEOF
18358 if ac_fn_c_try_compile "$LINENO"; then :
18359   gl_cv_header_stdint_h=yes
18360 else
18361   gl_cv_header_stdint_h=no
18362 fi
18363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18364 fi
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18366 $as_echo "$gl_cv_header_stdint_h" >&6; }
18367   if test $gl_cv_header_stdint_h = yes; then
18368
18369 cat >>confdefs.h <<_ACEOF
18370 #define HAVE_STDINT_H_WITH_UINTMAX 1
18371 _ACEOF
18372
18373   fi
18374
18375
18376
18377
18378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18379 $as_echo_n "checking for intmax_t... " >&6; }
18380 if test "${gt_cv_c_intmax_t+set}" = set; then :
18381   $as_echo_n "(cached) " >&6
18382 else
18383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384 /* end confdefs.h.  */
18385
18386 #include <stddef.h>
18387 #include <stdlib.h>
18388 #if HAVE_STDINT_H_WITH_UINTMAX
18389 #include <stdint.h>
18390 #endif
18391 #if HAVE_INTTYPES_H_WITH_UINTMAX
18392 #include <inttypes.h>
18393 #endif
18394
18395 int
18396 main ()
18397 {
18398 intmax_t x = -1;
18399   ;
18400   return 0;
18401 }
18402 _ACEOF
18403 if ac_fn_c_try_compile "$LINENO"; then :
18404   gt_cv_c_intmax_t=yes
18405 else
18406   gt_cv_c_intmax_t=no
18407 fi
18408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18409 fi
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18411 $as_echo "$gt_cv_c_intmax_t" >&6; }
18412   if test $gt_cv_c_intmax_t = yes; then
18413
18414 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18415
18416   fi
18417
18418
18419
18420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18421 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18422 if test "${gt_cv_func_printf_posix+set}" = set; then :
18423   $as_echo_n "(cached) " >&6
18424 else
18425
18426       if test "$cross_compiling" = yes; then :
18427
18428         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h.  */
18430
18431 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18432   notposix
18433 #endif
18434
18435 _ACEOF
18436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18437   $EGREP "notposix" >/dev/null 2>&1; then :
18438   gt_cv_func_printf_posix="guessing no"
18439 else
18440   gt_cv_func_printf_posix="guessing yes"
18441 fi
18442 rm -f conftest*
18443
18444
18445 else
18446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h.  */
18448
18449 #include <stdio.h>
18450 #include <string.h>
18451 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18452    dollar expansion (possibly an autoconf bug).  */
18453 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18454 static char buf[100];
18455 int main ()
18456 {
18457   sprintf (buf, format, 33, 55);
18458   return (strcmp (buf, "55 33") != 0);
18459 }
18460 _ACEOF
18461 if ac_fn_c_try_run "$LINENO"; then :
18462   gt_cv_func_printf_posix=yes
18463 else
18464   gt_cv_func_printf_posix=no
18465 fi
18466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18467   conftest.$ac_objext conftest.beam conftest.$ac_ext
18468 fi
18469
18470
18471 fi
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18473 $as_echo "$gt_cv_func_printf_posix" >&6; }
18474   case $gt_cv_func_printf_posix in
18475     *yes)
18476
18477 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18478
18479       ;;
18480   esac
18481
18482 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18483 # for constant arguments.  Useless!
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18485 $as_echo_n "checking for working alloca.h... " >&6; }
18486 if test "${ac_cv_working_alloca_h+set}" = set; then :
18487   $as_echo_n "(cached) " >&6
18488 else
18489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h.  */
18491 #include <alloca.h>
18492 int
18493 main ()
18494 {
18495 char *p = (char *) alloca (2 * sizeof (int));
18496                           if (p) return 0;
18497   ;
18498   return 0;
18499 }
18500 _ACEOF
18501 if ac_fn_c_try_link "$LINENO"; then :
18502   ac_cv_working_alloca_h=yes
18503 else
18504   ac_cv_working_alloca_h=no
18505 fi
18506 rm -f core conftest.err conftest.$ac_objext \
18507     conftest$ac_exeext conftest.$ac_ext
18508 fi
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18510 $as_echo "$ac_cv_working_alloca_h" >&6; }
18511 if test $ac_cv_working_alloca_h = yes; then
18512
18513 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18514
18515 fi
18516
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18518 $as_echo_n "checking for alloca... " >&6; }
18519 if test "${ac_cv_func_alloca_works+set}" = set; then :
18520   $as_echo_n "(cached) " >&6
18521 else
18522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h.  */
18524 #ifdef __GNUC__
18525 # define alloca __builtin_alloca
18526 #else
18527 # ifdef _MSC_VER
18528 #  include <malloc.h>
18529 #  define alloca _alloca
18530 # else
18531 #  ifdef HAVE_ALLOCA_H
18532 #   include <alloca.h>
18533 #  else
18534 #   ifdef _AIX
18535  #pragma alloca
18536 #   else
18537 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18538 char *alloca ();
18539 #    endif
18540 #   endif
18541 #  endif
18542 # endif
18543 #endif
18544
18545 int
18546 main ()
18547 {
18548 char *p = (char *) alloca (1);
18549                                     if (p) return 0;
18550   ;
18551   return 0;
18552 }
18553 _ACEOF
18554 if ac_fn_c_try_link "$LINENO"; then :
18555   ac_cv_func_alloca_works=yes
18556 else
18557   ac_cv_func_alloca_works=no
18558 fi
18559 rm -f core conftest.err conftest.$ac_objext \
18560     conftest$ac_exeext conftest.$ac_ext
18561 fi
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18563 $as_echo "$ac_cv_func_alloca_works" >&6; }
18564
18565 if test $ac_cv_func_alloca_works = yes; then
18566
18567 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18568
18569 else
18570   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18571 # that cause trouble.  Some versions do not even contain alloca or
18572 # contain a buggy version.  If you still want to use their alloca,
18573 # use ar to extract alloca.o from them instead of compiling alloca.c.
18574
18575 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18576
18577 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18578
18579
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18581 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18582 if test "${ac_cv_os_cray+set}" = set; then :
18583   $as_echo_n "(cached) " >&6
18584 else
18585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18586 /* end confdefs.h.  */
18587 #if defined CRAY && ! defined CRAY2
18588 webecray
18589 #else
18590 wenotbecray
18591 #endif
18592
18593 _ACEOF
18594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18595   $EGREP "webecray" >/dev/null 2>&1; then :
18596   ac_cv_os_cray=yes
18597 else
18598   ac_cv_os_cray=no
18599 fi
18600 rm -f conftest*
18601
18602 fi
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18604 $as_echo "$ac_cv_os_cray" >&6; }
18605 if test $ac_cv_os_cray = yes; then
18606   for ac_func in _getb67 GETB67 getb67; do
18607     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18608 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18609 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18610
18611 cat >>confdefs.h <<_ACEOF
18612 #define CRAY_STACKSEG_END $ac_func
18613 _ACEOF
18614
18615     break
18616 fi
18617
18618   done
18619 fi
18620
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18622 $as_echo_n "checking stack direction for C alloca... " >&6; }
18623 if test "${ac_cv_c_stack_direction+set}" = set; then :
18624   $as_echo_n "(cached) " >&6
18625 else
18626   if test "$cross_compiling" = yes; then :
18627   ac_cv_c_stack_direction=0
18628 else
18629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18630 /* end confdefs.h.  */
18631 $ac_includes_default
18632 int
18633 find_stack_direction ()
18634 {
18635   static char *addr = 0;
18636   auto char dummy;
18637   if (addr == 0)
18638     {
18639       addr = &dummy;
18640       return find_stack_direction ();
18641     }
18642   else
18643     return (&dummy > addr) ? 1 : -1;
18644 }
18645
18646 int
18647 main ()
18648 {
18649   return find_stack_direction () < 0;
18650 }
18651 _ACEOF
18652 if ac_fn_c_try_run "$LINENO"; then :
18653   ac_cv_c_stack_direction=1
18654 else
18655   ac_cv_c_stack_direction=-1
18656 fi
18657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18658   conftest.$ac_objext conftest.beam conftest.$ac_ext
18659 fi
18660
18661 fi
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18663 $as_echo "$ac_cv_c_stack_direction" >&6; }
18664 cat >>confdefs.h <<_ACEOF
18665 #define STACK_DIRECTION $ac_cv_c_stack_direction
18666 _ACEOF
18667
18668
18669 fi
18670
18671
18672
18673
18674   for ac_header in $ac_header_list
18675 do :
18676   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18677 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18678 "
18679 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18680   cat >>confdefs.h <<_ACEOF
18681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18682 _ACEOF
18683
18684 fi
18685
18686 done
18687
18688
18689
18690
18691
18692
18693
18694
18695 for ac_func in getpagesize
18696 do :
18697   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18698 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18699   cat >>confdefs.h <<_ACEOF
18700 #define HAVE_GETPAGESIZE 1
18701 _ACEOF
18702
18703 fi
18704 done
18705
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18707 $as_echo_n "checking for working mmap... " >&6; }
18708 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18709   $as_echo_n "(cached) " >&6
18710 else
18711   if test "$cross_compiling" = yes; then :
18712   ac_cv_func_mmap_fixed_mapped=no
18713 else
18714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h.  */
18716 $ac_includes_default
18717 /* malloc might have been renamed as rpl_malloc. */
18718 #undef malloc
18719
18720 /* Thanks to Mike Haertel and Jim Avera for this test.
18721    Here is a matrix of mmap possibilities:
18722         mmap private not fixed
18723         mmap private fixed at somewhere currently unmapped
18724         mmap private fixed at somewhere already mapped
18725         mmap shared not fixed
18726         mmap shared fixed at somewhere currently unmapped
18727         mmap shared fixed at somewhere already mapped
18728    For private mappings, we should verify that changes cannot be read()
18729    back from the file, nor mmap's back from the file at a different
18730    address.  (There have been systems where private was not correctly
18731    implemented like the infamous i386 svr4.0, and systems where the
18732    VM page cache was not coherent with the file system buffer cache
18733    like early versions of FreeBSD and possibly contemporary NetBSD.)
18734    For shared mappings, we should conversely verify that changes get
18735    propagated back to all the places they're supposed to be.
18736
18737    Grep wants private fixed already mapped.
18738    The main things grep needs to know about mmap are:
18739    * does it exist and is it safe to write into the mmap'd area
18740    * how to use it (BSD variants)  */
18741
18742 #include <fcntl.h>
18743 #include <sys/mman.h>
18744
18745 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18746 char *malloc ();
18747 #endif
18748
18749 /* This mess was copied from the GNU getpagesize.h.  */
18750 #ifndef HAVE_GETPAGESIZE
18751 # ifdef _SC_PAGESIZE
18752 #  define getpagesize() sysconf(_SC_PAGESIZE)
18753 # else /* no _SC_PAGESIZE */
18754 #  ifdef HAVE_SYS_PARAM_H
18755 #   include <sys/param.h>
18756 #   ifdef EXEC_PAGESIZE
18757 #    define getpagesize() EXEC_PAGESIZE
18758 #   else /* no EXEC_PAGESIZE */
18759 #    ifdef NBPG
18760 #     define getpagesize() NBPG * CLSIZE
18761 #     ifndef CLSIZE
18762 #      define CLSIZE 1
18763 #     endif /* no CLSIZE */
18764 #    else /* no NBPG */
18765 #     ifdef NBPC
18766 #      define getpagesize() NBPC
18767 #     else /* no NBPC */
18768 #      ifdef PAGESIZE
18769 #       define getpagesize() PAGESIZE
18770 #      endif /* PAGESIZE */
18771 #     endif /* no NBPC */
18772 #    endif /* no NBPG */
18773 #   endif /* no EXEC_PAGESIZE */
18774 #  else /* no HAVE_SYS_PARAM_H */
18775 #   define getpagesize() 8192   /* punt totally */
18776 #  endif /* no HAVE_SYS_PARAM_H */
18777 # endif /* no _SC_PAGESIZE */
18778
18779 #endif /* no HAVE_GETPAGESIZE */
18780
18781 int
18782 main ()
18783 {
18784   char *data, *data2, *data3;
18785   const char *cdata2;
18786   int i, pagesize;
18787   int fd, fd2;
18788
18789   pagesize = getpagesize ();
18790
18791   /* First, make a file with some known garbage in it. */
18792   data = (char *) malloc (pagesize);
18793   if (!data)
18794     return 1;
18795   for (i = 0; i < pagesize; ++i)
18796     *(data + i) = rand ();
18797   umask (0);
18798   fd = creat ("conftest.mmap", 0600);
18799   if (fd < 0)
18800     return 2;
18801   if (write (fd, data, pagesize) != pagesize)
18802     return 3;
18803   close (fd);
18804
18805   /* Next, check that the tail of a page is zero-filled.  File must have
18806      non-zero length, otherwise we risk SIGBUS for entire page.  */
18807   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18808   if (fd2 < 0)
18809     return 4;
18810   cdata2 = "";
18811   if (write (fd2, cdata2, 1) != 1)
18812     return 5;
18813   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18814   if (data2 == MAP_FAILED)
18815     return 6;
18816   for (i = 0; i < pagesize; ++i)
18817     if (*(data2 + i))
18818       return 7;
18819   close (fd2);
18820   if (munmap (data2, pagesize))
18821     return 8;
18822
18823   /* Next, try to mmap the file at a fixed address which already has
18824      something else allocated at it.  If we can, also make sure that
18825      we see the same garbage.  */
18826   fd = open ("conftest.mmap", O_RDWR);
18827   if (fd < 0)
18828     return 9;
18829   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18830                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18831     return 10;
18832   for (i = 0; i < pagesize; ++i)
18833     if (*(data + i) != *(data2 + i))
18834       return 11;
18835
18836   /* Finally, make sure that changes to the mapped area do not
18837      percolate back to the file as seen by read().  (This is a bug on
18838      some variants of i386 svr4.0.)  */
18839   for (i = 0; i < pagesize; ++i)
18840     *(data2 + i) = *(data2 + i) + 1;
18841   data3 = (char *) malloc (pagesize);
18842   if (!data3)
18843     return 12;
18844   if (read (fd, data3, pagesize) != pagesize)
18845     return 13;
18846   for (i = 0; i < pagesize; ++i)
18847     if (*(data + i) != *(data3 + i))
18848       return 14;
18849   close (fd);
18850   return 0;
18851 }
18852 _ACEOF
18853 if ac_fn_c_try_run "$LINENO"; then :
18854   ac_cv_func_mmap_fixed_mapped=yes
18855 else
18856   ac_cv_func_mmap_fixed_mapped=no
18857 fi
18858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18859   conftest.$ac_objext conftest.beam conftest.$ac_ext
18860 fi
18861
18862 fi
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18864 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18865 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18866
18867 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18868
18869 fi
18870 rm -f conftest.mmap conftest.txt
18871
18872
18873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18874 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18875 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18876   $as_echo_n "(cached) " >&6
18877 else
18878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h.  */
18880
18881 #include <features.h>
18882 #ifdef __GNU_LIBRARY__
18883  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18884   Lucky GNU user
18885  #endif
18886 #endif
18887
18888 _ACEOF
18889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18890   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18891   ac_cv_gnu_library_2_1=yes
18892 else
18893   ac_cv_gnu_library_2_1=no
18894 fi
18895 rm -f conftest*
18896
18897
18898
18899 fi
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18901 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18902
18903     GLIBC21="$ac_cv_gnu_library_2_1"
18904
18905
18906
18907
18908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18909 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18910 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18911   $as_echo_n "(cached) " >&6
18912 else
18913
18914       if test "$cross_compiling" = yes; then :
18915
18916           # Guess based on the CPU.
18917           case "$host_cpu" in
18918             alpha* | i3456786 | m68k | s390*)
18919               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18920             *)
18921               gt_cv_int_divbyzero_sigfpe="guessing no";;
18922           esac
18923
18924 else
18925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h.  */
18927
18928 #include <stdlib.h>
18929 #include <signal.h>
18930
18931 static void
18932 #ifdef __cplusplus
18933 sigfpe_handler (int sig)
18934 #else
18935 sigfpe_handler (sig) int sig;
18936 #endif
18937 {
18938   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18939   exit (sig != SIGFPE);
18940 }
18941
18942 int x = 1;
18943 int y = 0;
18944 int z;
18945 int nan;
18946
18947 int main ()
18948 {
18949   signal (SIGFPE, sigfpe_handler);
18950 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18951 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18952   signal (SIGTRAP, sigfpe_handler);
18953 #endif
18954 /* Linux/SPARC yields signal SIGILL.  */
18955 #if defined (__sparc__) && defined (__linux__)
18956   signal (SIGILL, sigfpe_handler);
18957 #endif
18958
18959   z = x / y;
18960   nan = y / y;
18961   exit (1);
18962 }
18963
18964 _ACEOF
18965 if ac_fn_c_try_run "$LINENO"; then :
18966   gt_cv_int_divbyzero_sigfpe=yes
18967 else
18968   gt_cv_int_divbyzero_sigfpe=no
18969 fi
18970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18971   conftest.$ac_objext conftest.beam conftest.$ac_ext
18972 fi
18973
18974
18975 fi
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18977 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18978   case "$gt_cv_int_divbyzero_sigfpe" in
18979     *yes) value=1;;
18980     *) value=0;;
18981   esac
18982
18983 cat >>confdefs.h <<_ACEOF
18984 #define INTDIV0_RAISES_SIGFPE $value
18985 _ACEOF
18986
18987
18988
18989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18990 $as_echo_n "checking for unsigned long long... " >&6; }
18991 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18992   $as_echo_n "(cached) " >&6
18993 else
18994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h.  */
18996 unsigned long long ull = 1ULL; int i = 63;
18997 int
18998 main ()
18999 {
19000 unsigned long long ullmax = (unsigned long long) -1;
19001      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19002   ;
19003   return 0;
19004 }
19005 _ACEOF
19006 if ac_fn_c_try_link "$LINENO"; then :
19007   ac_cv_type_unsigned_long_long=yes
19008 else
19009   ac_cv_type_unsigned_long_long=no
19010 fi
19011 rm -f core conftest.err conftest.$ac_objext \
19012     conftest$ac_exeext conftest.$ac_ext
19013 fi
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19015 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19016   if test $ac_cv_type_unsigned_long_long = yes; then
19017
19018 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19019
19020   fi
19021
19022
19023
19024
19025   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19026
19027     test $ac_cv_type_unsigned_long_long = yes \
19028       && ac_type='unsigned long long' \
19029       || ac_type='unsigned long'
19030
19031 cat >>confdefs.h <<_ACEOF
19032 #define uintmax_t $ac_type
19033 _ACEOF
19034
19035   else
19036
19037 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19038
19039   fi
19040
19041
19042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19043 $as_echo_n "checking for inttypes.h... " >&6; }
19044 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19045   $as_echo_n "(cached) " >&6
19046 else
19047
19048     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19049 /* end confdefs.h.  */
19050 #include <sys/types.h>
19051 #include <inttypes.h>
19052 int
19053 main ()
19054 {
19055
19056   ;
19057   return 0;
19058 }
19059 _ACEOF
19060 if ac_fn_c_try_compile "$LINENO"; then :
19061   gt_cv_header_inttypes_h=yes
19062 else
19063   gt_cv_header_inttypes_h=no
19064 fi
19065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19066
19067 fi
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19069 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19070   if test $gt_cv_header_inttypes_h = yes; then
19071
19072 cat >>confdefs.h <<_ACEOF
19073 #define HAVE_INTTYPES_H 1
19074 _ACEOF
19075
19076   fi
19077
19078
19079
19080   if test $gt_cv_header_inttypes_h = yes; then
19081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19082 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19083 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19084   $as_echo_n "(cached) " >&6
19085 else
19086
19087         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h.  */
19089 #include <inttypes.h>
19090 #ifdef PRId32
19091 char *p = PRId32;
19092 #endif
19093
19094 int
19095 main ()
19096 {
19097
19098   ;
19099   return 0;
19100 }
19101 _ACEOF
19102 if ac_fn_c_try_compile "$LINENO"; then :
19103   gt_cv_inttypes_pri_broken=no
19104 else
19105   gt_cv_inttypes_pri_broken=yes
19106 fi
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19108
19109 fi
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19111 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19112   fi
19113   if test "$gt_cv_inttypes_pri_broken" = yes; then
19114
19115 cat >>confdefs.h <<_ACEOF
19116 #define PRI_MACROS_BROKEN 1
19117 _ACEOF
19118
19119   fi
19120
19121
19122   for ac_header in stdint.h
19123 do :
19124   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19125 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19126   cat >>confdefs.h <<_ACEOF
19127 #define HAVE_STDINT_H 1
19128 _ACEOF
19129
19130 fi
19131
19132 done
19133
19134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19135 $as_echo_n "checking for SIZE_MAX... " >&6; }
19136   result=
19137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h.  */
19139
19140 #include <limits.h>
19141 #if HAVE_STDINT_H
19142 #include <stdint.h>
19143 #endif
19144 #ifdef SIZE_MAX
19145 Found it
19146 #endif
19147
19148 _ACEOF
19149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19150   $EGREP "Found it" >/dev/null 2>&1; then :
19151   result=yes
19152 fi
19153 rm -f conftest*
19154
19155   if test -z "$result"; then
19156                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19157
19158 else
19159   result=?
19160 fi
19161
19162
19163     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19164
19165 else
19166   result=?
19167 fi
19168
19169
19170     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19171
19172 else
19173   result=?
19174 fi
19175
19176
19177     if test "$fits_in_uint" = 1; then
19178                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h.  */
19180 #include <stddef.h>
19181         extern size_t foo;
19182         extern unsigned long foo;
19183
19184 int
19185 main ()
19186 {
19187
19188   ;
19189   return 0;
19190 }
19191 _ACEOF
19192 if ac_fn_c_try_compile "$LINENO"; then :
19193   fits_in_uint=0
19194 fi
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19196     fi
19197     if test -z "$result"; then
19198       if test "$fits_in_uint" = 1; then
19199         result="$res_hi$res_lo"U
19200       else
19201         result="$res_hi$res_lo"UL
19202       fi
19203     else
19204             result='~(size_t)0'
19205     fi
19206   fi
19207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19208 $as_echo "$result" >&6; }
19209   if test "$result" != yes; then
19210
19211 cat >>confdefs.h <<_ACEOF
19212 #define SIZE_MAX $result
19213 _ACEOF
19214
19215   fi
19216
19217
19218
19219
19220   for ac_header in stdint.h
19221 do :
19222   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19223 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19224   cat >>confdefs.h <<_ACEOF
19225 #define HAVE_STDINT_H 1
19226 _ACEOF
19227
19228 fi
19229
19230 done
19231
19232
19233
19234
19235
19236
19237
19238
19239   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19240 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19241
19242 else
19243
19244 $as_echo "#define ptrdiff_t long" >>confdefs.h
19245
19246
19247 fi
19248
19249   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19250 stdlib.h string.h unistd.h sys/param.h
19251 do :
19252   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19253 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19255   cat >>confdefs.h <<_ACEOF
19256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19257 _ACEOF
19258
19259 fi
19260
19261 done
19262
19263   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19264 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19265 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19266 __fsetlocking
19267 do :
19268   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19269 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19270 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19271   cat >>confdefs.h <<_ACEOF
19272 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19273 _ACEOF
19274
19275 fi
19276 done
19277
19278
19279
19280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19281 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19282 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19283   $as_echo_n "(cached) " >&6
19284 else
19285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19286 /* end confdefs.h.  */
19287 #include <stdio.h>
19288 int
19289 main ()
19290 {
19291
19292 #ifndef _snprintf
19293   char *p = (char *) _snprintf;
19294 #endif
19295
19296   ;
19297   return 0;
19298 }
19299 _ACEOF
19300 if ac_fn_c_try_compile "$LINENO"; then :
19301   ac_cv_have_decl__snprintf=yes
19302 else
19303   ac_cv_have_decl__snprintf=no
19304 fi
19305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19306 fi
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19308 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19309   if test $ac_cv_have_decl__snprintf = yes; then
19310     gt_value=1
19311   else
19312     gt_value=0
19313   fi
19314
19315 cat >>confdefs.h <<_ACEOF
19316 #define HAVE_DECL__SNPRINTF $gt_value
19317 _ACEOF
19318
19319
19320
19321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19322 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19323 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19324   $as_echo_n "(cached) " >&6
19325 else
19326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h.  */
19328 #include <stdio.h>
19329 int
19330 main ()
19331 {
19332
19333 #ifndef _snwprintf
19334   char *p = (char *) _snwprintf;
19335 #endif
19336
19337   ;
19338   return 0;
19339 }
19340 _ACEOF
19341 if ac_fn_c_try_compile "$LINENO"; then :
19342   ac_cv_have_decl__snwprintf=yes
19343 else
19344   ac_cv_have_decl__snwprintf=no
19345 fi
19346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19347 fi
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19349 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19350   if test $ac_cv_have_decl__snwprintf = yes; then
19351     gt_value=1
19352   else
19353     gt_value=0
19354   fi
19355
19356 cat >>confdefs.h <<_ACEOF
19357 #define HAVE_DECL__SNWPRINTF $gt_value
19358 _ACEOF
19359
19360
19361
19362
19363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19364 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19365 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19366   $as_echo_n "(cached) " >&6
19367 else
19368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h.  */
19370 #include <stdio.h>
19371 int
19372 main ()
19373 {
19374
19375 #ifndef feof_unlocked
19376   char *p = (char *) feof_unlocked;
19377 #endif
19378
19379   ;
19380   return 0;
19381 }
19382 _ACEOF
19383 if ac_fn_c_try_compile "$LINENO"; then :
19384   ac_cv_have_decl_feof_unlocked=yes
19385 else
19386   ac_cv_have_decl_feof_unlocked=no
19387 fi
19388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19389 fi
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19391 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19392   if test $ac_cv_have_decl_feof_unlocked = yes; then
19393     gt_value=1
19394   else
19395     gt_value=0
19396   fi
19397
19398 cat >>confdefs.h <<_ACEOF
19399 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19400 _ACEOF
19401
19402
19403
19404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19405 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19406 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19407   $as_echo_n "(cached) " >&6
19408 else
19409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19410 /* end confdefs.h.  */
19411 #include <stdio.h>
19412 int
19413 main ()
19414 {
19415
19416 #ifndef fgets_unlocked
19417   char *p = (char *) fgets_unlocked;
19418 #endif
19419
19420   ;
19421   return 0;
19422 }
19423 _ACEOF
19424 if ac_fn_c_try_compile "$LINENO"; then :
19425   ac_cv_have_decl_fgets_unlocked=yes
19426 else
19427   ac_cv_have_decl_fgets_unlocked=no
19428 fi
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19430 fi
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19432 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19433   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19434     gt_value=1
19435   else
19436     gt_value=0
19437   fi
19438
19439 cat >>confdefs.h <<_ACEOF
19440 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19441 _ACEOF
19442
19443
19444
19445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19446 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19447 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19448   $as_echo_n "(cached) " >&6
19449 else
19450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h.  */
19452 #include <stdio.h>
19453 int
19454 main ()
19455 {
19456
19457 #ifndef getc_unlocked
19458   char *p = (char *) getc_unlocked;
19459 #endif
19460
19461   ;
19462   return 0;
19463 }
19464 _ACEOF
19465 if ac_fn_c_try_compile "$LINENO"; then :
19466   ac_cv_have_decl_getc_unlocked=yes
19467 else
19468   ac_cv_have_decl_getc_unlocked=no
19469 fi
19470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19471 fi
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19473 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19474   if test $ac_cv_have_decl_getc_unlocked = yes; then
19475     gt_value=1
19476   else
19477     gt_value=0
19478   fi
19479
19480 cat >>confdefs.h <<_ACEOF
19481 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19482 _ACEOF
19483
19484
19485
19486   case $gt_cv_func_printf_posix in
19487     *yes) HAVE_POSIX_PRINTF=1 ;;
19488     *) HAVE_POSIX_PRINTF=0 ;;
19489   esac
19490
19491   if test "$ac_cv_func_asprintf" = yes; then
19492     HAVE_ASPRINTF=1
19493   else
19494     HAVE_ASPRINTF=0
19495   fi
19496
19497   if test "$ac_cv_func_snprintf" = yes; then
19498     HAVE_SNPRINTF=1
19499   else
19500     HAVE_SNPRINTF=0
19501   fi
19502
19503   if test "$ac_cv_func_wprintf" = yes; then
19504     HAVE_WPRINTF=1
19505   else
19506     HAVE_WPRINTF=0
19507   fi
19508
19509
19510
19511
19512
19513
19514
19515           am_save_CPPFLAGS="$CPPFLAGS"
19516
19517   for element in $INCICONV; do
19518     haveit=
19519     for x in $CPPFLAGS; do
19520
19521   acl_save_prefix="$prefix"
19522   prefix="$acl_final_prefix"
19523   acl_save_exec_prefix="$exec_prefix"
19524   exec_prefix="$acl_final_exec_prefix"
19525   eval x=\"$x\"
19526   exec_prefix="$acl_save_exec_prefix"
19527   prefix="$acl_save_prefix"
19528
19529       if test "X$x" = "X$element"; then
19530         haveit=yes
19531         break
19532       fi
19533     done
19534     if test -z "$haveit"; then
19535       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19536     fi
19537   done
19538
19539
19540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19541 $as_echo_n "checking for iconv... " >&6; }
19542 if test "${am_cv_func_iconv+set}" = set; then :
19543   $as_echo_n "(cached) " >&6
19544 else
19545
19546     am_cv_func_iconv="no, consider installing GNU libiconv"
19547     am_cv_lib_iconv=no
19548     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h.  */
19550 #include <stdlib.h>
19551 #include <iconv.h>
19552 int
19553 main ()
19554 {
19555 iconv_t cd = iconv_open("","");
19556        iconv(cd,NULL,NULL,NULL,NULL);
19557        iconv_close(cd);
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 if ac_fn_c_try_link "$LINENO"; then :
19563   am_cv_func_iconv=yes
19564 fi
19565 rm -f core conftest.err conftest.$ac_objext \
19566     conftest$ac_exeext conftest.$ac_ext
19567     if test "$am_cv_func_iconv" != yes; then
19568       am_save_LIBS="$LIBS"
19569       LIBS="$LIBS $LIBICONV"
19570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571 /* end confdefs.h.  */
19572 #include <stdlib.h>
19573 #include <iconv.h>
19574 int
19575 main ()
19576 {
19577 iconv_t cd = iconv_open("","");
19578          iconv(cd,NULL,NULL,NULL,NULL);
19579          iconv_close(cd);
19580   ;
19581   return 0;
19582 }
19583 _ACEOF
19584 if ac_fn_c_try_link "$LINENO"; then :
19585   am_cv_lib_iconv=yes
19586         am_cv_func_iconv=yes
19587 fi
19588 rm -f core conftest.err conftest.$ac_objext \
19589     conftest$ac_exeext conftest.$ac_ext
19590       LIBS="$am_save_LIBS"
19591     fi
19592
19593 fi
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19595 $as_echo "$am_cv_func_iconv" >&6; }
19596   if test "$am_cv_func_iconv" = yes; then
19597
19598 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19599
19600   fi
19601   if test "$am_cv_lib_iconv" = yes; then
19602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19603 $as_echo_n "checking how to link with libiconv... " >&6; }
19604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19605 $as_echo "$LIBICONV" >&6; }
19606   else
19607             CPPFLAGS="$am_save_CPPFLAGS"
19608     LIBICONV=
19609     LTLIBICONV=
19610   fi
19611
19612
19613
19614   if test "$am_cv_func_iconv" = yes; then
19615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19616 $as_echo_n "checking for iconv declaration... " >&6; }
19617     if test "${am_cv_proto_iconv+set}" = set; then :
19618   $as_echo_n "(cached) " >&6
19619 else
19620
19621       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h.  */
19623
19624 #include <stdlib.h>
19625 #include <iconv.h>
19626 extern
19627 #ifdef __cplusplus
19628 "C"
19629 #endif
19630 #if defined(__STDC__) || defined(__cplusplus)
19631 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19632 #else
19633 size_t iconv();
19634 #endif
19635
19636 int
19637 main ()
19638 {
19639
19640   ;
19641   return 0;
19642 }
19643 _ACEOF
19644 if ac_fn_c_try_compile "$LINENO"; then :
19645   am_cv_proto_iconv_arg1=""
19646 else
19647   am_cv_proto_iconv_arg1="const"
19648 fi
19649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19650       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);"
19651 fi
19652
19653     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19655          }$am_cv_proto_iconv" >&5
19656 $as_echo "${ac_t:-
19657          }$am_cv_proto_iconv" >&6; }
19658
19659 cat >>confdefs.h <<_ACEOF
19660 #define ICONV_CONST $am_cv_proto_iconv_arg1
19661 _ACEOF
19662
19663   fi
19664
19665
19666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19667 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19668 if test "${am_cv_langinfo_codeset+set}" = set; then :
19669   $as_echo_n "(cached) " >&6
19670 else
19671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h.  */
19673 #include <langinfo.h>
19674 int
19675 main ()
19676 {
19677 char* cs = nl_langinfo(CODESET);
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 if ac_fn_c_try_link "$LINENO"; then :
19683   am_cv_langinfo_codeset=yes
19684 else
19685   am_cv_langinfo_codeset=no
19686 fi
19687 rm -f core conftest.err conftest.$ac_objext \
19688     conftest$ac_exeext conftest.$ac_ext
19689
19690 fi
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19692 $as_echo "$am_cv_langinfo_codeset" >&6; }
19693   if test $am_cv_langinfo_codeset = yes; then
19694
19695 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19696
19697   fi
19698
19699   if test $ac_cv_header_locale_h = yes; then
19700
19701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19702 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19703 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19704   $as_echo_n "(cached) " >&6
19705 else
19706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19707 /* end confdefs.h.  */
19708 #include <locale.h>
19709 int
19710 main ()
19711 {
19712 return LC_MESSAGES
19713   ;
19714   return 0;
19715 }
19716 _ACEOF
19717 if ac_fn_c_try_link "$LINENO"; then :
19718   gt_cv_val_LC_MESSAGES=yes
19719 else
19720   gt_cv_val_LC_MESSAGES=no
19721 fi
19722 rm -f core conftest.err conftest.$ac_objext \
19723     conftest$ac_exeext conftest.$ac_ext
19724 fi
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19726 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19727   if test $gt_cv_val_LC_MESSAGES = yes; then
19728
19729 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19730
19731   fi
19732
19733   fi
19734
19735   if test -n "$INTL_MACOSX_LIBS"; then
19736     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19737   fi
19738
19739                       for ac_prog in bison
19740 do
19741   # Extract the first word of "$ac_prog", so it can be a program name with args.
19742 set dummy $ac_prog; ac_word=$2
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19744 $as_echo_n "checking for $ac_word... " >&6; }
19745 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19746   $as_echo_n "(cached) " >&6
19747 else
19748   if test -n "$INTLBISON"; then
19749   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19750 else
19751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19752 for as_dir in $PATH
19753 do
19754   IFS=$as_save_IFS
19755   test -z "$as_dir" && as_dir=.
19756     for ac_exec_ext in '' $ac_executable_extensions; do
19757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19758     ac_cv_prog_INTLBISON="$ac_prog"
19759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19760     break 2
19761   fi
19762 done
19763   done
19764 IFS=$as_save_IFS
19765
19766 fi
19767 fi
19768 INTLBISON=$ac_cv_prog_INTLBISON
19769 if test -n "$INTLBISON"; then
19770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19771 $as_echo "$INTLBISON" >&6; }
19772 else
19773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19774 $as_echo "no" >&6; }
19775 fi
19776
19777
19778   test -n "$INTLBISON" && break
19779 done
19780
19781   if test -z "$INTLBISON"; then
19782     ac_verc_fail=yes
19783   else
19784         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19785 $as_echo_n "checking version of bison... " >&6; }
19786     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19787     case $ac_prog_version in
19788       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19789       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19790          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19791       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19792     esac
19793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19794 $as_echo "$ac_prog_version" >&6; }
19795   fi
19796   if test $ac_verc_fail = yes; then
19797     INTLBISON=:
19798   fi
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19816 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19817 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19818   $as_echo_n "(cached) " >&6
19819 else
19820   gt_save_CPPFLAGS="$CPPFLAGS"
19821      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19822      gt_save_LIBS="$LIBS"
19823      LIBS="$LIBS -framework CoreFoundation"
19824      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825 /* end confdefs.h.  */
19826 #include <CFPreferences.h>
19827 int
19828 main ()
19829 {
19830 CFPreferencesCopyAppValue(NULL, NULL)
19831   ;
19832   return 0;
19833 }
19834 _ACEOF
19835 if ac_fn_c_try_link "$LINENO"; then :
19836   gt_cv_func_CFPreferencesCopyAppValue=yes
19837 else
19838   gt_cv_func_CFPreferencesCopyAppValue=no
19839 fi
19840 rm -f core conftest.err conftest.$ac_objext \
19841     conftest$ac_exeext conftest.$ac_ext
19842      CPPFLAGS="$gt_save_CPPFLAGS"
19843      LIBS="$gt_save_LIBS"
19844 fi
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19846 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19847   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19848
19849 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19850
19851   fi
19852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19853 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19854 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19855   $as_echo_n "(cached) " >&6
19856 else
19857   gt_save_CPPFLAGS="$CPPFLAGS"
19858      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19859      gt_save_LIBS="$LIBS"
19860      LIBS="$LIBS -framework CoreFoundation"
19861      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h.  */
19863 #include <CFLocale.h>
19864 int
19865 main ()
19866 {
19867 CFLocaleCopyCurrent();
19868   ;
19869   return 0;
19870 }
19871 _ACEOF
19872 if ac_fn_c_try_link "$LINENO"; then :
19873   gt_cv_func_CFLocaleCopyCurrent=yes
19874 else
19875   gt_cv_func_CFLocaleCopyCurrent=no
19876 fi
19877 rm -f core conftest.err conftest.$ac_objext \
19878     conftest$ac_exeext conftest.$ac_ext
19879      CPPFLAGS="$gt_save_CPPFLAGS"
19880      LIBS="$gt_save_LIBS"
19881 fi
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19883 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19884   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19885
19886 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19887
19888   fi
19889   INTL_MACOSX_LIBS=
19890   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19891     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19892   fi
19893
19894
19895
19896
19897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19898 $as_echo_n "checking whether NLS is requested... " >&6; }
19899     # Check whether --enable-nls was given.
19900 if test "${enable_nls+set}" = set; then :
19901   enableval=$enable_nls; USE_NLS=$enableval
19902 else
19903   USE_NLS=yes
19904 fi
19905
19906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19907 $as_echo "$USE_NLS" >&6; }
19908
19909
19910
19911
19912     BUILD_INCLUDED_LIBINTL=no
19913     USE_INCLUDED_LIBINTL=no
19914
19915   LIBINTL=
19916   LTLIBINTL=
19917   POSUB=
19918
19919     if test "$USE_NLS" = "yes"; then
19920     gt_use_preinstalled_gnugettext=no
19921
19922       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19923 $as_echo_n "checking whether included gettext is requested... " >&6; }
19924
19925 # Check whether --with-included-gettext was given.
19926 if test "${with_included_gettext+set}" = set; then :
19927   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19928 else
19929   nls_cv_force_use_gnu_gettext=no
19930 fi
19931
19932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19933 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19934
19935       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19936       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19937
19938
19939
19940
19941
19942
19943         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19944 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19945 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19946   $as_echo_n "(cached) " >&6
19947 else
19948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949 /* end confdefs.h.  */
19950 #include <libintl.h>
19951 extern int _nl_msg_cat_cntr;
19952 extern int *_nl_domain_bindings;
19953 int
19954 main ()
19955 {
19956 bindtextdomain ("", "");
19957 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19958   ;
19959   return 0;
19960 }
19961 _ACEOF
19962 if ac_fn_c_try_link "$LINENO"; then :
19963   gt_cv_func_gnugettext1_libc=yes
19964 else
19965   gt_cv_func_gnugettext1_libc=no
19966 fi
19967 rm -f core conftest.err conftest.$ac_objext \
19968     conftest$ac_exeext conftest.$ac_ext
19969 fi
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19971 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19972
19973         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19974
19975
19976
19977     use_additional=yes
19978
19979   acl_save_prefix="$prefix"
19980   prefix="$acl_final_prefix"
19981   acl_save_exec_prefix="$exec_prefix"
19982   exec_prefix="$acl_final_exec_prefix"
19983
19984     eval additional_includedir=\"$includedir\"
19985     eval additional_libdir=\"$libdir\"
19986
19987   exec_prefix="$acl_save_exec_prefix"
19988   prefix="$acl_save_prefix"
19989
19990
19991 # Check whether --with-libintl-prefix was given.
19992 if test "${with_libintl_prefix+set}" = set; then :
19993   withval=$with_libintl_prefix;
19994     if test "X$withval" = "Xno"; then
19995       use_additional=no
19996     else
19997       if test "X$withval" = "X"; then
19998
19999   acl_save_prefix="$prefix"
20000   prefix="$acl_final_prefix"
20001   acl_save_exec_prefix="$exec_prefix"
20002   exec_prefix="$acl_final_exec_prefix"
20003
20004           eval additional_includedir=\"$includedir\"
20005           eval additional_libdir=\"$libdir\"
20006
20007   exec_prefix="$acl_save_exec_prefix"
20008   prefix="$acl_save_prefix"
20009
20010       else
20011         additional_includedir="$withval/include"
20012         additional_libdir="$withval/lib"
20013       fi
20014     fi
20015
20016 fi
20017
20018       LIBINTL=
20019   LTLIBINTL=
20020   INCINTL=
20021   rpathdirs=
20022   ltrpathdirs=
20023   names_already_handled=
20024   names_next_round='intl '
20025   while test -n "$names_next_round"; do
20026     names_this_round="$names_next_round"
20027     names_next_round=
20028     for name in $names_this_round; do
20029       already_handled=
20030       for n in $names_already_handled; do
20031         if test "$n" = "$name"; then
20032           already_handled=yes
20033           break
20034         fi
20035       done
20036       if test -z "$already_handled"; then
20037         names_already_handled="$names_already_handled $name"
20038                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20039         eval value=\"\$HAVE_LIB$uppername\"
20040         if test -n "$value"; then
20041           if test "$value" = yes; then
20042             eval value=\"\$LIB$uppername\"
20043             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20044             eval value=\"\$LTLIB$uppername\"
20045             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20046           else
20047                                     :
20048           fi
20049         else
20050                               found_dir=
20051           found_la=
20052           found_so=
20053           found_a=
20054           if test $use_additional = yes; then
20055             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20056               found_dir="$additional_libdir"
20057               found_so="$additional_libdir/lib$name.$shlibext"
20058               if test -f "$additional_libdir/lib$name.la"; then
20059                 found_la="$additional_libdir/lib$name.la"
20060               fi
20061             else
20062               if test -f "$additional_libdir/lib$name.$libext"; then
20063                 found_dir="$additional_libdir"
20064                 found_a="$additional_libdir/lib$name.$libext"
20065                 if test -f "$additional_libdir/lib$name.la"; then
20066                   found_la="$additional_libdir/lib$name.la"
20067                 fi
20068               fi
20069             fi
20070           fi
20071           if test "X$found_dir" = "X"; then
20072             for x in $LDFLAGS $LTLIBINTL; do
20073
20074   acl_save_prefix="$prefix"
20075   prefix="$acl_final_prefix"
20076   acl_save_exec_prefix="$exec_prefix"
20077   exec_prefix="$acl_final_exec_prefix"
20078   eval x=\"$x\"
20079   exec_prefix="$acl_save_exec_prefix"
20080   prefix="$acl_save_prefix"
20081
20082               case "$x" in
20083                 -L*)
20084                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20085                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20086                     found_dir="$dir"
20087                     found_so="$dir/lib$name.$shlibext"
20088                     if test -f "$dir/lib$name.la"; then
20089                       found_la="$dir/lib$name.la"
20090                     fi
20091                   else
20092                     if test -f "$dir/lib$name.$libext"; then
20093                       found_dir="$dir"
20094                       found_a="$dir/lib$name.$libext"
20095                       if test -f "$dir/lib$name.la"; then
20096                         found_la="$dir/lib$name.la"
20097                       fi
20098                     fi
20099                   fi
20100                   ;;
20101               esac
20102               if test "X$found_dir" != "X"; then
20103                 break
20104               fi
20105             done
20106           fi
20107           if test "X$found_dir" != "X"; then
20108                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20109             if test "X$found_so" != "X"; then
20110                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20111                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20112               else
20113                                                                                 haveit=
20114                 for x in $ltrpathdirs; do
20115                   if test "X$x" = "X$found_dir"; then
20116                     haveit=yes
20117                     break
20118                   fi
20119                 done
20120                 if test -z "$haveit"; then
20121                   ltrpathdirs="$ltrpathdirs $found_dir"
20122                 fi
20123                                 if test "$hardcode_direct" = yes; then
20124                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20125                 else
20126                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20127                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20128                                                             haveit=
20129                     for x in $rpathdirs; do
20130                       if test "X$x" = "X$found_dir"; then
20131                         haveit=yes
20132                         break
20133                       fi
20134                     done
20135                     if test -z "$haveit"; then
20136                       rpathdirs="$rpathdirs $found_dir"
20137                     fi
20138                   else
20139                                                                                 haveit=
20140                     for x in $LDFLAGS $LIBINTL; do
20141
20142   acl_save_prefix="$prefix"
20143   prefix="$acl_final_prefix"
20144   acl_save_exec_prefix="$exec_prefix"
20145   exec_prefix="$acl_final_exec_prefix"
20146   eval x=\"$x\"
20147   exec_prefix="$acl_save_exec_prefix"
20148   prefix="$acl_save_prefix"
20149
20150                       if test "X$x" = "X-L$found_dir"; then
20151                         haveit=yes
20152                         break
20153                       fi
20154                     done
20155                     if test -z "$haveit"; then
20156                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20157                     fi
20158                     if test "$hardcode_minus_L" != no; then
20159                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20160                     else
20161                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20162                     fi
20163                   fi
20164                 fi
20165               fi
20166             else
20167               if test "X$found_a" != "X"; then
20168                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20169               else
20170                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20171               fi
20172             fi
20173                         additional_includedir=
20174             case "$found_dir" in
20175               */lib | */lib/)
20176                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20177                 additional_includedir="$basedir/include"
20178                 ;;
20179             esac
20180             if test "X$additional_includedir" != "X"; then
20181                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20182                 haveit=
20183                 if test "X$additional_includedir" = "X/usr/local/include"; then
20184                   if test -n "$GCC"; then
20185                     case $host_os in
20186                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20187                     esac
20188                   fi
20189                 fi
20190                 if test -z "$haveit"; then
20191                   for x in $CPPFLAGS $INCINTL; do
20192
20193   acl_save_prefix="$prefix"
20194   prefix="$acl_final_prefix"
20195   acl_save_exec_prefix="$exec_prefix"
20196   exec_prefix="$acl_final_exec_prefix"
20197   eval x=\"$x\"
20198   exec_prefix="$acl_save_exec_prefix"
20199   prefix="$acl_save_prefix"
20200
20201                     if test "X$x" = "X-I$additional_includedir"; then
20202                       haveit=yes
20203                       break
20204                     fi
20205                   done
20206                   if test -z "$haveit"; then
20207                     if test -d "$additional_includedir"; then
20208                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20209                     fi
20210                   fi
20211                 fi
20212               fi
20213             fi
20214                         if test -n "$found_la"; then
20215                                                         save_libdir="$libdir"
20216               case "$found_la" in
20217                 */* | *\\*) . "$found_la" ;;
20218                 *) . "./$found_la" ;;
20219               esac
20220               libdir="$save_libdir"
20221                             for dep in $dependency_libs; do
20222                 case "$dep" in
20223                   -L*)
20224                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20225                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20226                       haveit=
20227                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20228                         if test -n "$GCC"; then
20229                           case $host_os in
20230                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20231                           esac
20232                         fi
20233                       fi
20234                       if test -z "$haveit"; then
20235                         haveit=
20236                         for x in $LDFLAGS $LIBINTL; do
20237
20238   acl_save_prefix="$prefix"
20239   prefix="$acl_final_prefix"
20240   acl_save_exec_prefix="$exec_prefix"
20241   exec_prefix="$acl_final_exec_prefix"
20242   eval x=\"$x\"
20243   exec_prefix="$acl_save_exec_prefix"
20244   prefix="$acl_save_prefix"
20245
20246                           if test "X$x" = "X-L$additional_libdir"; then
20247                             haveit=yes
20248                             break
20249                           fi
20250                         done
20251                         if test -z "$haveit"; then
20252                           if test -d "$additional_libdir"; then
20253                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20254                           fi
20255                         fi
20256                         haveit=
20257                         for x in $LDFLAGS $LTLIBINTL; do
20258
20259   acl_save_prefix="$prefix"
20260   prefix="$acl_final_prefix"
20261   acl_save_exec_prefix="$exec_prefix"
20262   exec_prefix="$acl_final_exec_prefix"
20263   eval x=\"$x\"
20264   exec_prefix="$acl_save_exec_prefix"
20265   prefix="$acl_save_prefix"
20266
20267                           if test "X$x" = "X-L$additional_libdir"; then
20268                             haveit=yes
20269                             break
20270                           fi
20271                         done
20272                         if test -z "$haveit"; then
20273                           if test -d "$additional_libdir"; then
20274                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20275                           fi
20276                         fi
20277                       fi
20278                     fi
20279                     ;;
20280                   -R*)
20281                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20282                     if test "$enable_rpath" != no; then
20283                                                                   haveit=
20284                       for x in $rpathdirs; do
20285                         if test "X$x" = "X$dir"; then
20286                           haveit=yes
20287                           break
20288                         fi
20289                       done
20290                       if test -z "$haveit"; then
20291                         rpathdirs="$rpathdirs $dir"
20292                       fi
20293                                                                   haveit=
20294                       for x in $ltrpathdirs; do
20295                         if test "X$x" = "X$dir"; then
20296                           haveit=yes
20297                           break
20298                         fi
20299                       done
20300                       if test -z "$haveit"; then
20301                         ltrpathdirs="$ltrpathdirs $dir"
20302                       fi
20303                     fi
20304                     ;;
20305                   -l*)
20306                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20307                     ;;
20308                   *.la)
20309                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20310                     ;;
20311                   *)
20312                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20313                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20314                     ;;
20315                 esac
20316               done
20317             fi
20318           else
20319                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20320             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20321           fi
20322         fi
20323       fi
20324     done
20325   done
20326   if test "X$rpathdirs" != "X"; then
20327     if test -n "$hardcode_libdir_separator"; then
20328                         alldirs=
20329       for found_dir in $rpathdirs; do
20330         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20331       done
20332             acl_save_libdir="$libdir"
20333       libdir="$alldirs"
20334       eval flag=\"$hardcode_libdir_flag_spec\"
20335       libdir="$acl_save_libdir"
20336       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20337     else
20338             for found_dir in $rpathdirs; do
20339         acl_save_libdir="$libdir"
20340         libdir="$found_dir"
20341         eval flag=\"$hardcode_libdir_flag_spec\"
20342         libdir="$acl_save_libdir"
20343         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20344       done
20345     fi
20346   fi
20347   if test "X$ltrpathdirs" != "X"; then
20348             for found_dir in $ltrpathdirs; do
20349       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20350     done
20351   fi
20352
20353           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20354 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20355 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20356   $as_echo_n "(cached) " >&6
20357 else
20358   gt_save_CPPFLAGS="$CPPFLAGS"
20359             CPPFLAGS="$CPPFLAGS $INCINTL"
20360             gt_save_LIBS="$LIBS"
20361             LIBS="$LIBS $LIBINTL"
20362                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h.  */
20364 #include <libintl.h>
20365 extern int _nl_msg_cat_cntr;
20366 extern
20367 #ifdef __cplusplus
20368 "C"
20369 #endif
20370 const char *_nl_expand_alias (const char *);
20371 int
20372 main ()
20373 {
20374 bindtextdomain ("", "");
20375 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20376   ;
20377   return 0;
20378 }
20379 _ACEOF
20380 if ac_fn_c_try_link "$LINENO"; then :
20381   gt_cv_func_gnugettext1_libintl=yes
20382 else
20383   gt_cv_func_gnugettext1_libintl=no
20384 fi
20385 rm -f core conftest.err conftest.$ac_objext \
20386     conftest$ac_exeext conftest.$ac_ext
20387                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20388               LIBS="$LIBS $LIBICONV"
20389               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20390 /* end confdefs.h.  */
20391 #include <libintl.h>
20392 extern int _nl_msg_cat_cntr;
20393 extern
20394 #ifdef __cplusplus
20395 "C"
20396 #endif
20397 const char *_nl_expand_alias (const char *);
20398 int
20399 main ()
20400 {
20401 bindtextdomain ("", "");
20402 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20403   ;
20404   return 0;
20405 }
20406 _ACEOF
20407 if ac_fn_c_try_link "$LINENO"; then :
20408   LIBINTL="$LIBINTL $LIBICONV"
20409                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20410                 gt_cv_func_gnugettext1_libintl=yes
20411
20412 fi
20413 rm -f core conftest.err conftest.$ac_objext \
20414     conftest$ac_exeext conftest.$ac_ext
20415             fi
20416             CPPFLAGS="$gt_save_CPPFLAGS"
20417             LIBS="$gt_save_LIBS"
20418 fi
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20420 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20421         fi
20422
20423                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20424            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20425                 && test "$PACKAGE" != gettext-runtime \
20426                 && test "$PACKAGE" != gettext-tools; }; then
20427           gt_use_preinstalled_gnugettext=yes
20428         else
20429                     LIBINTL=
20430           LTLIBINTL=
20431           INCINTL=
20432         fi
20433
20434
20435         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20436                               nls_cv_use_gnu_gettext=yes
20437         fi
20438       fi
20439
20440       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20441                 BUILD_INCLUDED_LIBINTL=yes
20442         USE_INCLUDED_LIBINTL=yes
20443         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20444         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20445         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20446       fi
20447
20448       CATOBJEXT=
20449       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20450          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20451                 CATOBJEXT=.gmo
20452       fi
20453
20454
20455     if test -n "$INTL_MACOSX_LIBS"; then
20456       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20457          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20458                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20459         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20460       fi
20461     fi
20462
20463     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20464        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20465
20466 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20467
20468     else
20469       USE_NLS=no
20470     fi
20471   fi
20472
20473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20474 $as_echo_n "checking whether to use NLS... " >&6; }
20475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20476 $as_echo "$USE_NLS" >&6; }
20477   if test "$USE_NLS" = "yes"; then
20478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20479 $as_echo_n "checking where the gettext function comes from... " >&6; }
20480     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20481       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20482         gt_source="external libintl"
20483       else
20484         gt_source="libc"
20485       fi
20486     else
20487       gt_source="included intl directory"
20488     fi
20489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20490 $as_echo "$gt_source" >&6; }
20491   fi
20492
20493   if test "$USE_NLS" = "yes"; then
20494
20495     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20496       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20497         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20498 $as_echo_n "checking how to link with libintl... " >&6; }
20499         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20500 $as_echo "$LIBINTL" >&6; }
20501
20502   for element in $INCINTL; do
20503     haveit=
20504     for x in $CPPFLAGS; do
20505
20506   acl_save_prefix="$prefix"
20507   prefix="$acl_final_prefix"
20508   acl_save_exec_prefix="$exec_prefix"
20509   exec_prefix="$acl_final_exec_prefix"
20510   eval x=\"$x\"
20511   exec_prefix="$acl_save_exec_prefix"
20512   prefix="$acl_save_prefix"
20513
20514       if test "X$x" = "X$element"; then
20515         haveit=yes
20516         break
20517       fi
20518     done
20519     if test -z "$haveit"; then
20520       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20521     fi
20522   done
20523
20524       fi
20525
20526
20527 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20528
20529
20530 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20531
20532     fi
20533
20534         POSUB=po
20535   fi
20536
20537
20538             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20539       BUILD_INCLUDED_LIBINTL=yes
20540     fi
20541
20542
20543
20544
20545
20546         nls_cv_header_intl=
20547     nls_cv_header_libgt=
20548
20549         DATADIRNAME=share
20550
20551
20552         INSTOBJEXT=.mo
20553
20554
20555         GENCAT=gencat
20556
20557
20558         INTLOBJS=
20559     if test "$USE_INCLUDED_LIBINTL" = yes; then
20560       INTLOBJS="\$(GETTOBJS)"
20561     fi
20562
20563
20564         INTL_LIBTOOL_SUFFIX_PREFIX=
20565
20566
20567
20568     INTLLIBS="$LIBINTL"
20569
20570
20571
20572
20573
20574
20575 fi
20576
20577 support_mysql=no
20578 support_sqlite=no
20579 support_sqlite3=no
20580 support_postgresql=no
20581 support_ingres=no
20582 support_dbi=no
20583 support_smartalloc=yes
20584 support_readline=yes
20585 support_conio=yes
20586 support_gnome=no
20587 support_bat=no
20588 support_wx_console=no
20589 support_tray_monitor=no
20590 support_tls=no
20591 support_crypto=no
20592 gnome_version=
20593 wx_version=
20594 support_static_tools=no
20595 support_static_fd=no
20596 support_static_sd=no
20597 support_static_dir=no
20598 support_static_cons=no
20599 support_python=no
20600 build_client_only=no
20601 build_dird=yes
20602 build_stored=yes
20603 cats=
20604 db_type=Internal
20605 support_lockmgr=no
20606 DB_TYPE=bdb
20607
20608
20609 # Check whether --enable-gnome was given.
20610 if test "${enable_gnome+set}" = set; then :
20611   enableval=$enable_gnome;
20612        if test x$enableval = xyes; then
20613           support_gnome=yes
20614        fi
20615
20616
20617 fi
20618
20619
20620 GNOME_DIR=
20621 if test x$support_gnome = xyes; then
20622    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20623    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20624 fi
20625 # AC_SUBST(GNOME_DIR)
20626
20627 # Check whether --enable-bat was given.
20628 if test "${enable_bat+set}" = set; then :
20629   enableval=$enable_bat;
20630        if test x$enableval = xyes; then
20631
20632 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20633
20634           support_bat=yes
20635        fi
20636
20637
20638 fi
20639
20640
20641 BAT_DIR=
20642 if test x$support_bat = xyes; then
20643    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20644    pkg=$?
20645    if test $pkg = 0; then
20646       BAT_DIR=src/qt-console
20647    else
20648       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20649    fi
20650 fi
20651
20652 got_qwt=no
20653 QWT_INC=
20654 QWT_LDFLAGS=
20655 QWT_LIB=
20656 QWT=
20657 no_qwt=no
20658
20659
20660
20661
20662
20663
20664
20665
20666 # Check whether --enable-bwx-console was given.
20667 if test "${enable_bwx_console+set}" = set; then :
20668   enableval=$enable_bwx_console;
20669        if test x$enableval = xyes; then
20670           support_wx_console=yes
20671        fi
20672
20673
20674 fi
20675
20676
20677 WX_DIR=
20678 if test x$support_wx_console = xyes; then
20679    abc=`$WXCONFIG $WXFLAGS --cppflags`
20680    pkg=$?
20681    if test $pkg = 0; then
20682       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20683       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20684       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20685
20686
20687
20688       WX_DIR="src/wx-console"
20689    else
20690       echo " "
20691       echo "wx-config program not found. bwx-console disabled."
20692       echo " "
20693       support_wx_console=no
20694    fi
20695 fi
20696
20697
20698 # Check whether --enable-tray-monitor was given.
20699 if test "${enable_tray_monitor+set}" = set; then :
20700   enableval=$enable_tray_monitor;
20701        if test x$enableval = xyes; then
20702           support_tray_monitor=yes
20703        fi
20704
20705
20706 fi
20707
20708
20709 TRAY_MONITOR_DIR=
20710 if test x$support_tray_monitor = xyes; then
20711    abc=`$PKGCONFIG --exists gtk+-2.0`
20712    pkg=$?
20713    if test $pkg = 0; then
20714       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20715       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20716
20717
20718       TRAY_MONITOR_DIR=src/tray-monitor
20719       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20720       pkg=$?
20721       if test $pkg = 0; then
20722
20723 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20724
20725       fi
20726    fi
20727 fi
20728
20729
20730 # Check whether --enable-smartalloc was given.
20731 if test "${enable_smartalloc+set}" = set; then :
20732   enableval=$enable_smartalloc;
20733        if test x$enableval = xno; then
20734           support_smartalloc=no
20735        fi
20736
20737
20738 fi
20739
20740
20741 if test x$support_smartalloc = xyes; then
20742
20743 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20744
20745 fi
20746
20747 # Check whether --enable-lockmgr was given.
20748 if test "${enable_lockmgr+set}" = set; then :
20749   enableval=$enable_lockmgr;
20750        if test x$enableval = xyes; then
20751           support_lockmgr=yes
20752        fi
20753
20754
20755 fi
20756
20757
20758 if test x$support_lockmgr = xyes; then
20759
20760 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20761
20762 fi
20763
20764
20765 # Check whether --enable-static-tools was given.
20766 if test "${enable_static_tools+set}" = set; then :
20767   enableval=$enable_static_tools;
20768        if test x$enableval = xyes; then
20769           if test x$use_libtool = xyes; then
20770              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20771   please rerun configure with --disable-libtool" "$LINENO" 5
20772           fi
20773           support_static_tools=yes
20774        fi
20775
20776
20777 fi
20778
20779
20780 TTOOL_LDFLAGS=
20781 if test x$support_static_tools = xyes; then
20782    TTOOL_LDFLAGS="-static"
20783 fi
20784
20785
20786 # Check whether --enable-static-fd was given.
20787 if test "${enable_static_fd+set}" = set; then :
20788   enableval=$enable_static_fd;
20789        if test x$enableval = xyes; then
20790           if test x$use_libtool = xyes; then
20791              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20792   please rerun configure with --disable-libtool" "$LINENO" 5
20793           fi
20794           support_static_fd=yes
20795        fi
20796
20797
20798 fi
20799
20800
20801 STATIC_FD=
20802 if test x$support_static_fd = xyes; then
20803    STATIC_FD="static-bacula-fd"
20804 fi
20805
20806
20807 # Check whether --enable-static-sd was given.
20808 if test "${enable_static_sd+set}" = set; then :
20809   enableval=$enable_static_sd;
20810        if test x$enableval = xyes; then
20811           if test x$use_libtool = xyes; then
20812              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20813   please rerun configure with --disable-libtool" "$LINENO" 5
20814           fi
20815           support_static_sd=yes
20816        fi
20817
20818
20819 fi
20820
20821
20822 STATIC_SD=
20823 if test x$support_static_sd = xyes; then
20824    STATIC_SD="static-bacula-sd"
20825 fi
20826
20827
20828 # Check whether --enable-static-dir was given.
20829 if test "${enable_static_dir+set}" = set; then :
20830   enableval=$enable_static_dir;
20831        if test x$enableval = xyes; then
20832           if test x$use_libtool = xyes; then
20833              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20834   please rerun configure with --disable-libtool" "$LINENO" 5
20835           fi
20836           support_static_dir=yes
20837        fi
20838
20839
20840 fi
20841
20842
20843 STATIC_DIR=
20844 if test x$support_static_dir = xyes; then
20845    STATIC_DIR="static-bacula-dir"
20846 fi
20847
20848
20849 # Check whether --enable-static-cons was given.
20850 if test "${enable_static_cons+set}" = set; then :
20851   enableval=$enable_static_cons;
20852        if test x$enableval = xyes; then
20853           if test x$use_libtool = xyes; then
20854              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20855   please rerun configure with --disable-libtool" "$LINENO" 5
20856           fi
20857           support_static_cons=yes
20858        fi
20859
20860
20861 fi
20862
20863
20864 STATIC_CONS=
20865 STATIC_GNOME_CONS=
20866 STATIC_WX_CONS=
20867 if test x$support_static_cons = xyes; then
20868    STATIC_CONS="static-bconsole"
20869    STATIC_GNOME_CONS="static-bgnome-console"
20870    STATIC_WX_CONS="static-bwx-console"
20871 fi
20872
20873
20874
20875
20876 # Check whether --enable-client-only was given.
20877 if test "${enable_client_only+set}" = set; then :
20878   enableval=$enable_client_only;
20879        if test x$enableval = xyes; then
20880           build_client_only=yes
20881           db_type=None
20882           DB_TYPE=none
20883        fi
20884
20885
20886 fi
20887
20888 if test x$build_client_only = xno; then
20889    ALL_DIRS="subdirs"
20890 else
20891    ALL_DIRS=""
20892 fi
20893
20894
20895 # Check whether --enable-build-dird was given.
20896 if test "${enable_build_dird+set}" = set; then :
20897   enableval=$enable_build_dird;
20898        if test x$enableval = xno; then
20899           build_dird=no
20900        fi
20901
20902
20903 fi
20904
20905 if test x$build_dird = xyes; then
20906    DIRD_DIR="src/dird"
20907    DIR_TOOLS="DIRTOOLS"
20908 else
20909    DIRD_DIR=""
20910    DIR_TOOLS="NODIRTOOLS"
20911 fi
20912
20913
20914
20915 # Check whether --enable-build-stored was given.
20916 if test "${enable_build_stored+set}" = set; then :
20917   enableval=$enable_build_stored;
20918       if test x$enableval = xno; then
20919          build_stored=no
20920       fi
20921
20922
20923 fi
20924
20925 if test x$build_stored = xyes; then
20926    STORED_DIR="src/stored"
20927 else
20928    STORED_DIR=""
20929 fi
20930
20931
20932 # Check whether --enable-conio was given.
20933 if test "${enable_conio+set}" = set; then :
20934   enableval=$enable_conio;
20935        if test x$enableval = xno; then
20936           support_conio=no
20937        fi
20938
20939
20940 fi
20941
20942
20943
20944 support_ipv6=yes
20945 # Check whether --enable-ipv6 was given.
20946 if test "${enable_ipv6+set}" = set; then :
20947   enableval=$enable_ipv6;
20948        if test x$enableval = xno; then
20949           support_ipv6=no
20950        fi
20951
20952
20953 fi
20954
20955
20956 if test x$support_ipv6 = xyes; then
20957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h.  */
20959  #include <sys/types.h>
20960 #include <sys/socket.h>
20961 #include <netinet/in.h>
20962 int
20963 main ()
20964 {
20965 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20966   ;
20967   return 0;
20968 }
20969 _ACEOF
20970 if ac_fn_c_try_link "$LINENO"; then :
20971   support_ipv6=yes
20972 else
20973   support_ipv6=no
20974 fi
20975 rm -f core conftest.err conftest.$ac_objext \
20976     conftest$ac_exeext conftest.$ac_ext
20977 fi
20978
20979 if test x$support_ipv6 = xyes; then
20980
20981 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20982
20983 fi
20984
20985 TERM_LIB=""
20986 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
20987 if test "x$ac_cv_header_curses_h" = x""yes; then :
20988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
20989 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
20990 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
20991   $as_echo_n "(cached) " >&6
20992 else
20993   ac_check_lib_save_LIBS=$LIBS
20994 LIBS="-lncurses  $LIBS"
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h.  */
20997
20998 /* Override any GCC internal prototype to avoid an error.
20999    Use char because int might match the return type of a GCC
21000    builtin and then its argument prototype would still apply.  */
21001 #ifdef __cplusplus
21002 extern "C"
21003 #endif
21004 char tgetent ();
21005 int
21006 main ()
21007 {
21008 return tgetent ();
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 if ac_fn_c_try_link "$LINENO"; then :
21014   ac_cv_lib_ncurses_tgetent=yes
21015 else
21016   ac_cv_lib_ncurses_tgetent=no
21017 fi
21018 rm -f core conftest.err conftest.$ac_objext \
21019     conftest$ac_exeext conftest.$ac_ext
21020 LIBS=$ac_check_lib_save_LIBS
21021 fi
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21023 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21024 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21025    TERM_LIB="-lncurses"
21026 else
21027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21028 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21029 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21030   $as_echo_n "(cached) " >&6
21031 else
21032   ac_check_lib_save_LIBS=$LIBS
21033 LIBS="-ltermcap  $LIBS"
21034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035 /* end confdefs.h.  */
21036
21037 /* Override any GCC internal prototype to avoid an error.
21038    Use char because int might match the return type of a GCC
21039    builtin and then its argument prototype would still apply.  */
21040 #ifdef __cplusplus
21041 extern "C"
21042 #endif
21043 char tgetent ();
21044 int
21045 main ()
21046 {
21047 return tgetent ();
21048   ;
21049   return 0;
21050 }
21051 _ACEOF
21052 if ac_fn_c_try_link "$LINENO"; then :
21053   ac_cv_lib_termcap_tgetent=yes
21054 else
21055   ac_cv_lib_termcap_tgetent=no
21056 fi
21057 rm -f core conftest.err conftest.$ac_objext \
21058     conftest$ac_exeext conftest.$ac_ext
21059 LIBS=$ac_check_lib_save_LIBS
21060 fi
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21062 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21063 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21064    TERM_LIB="-ltermcap"
21065 fi
21066
21067
21068 fi
21069
21070
21071 else
21072     for ac_header in curses.h
21073 do :
21074   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21075 if test "x$ac_cv_header_curses_h" = x""yes; then :
21076   cat >>confdefs.h <<_ACEOF
21077 #define HAVE_CURSES_H 1
21078 _ACEOF
21079
21080 fi
21081
21082 done
21083
21084      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21085 if test "x$ac_cv_header_term_h" = x""yes; then :
21086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21087 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21088 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21089   $as_echo_n "(cached) " >&6
21090 else
21091   ac_check_lib_save_LIBS=$LIBS
21092 LIBS="-lcurses  $LIBS"
21093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21094 /* end confdefs.h.  */
21095
21096 /* Override any GCC internal prototype to avoid an error.
21097    Use char because int might match the return type of a GCC
21098    builtin and then its argument prototype would still apply.  */
21099 #ifdef __cplusplus
21100 extern "C"
21101 #endif
21102 char tgetent ();
21103 int
21104 main ()
21105 {
21106 return tgetent ();
21107   ;
21108   return 0;
21109 }
21110 _ACEOF
21111 if ac_fn_c_try_link "$LINENO"; then :
21112   ac_cv_lib_curses_tgetent=yes
21113 else
21114   ac_cv_lib_curses_tgetent=no
21115 fi
21116 rm -f core conftest.err conftest.$ac_objext \
21117     conftest$ac_exeext conftest.$ac_ext
21118 LIBS=$ac_check_lib_save_LIBS
21119 fi
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21121 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21122 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21123    TERM_LIB="-lcurses"
21124 fi
21125
21126
21127 fi
21128
21129
21130
21131 fi
21132
21133
21134
21135
21136 got_conio="no"
21137 if test x$support_conio = xyes; then
21138    if test x$TERM_LIB != x; then
21139       CONS_LIBS=$TERM_LIB
21140       CONS_OBJ="conio.o"
21141       CONS_SRC="conio.c"
21142       got_conio="yes"
21143       support_readline=no
21144
21145 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21146
21147    else
21148       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21149    fi
21150 fi
21151
21152
21153 # Check whether --enable-readline was given.
21154 if test "${enable_readline+set}" = set; then :
21155   enableval=$enable_readline;
21156        if test x$enableval = xno; then
21157           support_readline=no
21158        fi
21159
21160
21161 fi
21162
21163 if test x$TERM_LIB = x ; then
21164    support_readline=no
21165 fi
21166
21167 got_readline="no"
21168 READLINE_SRC=
21169 if test x$support_readline = xyes; then
21170
21171 # Check whether --with-readline was given.
21172 if test "${with_readline+set}" = set; then :
21173   withval=$with_readline;
21174           case "$with_readline" in
21175           no)
21176              :
21177              ;;
21178           yes|*)
21179              if test -f ${with_readline}/readline.h; then
21180                 CONS_INC="-I${with_readline}"
21181                 CONS_LDFLAGS="-L$with_readline"
21182              elif test -f ${with_readline}/include/readline/readline.h; then
21183                 CONS_INC="-I${with_readline}/include/readline"
21184                 CONS_LDFLAGS="-L${with_readline}/lib"
21185                 with_readline="${with_readline}/include/readline"
21186              else
21187                 with_readline="/usr/include/readline"
21188              fi
21189
21190              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21191 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21192 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21193
21194
21195 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21196
21197                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21198                     got_readline="yes"
21199
21200 else
21201
21202                     echo " "
21203                     echo "readline.h not found. readline turned off ..."
21204                     echo " "
21205
21206
21207 fi
21208
21209
21210              ;;
21211           esac
21212
21213 else
21214
21215                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21216 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21217
21218
21219 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21220
21221                 got_readline="yes"
21222                 CONS_INC="-I/usr/include/readline"
21223                 CONS_LIBS="-lreadline $TERM_LIB"
21224
21225 else
21226
21227                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21228 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21229 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21230
21231
21232 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21233
21234                         got_readline="yes"
21235                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21236                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21237                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21238                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21239
21240 else
21241
21242                         echo " "
21243                         echo "readline.h not found. readline turned off ..."
21244                         echo " "
21245
21246
21247 fi
21248
21249
21250
21251
21252 fi
21253
21254
21255
21256
21257 fi
21258
21259 fi
21260
21261
21262
21263
21264
21265
21266
21267
21268 MAKE_SHELL=/bin/sh
21269
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21271 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21272 if test "${ac_cv_header_stat_broken+set}" = set; then :
21273   $as_echo_n "(cached) " >&6
21274 else
21275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21276 /* end confdefs.h.  */
21277 #include <sys/types.h>
21278 #include <sys/stat.h>
21279
21280 #if defined S_ISBLK && defined S_IFDIR
21281 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21282 #endif
21283
21284 #if defined S_ISBLK && defined S_IFCHR
21285 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21286 #endif
21287
21288 #if defined S_ISLNK && defined S_IFREG
21289 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21290 #endif
21291
21292 #if defined S_ISSOCK && defined S_IFREG
21293 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21294 #endif
21295
21296 _ACEOF
21297 if ac_fn_c_try_compile "$LINENO"; then :
21298   ac_cv_header_stat_broken=no
21299 else
21300   ac_cv_header_stat_broken=yes
21301 fi
21302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21303 fi
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21305 $as_echo "$ac_cv_header_stat_broken" >&6; }
21306 if test $ac_cv_header_stat_broken = yes; then
21307
21308 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21309
21310 fi
21311
21312 ac_header_dirent=no
21313 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21314   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21316 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21317 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
21318   $as_echo_n "(cached) " >&6
21319 else
21320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21321 /* end confdefs.h.  */
21322 #include <sys/types.h>
21323 #include <$ac_hdr>
21324
21325 int
21326 main ()
21327 {
21328 if ((DIR *) 0)
21329 return 0;
21330   ;
21331   return 0;
21332 }
21333 _ACEOF
21334 if ac_fn_c_try_compile "$LINENO"; then :
21335   eval "$as_ac_Header=yes"
21336 else
21337   eval "$as_ac_Header=no"
21338 fi
21339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340 fi
21341 eval ac_res=\$$as_ac_Header
21342                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21343 $as_echo "$ac_res" >&6; }
21344 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21345   cat >>confdefs.h <<_ACEOF
21346 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21347 _ACEOF
21348
21349 ac_header_dirent=$ac_hdr; break
21350 fi
21351
21352 done
21353 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21354 if test $ac_header_dirent = dirent.h; then
21355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21356 $as_echo_n "checking for library containing opendir... " >&6; }
21357 if test "${ac_cv_search_opendir+set}" = set; then :
21358   $as_echo_n "(cached) " >&6
21359 else
21360   ac_func_search_save_LIBS=$LIBS
21361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21362 /* end confdefs.h.  */
21363
21364 /* Override any GCC internal prototype to avoid an error.
21365    Use char because int might match the return type of a GCC
21366    builtin and then its argument prototype would still apply.  */
21367 #ifdef __cplusplus
21368 extern "C"
21369 #endif
21370 char opendir ();
21371 int
21372 main ()
21373 {
21374 return opendir ();
21375   ;
21376   return 0;
21377 }
21378 _ACEOF
21379 for ac_lib in '' dir; do
21380   if test -z "$ac_lib"; then
21381     ac_res="none required"
21382   else
21383     ac_res=-l$ac_lib
21384     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21385   fi
21386   if ac_fn_c_try_link "$LINENO"; then :
21387   ac_cv_search_opendir=$ac_res
21388 fi
21389 rm -f core conftest.err conftest.$ac_objext \
21390     conftest$ac_exeext
21391   if test "${ac_cv_search_opendir+set}" = set; then :
21392   break
21393 fi
21394 done
21395 if test "${ac_cv_search_opendir+set}" = set; then :
21396
21397 else
21398   ac_cv_search_opendir=no
21399 fi
21400 rm conftest.$ac_ext
21401 LIBS=$ac_func_search_save_LIBS
21402 fi
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21404 $as_echo "$ac_cv_search_opendir" >&6; }
21405 ac_res=$ac_cv_search_opendir
21406 if test "$ac_res" != no; then :
21407   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21408
21409 fi
21410
21411 else
21412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21413 $as_echo_n "checking for library containing opendir... " >&6; }
21414 if test "${ac_cv_search_opendir+set}" = set; then :
21415   $as_echo_n "(cached) " >&6
21416 else
21417   ac_func_search_save_LIBS=$LIBS
21418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21419 /* end confdefs.h.  */
21420
21421 /* Override any GCC internal prototype to avoid an error.
21422    Use char because int might match the return type of a GCC
21423    builtin and then its argument prototype would still apply.  */
21424 #ifdef __cplusplus
21425 extern "C"
21426 #endif
21427 char opendir ();
21428 int
21429 main ()
21430 {
21431 return opendir ();
21432   ;
21433   return 0;
21434 }
21435 _ACEOF
21436 for ac_lib in '' x; do
21437   if test -z "$ac_lib"; then
21438     ac_res="none required"
21439   else
21440     ac_res=-l$ac_lib
21441     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21442   fi
21443   if ac_fn_c_try_link "$LINENO"; then :
21444   ac_cv_search_opendir=$ac_res
21445 fi
21446 rm -f core conftest.err conftest.$ac_objext \
21447     conftest$ac_exeext
21448   if test "${ac_cv_search_opendir+set}" = set; then :
21449   break
21450 fi
21451 done
21452 if test "${ac_cv_search_opendir+set}" = set; then :
21453
21454 else
21455   ac_cv_search_opendir=no
21456 fi
21457 rm conftest.$ac_ext
21458 LIBS=$ac_func_search_save_LIBS
21459 fi
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21461 $as_echo "$ac_cv_search_opendir" >&6; }
21462 ac_res=$ac_cv_search_opendir
21463 if test "$ac_res" != no; then :
21464   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21465
21466 fi
21467
21468 fi
21469
21470 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21471 do :
21472   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21473 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21474 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21475   cat >>confdefs.h <<_ACEOF
21476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21477 _ACEOF
21478
21479 fi
21480 done
21481
21482 for ac_func in nanosleep nl_langinfo
21483 do :
21484   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21486 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21487   cat >>confdefs.h <<_ACEOF
21488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21489 _ACEOF
21490
21491 fi
21492 done
21493
21494 for ac_header in varargs.h
21495 do :
21496   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21497 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21498   cat >>confdefs.h <<_ACEOF
21499 #define HAVE_VARARGS_H 1
21500 _ACEOF
21501
21502 fi
21503
21504 done
21505
21506
21507
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21509 $as_echo_n "checking for Python support... " >&6; }
21510
21511 # Check whether --with-python was given.
21512 if test "${with_python+set}" = set; then :
21513   withval=$with_python;
21514        PYTHON_INCDIR=
21515        PYTHON_LIBS=
21516        if test "$withval" != "no"; then
21517           if test "$withval" = "yes"; then
21518              if test -e /usr/bin/python-config ; then
21519                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21520                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21521              else
21522                 for python_root in /usr /usr/local /usr/sfw; do
21523                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21524                       if test -f $python_root/include/${ver}/Python.h; then
21525                          PYTHON_INCDIR=-I$python_root/include/${ver}
21526                          if test -d $python_root/lib64/${ver}/config; then
21527                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21528                          else
21529                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21530                          fi
21531                          break
21532                       fi
21533                    done
21534                 done
21535
21536                 if test x$PYTHON_INCDIR = x; then
21537                    if test -f $prefix/include/Python.h; then
21538                       PYTHON_INCDIR=-I$prefix/include
21539                       if test -d $prefix/lib64/config; then
21540                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21541                       else
21542                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21543                       fi
21544                    else
21545                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21546 $as_echo "no" >&6; }
21547                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21548                    fi
21549                 fi
21550              fi
21551           else
21552              if test -e $withval/bin/python-config ; then
21553                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21554                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21555              elif test -f $withval/Python.h; then
21556                 PYTHON_INCDIR=-I$withval
21557                 PYTHON_LIBS="-L$withval/config -lpython"
21558              elif test -f $withval/include/Python.h; then
21559                 PYTHON_INCDIR=-I$withval/include
21560                 if test -d $withval/lib64/config; then
21561                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21562                 else
21563                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21564                 fi
21565              elif test -f $withval/include/python/Python.h; then
21566                 PYTHON_INCDIR=-I$withval/include/python
21567                 if test -d $withval/lib64/python/config; then
21568                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21569                 else
21570                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21571                 fi
21572              else
21573                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21574 $as_echo "no" >&6; }
21575                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21576              fi
21577           fi
21578
21579           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21580
21581           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21582 $as_echo "yes" >&6; }
21583           support_python=yes
21584           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21585 $as_echo "$as_me: checking for more Python libs" >&6;}
21586           saved_LIBS="$LIBS"; LIBS=
21587           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21588 $as_echo_n "checking for library containing shm_open... " >&6; }
21589 if test "${ac_cv_search_shm_open+set}" = set; then :
21590   $as_echo_n "(cached) " >&6
21591 else
21592   ac_func_search_save_LIBS=$LIBS
21593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21594 /* end confdefs.h.  */
21595
21596 /* Override any GCC internal prototype to avoid an error.
21597    Use char because int might match the return type of a GCC
21598    builtin and then its argument prototype would still apply.  */
21599 #ifdef __cplusplus
21600 extern "C"
21601 #endif
21602 char shm_open ();
21603 int
21604 main ()
21605 {
21606 return shm_open ();
21607   ;
21608   return 0;
21609 }
21610 _ACEOF
21611 for ac_lib in '' rt; do
21612   if test -z "$ac_lib"; then
21613     ac_res="none required"
21614   else
21615     ac_res=-l$ac_lib
21616     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21617   fi
21618   if ac_fn_c_try_link "$LINENO"; then :
21619   ac_cv_search_shm_open=$ac_res
21620 fi
21621 rm -f core conftest.err conftest.$ac_objext \
21622     conftest$ac_exeext
21623   if test "${ac_cv_search_shm_open+set}" = set; then :
21624   break
21625 fi
21626 done
21627 if test "${ac_cv_search_shm_open+set}" = set; then :
21628
21629 else
21630   ac_cv_search_shm_open=no
21631 fi
21632 rm conftest.$ac_ext
21633 LIBS=$ac_func_search_save_LIBS
21634 fi
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21636 $as_echo "$ac_cv_search_shm_open" >&6; }
21637 ac_res=$ac_cv_search_shm_open
21638 if test "$ac_res" != no; then :
21639   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21640
21641 fi
21642
21643           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21644 $as_echo_n "checking for openpty in -lutil... " >&6; }
21645 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21646   $as_echo_n "(cached) " >&6
21647 else
21648   ac_check_lib_save_LIBS=$LIBS
21649 LIBS="-lutil  $LIBS"
21650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21651 /* end confdefs.h.  */
21652
21653 /* Override any GCC internal prototype to avoid an error.
21654    Use char because int might match the return type of a GCC
21655    builtin and then its argument prototype would still apply.  */
21656 #ifdef __cplusplus
21657 extern "C"
21658 #endif
21659 char openpty ();
21660 int
21661 main ()
21662 {
21663 return openpty ();
21664   ;
21665   return 0;
21666 }
21667 _ACEOF
21668 if ac_fn_c_try_link "$LINENO"; then :
21669   ac_cv_lib_util_openpty=yes
21670 else
21671   ac_cv_lib_util_openpty=no
21672 fi
21673 rm -f core conftest.err conftest.$ac_objext \
21674     conftest$ac_exeext conftest.$ac_ext
21675 LIBS=$ac_check_lib_save_LIBS
21676 fi
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21678 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21679 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21680   cat >>confdefs.h <<_ACEOF
21681 #define HAVE_LIBUTIL 1
21682 _ACEOF
21683
21684   LIBS="-lutil $LIBS"
21685
21686 fi
21687
21688           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21689           LIBS="$saved_LIBS"
21690        else
21691           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21692 $as_echo "no" >&6; }
21693        fi
21694
21695 else
21696
21697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21698 $as_echo "no" >&6; }
21699
21700
21701 fi
21702
21703
21704
21705
21706 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21707 if test "x$ac_cv_func_socket" = x""yes; then :
21708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21709 $as_echo "using libc's socket" >&6; }
21710 else
21711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21712 $as_echo_n "checking for socket in -lxnet... " >&6; }
21713 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21714   $as_echo_n "(cached) " >&6
21715 else
21716   ac_check_lib_save_LIBS=$LIBS
21717 LIBS="-lxnet  $LIBS"
21718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h.  */
21720
21721 /* Override any GCC internal prototype to avoid an error.
21722    Use char because int might match the return type of a GCC
21723    builtin and then its argument prototype would still apply.  */
21724 #ifdef __cplusplus
21725 extern "C"
21726 #endif
21727 char socket ();
21728 int
21729 main ()
21730 {
21731 return socket ();
21732   ;
21733   return 0;
21734 }
21735 _ACEOF
21736 if ac_fn_c_try_link "$LINENO"; then :
21737   ac_cv_lib_xnet_socket=yes
21738 else
21739   ac_cv_lib_xnet_socket=no
21740 fi
21741 rm -f core conftest.err conftest.$ac_objext \
21742     conftest$ac_exeext conftest.$ac_ext
21743 LIBS=$ac_check_lib_save_LIBS
21744 fi
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21746 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21747 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21748   cat >>confdefs.h <<_ACEOF
21749 #define HAVE_LIBXNET 1
21750 _ACEOF
21751
21752   LIBS="-lxnet $LIBS"
21753
21754 fi
21755
21756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21757 $as_echo_n "checking for socket in -lsocket... " >&6; }
21758 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21759   $as_echo_n "(cached) " >&6
21760 else
21761   ac_check_lib_save_LIBS=$LIBS
21762 LIBS="-lsocket  $LIBS"
21763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21764 /* end confdefs.h.  */
21765
21766 /* Override any GCC internal prototype to avoid an error.
21767    Use char because int might match the return type of a GCC
21768    builtin and then its argument prototype would still apply.  */
21769 #ifdef __cplusplus
21770 extern "C"
21771 #endif
21772 char socket ();
21773 int
21774 main ()
21775 {
21776 return socket ();
21777   ;
21778   return 0;
21779 }
21780 _ACEOF
21781 if ac_fn_c_try_link "$LINENO"; then :
21782   ac_cv_lib_socket_socket=yes
21783 else
21784   ac_cv_lib_socket_socket=no
21785 fi
21786 rm -f core conftest.err conftest.$ac_objext \
21787     conftest$ac_exeext conftest.$ac_ext
21788 LIBS=$ac_check_lib_save_LIBS
21789 fi
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21791 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21792 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21793   cat >>confdefs.h <<_ACEOF
21794 #define HAVE_LIBSOCKET 1
21795 _ACEOF
21796
21797   LIBS="-lsocket $LIBS"
21798
21799 fi
21800
21801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21802 $as_echo_n "checking for socket in -linet... " >&6; }
21803 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21804   $as_echo_n "(cached) " >&6
21805 else
21806   ac_check_lib_save_LIBS=$LIBS
21807 LIBS="-linet  $LIBS"
21808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21809 /* end confdefs.h.  */
21810
21811 /* Override any GCC internal prototype to avoid an error.
21812    Use char because int might match the return type of a GCC
21813    builtin and then its argument prototype would still apply.  */
21814 #ifdef __cplusplus
21815 extern "C"
21816 #endif
21817 char socket ();
21818 int
21819 main ()
21820 {
21821 return socket ();
21822   ;
21823   return 0;
21824 }
21825 _ACEOF
21826 if ac_fn_c_try_link "$LINENO"; then :
21827   ac_cv_lib_inet_socket=yes
21828 else
21829   ac_cv_lib_inet_socket=no
21830 fi
21831 rm -f core conftest.err conftest.$ac_objext \
21832     conftest$ac_exeext conftest.$ac_ext
21833 LIBS=$ac_check_lib_save_LIBS
21834 fi
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21836 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21837 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21838   cat >>confdefs.h <<_ACEOF
21839 #define HAVE_LIBINET 1
21840 _ACEOF
21841
21842   LIBS="-linet $LIBS"
21843
21844 fi
21845
21846 fi
21847
21848
21849 TCPW_MSG="no"
21850 WRAPLIBS=""
21851
21852 # Check whether --with-tcp-wrappers was given.
21853 if test "${with_tcp_wrappers+set}" = set; then :
21854   withval=$with_tcp_wrappers;
21855        if test "x$withval" != "xno" ; then
21856           saved_LIBS="$LIBS"
21857           LIBS="$saved_LIBS -lwrap"
21858           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21859 $as_echo_n "checking for library containing nanosleep... " >&6; }
21860 if test "${ac_cv_search_nanosleep+set}" = set; then :
21861   $as_echo_n "(cached) " >&6
21862 else
21863   ac_func_search_save_LIBS=$LIBS
21864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21865 /* end confdefs.h.  */
21866
21867 /* Override any GCC internal prototype to avoid an error.
21868    Use char because int might match the return type of a GCC
21869    builtin and then its argument prototype would still apply.  */
21870 #ifdef __cplusplus
21871 extern "C"
21872 #endif
21873 char nanosleep ();
21874 int
21875 main ()
21876 {
21877 return nanosleep ();
21878   ;
21879   return 0;
21880 }
21881 _ACEOF
21882 for ac_lib in '' rt; do
21883   if test -z "$ac_lib"; then
21884     ac_res="none required"
21885   else
21886     ac_res=-l$ac_lib
21887     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21888   fi
21889   if ac_fn_c_try_link "$LINENO"; then :
21890   ac_cv_search_nanosleep=$ac_res
21891 fi
21892 rm -f core conftest.err conftest.$ac_objext \
21893     conftest$ac_exeext
21894   if test "${ac_cv_search_nanosleep+set}" = set; then :
21895   break
21896 fi
21897 done
21898 if test "${ac_cv_search_nanosleep+set}" = set; then :
21899
21900 else
21901   ac_cv_search_nanosleep=no
21902 fi
21903 rm conftest.$ac_ext
21904 LIBS=$ac_func_search_save_LIBS
21905 fi
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21907 $as_echo "$ac_cv_search_nanosleep" >&6; }
21908 ac_res=$ac_cv_search_nanosleep
21909 if test "$ac_res" != no; then :
21910   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21911
21912 fi
21913
21914           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21915 $as_echo_n "checking for libwrap... " >&6; }
21916           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21917 /* end confdefs.h.  */
21918
21919                #include <sys/types.h>
21920                #include <tcpd.h>
21921                int deny_severity = 0;
21922                int allow_severity = 0;
21923                struct request_info *req;
21924
21925 int
21926 main ()
21927 {
21928
21929                 hosts_access(req);
21930
21931   ;
21932   return 0;
21933 }
21934 _ACEOF
21935 if ac_fn_c_try_link "$LINENO"; then :
21936
21937                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21938 $as_echo "yes" >&6; }
21939
21940 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21941
21942                  TCPW_MSG="yes"
21943                  LIBS="$saved_LIBS"
21944                  WRAPLIBS="-lwrap"
21945
21946 else
21947
21948                  LIBS="$saved_LIBS -lwrap -lnsl"
21949                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21950                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21951 /* end confdefs.h.  */
21952
21953                        #include <sys/types.h>
21954                        #include <tcpd.h>
21955                        int deny_severity = 0;
21956                        int allow_severity = 0;
21957                        struct request_info *req;
21958
21959 int
21960 main ()
21961 {
21962
21963                        hosts_access(req);
21964
21965   ;
21966   return 0;
21967 }
21968 _ACEOF
21969 if ac_fn_c_try_link "$LINENO"; then :
21970
21971                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21972 $as_echo "yes" >&6; }
21973
21974 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21975
21976                       TCPW_MSG="yes"
21977                       LIBS="$saved_LIBS"
21978                       WRAPLIBS="-lwrap"
21979
21980 else
21981
21982                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
21983
21984
21985 fi
21986 rm -f core conftest.err conftest.$ac_objext \
21987     conftest$ac_exeext conftest.$ac_ext
21988
21989
21990 fi
21991 rm -f core conftest.err conftest.$ac_objext \
21992     conftest$ac_exeext conftest.$ac_ext
21993        fi
21994
21995
21996 fi
21997
21998
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22000 $as_echo_n "checking for OpenSSL... " >&6; }
22001
22002 # Check whether --with-openssl was given.
22003 if test "${with_openssl+set}" = set; then :
22004   withval=$with_openssl;
22005         with_openssl_directory=${withval}
22006
22007
22008 fi
22009
22010
22011 if test "x$with_openssl_directory" != "xno"; then
22012    OPENSSL_LIBS="-lssl -lcrypto"
22013    OPENSSL_INC=""
22014
22015    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22016       #
22017       # Make sure the $with_openssl_directory also makes sense
22018       #
22019       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22020          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22021          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22022       fi
22023    fi
22024
22025    saved_LIBS="${LIBS}"
22026    saved_CFLAGS="${CFLAGS}"
22027    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22028    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22029
22030    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22031 /* end confdefs.h.  */
22032
22033           #include <openssl/ssl.h>
22034
22035 int
22036 main ()
22037 {
22038
22039            CRYPTO_set_id_callback(NULL);
22040
22041   ;
22042   return 0;
22043 }
22044 _ACEOF
22045 if ac_fn_c_try_link "$LINENO"; then :
22046
22047           support_tls="yes"
22048           support_crypto="yes"
22049
22050 else
22051
22052           support_tls="no"
22053           support_crypto="no"
22054
22055
22056 fi
22057 rm -f core conftest.err conftest.$ac_objext \
22058     conftest$ac_exeext conftest.$ac_ext
22059
22060    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061 /* end confdefs.h.  */
22062
22063           #include <openssl/evp.h>
22064
22065 int
22066 main ()
22067 {
22068
22069           EVP_sha512();
22070
22071   ;
22072   return 0;
22073 }
22074 _ACEOF
22075 if ac_fn_c_try_link "$LINENO"; then :
22076
22077           ac_cv_openssl_sha2="yes"
22078
22079 else
22080
22081           ac_cv_openssl_sha2="no"
22082
22083
22084 fi
22085 rm -f core conftest.err conftest.$ac_objext \
22086     conftest$ac_exeext conftest.$ac_ext
22087
22088                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22089 /* end confdefs.h.  */
22090
22091           #include <openssl/evp.h>
22092
22093 int
22094 main ()
22095 {
22096
22097           EVP_aes_192_cbc();
22098
22099   ;
22100   return 0;
22101 }
22102 _ACEOF
22103 if ac_fn_c_try_link "$LINENO"; then :
22104
22105           ac_cv_openssl_export="no"
22106
22107 else
22108
22109           ac_cv_openssl_export="yes"
22110
22111
22112 fi
22113 rm -f core conftest.err conftest.$ac_objext \
22114     conftest$ac_exeext conftest.$ac_ext
22115
22116    if test "$support_tls" = "yes"; then
22117
22118 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22119
22120
22121 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22122
22123
22124 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22125
22126    fi
22127
22128    if test "$ac_cv_openssl_sha2" = "yes"; then
22129
22130 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22131
22132    fi
22133
22134    if test "$ac_cv_openssl_export" = "yes"; then
22135
22136 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22137
22138    fi
22139
22140    if test "$support_crypto" = "yes"; then
22141       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22142 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22143 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
22144   $as_echo_n "(cached) " >&6
22145 else
22146   ac_check_lib_save_LIBS=$LIBS
22147 LIBS="-lssl  $LIBS"
22148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22149 /* end confdefs.h.  */
22150
22151 /* Override any GCC internal prototype to avoid an error.
22152    Use char because int might match the return type of a GCC
22153    builtin and then its argument prototype would still apply.  */
22154 #ifdef __cplusplus
22155 extern "C"
22156 #endif
22157 char EVP_PKEY_encrypt_old ();
22158 int
22159 main ()
22160 {
22161 return EVP_PKEY_encrypt_old ();
22162   ;
22163   return 0;
22164 }
22165 _ACEOF
22166 if ac_fn_c_try_link "$LINENO"; then :
22167   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22168 else
22169   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22170 fi
22171 rm -f core conftest.err conftest.$ac_objext \
22172     conftest$ac_exeext conftest.$ac_ext
22173 LIBS=$ac_check_lib_save_LIBS
22174 fi
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22176 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22177 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then :
22178
22179 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22180
22181 fi
22182
22183    fi
22184
22185    LIBS="${saved_LIBS}"
22186    CFLAGS="${saved_CFLAGS}"
22187 else
22188    support_tls="no"
22189    support_crypto="no"
22190    OPENSSL_LIBS=""
22191    OPENSSL_INC=""
22192 fi
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22194 $as_echo "$support_tls" >&6; }
22195
22196 if test "$support_tls" = "no"; then
22197    OPENSSL_LIBS=""
22198    OPENSSL_INC=""
22199 fi
22200 if test "$support_crypto" = "no"; then
22201    OPENSSL_LIBS=""
22202    OPENSSL_INC=""
22203 fi
22204
22205
22206
22207
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22209 $as_echo_n "checking for library containing dlopen... " >&6; }
22210 if test "${ac_cv_search_dlopen+set}" = set; then :
22211   $as_echo_n "(cached) " >&6
22212 else
22213   ac_func_search_save_LIBS=$LIBS
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h.  */
22216
22217 /* Override any GCC internal prototype to avoid an error.
22218    Use char because int might match the return type of a GCC
22219    builtin and then its argument prototype would still apply.  */
22220 #ifdef __cplusplus
22221 extern "C"
22222 #endif
22223 char dlopen ();
22224 int
22225 main ()
22226 {
22227 return dlopen ();
22228   ;
22229   return 0;
22230 }
22231 _ACEOF
22232 for ac_lib in '' dl; do
22233   if test -z "$ac_lib"; then
22234     ac_res="none required"
22235   else
22236     ac_res=-l$ac_lib
22237     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22238   fi
22239   if ac_fn_c_try_link "$LINENO"; then :
22240   ac_cv_search_dlopen=$ac_res
22241 fi
22242 rm -f core conftest.err conftest.$ac_objext \
22243     conftest$ac_exeext
22244   if test "${ac_cv_search_dlopen+set}" = set; then :
22245   break
22246 fi
22247 done
22248 if test "${ac_cv_search_dlopen+set}" = set; then :
22249
22250 else
22251   ac_cv_search_dlopen=no
22252 fi
22253 rm conftest.$ac_ext
22254 LIBS=$ac_func_search_save_LIBS
22255 fi
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22257 $as_echo "$ac_cv_search_dlopen" >&6; }
22258 ac_res=$ac_cv_search_dlopen
22259 if test "$ac_res" != no; then :
22260   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22261
22262 fi
22263
22264
22265 working_dir=`eval echo ${prefix}/var/bacula/working`
22266
22267 # Check whether --with-working-dir was given.
22268 if test "${with_working_dir+set}" = set; then :
22269   withval=$with_working_dir;
22270        if test "x$withval" != "xno" ; then
22271          working_dir=$withval
22272        fi
22273
22274
22275 fi
22276
22277
22278
22279
22280 archivedir=/tmp
22281
22282 # Check whether --with-archivedir was given.
22283 if test "${with_archivedir+set}" = set; then :
22284   withval=$with_archivedir;
22285        if test "x$withval" != "xno" ; then
22286           archivedir=$withval
22287        fi
22288
22289
22290 fi
22291
22292
22293
22294
22295 basename=`hostname`
22296
22297 # Check whether --with-basename was given.
22298 if test "${with_basename+set}" = set; then :
22299   withval=$with_basename;
22300        if test "x$withval" != "xno" ; then
22301           basename=$withval
22302        fi
22303
22304
22305 fi
22306
22307
22308
22309
22310 hostname=`uname -n | cut -d '.' -f 1`
22311 if test x${hostname} = x ; then
22312   hostname="localhost"
22313 fi
22314
22315 # Check whether --with-hostname was given.
22316 if test "${with_hostname+set}" = set; then :
22317   withval=$with_hostname;
22318        if test "x$withval" != "xno" ; then
22319          hostname=$withval
22320        fi
22321
22322
22323 fi
22324
22325
22326
22327
22328
22329 scriptdir=`eval echo ${sysconfdir}`
22330
22331 # Check whether --with-scriptdir was given.
22332 if test "${with_scriptdir+set}" = set; then :
22333   withval=$with_scriptdir;
22334        if test "x$withval" != "xno" ; then
22335           scriptdir=$withval
22336        fi
22337
22338
22339 fi
22340
22341
22342
22343
22344
22345 bsrdir=/tmp
22346
22347 # Check whether --with-bsrdir was given.
22348 if test "${with_bsrdir+set}" = set; then :
22349   withval=$with_bsrdir;
22350        if test "x$withval" != "xno" ; then
22351           bsrdir=$withval
22352        fi
22353
22354
22355 fi
22356
22357
22358
22359
22360 logdir=/tmp
22361
22362 # Check whether --with-logdir was given.
22363 if test "${with_logdir+set}" = set; then :
22364   withval=$with_logdir;
22365        if test "x$withval" != "xno" ; then
22366           logdir=$withval
22367        fi
22368
22369
22370 fi
22371
22372
22373
22374
22375
22376 # ------------------------------------------
22377 # Where to place plugindir (plugin files)
22378 # ------------------------------------------
22379 plugindir=`eval echo ${libdir}`
22380
22381 # Check whether --with-plugindir was given.
22382 if test "${with_plugindir+set}" = set; then :
22383   withval=$with_plugindir;
22384        if test "x$withval" != "xno" ; then
22385           plugindir=$withval
22386        fi
22387
22388
22389 fi
22390
22391
22392
22393
22394 dump_email=root@localhost
22395
22396 # Check whether --with-dump-email was given.
22397 if test "${with_dump_email+set}" = set; then :
22398   withval=$with_dump_email;
22399        if test "x$withval" != "xno" ; then
22400           dump_email=$withval
22401        fi
22402
22403
22404 fi
22405
22406
22407
22408
22409 job_email=root@localhost
22410
22411 # Check whether --with-job-email was given.
22412 if test "${with_job_email+set}" = set; then :
22413   withval=$with_job_email;
22414        if test "x$withval" != "xno" ; then
22415           job_email=$withval
22416        fi
22417
22418
22419 fi
22420
22421
22422
22423
22424 smtp_host=localhost
22425
22426 # Check whether --with-smtp_host was given.
22427 if test "${with_smtp_host+set}" = set; then :
22428   withval=$with_smtp_host;
22429        if test "x$withval" != "xno" ; then
22430           smtp_host=$withval
22431        fi
22432
22433
22434 fi
22435
22436
22437
22438
22439 piddir=/var/run
22440
22441 # Check whether --with-pid-dir was given.
22442 if test "${with_pid_dir+set}" = set; then :
22443   withval=$with_pid_dir;
22444        if test "x$withval" != "xno" ; then
22445           piddir=$withval
22446        fi
22447
22448
22449 fi
22450
22451
22452 cat >>confdefs.h <<_ACEOF
22453 #define _PATH_BACULA_PIDDIR "$piddir"
22454 _ACEOF
22455
22456
22457
22458 subsysdir=/var/run/subsys
22459 if test -d /var/run/subsys; then
22460    subsysdir=/var/run/subsys
22461 elif test -d /var/lock/subsys; then
22462    subsysdir=/var/lock/subsys
22463 else
22464    subsysdir=/var/run/subsys
22465 fi
22466
22467 # Check whether --with-subsys-dir was given.
22468 if test "${with_subsys_dir+set}" = set; then :
22469   withval=$with_subsys_dir;
22470        if test "x$withval" != "xno" ; then
22471           subsysdir=$withval
22472        fi
22473
22474
22475 fi
22476
22477
22478
22479
22480 baseport=9101
22481
22482 # Check whether --with-baseport was given.
22483 if test "${with_baseport+set}" = set; then :
22484   withval=$with_baseport;
22485        if test "x$withval" != "xno" ; then
22486           baseport=$withval
22487        fi
22488
22489
22490 fi
22491
22492
22493
22494 dir_port=`expr $baseport`
22495 fd_port=`expr $baseport + 1`
22496 sd_port=`expr $fd_port + 1`
22497
22498
22499
22500
22501
22502 dir_password=
22503
22504 # Check whether --with-dir-password was given.
22505 if test "${with_dir_password+set}" = set; then :
22506   withval=$with_dir_password;
22507        if test "x$withval" != "xno" ; then
22508           dir_password=$withval
22509        fi
22510
22511
22512 fi
22513
22514
22515 if test "x$dir_password" = "x" ; then
22516    if test "x$OPENSSL" = "xnone" ; then
22517       key=`autoconf/randpass 33`
22518    else
22519       key=`openssl rand -base64 33`
22520    fi
22521    dir_password=$key
22522 fi
22523
22524 fd_password=
22525
22526 # Check whether --with-fd-password was given.
22527 if test "${with_fd_password+set}" = set; then :
22528   withval=$with_fd_password;
22529        if test "x$withval" != "xno" ; then
22530           fd_password=$withval
22531        fi
22532
22533
22534 fi
22535
22536
22537 if test "x$fd_password" = "x" ; then
22538    if test "x$OPENSSL" = "xnone" ; then
22539       key=`autoconf/randpass 37`
22540    else
22541       key=`openssl rand -base64 33`
22542    fi
22543    fd_password=$key
22544 fi
22545
22546 sd_password=
22547
22548 # Check whether --with-sd-password was given.
22549 if test "${with_sd_password+set}" = set; then :
22550   withval=$with_sd_password;
22551        if test "x$withval" != "xno" ; then
22552           sd_password=$withval
22553        fi
22554
22555
22556 fi
22557
22558
22559 if test "x$sd_password" = "x" ; then
22560    if test "x$OPENSSL" = "xnone" ; then
22561       key=`autoconf/randpass 41`
22562    else
22563       key=`openssl rand -base64 33`
22564    fi
22565    sd_password=$key
22566 fi
22567
22568 mon_dir_password=
22569
22570 # Check whether --with-mon-dir-password was given.
22571 if test "${with_mon_dir_password+set}" = set; then :
22572   withval=$with_mon_dir_password;
22573        if test "x$withval" != "xno" ; then
22574           mon_dir_password=$withval
22575        fi
22576
22577
22578 fi
22579
22580
22581 if test "x$mon_dir_password" = "x" ; then
22582    if test "x$OPENSSL" = "xnone" ; then
22583       key=`autoconf/randpass 33`
22584    else
22585       key=`openssl rand -base64 33`
22586    fi
22587    mon_dir_password=$key
22588 fi
22589
22590 mon_fd_password=
22591
22592 # Check whether --with-mon-fd-password was given.
22593 if test "${with_mon_fd_password+set}" = set; then :
22594   withval=$with_mon_fd_password;
22595        if test "x$withval" != "xno" ; then
22596           mon_fd_password=$withval
22597        fi
22598
22599
22600 fi
22601
22602
22603 if test "x$mon_fd_password" = "x" ; then
22604    if test "x$OPENSSL" = "xnone" ; then
22605       key=`autoconf/randpass 37`
22606    else
22607       key=`openssl rand -base64 33`
22608    fi
22609    mon_fd_password=$key
22610 fi
22611
22612 mon_sd_password=
22613
22614 # Check whether --with-mon-sd-password was given.
22615 if test "${with_mon_sd_password+set}" = set; then :
22616   withval=$with_mon_sd_password;
22617        if test "x$withval" != "xno" ; then
22618           mon_sd_password=$withval
22619        fi
22620
22621
22622 fi
22623
22624
22625 if test "x$mon_sd_password" = "x" ; then
22626    if test "x$OPENSSL" = "xnone" ; then
22627       key=`autoconf/randpass 41`
22628    else
22629       key=`openssl rand -base64 33`
22630    fi
22631    mon_sd_password=$key
22632 fi
22633
22634
22635
22636
22637
22638
22639
22640
22641 db_name=bacula
22642
22643 # Check whether --with-db_name was given.
22644 if test "${with_db_name+set}" = set; then :
22645   withval=$with_db_name;
22646        if test "x$withval" != "x" ; then
22647           db_name=$withval
22648        fi
22649
22650
22651 fi
22652
22653
22654
22655 db_user=bacula
22656
22657 # Check whether --with-db_user was given.
22658 if test "${with_db_user+set}" = set; then :
22659   withval=$with_db_user;
22660        if test "x$withval" != "x" ; then
22661           db_user=$withval
22662        fi
22663
22664
22665 fi
22666
22667
22668
22669 db_password=
22670
22671 # Check whether --with-db_password was given.
22672 if test "${with_db_password+set}" = set; then :
22673   withval=$with_db_password;
22674        if test "x$withval" != "x" ; then
22675           db_password=$withval
22676        fi
22677
22678
22679 fi
22680
22681
22682
22683 db_port=" "
22684
22685 # Check whether --with-db_port was given.
22686 if test "${with_db_port+set}" = set; then :
22687   withval=$with_db_port;
22688        if test "x$withval" != "x" ; then
22689           db_port=$withval
22690        fi
22691
22692
22693 fi
22694
22695
22696
22697 #
22698 # Handle users and groups for each daemon
22699 #
22700 dir_user=
22701
22702 # Check whether --with-dir_user was given.
22703 if test "${with_dir_user+set}" = set; then :
22704   withval=$with_dir_user;
22705        if test "x$withval" != "x" ; then
22706            dir_user=$withval
22707        fi
22708
22709
22710 fi
22711
22712
22713 dir_group=
22714
22715 # Check whether --with-dir_group was given.
22716 if test "${with_dir_group+set}" = set; then :
22717   withval=$with_dir_group;
22718        if test "x$withval" != "x" ; then
22719           dir_group=$withval
22720        fi
22721
22722
22723 fi
22724
22725
22726 sd_user=
22727
22728 # Check whether --with-sd_user was given.
22729 if test "${with_sd_user+set}" = set; then :
22730   withval=$with_sd_user;
22731        if test "x$withval" != "x" ; then
22732           sd_user=$withval
22733        fi
22734
22735
22736 fi
22737
22738
22739 sd_group=
22740
22741 # Check whether --with-sd_group was given.
22742 if test "${with_sd_group+set}" = set; then :
22743   withval=$with_sd_group;
22744        if test "x$withval" != "x" ; then
22745           sd_group=$withval
22746        fi
22747
22748
22749 fi
22750
22751
22752 fd_user=
22753
22754 # Check whether --with-fd_user was given.
22755 if test "${with_fd_user+set}" = set; then :
22756   withval=$with_fd_user;
22757        if test "x$withval" != "x" ; then
22758           fd_user=$withval
22759        fi
22760
22761
22762 fi
22763
22764
22765 fd_group=
22766
22767 # Check whether --with-fd_group was given.
22768 if test "${with_fd_group+set}" = set; then :
22769   withval=$with_fd_group;
22770        if test "x$withval" != "x" ; then
22771           fd_group=$withval
22772        fi
22773
22774
22775 fi
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785 SBINPERM=0750
22786
22787 # Check whether --with-sbin-perm was given.
22788 if test "${with_sbin_perm+set}" = set; then :
22789   withval=$with_sbin_perm;
22790        if test "x$withval" != "x" ; then
22791           SBINPERM=$withval
22792        fi
22793
22794
22795 fi
22796
22797
22798
22799
22800 SQL_LIB=
22801
22802 db_found=no
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22804 $as_echo_n "checking for PostgreSQL support... " >&6; }
22805
22806 # Check whether --with-postgresql was given.
22807 if test "${with_postgresql+set}" = set; then :
22808   withval=$with_postgresql;
22809   if test "$withval" != "no"; then
22810       if test "$db_found" = "yes"; then
22811           { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22812 $as_echo "error" >&6; }
22813           as_fn_error $? "\"You can configure for only one database.\"" "$LINENO" 5;
22814       fi
22815       if test "$withval" = "yes"; then
22816           PG_CONFIG=`which pg_config`
22817           if test -n "$PG_CONFIG";then
22818               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22819               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22820               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22821           elif test -f /usr/local/include/libpq-fe.h; then
22822               POSTGRESQL_INCDIR=/usr/local/include
22823               if test -d /usr/local/lib64; then
22824                  POSTGRESQL_LIBDIR=/usr/local/lib64
22825               else
22826                  POSTGRESQL_LIBDIR=/usr/local/lib
22827               fi
22828               POSTGRESQL_BINDIR=/usr/local/bin
22829           elif test -f /usr/include/libpq-fe.h; then
22830               POSTGRESQL_INCDIR=/usr/include
22831               if test -d /usr/lib64; then
22832                  POSTGRESQL_LIBDIR=/usr/lib64
22833               else
22834                  POSTGRESQL_LIBDIR=/usr/lib
22835               fi
22836               POSTGRESQL_BINDIR=/usr/bin
22837           elif test -f /usr/include/pgsql/libpq-fe.h; then
22838               POSTGRESQL_INCDIR=/usr/include/pgsql
22839               if test -d /usr/lib64/pgsql; then
22840                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22841               else
22842                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22843               fi
22844               POSTGRESQL_BINDIR=/usr/bin
22845           elif test -f /usr/include/postgresql/libpq-fe.h; then
22846               POSTGRESQL_INCDIR=/usr/include/postgresql
22847               if test -d /usr/lib64/postgresql; then
22848                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22849               else
22850                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22851               fi
22852               POSTGRESQL_BINDIR=/usr/bin
22853           else
22854               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22855 $as_echo "no" >&6; }
22856               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22857           fi
22858       elif test -f $withval/include/libpq-fe.h; then
22859           POSTGRESQL_INCDIR=$withval/include
22860           POSTGRESQL_LIBDIR=$withval/lib
22861           POSTGRESQL_BINDIR=$withval/bin
22862       elif test -f $withval/include/postgresql/libpq-fe.h; then
22863           POSTGRESQL_INCDIR=$withval/include/postgresql
22864      if test -d $withval/lib64; then
22865          POSTGRESQL_LIBDIR=$withval/lib64
22866      else
22867          POSTGRESQL_LIBDIR=$withval/lib
22868      fi
22869           POSTGRESQL_BINDIR=$withval/bin
22870       else
22871           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22872 $as_echo "no" >&6; }
22873           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22874       fi
22875       $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22876
22877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22878 $as_echo "yes" >&6; }
22879       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22880       ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22881 if test "x$ac_cv_func_crypt" = x""yes; then :
22882
22883 else
22884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22885 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22886 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22887   $as_echo_n "(cached) " >&6
22888 else
22889   ac_check_lib_save_LIBS=$LIBS
22890 LIBS="-lcrypt  $LIBS"
22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892 /* end confdefs.h.  */
22893
22894 /* Override any GCC internal prototype to avoid an error.
22895    Use char because int might match the return type of a GCC
22896    builtin and then its argument prototype would still apply.  */
22897 #ifdef __cplusplus
22898 extern "C"
22899 #endif
22900 char crypt ();
22901 int
22902 main ()
22903 {
22904 return crypt ();
22905   ;
22906   return 0;
22907 }
22908 _ACEOF
22909 if ac_fn_c_try_link "$LINENO"; then :
22910   ac_cv_lib_crypt_crypt=yes
22911 else
22912   ac_cv_lib_crypt_crypt=no
22913 fi
22914 rm -f core conftest.err conftest.$ac_objext \
22915     conftest$ac_exeext conftest.$ac_ext
22916 LIBS=$ac_check_lib_save_LIBS
22917 fi
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22919 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22920 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22921   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22922 fi
22923
22924 fi
22925
22926       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22927       SQL_LFLAGS=$POSTGRESQL_LFLAGS
22928       SQL_BINDIR=$POSTGRESQL_BINDIR
22929       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22930
22931       db_found=yes
22932       support_postgresql=yes
22933       db_type=PostgreSQL
22934       DB_TYPE=postgresql
22935   else
22936       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22937 $as_echo "no" >&6; }
22938   fi
22939
22940 else
22941
22942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22943 $as_echo "no" >&6; }
22944
22945 fi
22946
22947
22948
22949
22950
22951
22952
22953
22954 db_found=no
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22956 $as_echo_n "checking for MySQL support... " >&6; }
22957
22958 # Check whether --with-mysql was given.
22959 if test "${with_mysql+set}" = set; then :
22960   withval=$with_mysql;
22961   if test "$withval" != "no"; then
22962         if test "$withval" = "yes"; then
22963            if test -f /usr/local/mysql/include/mysql/mysql.h; then
22964                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
22965                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22966                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22967                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22968                    else
22969                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22970                    fi
22971                    MYSQL_BINDIR=/usr/local/mysql/bin
22972            elif test -f /usr/include/mysql/mysql.h; then
22973                    MYSQL_INCDIR=/usr/include/mysql
22974                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22975                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22976                            MYSQL_LIBDIR=/usr/lib64/mysql
22977                    elif test -f /usr/lib64/libmysqlclient_r.a \
22978                         -o -f /usr/lib64/libmysqlclient_r.so; then
22979                            MYSQL_LIBDIR=/usr/lib64
22980                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22981                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22982                            MYSQL_LIBDIR=/usr/lib/mysql
22983                    else
22984                            MYSQL_LIBDIR=/usr/lib
22985                    fi
22986                    MYSQL_BINDIR=/usr/bin
22987            elif test -f /usr/include/mysql.h; then
22988                    MYSQL_INCDIR=/usr/include
22989                    if test -f /usr/lib64/libmysqlclient_r.a \
22990                         -o -f /usr/lib64/libmysqlclient_r.so; then
22991                            MYSQL_LIBDIR=/usr/lib64
22992                    else
22993                            MYSQL_LIBDIR=/usr/lib
22994                    fi
22995                    MYSQL_BINDIR=/usr/bin
22996            elif test -f /usr/local/include/mysql/mysql.h; then
22997                    MYSQL_INCDIR=/usr/local/include/mysql
22998                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22999                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23000                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23001                    else
23002                            MYSQL_LIBDIR=/usr/local/lib/mysql
23003                    fi
23004                    MYSQL_BINDIR=/usr/local/bin
23005            elif test -f /usr/local/include/mysql.h; then
23006                    MYSQL_INCDIR=/usr/local/include
23007                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23008                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23009                            MYSQL_LIBDIR=/usr/local/lib64
23010                    else
23011                            MYSQL_LIBDIR=/usr/local/lib
23012                    fi
23013                    MYSQL_BINDIR=/usr/local/bin
23014            else
23015               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23016 $as_echo "no" >&6; }
23017               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23018            fi
23019         else
23020            if test -f $withval/include/mysql/mysql.h; then
23021               MYSQL_INCDIR=$withval/include/mysql
23022               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23023                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23024                  MYSQL_LIBDIR=$withval/lib64/mysql
23025               elif test -f $withval/lib64/libmysqlclient_r.a \
23026                    -o -f $withval/lib64/libmysqlclient_r.so; then
23027                  MYSQL_LIBDIR=$withval/lib64
23028               elif test -f $withval/lib/libmysqlclient_r.a \
23029                    -o -f $withval/lib/libmysqlclient_r.so; then
23030                  MYSQL_LIBDIR=$withval/lib
23031               else
23032                  MYSQL_LIBDIR=$withval/lib/mysql
23033               fi
23034               MYSQL_BINDIR=$withval/bin
23035            elif test -f $withval/include/mysql.h; then
23036               MYSQL_INCDIR=$withval/include
23037               if test -f $withval/lib64/libmysqlclient_r.a \
23038                    -o -f $withval/lib64/libmysqlclient_r.so; then
23039                  MYSQL_LIBDIR=$withval/lib64
23040               else
23041                  MYSQL_LIBDIR=$withval/lib
23042               fi
23043               MYSQL_BINDIR=$withval/bin
23044            else
23045               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23046 $as_echo "no" >&6; }
23047               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23048            fi
23049         fi
23050     SQL_INCLUDE=-I$MYSQL_INCDIR
23051     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23052          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23053        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23054        $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23055
23056     fi
23057     SQL_BINDIR=$MYSQL_BINDIR
23058     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23059
23060
23061 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23062
23063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23064 $as_echo "yes" >&6; }
23065     db_found=yes
23066     support_mysql=yes
23067     db_type=MySQL
23068     DB_TYPE=mysql
23069
23070   else
23071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23072 $as_echo "no" >&6; }
23073   fi
23074
23075
23076 fi
23077
23078
23079
23080 # Check whether --with-embedded-mysql was given.
23081 if test "${with_embedded_mysql+set}" = set; then :
23082   withval=$with_embedded_mysql;
23083   if test "$withval" != "no"; then
23084         if test "$withval" = "yes"; then
23085                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23086                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23087                         if test -d /usr/local/mysql/lib64/mysql; then
23088                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23089                         else
23090                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23091                         fi
23092                         MYSQL_BINDIR=/usr/local/mysql/bin
23093                 elif test -f /usr/include/mysql/mysql.h; then
23094                         MYSQL_INCDIR=/usr/include/mysql
23095                         if test -d /usr/lib64/mysql; then
23096                                 MYSQL_LIBDIR=/usr/lib64/mysql
23097                         else
23098                                 MYSQL_LIBDIR=/usr/lib/mysql
23099                         fi
23100                         MYSQL_BINDIR=/usr/bin
23101                 elif test -f /usr/include/mysql.h; then
23102                         MYSQL_INCDIR=/usr/include
23103                         if test -d /usr/lib64; then
23104                                 MYSQL_LIBDIR=/usr/lib64
23105                         else
23106                                 MYSQL_LIBDIR=/usr/lib
23107                         fi
23108                         MYSQL_BINDIR=/usr/bin
23109                 elif test -f /usr/local/include/mysql/mysql.h; then
23110                         MYSQL_INCDIR=/usr/local/include/mysql
23111                         if test -d /usr/local/lib64/mysql; then
23112                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23113                         else
23114                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23115                         fi
23116                         MYSQL_BINDIR=/usr/local/bin
23117                 elif test -f /usr/local/include/mysql.h; then
23118                         MYSQL_INCDIR=/usr/local/include
23119                         if test -d /usr/local/lib64; then
23120                                 MYSQL_LIBDIR=/usr/local/lib64
23121                         else
23122                                 MYSQL_LIBDIR=/usr/local/lib
23123                         fi
23124                         MYSQL_BINDIR=/usr/local/bin
23125                 else
23126                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23127 $as_echo "no" >&6; }
23128                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23129                 fi
23130         else
23131                 if test -f $withval/include/mysql/mysql.h; then
23132                         MYSQL_INCDIR=$withval/include/mysql
23133                         if test -d $withval/lib64/mysql; then
23134                                 MYSQL_LIBDIR=$withval/lib64/mysql
23135                         else
23136                                 MYSQL_LIBDIR=$withval/lib/mysql
23137                         fi
23138                         MYSQL_BINDIR=$withval/bin
23139                 elif test -f $withval/include/mysql.h; then
23140                         MYSQL_INCDIR=$withval/include
23141                         if test -d $withval/lib64; then
23142                                 MYSQL_LIBDIR=$withval/lib64
23143                         else
23144                                 MYSQL_LIBDIR=$withval/lib
23145                         fi
23146                         MYSQL_BINDIR=$withval/bin
23147                 else
23148                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23149 $as_echo "no" >&6; }
23150                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23151                 fi
23152         fi
23153     SQL_INCLUDE=-I$MYSQL_INCDIR
23154     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23155     SQL_BINDIR=$MYSQL_BINDIR
23156     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23157
23158     $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23159
23160     $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23161
23162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23163 $as_echo "yes" >&6; }
23164     db_found=yes
23165     support_mysql=yes
23166     db_type=MySQL
23167     DB_TYPE=mysql
23168
23169   else
23170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23171 $as_echo "no" >&6; }
23172   fi
23173
23174
23175 fi
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186 db_found=no
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23188 $as_echo_n "checking for Ingres support... " >&6; }
23189
23190 # Check whether --with-ingres was given.
23191 if test "${with_ingres+set}" = set; then :
23192   withval=$with_ingres;
23193   if test "$withval" != "no"; then
23194      if test "$withval" = "yes"; then
23195         if test -f ${II_SYSTEM}/files/eqdefc.h; then
23196            INGRES_INCDIR=${II_SYSTEM}/files
23197            INGRES_LIBDIR=${II_SYSTEM}/lib
23198            INGRES_BINDIR=${II_SYSTEM}/bin
23199         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23200            INGRES_INCDIR=${II_SYSTEM}/ingres/files
23201            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23202            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23203         else
23204            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23205 $as_echo "no" >&6; }
23206            as_fn_error $? "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23207         fi
23208      else
23209         if test -f $withval/files/eqdefc.h; then
23210            INGRES_INCDIR=$withval/files
23211            INGRES_LIBDIR=$withval/lib
23212            INGRES_BINDIR=$withval/bin
23213         else
23214            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23215 $as_echo "no" >&6; }
23216            as_fn_error $? "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23217         fi
23218      fi
23219      SQL_INCLUDE=-I$INGRES_INCDIR
23220      SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23221      SQL_BINDIR=$INGRES_BINDIR
23222      SQL_LIB=$INGRES_LIBDIR/libingres.a
23223
23224 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23225
23226      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23227 $as_echo "yes" >&6; }
23228      db_found=yes
23229      support_ingres=yes
23230      db_type=Ingres
23231      DB_TYPE=ingres
23232
23233   else
23234      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23235 $as_echo "no" >&6; }
23236   fi
23237
23238 else
23239
23240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23241 $as_echo "no" >&6; }
23242
23243 fi
23244
23245
23246
23247
23248
23249
23250
23251
23252 db_found=no
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23254 $as_echo_n "checking for SQLite3 support... " >&6; }
23255
23256 # Check whether --with-sqlite3 was given.
23257 if test "${with_sqlite3+set}" = set; then :
23258   withval=$with_sqlite3;
23259   if test "$withval" != "no"; then
23260      if test "$withval" = "yes"; then
23261         if test -f /usr/local/include/sqlite3.h; then
23262            SQLITE_INCDIR=/usr/local/include
23263            if test -d /usr/local/lib64; then
23264               SQLITE_LIBDIR=/usr/local/lib64
23265            else
23266               SQLITE_LIBDIR=/usr/local/lib
23267            fi
23268            SQLITE_BINDIR=/usr/local/bin
23269         elif test -f /usr/include/sqlite3.h; then
23270            SQLITE_INCDIR=/usr/include
23271            if test -d /usr/lib64; then
23272               SQLITE_LIBDIR=/usr/lib64
23273            else
23274               SQLITE_LIBDIR=/usr/lib
23275            fi
23276            SQLITE_BINDIR=/usr/bin
23277         elif test -f $prefix/include/sqlite3.h; then
23278            SQLITE_INCDIR=$prefix/include
23279            if test -d $prefix/lib64; then
23280               SQLITE_LIBDIR=$prefix/lib64
23281            else
23282               SQLITE_LIBDIR=$prefix/lib
23283            fi
23284            SQLITE_BINDIR=$prefix/bin
23285         else
23286            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23287 $as_echo "no" >&6; }
23288            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23289         fi
23290      else
23291         if test -f $withval/sqlite3.h; then
23292            SQLITE_INCDIR=$withval
23293            SQLITE_LIBDIR=$withval
23294            SQLITE_BINDIR=$withval
23295         elif test -f $withval/include/sqlite3.h; then
23296            SQLITE_INCDIR=$withval/include
23297            if test -d $withval/lib64; then
23298               SQLITE_LIBDIR=$withval/lib64
23299            else
23300               SQLITE_LIBDIR=$withval/lib
23301            fi
23302            SQLITE_BINDIR=$withval/bin
23303         else
23304            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23305 $as_echo "no" >&6; }
23306            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23307         fi
23308      fi
23309      SQL_INCLUDE=-I$SQLITE_INCDIR
23310      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23311      SQL_BINDIR=$SQLITE_BINDIR
23312      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23313
23314      $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23315
23316      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23317 $as_echo "yes" >&6; }
23318      db_found=yes
23319      support_sqlite3=yes
23320      db_type=SQLite3
23321      DB_TYPE=sqlite3
23322
23323   else
23324      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23325 $as_echo "no" >&6; }
23326   fi
23327
23328 else
23329
23330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23331 $as_echo "no" >&6; }
23332
23333 fi
23334
23335
23336
23337
23338
23339
23340
23341 # BA_CHECK_SQLITE_DB
23342
23343
23344 db_found=no
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23346 $as_echo_n "checking for DBI support... " >&6; }
23347
23348 # Check whether --with-dbi was given.
23349 if test "${with_dbi+set}" = set; then :
23350   withval=$with_dbi;
23351   if test "$withval" != "no"; then
23352      if test "$withval" = "yes"; then
23353         if test -f /usr/local/include/dbi/dbi.h; then
23354            DBI_INCDIR=/usr/local/dbi/include
23355            if test -d /usr/local/lib64; then
23356               DBI_LIBDIR=/usr/local/lib64
23357            else
23358               DBI_LIBDIR=/usr/local/lib
23359            fi
23360            DBI_BINDIR=/usr/local/bin
23361         elif test -f /usr/include/dbi/dbi.h; then
23362            DBI_INCDIR=/usr/include
23363            if test -d /usr/lib64; then
23364               DBI_LIBDIR=/usr/lib64
23365            else
23366               DBI_LIBDIR=/usr/lib
23367            fi
23368            DBI_BINDIR=/usr/bin
23369         elif test -f $prefix/include/dbi/dbi.h; then
23370            DBI_INCDIR=$prefix/include
23371            if test -d $prefix/lib64; then
23372               DBI_LIBDIR=$prefix/lib64
23373            else
23374               DBI_LIBDIR=$prefix/lib
23375            fi
23376            DBI_BINDIR=$prefix/bin
23377         else
23378            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23379 $as_echo "no" >&6; }
23380            as_fn_error $? "Unable to find dbi.h in standard locations" "$LINENO" 5
23381         fi
23382         if test -d /usr/local/lib/dbd; then
23383            DRIVERDIR=/usr/local/lib/dbd
23384            if test -d /usr/local/lib64/dbd; then
23385               DRIVERDIR=/usr/local/lib64/dbd
23386            else
23387               DRIVERDIR=/usr/local/lib/dbd
23388            fi
23389         elif test -d /usr/lib/dbd; then
23390            DRIVERDIR=/usr/lib/dbd
23391            if test -d /usr/lib64/dbd; then
23392               DRIVERDIR=/usr/lib64/dbd
23393            else
23394               DRIVERDIR=/usr/lib/dbd
23395            fi
23396         elif test -d $prefix/lib/dbd; then
23397            if test -d $prefix/lib64/dbd; then
23398               DRIVERDIR=$prefix/lib64/dbd
23399            else
23400               DRIVERDIR=$prefix/lib/dbd
23401            fi
23402         elif test -d /usr/local/lib64/dbd; then
23403            DRIVERDIR=/usr/local/lib64/dbd
23404         elif test -d /usr/lib64/dbd; then
23405            DRIVERDIR=/usr/lib64/dbd
23406         elif test -d $prefix/lib64/dbd; then
23407            DRIVERDIR=$prefix/lib64/dbd
23408         else
23409            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23410 $as_echo "no" >&6; }
23411            as_fn_error $? "Unable to find DBD drivers in standard locations" "$LINENO" 5
23412         fi
23413      else
23414         if test -f $withval/dbi.h; then
23415            DBI_INCDIR=$withval
23416            DBI_LIBDIR=$withval
23417            DBI_BINDIR=$withval
23418         elif test -f $withval/include/dbi/dbi.h; then
23419            DBI_INCDIR=$withval/include
23420            if test -d $withval/lib64; then
23421               DBI_LIBDIR=$withval/lib64
23422            else
23423               DBI_LIBDIR=$withval/lib
23424            fi
23425            DBI_BINDIR=$withval/bin
23426         else
23427            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23428 $as_echo "no" >&6; }
23429            as_fn_error $? "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23430         fi
23431         if test -d $withval/dbd; then
23432            DRIVERDIR=$withval/dbd
23433         elif test -d $withval/lib/; then
23434            if test -d $withval/lib64/dbd; then
23435               DRIVERDIR=$withval/lib64/dbd
23436            else
23437               DRIVERDIR=$withval/lib/dbd
23438            fi
23439         elif test -d $withval/lib64/dbd; then
23440            DRIVERDIR=$withval/lib64/dbd
23441         else
23442            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23443 $as_echo "no" >&6; }
23444            as_fn_error $? "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23445         fi
23446      fi
23447      SQL_INCLUDE=-I$DBI_INCDIR
23448      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23449      SQL_BINDIR=$DBI_BINDIR
23450      SQL_LIB=$DBI_LIBDIR/libdbi.a
23451      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23452
23453
23454 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23455
23456      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23457 $as_echo "yes" >&6; }
23458      db_found=yes
23459      support_dbi=yes
23460      db_type=DBI
23461      DB_TYPE=dbi
23462      uncomment_dbi=" "
23463
23464   else
23465      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23466 $as_echo "no" >&6; }
23467   fi
23468
23469 else
23470
23471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23472 $as_echo "no" >&6; }
23473
23474 fi
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485 db_found=no
23486 db_prog=no
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23488 $as_echo_n "checking for DBI drivers support... " >&6; }
23489
23490 # Check whether --with-dbi-driver was given.
23491 if test "${with_dbi_driver+set}" = set; then :
23492   withval=$with_dbi_driver;
23493   if test "$withval" != "no"; then
23494      case $withval in
23495         "mysql")
23496            db_prog="mysql"
23497            if test -f /usr/local/mysql/bin/mysql; then
23498               SQL_BINDIR=/usr/local/mysql/bin
23499               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23500                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23501                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23502               else
23503                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
23504               fi
23505            elif test -f /usr/bin/mysql; then
23506               SQL_BINDIR=/usr/bin
23507               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23508                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23509                   SQL_LIBDIR=/usr/lib64/mysql
23510               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23511                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23512                   SQL_LIBDIR=/usr/lib/mysql
23513               else
23514                   SQL_LIBDIR=/usr/lib
23515               fi
23516            elif test -f /usr/local/bin/mysql; then
23517               SQL_BINDIR=/usr/local/bin
23518               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23519                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23520                   SQL_LIBDIR=/usr/local/lib64/mysql
23521               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23522                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23523                   SQL_LIBDIR=/usr/local/lib/mysql
23524               else
23525                   SQL_LIBDIR=/usr/local/lib
23526               fi
23527            elif test -f $withval/bin/mysql; then
23528               SQL_BINDIR=$withval/bin
23529               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23530                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23531                   SQL_LIBDIR=$withval/lib64/mysql
23532               elif test -f $withval/lib64/libmysqlclient_r.a \
23533                   -o -f $withval/lib64/libmysqlclient_r.so; then
23534                   SQL_LIBDIR=$withval/lib64
23535               elif test -f $withval/lib/libmysqlclient_r.a \
23536                   -o -f $withval/lib/libmysqlclient_r.so; then
23537                   SQL_LIBDIR=$withval/lib/
23538               else
23539                   SQL_LIBDIR=$withval/lib/mysql
23540               fi
23541            else
23542               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23543 $as_echo "no" >&6; }
23544               as_fn_error $? "Unable to find mysql in standard locations" "$LINENO" 5
23545            fi
23546            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23547               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23548            else
23549               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23550            fi
23551         ;;
23552         "postgresql")
23553            db_prog="postgresql"
23554            PG_CONFIG=`which pg_config`
23555            if test -n "$PG_CONFIG"; then
23556               SQL_BINDIR=`"$PG_CONFIG" --bindir`
23557               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23558            elif test -f /usr/local/bin/psql; then
23559               SQL_BINDIR=/usr/local/bin
23560               if test -d /usr/local/lib64; then
23561                  SQL_LIBDIR=/usr/local/lib64
23562               else
23563                  SQL_LIBDIR=/usr/local/lib
23564               fi
23565            elif test -f /usr/bin/psql; then
23566               SQL_BINDIR=/usr/local/bin
23567               if test -d /usr/lib64/postgresql; then
23568                  SQL_LIBDIR=/usr/lib64/postgresql
23569               elif test -d /usr/lib/postgresql; then
23570                  SQL_LIBDIR=/usr/lib/postgresql
23571               elif test -d /usr/lib64; then
23572                  SQL_LIBDIR=/usr/lib64
23573               else
23574                  SQL_LIBDIR=/usr/lib
23575               fi
23576            elif test -f $withval/bin/psql; then
23577               SQL_BINDIR=$withval/bin
23578               if test -d $withval/lib64; then
23579                  SQL_LIBDIR=$withval/lib64
23580               else
23581                  SQL_LIBDIR=$withval/lib
23582               fi
23583            else
23584               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23585 $as_echo "no" >&6; }
23586               as_fn_error $? "Unable to find psql in standard locations" "$LINENO" 5
23587            fi
23588            if test -f $SQL_LIBDIR/libpq.so; then
23589               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23590            else
23591               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23592            fi
23593         ;;
23594         "sqlite")
23595            db_prog="sqlite"
23596            if test -f /usr/local/bin/sqlite; then
23597               SQL_BINDIR=/usr/local/bin
23598               if test -d /usr/local/lib64; then
23599                  SQL_LIBDIR=/usr/local/lib64
23600               else
23601                  SQL_LIBDIR=/usr/local/lib
23602               fi
23603            elif test -f /usr/bin/sqlite; then
23604               SQL_BINDIR=/usr/bin
23605               if test -d /usr/lib64; then
23606                  SQL_LIBDIR=/usr/lib64
23607               else
23608                  SQL_LIBDIR=/usr/lib
23609               fi
23610            elif test -f $withval/bin/sqlite; then
23611               SQL_BINDIR=$withval/bin
23612               if test -d $withval/lib64; then
23613                  SQL_LIBDIR=$withval/lib64
23614               else
23615                  SQL_LIBDIR=$withval/lib
23616               fi
23617            else
23618               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23619 $as_echo "no" >&6; }
23620               as_fn_error $? "Unable to find sqlite in standard locations" "$LINENO" 5
23621            fi
23622            if test -f $SQL_LIBDIR/libsqlite.so; then
23623               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23624            else
23625               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23626            fi
23627         ;;
23628         "sqlite3")
23629            db_prog="sqlite3"
23630            if test -f /usr/local/bin/sqlite3; then
23631               SQL_BINDIR=/usr/local/bin
23632               if test -d /usr/local/lib64; then
23633                  SQL_LIBDIR=/usr/local/lib64
23634               else
23635                  SQL_LIBDIR=/usr/local/lib
23636               fi
23637            elif test -f /usr/bin/sqlite3; then
23638               SQL_BINDIR=/usr/bin
23639               if test -d /usr/lib64; then
23640                  SQL_LIBDIR=/usr/lib64
23641               else
23642                  SQL_LIBDIR=/usr/lib
23643               fi
23644            elif test -f $withval/bin/sqlite3; then
23645               SQL_BINDIR=$withval/bin
23646               if test -d $withval/lib64; then
23647                  SQL_LIBDIR=$withval/lib64
23648               else
23649                  SQL_LIBDIR=$withval/lib
23650               fi
23651            else
23652               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23653 $as_echo "no" >&6; }
23654               as_fn_error $? "Unable to find sqlite in standard locations" "$LINENO" 5
23655            fi
23656            if test -f $SQL_LIBDIR/libsqlite3.so; then
23657               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23658            else
23659               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23660            fi
23661         ;;
23662         *)
23663            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23664 $as_echo "no" >&6; }
23665            as_fn_error $? "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23666         ;;
23667      esac
23668
23669      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23670 $as_echo "yes" >&6; }
23671      DB_PROG=$db_prog
23672   else
23673      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23674 $as_echo "no" >&6; }
23675   fi
23676
23677 else
23678
23679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23680 $as_echo "no" >&6; }
23681
23682 fi
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693 support_batch_insert=no
23694 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23695 pkg=$?
23696 if test $pkg = 0; then
23697    support_batch_insert=yes
23698    # Check whether --enable-batch-insert was given.
23699 if test "${enable_batch_insert+set}" = set; then :
23700   enableval=$enable_batch_insert;
23701           if test x$enableval = xno; then
23702              support_batch_insert=no
23703           else
23704              support_batch_insert=yes
23705           fi
23706
23707
23708 fi
23709
23710 fi
23711
23712 saved_LIBS="${LIBS}"
23713 LIBS="${saved_LIBS} ${SQL_LFLAGS}"
23714
23715 if test x$DB_TYPE = xpostgresql; then
23716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23717 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23718 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23719   $as_echo_n "(cached) " >&6
23720 else
23721   ac_check_lib_save_LIBS=$LIBS
23722 LIBS="-lpq  $LIBS"
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h.  */
23725
23726 /* Override any GCC internal prototype to avoid an error.
23727    Use char because int might match the return type of a GCC
23728    builtin and then its argument prototype would still apply.  */
23729 #ifdef __cplusplus
23730 extern "C"
23731 #endif
23732 char PQisthreadsafe ();
23733 int
23734 main ()
23735 {
23736 return PQisthreadsafe ();
23737   ;
23738   return 0;
23739 }
23740 _ACEOF
23741 if ac_fn_c_try_link "$LINENO"; then :
23742   ac_cv_lib_pq_PQisthreadsafe=yes
23743 else
23744   ac_cv_lib_pq_PQisthreadsafe=no
23745 fi
23746 rm -f core conftest.err conftest.$ac_objext \
23747     conftest$ac_exeext conftest.$ac_ext
23748 LIBS=$ac_check_lib_save_LIBS
23749 fi
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23751 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23752 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23753
23754 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23755
23756 fi
23757
23758    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23759 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23760 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23761   $as_echo_n "(cached) " >&6
23762 else
23763   ac_check_lib_save_LIBS=$LIBS
23764 LIBS="-lpq  $LIBS"
23765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23766 /* end confdefs.h.  */
23767
23768 /* Override any GCC internal prototype to avoid an error.
23769    Use char because int might match the return type of a GCC
23770    builtin and then its argument prototype would still apply.  */
23771 #ifdef __cplusplus
23772 extern "C"
23773 #endif
23774 char PQputCopyData ();
23775 int
23776 main ()
23777 {
23778 return PQputCopyData ();
23779   ;
23780   return 0;
23781 }
23782 _ACEOF
23783 if ac_fn_c_try_link "$LINENO"; then :
23784   ac_cv_lib_pq_PQputCopyData=yes
23785 else
23786   ac_cv_lib_pq_PQputCopyData=no
23787 fi
23788 rm -f core conftest.err conftest.$ac_objext \
23789     conftest$ac_exeext conftest.$ac_ext
23790 LIBS=$ac_check_lib_save_LIBS
23791 fi
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23793 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23794 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23795
23796 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23797
23798 fi
23799
23800    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23801     then
23802         support_batch_insert=no
23803    fi
23804 fi
23805
23806 if test x$DB_TYPE = xdbi; then
23807    DB_TYPE=$DB_PROG
23808    db_type=$DB_PROG
23809    pkg=1
23810       if test $DB_PROG = postgresql; then
23811       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23812 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23813 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23814   $as_echo_n "(cached) " >&6
23815 else
23816   ac_check_lib_save_LIBS=$LIBS
23817 LIBS="-lpq  $LIBS"
23818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819 /* end confdefs.h.  */
23820
23821 /* Override any GCC internal prototype to avoid an error.
23822    Use char because int might match the return type of a GCC
23823    builtin and then its argument prototype would still apply.  */
23824 #ifdef __cplusplus
23825 extern "C"
23826 #endif
23827 char PQisthreadsafe ();
23828 int
23829 main ()
23830 {
23831 return PQisthreadsafe ();
23832   ;
23833   return 0;
23834 }
23835 _ACEOF
23836 if ac_fn_c_try_link "$LINENO"; then :
23837   ac_cv_lib_pq_PQisthreadsafe=yes
23838 else
23839   ac_cv_lib_pq_PQisthreadsafe=no
23840 fi
23841 rm -f core conftest.err conftest.$ac_objext \
23842     conftest$ac_exeext conftest.$ac_ext
23843 LIBS=$ac_check_lib_save_LIBS
23844 fi
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23846 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23847 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23848   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23849
23850 fi
23851
23852       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23853 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23854 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23855   $as_echo_n "(cached) " >&6
23856 else
23857   ac_check_lib_save_LIBS=$LIBS
23858 LIBS="-lpq  $LIBS"
23859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23860 /* end confdefs.h.  */
23861
23862 /* Override any GCC internal prototype to avoid an error.
23863    Use char because int might match the return type of a GCC
23864    builtin and then its argument prototype would still apply.  */
23865 #ifdef __cplusplus
23866 extern "C"
23867 #endif
23868 char PQputCopyData ();
23869 int
23870 main ()
23871 {
23872 return PQputCopyData ();
23873   ;
23874   return 0;
23875 }
23876 _ACEOF
23877 if ac_fn_c_try_link "$LINENO"; then :
23878   ac_cv_lib_pq_PQputCopyData=yes
23879 else
23880   ac_cv_lib_pq_PQputCopyData=no
23881 fi
23882 rm -f core conftest.err conftest.$ac_objext \
23883     conftest$ac_exeext conftest.$ac_ext
23884 LIBS=$ac_check_lib_save_LIBS
23885 fi
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23887 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23888 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23889   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23890
23891 fi
23892
23893       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23894       pkg=$?
23895    fi
23896
23897    if test $DB_PROG = mysql; then
23898       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23899       pkg=$?
23900    fi
23901
23902    if test $DB_PROG = sqlite3; then
23903       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23904       pkg=$?
23905       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23906 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23907 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23908   $as_echo_n "(cached) " >&6
23909 else
23910   ac_check_lib_save_LIBS=$LIBS
23911 LIBS="-lsqlite3  $LIBS"
23912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23913 /* end confdefs.h.  */
23914
23915 /* Override any GCC internal prototype to avoid an error.
23916    Use char because int might match the return type of a GCC
23917    builtin and then its argument prototype would still apply.  */
23918 #ifdef __cplusplus
23919 extern "C"
23920 #endif
23921 char sqlite3_threadsafe ();
23922 int
23923 main ()
23924 {
23925 return sqlite3_threadsafe ();
23926   ;
23927   return 0;
23928 }
23929 _ACEOF
23930 if ac_fn_c_try_link "$LINENO"; then :
23931   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23932 else
23933   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23934 fi
23935 rm -f core conftest.err conftest.$ac_objext \
23936     conftest$ac_exeext conftest.$ac_ext
23937 LIBS=$ac_check_lib_save_LIBS
23938 fi
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23940 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23941 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23942
23943 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23944
23945 fi
23946
23947    fi
23948
23949    if test $pkg = 0; then
23950       # Check whether --enable-batch-insert was given.
23951 if test "${enable_batch_insert+set}" = set; then :
23952   enableval=$enable_batch_insert;
23953              if test x$enableval = xno; then
23954                 support_batch_insert=no
23955              else
23956                 support_batch_insert=yes
23957              fi
23958
23959
23960 fi
23961
23962    fi
23963 else
23964       uncomment_dbi="#"
23965 fi
23966
23967 LIBS="${saved_LIBS}"
23968
23969
23970
23971 if test x$DB_TYPE = xingres; then
23972    support_batch_insert=yes
23973 fi
23974
23975 if test $support_batch_insert = yes ; then
23976
23977 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23978
23979 fi
23980
23981 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23982
23983
23984 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23985    if test -z "$CCOPTS"; then
23986       CCOPTS='-g -O2 -Wall'
23987    fi
23988    CFLAGS="$CCOPTS"
23989 fi
23990
23991
23992
23993 largefile_support="no"
23994
23995    # Check whether --enable-largefile was given.
23996 if test "${enable_largefile+set}" = set; then :
23997   enableval=$enable_largefile;
23998 fi
23999
24000    if test "$enable_largefile" != no; then
24001      if test -n "$ac_tool_prefix"; then
24002   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24003 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24005 $as_echo_n "checking for $ac_word... " >&6; }
24006 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24007   $as_echo_n "(cached) " >&6
24008 else
24009   if test -n "$GETCONF"; then
24010   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24011 else
24012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24013 for as_dir in $PATH
24014 do
24015   IFS=$as_save_IFS
24016   test -z "$as_dir" && as_dir=.
24017     for ac_exec_ext in '' $ac_executable_extensions; do
24018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24019     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24021     break 2
24022   fi
24023 done
24024   done
24025 IFS=$as_save_IFS
24026
24027 fi
24028 fi
24029 GETCONF=$ac_cv_prog_GETCONF
24030 if test -n "$GETCONF"; then
24031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24032 $as_echo "$GETCONF" >&6; }
24033 else
24034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24035 $as_echo "no" >&6; }
24036 fi
24037
24038
24039 fi
24040 if test -z "$ac_cv_prog_GETCONF"; then
24041   ac_ct_GETCONF=$GETCONF
24042   # Extract the first word of "getconf", so it can be a program name with args.
24043 set dummy getconf; ac_word=$2
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24045 $as_echo_n "checking for $ac_word... " >&6; }
24046 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24047   $as_echo_n "(cached) " >&6
24048 else
24049   if test -n "$ac_ct_GETCONF"; then
24050   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24051 else
24052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24053 for as_dir in $PATH
24054 do
24055   IFS=$as_save_IFS
24056   test -z "$as_dir" && as_dir=.
24057     for ac_exec_ext in '' $ac_executable_extensions; do
24058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24059     ac_cv_prog_ac_ct_GETCONF="getconf"
24060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24061     break 2
24062   fi
24063 done
24064   done
24065 IFS=$as_save_IFS
24066
24067 fi
24068 fi
24069 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24070 if test -n "$ac_ct_GETCONF"; then
24071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24072 $as_echo "$ac_ct_GETCONF" >&6; }
24073 else
24074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24075 $as_echo "no" >&6; }
24076 fi
24077
24078   if test "x$ac_ct_GETCONF" = x; then
24079     GETCONF=""
24080   else
24081     case $cross_compiling:$ac_tool_warned in
24082 yes:)
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24085 ac_tool_warned=yes ;;
24086 esac
24087     GETCONF=$ac_ct_GETCONF
24088   fi
24089 else
24090   GETCONF="$ac_cv_prog_GETCONF"
24091 fi
24092
24093      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24094 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24095 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24096   $as_echo_n "(cached) " >&6
24097 else
24098   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24099         ac_cv_sys_largefile_CFLAGS=no
24100         case "$host_os" in
24101            # IRIX 6.2 and later require cc -n32.
24102            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24103              if test "$GCC" != yes; then
24104                ac_cv_sys_largefile_CFLAGS=-n32
24105              fi
24106              ac_save_CC="$CC"
24107              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24108              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24109 /* end confdefs.h.  */
24110
24111 int
24112 main ()
24113 {
24114
24115   ;
24116   return 0;
24117 }
24118 _ACEOF
24119 if ac_fn_c_try_link "$LINENO"; then :
24120
24121 else
24122   ac_cv_sys_largefile_CFLAGS=no
24123 fi
24124 rm -f core conftest.err conftest.$ac_objext \
24125     conftest$ac_exeext conftest.$ac_ext
24126              CC="$ac_save_CC"
24127            esac
24128       }
24129 fi
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24131 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24132      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24133 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24134 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24135   $as_echo_n "(cached) " >&6
24136 else
24137   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24138         ac_cv_sys_largefile_LDFLAGS=no
24139
24140       }
24141 fi
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24143 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24144      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24145 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24146 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24147   $as_echo_n "(cached) " >&6
24148 else
24149   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24150         ac_cv_sys_largefile_LIBS=no
24151
24152       }
24153 fi
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24155 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24156
24157      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24158        case "$ac_flag" in
24159        no) ;;
24160        -D_FILE_OFFSET_BITS=*) ;;
24161        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24162        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24163        -D?* | -I?*)
24164          case "$ac_flag" in
24165    no) ;;
24166    ?*)
24167      case "$CPPFLAGS" in
24168      '') CPPFLAGS="$ac_flag" ;;
24169      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24170      esac ;;
24171    esac ;;
24172        *)
24173          case "$ac_flag" in
24174    no) ;;
24175    ?*)
24176      case "$CFLAGS" in
24177      '') CFLAGS="$ac_flag" ;;
24178      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24179      esac ;;
24180    esac ;;
24181        esac
24182      done
24183      case "$ac_cv_sys_largefile_LDFLAGS" in
24184    no) ;;
24185    ?*)
24186      case "$LDFLAGS" in
24187      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24188      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24189      esac ;;
24190    esac
24191      case "$ac_cv_sys_largefile_LIBS" in
24192    no) ;;
24193    ?*)
24194      case "$LIBS" in
24195      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24196      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24197      esac ;;
24198    esac
24199      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24200 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24201 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24202   $as_echo_n "(cached) " >&6
24203 else
24204   ac_cv_sys_file_offset_bits=no
24205       ac_cv_sys_file_offset_bits=64
24206       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24207         case "$ac_flag" in
24208         -D_FILE_OFFSET_BITS)
24209           ac_cv_sys_file_offset_bits=1 ;;
24210         -D_FILE_OFFSET_BITS=*)
24211           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24212         esac
24213       done
24214
24215 fi
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24217 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24218    if test "$ac_cv_sys_file_offset_bits" != no; then
24219
24220 cat >>confdefs.h <<_ACEOF
24221 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24222 _ACEOF
24223
24224    fi
24225      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24226 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24227 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24228   $as_echo_n "(cached) " >&6
24229 else
24230   ac_cv_sys_largefile_source=no
24231       ac_cv_sys_largefile_source=1
24232       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24233         case "$ac_flag" in
24234         -D_LARGEFILE_SOURCE)
24235           ac_cv_sys_largefile_source=1 ;;
24236         -D_LARGEFILE_SOURCE=*)
24237           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24238         esac
24239       done
24240
24241 fi
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24243 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24244    if test "$ac_cv_sys_largefile_source" != no; then
24245
24246 cat >>confdefs.h <<_ACEOF
24247 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24248 _ACEOF
24249
24250    fi
24251      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24252 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24253 if test "${ac_cv_sys_large_files+set}" = set; then :
24254   $as_echo_n "(cached) " >&6
24255 else
24256   ac_cv_sys_large_files=no
24257       ac_cv_sys_large_files=1
24258       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24259         case "$ac_flag" in
24260         -D_LARGE_FILES)
24261           ac_cv_sys_large_files=1 ;;
24262         -D_LARGE_FILES=*)
24263           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24264         esac
24265       done
24266
24267 fi
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24269 $as_echo "$ac_cv_sys_large_files" >&6; }
24270    if test "$ac_cv_sys_large_files" != no; then
24271
24272 cat >>confdefs.h <<_ACEOF
24273 #define _LARGE_FILES $ac_cv_sys_large_files
24274 _ACEOF
24275
24276    fi
24277    fi
24278
24279
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24281 $as_echo_n "checking for X... " >&6; }
24282
24283
24284 # Check whether --with-x was given.
24285 if test "${with_x+set}" = set; then :
24286   withval=$with_x;
24287 fi
24288
24289 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24290 if test "x$with_x" = xno; then
24291   # The user explicitly disabled X.
24292   have_x=disabled
24293 else
24294   case $x_includes,$x_libraries in #(
24295     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24296     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24297   $as_echo_n "(cached) " >&6
24298 else
24299   # One or both of the vars are not set, and there is no cached value.
24300 ac_x_includes=no ac_x_libraries=no
24301 rm -f -r conftest.dir
24302 if mkdir conftest.dir; then
24303   cd conftest.dir
24304   cat >Imakefile <<'_ACEOF'
24305 incroot:
24306         @echo incroot='${INCROOT}'
24307 usrlibdir:
24308         @echo usrlibdir='${USRLIBDIR}'
24309 libdir:
24310         @echo libdir='${LIBDIR}'
24311 _ACEOF
24312   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24313     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24314     for ac_var in incroot usrlibdir libdir; do
24315       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24316     done
24317     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24318     for ac_extension in a so sl dylib la dll; do
24319       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24320          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24321         ac_im_usrlibdir=$ac_im_libdir; break
24322       fi
24323     done
24324     # Screen out bogus values from the imake configuration.  They are
24325     # bogus both because they are the default anyway, and because
24326     # using them would break gcc on systems where it needs fixed includes.
24327     case $ac_im_incroot in
24328         /usr/include) ac_x_includes= ;;
24329         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24330     esac
24331     case $ac_im_usrlibdir in
24332         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24333         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24334     esac
24335   fi
24336   cd ..
24337   rm -f -r conftest.dir
24338 fi
24339
24340 # Standard set of common directories for X headers.
24341 # Check X11 before X11Rn because it is often a symlink to the current release.
24342 ac_x_header_dirs='
24343 /usr/X11/include
24344 /usr/X11R7/include
24345 /usr/X11R6/include
24346 /usr/X11R5/include
24347 /usr/X11R4/include
24348
24349 /usr/include/X11
24350 /usr/include/X11R7
24351 /usr/include/X11R6
24352 /usr/include/X11R5
24353 /usr/include/X11R4
24354
24355 /usr/local/X11/include
24356 /usr/local/X11R7/include
24357 /usr/local/X11R6/include
24358 /usr/local/X11R5/include
24359 /usr/local/X11R4/include
24360
24361 /usr/local/include/X11
24362 /usr/local/include/X11R7
24363 /usr/local/include/X11R6
24364 /usr/local/include/X11R5
24365 /usr/local/include/X11R4
24366
24367 /usr/X386/include
24368 /usr/x386/include
24369 /usr/XFree86/include/X11
24370
24371 /usr/include
24372 /usr/local/include
24373 /usr/unsupported/include
24374 /usr/athena/include
24375 /usr/local/x11r5/include
24376 /usr/lpp/Xamples/include
24377
24378 /usr/openwin/include
24379 /usr/openwin/share/include'
24380
24381 if test "$ac_x_includes" = no; then
24382   # Guess where to find include files, by looking for Xlib.h.
24383   # First, try using that file with no special directory specified.
24384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24385 /* end confdefs.h.  */
24386 #include <X11/Xlib.h>
24387 _ACEOF
24388 if ac_fn_c_try_cpp "$LINENO"; then :
24389   # We can compile using X headers with no special include directory.
24390 ac_x_includes=
24391 else
24392   for ac_dir in $ac_x_header_dirs; do
24393   if test -r "$ac_dir/X11/Xlib.h"; then
24394     ac_x_includes=$ac_dir
24395     break
24396   fi
24397 done
24398 fi
24399 rm -f conftest.err conftest.$ac_ext
24400 fi # $ac_x_includes = no
24401
24402 if test "$ac_x_libraries" = no; then
24403   # Check for the libraries.
24404   # See if we find them without any special options.
24405   # Don't add to $LIBS permanently.
24406   ac_save_LIBS=$LIBS
24407   LIBS="-lX11 $LIBS"
24408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24409 /* end confdefs.h.  */
24410 #include <X11/Xlib.h>
24411 int
24412 main ()
24413 {
24414 XrmInitialize ()
24415   ;
24416   return 0;
24417 }
24418 _ACEOF
24419 if ac_fn_c_try_link "$LINENO"; then :
24420   LIBS=$ac_save_LIBS
24421 # We can link X programs with no special library path.
24422 ac_x_libraries=
24423 else
24424   LIBS=$ac_save_LIBS
24425 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24426 do
24427   # Don't even attempt the hair of trying to link an X program!
24428   for ac_extension in a so sl dylib la dll; do
24429     if test -r "$ac_dir/libX11.$ac_extension"; then
24430       ac_x_libraries=$ac_dir
24431       break 2
24432     fi
24433   done
24434 done
24435 fi
24436 rm -f core conftest.err conftest.$ac_objext \
24437     conftest$ac_exeext conftest.$ac_ext
24438 fi # $ac_x_libraries = no
24439
24440 case $ac_x_includes,$ac_x_libraries in #(
24441   no,* | *,no | *\'*)
24442     # Didn't find X, or a directory has "'" in its name.
24443     ac_cv_have_x="have_x=no";; #(
24444   *)
24445     # Record where we found X for the cache.
24446     ac_cv_have_x="have_x=yes\
24447         ac_x_includes='$ac_x_includes'\
24448         ac_x_libraries='$ac_x_libraries'"
24449 esac
24450 fi
24451 ;; #(
24452     *) have_x=yes;;
24453   esac
24454   eval "$ac_cv_have_x"
24455 fi # $with_x != no
24456
24457 if test "$have_x" != yes; then
24458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24459 $as_echo "$have_x" >&6; }
24460   no_x=yes
24461 else
24462   # If each of the values was on the command line, it overrides each guess.
24463   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24464   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24465   # Update the cache value to reflect the command line values.
24466   ac_cv_have_x="have_x=yes\
24467         ac_x_includes='$x_includes'\
24468         ac_x_libraries='$x_libraries'"
24469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24470 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24471 fi
24472
24473 if test "$no_x" = yes; then
24474   # Not all programs may use this symbol, but it does not hurt to define it.
24475
24476 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24477
24478   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24479 else
24480   if test -n "$x_includes"; then
24481     X_CFLAGS="$X_CFLAGS -I$x_includes"
24482   fi
24483
24484   # It would also be nice to do this for all -L options, not just this one.
24485   if test -n "$x_libraries"; then
24486     X_LIBS="$X_LIBS -L$x_libraries"
24487     # For Solaris; some versions of Sun CC require a space after -R and
24488     # others require no space.  Words are not sufficient . . . .
24489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24490 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24491     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24492     ac_xsave_c_werror_flag=$ac_c_werror_flag
24493     ac_c_werror_flag=yes
24494     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24495 /* end confdefs.h.  */
24496
24497 int
24498 main ()
24499 {
24500
24501   ;
24502   return 0;
24503 }
24504 _ACEOF
24505 if ac_fn_c_try_link "$LINENO"; then :
24506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24507 $as_echo "no" >&6; }
24508        X_LIBS="$X_LIBS -R$x_libraries"
24509 else
24510   LIBS="$ac_xsave_LIBS -R $x_libraries"
24511        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24512 /* end confdefs.h.  */
24513
24514 int
24515 main ()
24516 {
24517
24518   ;
24519   return 0;
24520 }
24521 _ACEOF
24522 if ac_fn_c_try_link "$LINENO"; then :
24523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24524 $as_echo "yes" >&6; }
24525           X_LIBS="$X_LIBS -R $x_libraries"
24526 else
24527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24528 $as_echo "neither works" >&6; }
24529 fi
24530 rm -f core conftest.err conftest.$ac_objext \
24531     conftest$ac_exeext conftest.$ac_ext
24532 fi
24533 rm -f core conftest.err conftest.$ac_objext \
24534     conftest$ac_exeext conftest.$ac_ext
24535     ac_c_werror_flag=$ac_xsave_c_werror_flag
24536     LIBS=$ac_xsave_LIBS
24537   fi
24538
24539   # Check for system-dependent libraries X programs must link with.
24540   # Do this before checking for the system-independent R6 libraries
24541   # (-lICE), since we may need -lsocket or whatever for X linking.
24542
24543   if test "$ISC" = yes; then
24544     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24545   else
24546     # Martyn Johnson says this is needed for Ultrix, if the X
24547     # libraries were built with DECnet support.  And Karl Berry says
24548     # the Alpha needs dnet_stub (dnet does not exist).
24549     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24550     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24551 /* end confdefs.h.  */
24552
24553 /* Override any GCC internal prototype to avoid an error.
24554    Use char because int might match the return type of a GCC
24555    builtin and then its argument prototype would still apply.  */
24556 #ifdef __cplusplus
24557 extern "C"
24558 #endif
24559 char XOpenDisplay ();
24560 int
24561 main ()
24562 {
24563 return XOpenDisplay ();
24564   ;
24565   return 0;
24566 }
24567 _ACEOF
24568 if ac_fn_c_try_link "$LINENO"; then :
24569
24570 else
24571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24572 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24573 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24574   $as_echo_n "(cached) " >&6
24575 else
24576   ac_check_lib_save_LIBS=$LIBS
24577 LIBS="-ldnet  $LIBS"
24578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24579 /* end confdefs.h.  */
24580
24581 /* Override any GCC internal prototype to avoid an error.
24582    Use char because int might match the return type of a GCC
24583    builtin and then its argument prototype would still apply.  */
24584 #ifdef __cplusplus
24585 extern "C"
24586 #endif
24587 char dnet_ntoa ();
24588 int
24589 main ()
24590 {
24591 return dnet_ntoa ();
24592   ;
24593   return 0;
24594 }
24595 _ACEOF
24596 if ac_fn_c_try_link "$LINENO"; then :
24597   ac_cv_lib_dnet_dnet_ntoa=yes
24598 else
24599   ac_cv_lib_dnet_dnet_ntoa=no
24600 fi
24601 rm -f core conftest.err conftest.$ac_objext \
24602     conftest$ac_exeext conftest.$ac_ext
24603 LIBS=$ac_check_lib_save_LIBS
24604 fi
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24606 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24607 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24608   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24609 fi
24610
24611     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24612       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24613 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24614 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24615   $as_echo_n "(cached) " >&6
24616 else
24617   ac_check_lib_save_LIBS=$LIBS
24618 LIBS="-ldnet_stub  $LIBS"
24619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24620 /* end confdefs.h.  */
24621
24622 /* Override any GCC internal prototype to avoid an error.
24623    Use char because int might match the return type of a GCC
24624    builtin and then its argument prototype would still apply.  */
24625 #ifdef __cplusplus
24626 extern "C"
24627 #endif
24628 char dnet_ntoa ();
24629 int
24630 main ()
24631 {
24632 return dnet_ntoa ();
24633   ;
24634   return 0;
24635 }
24636 _ACEOF
24637 if ac_fn_c_try_link "$LINENO"; then :
24638   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24639 else
24640   ac_cv_lib_dnet_stub_dnet_ntoa=no
24641 fi
24642 rm -f core conftest.err conftest.$ac_objext \
24643     conftest$ac_exeext conftest.$ac_ext
24644 LIBS=$ac_check_lib_save_LIBS
24645 fi
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24647 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24648 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24649   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24650 fi
24651
24652     fi
24653 fi
24654 rm -f core conftest.err conftest.$ac_objext \
24655     conftest$ac_exeext conftest.$ac_ext
24656     LIBS="$ac_xsave_LIBS"
24657
24658     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24659     # to get the SysV transport functions.
24660     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24661     # needs -lnsl.
24662     # The nsl library prevents programs from opening the X display
24663     # on Irix 5.2, according to T.E. Dickey.
24664     # The functions gethostbyname, getservbyname, and inet_addr are
24665     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24666     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24667 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24668
24669 fi
24670
24671     if test $ac_cv_func_gethostbyname = no; then
24672       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24673 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24674 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24675   $as_echo_n "(cached) " >&6
24676 else
24677   ac_check_lib_save_LIBS=$LIBS
24678 LIBS="-lnsl  $LIBS"
24679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24680 /* end confdefs.h.  */
24681
24682 /* Override any GCC internal prototype to avoid an error.
24683    Use char because int might match the return type of a GCC
24684    builtin and then its argument prototype would still apply.  */
24685 #ifdef __cplusplus
24686 extern "C"
24687 #endif
24688 char gethostbyname ();
24689 int
24690 main ()
24691 {
24692 return gethostbyname ();
24693   ;
24694   return 0;
24695 }
24696 _ACEOF
24697 if ac_fn_c_try_link "$LINENO"; then :
24698   ac_cv_lib_nsl_gethostbyname=yes
24699 else
24700   ac_cv_lib_nsl_gethostbyname=no
24701 fi
24702 rm -f core conftest.err conftest.$ac_objext \
24703     conftest$ac_exeext conftest.$ac_ext
24704 LIBS=$ac_check_lib_save_LIBS
24705 fi
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24707 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24708 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24709   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24710 fi
24711
24712       if test $ac_cv_lib_nsl_gethostbyname = no; then
24713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24714 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24715 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24716   $as_echo_n "(cached) " >&6
24717 else
24718   ac_check_lib_save_LIBS=$LIBS
24719 LIBS="-lbsd  $LIBS"
24720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24721 /* end confdefs.h.  */
24722
24723 /* Override any GCC internal prototype to avoid an error.
24724    Use char because int might match the return type of a GCC
24725    builtin and then its argument prototype would still apply.  */
24726 #ifdef __cplusplus
24727 extern "C"
24728 #endif
24729 char gethostbyname ();
24730 int
24731 main ()
24732 {
24733 return gethostbyname ();
24734   ;
24735   return 0;
24736 }
24737 _ACEOF
24738 if ac_fn_c_try_link "$LINENO"; then :
24739   ac_cv_lib_bsd_gethostbyname=yes
24740 else
24741   ac_cv_lib_bsd_gethostbyname=no
24742 fi
24743 rm -f core conftest.err conftest.$ac_objext \
24744     conftest$ac_exeext conftest.$ac_ext
24745 LIBS=$ac_check_lib_save_LIBS
24746 fi
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24748 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24749 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24750   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24751 fi
24752
24753       fi
24754     fi
24755
24756     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24757     # socket/setsockopt and other routines are undefined under SCO ODT
24758     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24759     # on later versions), says Simon Leinen: it contains gethostby*
24760     # variants that don't use the name server (or something).  -lsocket
24761     # must be given before -lnsl if both are needed.  We assume that
24762     # if connect needs -lnsl, so does gethostbyname.
24763     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24764 if test "x$ac_cv_func_connect" = x""yes; then :
24765
24766 fi
24767
24768     if test $ac_cv_func_connect = no; then
24769       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24770 $as_echo_n "checking for connect in -lsocket... " >&6; }
24771 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24772   $as_echo_n "(cached) " >&6
24773 else
24774   ac_check_lib_save_LIBS=$LIBS
24775 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24777 /* end confdefs.h.  */
24778
24779 /* Override any GCC internal prototype to avoid an error.
24780    Use char because int might match the return type of a GCC
24781    builtin and then its argument prototype would still apply.  */
24782 #ifdef __cplusplus
24783 extern "C"
24784 #endif
24785 char connect ();
24786 int
24787 main ()
24788 {
24789 return connect ();
24790   ;
24791   return 0;
24792 }
24793 _ACEOF
24794 if ac_fn_c_try_link "$LINENO"; then :
24795   ac_cv_lib_socket_connect=yes
24796 else
24797   ac_cv_lib_socket_connect=no
24798 fi
24799 rm -f core conftest.err conftest.$ac_objext \
24800     conftest$ac_exeext conftest.$ac_ext
24801 LIBS=$ac_check_lib_save_LIBS
24802 fi
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24804 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24805 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24806   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24807 fi
24808
24809     fi
24810
24811     # Guillermo Gomez says -lposix is necessary on A/UX.
24812     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24813 if test "x$ac_cv_func_remove" = x""yes; then :
24814
24815 fi
24816
24817     if test $ac_cv_func_remove = no; then
24818       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24819 $as_echo_n "checking for remove in -lposix... " >&6; }
24820 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24821   $as_echo_n "(cached) " >&6
24822 else
24823   ac_check_lib_save_LIBS=$LIBS
24824 LIBS="-lposix  $LIBS"
24825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24826 /* end confdefs.h.  */
24827
24828 /* Override any GCC internal prototype to avoid an error.
24829    Use char because int might match the return type of a GCC
24830    builtin and then its argument prototype would still apply.  */
24831 #ifdef __cplusplus
24832 extern "C"
24833 #endif
24834 char remove ();
24835 int
24836 main ()
24837 {
24838 return remove ();
24839   ;
24840   return 0;
24841 }
24842 _ACEOF
24843 if ac_fn_c_try_link "$LINENO"; then :
24844   ac_cv_lib_posix_remove=yes
24845 else
24846   ac_cv_lib_posix_remove=no
24847 fi
24848 rm -f core conftest.err conftest.$ac_objext \
24849     conftest$ac_exeext conftest.$ac_ext
24850 LIBS=$ac_check_lib_save_LIBS
24851 fi
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24853 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24854 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24855   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24856 fi
24857
24858     fi
24859
24860     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24861     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24862 if test "x$ac_cv_func_shmat" = x""yes; then :
24863
24864 fi
24865
24866     if test $ac_cv_func_shmat = no; then
24867       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24868 $as_echo_n "checking for shmat in -lipc... " >&6; }
24869 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24870   $as_echo_n "(cached) " >&6
24871 else
24872   ac_check_lib_save_LIBS=$LIBS
24873 LIBS="-lipc  $LIBS"
24874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h.  */
24876
24877 /* Override any GCC internal prototype to avoid an error.
24878    Use char because int might match the return type of a GCC
24879    builtin and then its argument prototype would still apply.  */
24880 #ifdef __cplusplus
24881 extern "C"
24882 #endif
24883 char shmat ();
24884 int
24885 main ()
24886 {
24887 return shmat ();
24888   ;
24889   return 0;
24890 }
24891 _ACEOF
24892 if ac_fn_c_try_link "$LINENO"; then :
24893   ac_cv_lib_ipc_shmat=yes
24894 else
24895   ac_cv_lib_ipc_shmat=no
24896 fi
24897 rm -f core conftest.err conftest.$ac_objext \
24898     conftest$ac_exeext conftest.$ac_ext
24899 LIBS=$ac_check_lib_save_LIBS
24900 fi
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24902 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24903 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24904   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24905 fi
24906
24907     fi
24908   fi
24909
24910   # Check for libraries that X11R6 Xt/Xaw programs need.
24911   ac_save_LDFLAGS=$LDFLAGS
24912   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24913   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24914   # check for ICE first), but we must link in the order -lSM -lICE or
24915   # we get undefined symbols.  So assume we have SM if we have ICE.
24916   # These have to be linked with before -lX11, unlike the other
24917   # libraries we check for below, so use a different variable.
24918   # John Interrante, Karl Berry
24919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24920 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24921 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24922   $as_echo_n "(cached) " >&6
24923 else
24924   ac_check_lib_save_LIBS=$LIBS
24925 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24927 /* end confdefs.h.  */
24928
24929 /* Override any GCC internal prototype to avoid an error.
24930    Use char because int might match the return type of a GCC
24931    builtin and then its argument prototype would still apply.  */
24932 #ifdef __cplusplus
24933 extern "C"
24934 #endif
24935 char IceConnectionNumber ();
24936 int
24937 main ()
24938 {
24939 return IceConnectionNumber ();
24940   ;
24941   return 0;
24942 }
24943 _ACEOF
24944 if ac_fn_c_try_link "$LINENO"; then :
24945   ac_cv_lib_ICE_IceConnectionNumber=yes
24946 else
24947   ac_cv_lib_ICE_IceConnectionNumber=no
24948 fi
24949 rm -f core conftest.err conftest.$ac_objext \
24950     conftest$ac_exeext conftest.$ac_ext
24951 LIBS=$ac_check_lib_save_LIBS
24952 fi
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24954 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24955 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24956   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24957 fi
24958
24959   LDFLAGS=$ac_save_LDFLAGS
24960
24961 fi
24962
24963
24964 for ac_header in \
24965    assert.h \
24966    fcntl.h \
24967    grp.h \
24968    pwd.h \
24969    libc.h \
24970    limits.h \
24971    stdarg.h \
24972    stdlib.h \
24973    stdint.h \
24974    string.h \
24975    strings.h \
24976    termios.h \
24977    termcap.h \
24978    term.h \
24979    unistd.h \
24980    sys/bitypes.h \
24981    sys/byteorder.h \
24982    sys/ioctl.h \
24983    sys/select.h \
24984    sys/socket.h \
24985    sys/sockio.h \
24986    sys/stat.h \
24987    sys/time.h \
24988    sys/types.h \
24989    arpa/nameser.h \
24990    mtio.h \
24991    sys/mtio.h \
24992    sys/tape.h \
24993    regex.h \
24994
24995 do :
24996   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24997 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24999   cat >>confdefs.h <<_ACEOF
25000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25001 _ACEOF
25002
25003 fi
25004
25005 done
25006
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25008 $as_echo_n "checking for ANSI C header files... " >&6; }
25009 if test "${ac_cv_header_stdc+set}" = set; then :
25010   $as_echo_n "(cached) " >&6
25011 else
25012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25013 /* end confdefs.h.  */
25014 #include <stdlib.h>
25015 #include <stdarg.h>
25016 #include <string.h>
25017 #include <float.h>
25018
25019 int
25020 main ()
25021 {
25022
25023   ;
25024   return 0;
25025 }
25026 _ACEOF
25027 if ac_fn_c_try_compile "$LINENO"; then :
25028   ac_cv_header_stdc=yes
25029 else
25030   ac_cv_header_stdc=no
25031 fi
25032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25033
25034 if test $ac_cv_header_stdc = yes; then
25035   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25037 /* end confdefs.h.  */
25038 #include <string.h>
25039
25040 _ACEOF
25041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25042   $EGREP "memchr" >/dev/null 2>&1; then :
25043
25044 else
25045   ac_cv_header_stdc=no
25046 fi
25047 rm -f conftest*
25048
25049 fi
25050
25051 if test $ac_cv_header_stdc = yes; then
25052   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25054 /* end confdefs.h.  */
25055 #include <stdlib.h>
25056
25057 _ACEOF
25058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25059   $EGREP "free" >/dev/null 2>&1; then :
25060
25061 else
25062   ac_cv_header_stdc=no
25063 fi
25064 rm -f conftest*
25065
25066 fi
25067
25068 if test $ac_cv_header_stdc = yes; then
25069   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25070   if test "$cross_compiling" = yes; then :
25071   :
25072 else
25073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25074 /* end confdefs.h.  */
25075 #include <ctype.h>
25076 #include <stdlib.h>
25077 #if ((' ' & 0x0FF) == 0x020)
25078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25080 #else
25081 # define ISLOWER(c) \
25082                    (('a' <= (c) && (c) <= 'i') \
25083                      || ('j' <= (c) && (c) <= 'r') \
25084                      || ('s' <= (c) && (c) <= 'z'))
25085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25086 #endif
25087
25088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25089 int
25090 main ()
25091 {
25092   int i;
25093   for (i = 0; i < 256; i++)
25094     if (XOR (islower (i), ISLOWER (i))
25095         || toupper (i) != TOUPPER (i))
25096       return 2;
25097   return 0;
25098 }
25099 _ACEOF
25100 if ac_fn_c_try_run "$LINENO"; then :
25101
25102 else
25103   ac_cv_header_stdc=no
25104 fi
25105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25106   conftest.$ac_objext conftest.beam conftest.$ac_ext
25107 fi
25108
25109 fi
25110 fi
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25112 $as_echo "$ac_cv_header_stdc" >&6; }
25113 if test $ac_cv_header_stdc = yes; then
25114
25115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25116
25117 fi
25118
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25120 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25121 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25122   $as_echo_n "(cached) " >&6
25123 else
25124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25125 /* end confdefs.h.  */
25126 #include <sys/types.h>
25127 int
25128 main ()
25129 {
25130 return makedev(0, 0);
25131   ;
25132   return 0;
25133 }
25134 _ACEOF
25135 if ac_fn_c_try_link "$LINENO"; then :
25136   ac_cv_header_sys_types_h_makedev=yes
25137 else
25138   ac_cv_header_sys_types_h_makedev=no
25139 fi
25140 rm -f core conftest.err conftest.$ac_objext \
25141     conftest$ac_exeext conftest.$ac_ext
25142
25143 fi
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25145 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25146
25147 if test $ac_cv_header_sys_types_h_makedev = no; then
25148 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25149 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25150
25151 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25152
25153 fi
25154
25155
25156
25157   if test $ac_cv_header_sys_mkdev_h = no; then
25158     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25159 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25160
25161 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25162
25163 fi
25164
25165
25166   fi
25167 fi
25168
25169 ac_header_dirent=no
25170 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25171   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25173 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25174 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
25175   $as_echo_n "(cached) " >&6
25176 else
25177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25178 /* end confdefs.h.  */
25179 #include <sys/types.h>
25180 #include <$ac_hdr>
25181
25182 int
25183 main ()
25184 {
25185 if ((DIR *) 0)
25186 return 0;
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 if ac_fn_c_try_compile "$LINENO"; then :
25192   eval "$as_ac_Header=yes"
25193 else
25194   eval "$as_ac_Header=no"
25195 fi
25196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25197 fi
25198 eval ac_res=\$$as_ac_Header
25199                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25200 $as_echo "$ac_res" >&6; }
25201 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25202   cat >>confdefs.h <<_ACEOF
25203 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25204 _ACEOF
25205
25206 ac_header_dirent=$ac_hdr; break
25207 fi
25208
25209 done
25210 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25211 if test $ac_header_dirent = dirent.h; then
25212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25213 $as_echo_n "checking for library containing opendir... " >&6; }
25214 if test "${ac_cv_search_opendir+set}" = set; then :
25215   $as_echo_n "(cached) " >&6
25216 else
25217   ac_func_search_save_LIBS=$LIBS
25218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25219 /* end confdefs.h.  */
25220
25221 /* Override any GCC internal prototype to avoid an error.
25222    Use char because int might match the return type of a GCC
25223    builtin and then its argument prototype would still apply.  */
25224 #ifdef __cplusplus
25225 extern "C"
25226 #endif
25227 char opendir ();
25228 int
25229 main ()
25230 {
25231 return opendir ();
25232   ;
25233   return 0;
25234 }
25235 _ACEOF
25236 for ac_lib in '' dir; do
25237   if test -z "$ac_lib"; then
25238     ac_res="none required"
25239   else
25240     ac_res=-l$ac_lib
25241     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25242   fi
25243   if ac_fn_c_try_link "$LINENO"; then :
25244   ac_cv_search_opendir=$ac_res
25245 fi
25246 rm -f core conftest.err conftest.$ac_objext \
25247     conftest$ac_exeext
25248   if test "${ac_cv_search_opendir+set}" = set; then :
25249   break
25250 fi
25251 done
25252 if test "${ac_cv_search_opendir+set}" = set; then :
25253
25254 else
25255   ac_cv_search_opendir=no
25256 fi
25257 rm conftest.$ac_ext
25258 LIBS=$ac_func_search_save_LIBS
25259 fi
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25261 $as_echo "$ac_cv_search_opendir" >&6; }
25262 ac_res=$ac_cv_search_opendir
25263 if test "$ac_res" != no; then :
25264   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25265
25266 fi
25267
25268 else
25269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25270 $as_echo_n "checking for library containing opendir... " >&6; }
25271 if test "${ac_cv_search_opendir+set}" = set; then :
25272   $as_echo_n "(cached) " >&6
25273 else
25274   ac_func_search_save_LIBS=$LIBS
25275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276 /* end confdefs.h.  */
25277
25278 /* Override any GCC internal prototype to avoid an error.
25279    Use char because int might match the return type of a GCC
25280    builtin and then its argument prototype would still apply.  */
25281 #ifdef __cplusplus
25282 extern "C"
25283 #endif
25284 char opendir ();
25285 int
25286 main ()
25287 {
25288 return opendir ();
25289   ;
25290   return 0;
25291 }
25292 _ACEOF
25293 for ac_lib in '' x; do
25294   if test -z "$ac_lib"; then
25295     ac_res="none required"
25296   else
25297     ac_res=-l$ac_lib
25298     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25299   fi
25300   if ac_fn_c_try_link "$LINENO"; then :
25301   ac_cv_search_opendir=$ac_res
25302 fi
25303 rm -f core conftest.err conftest.$ac_objext \
25304     conftest$ac_exeext
25305   if test "${ac_cv_search_opendir+set}" = set; then :
25306   break
25307 fi
25308 done
25309 if test "${ac_cv_search_opendir+set}" = set; then :
25310
25311 else
25312   ac_cv_search_opendir=no
25313 fi
25314 rm conftest.$ac_ext
25315 LIBS=$ac_func_search_save_LIBS
25316 fi
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25318 $as_echo "$ac_cv_search_opendir" >&6; }
25319 ac_res=$ac_cv_search_opendir
25320 if test "$ac_res" != no; then :
25321   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25322
25323 fi
25324
25325 fi
25326
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25328 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25329 if test "${ac_cv_header_stat_broken+set}" = set; then :
25330   $as_echo_n "(cached) " >&6
25331 else
25332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25333 /* end confdefs.h.  */
25334 #include <sys/types.h>
25335 #include <sys/stat.h>
25336
25337 #if defined S_ISBLK && defined S_IFDIR
25338 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25339 #endif
25340
25341 #if defined S_ISBLK && defined S_IFCHR
25342 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25343 #endif
25344
25345 #if defined S_ISLNK && defined S_IFREG
25346 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25347 #endif
25348
25349 #if defined S_ISSOCK && defined S_IFREG
25350 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25351 #endif
25352
25353 _ACEOF
25354 if ac_fn_c_try_compile "$LINENO"; then :
25355   ac_cv_header_stat_broken=no
25356 else
25357   ac_cv_header_stat_broken=yes
25358 fi
25359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25360 fi
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25362 $as_echo "$ac_cv_header_stat_broken" >&6; }
25363 if test $ac_cv_header_stat_broken = yes; then
25364
25365 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25366
25367 fi
25368
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25370 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25371 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25372   $as_echo_n "(cached) " >&6
25373 else
25374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25375 /* end confdefs.h.  */
25376 #include <sys/types.h>
25377 #include <sys/wait.h>
25378 #ifndef WEXITSTATUS
25379 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25380 #endif
25381 #ifndef WIFEXITED
25382 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25383 #endif
25384
25385 int
25386 main ()
25387 {
25388   int s;
25389   wait (&s);
25390   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25391   ;
25392   return 0;
25393 }
25394 _ACEOF
25395 if ac_fn_c_try_compile "$LINENO"; then :
25396   ac_cv_header_sys_wait_h=yes
25397 else
25398   ac_cv_header_sys_wait_h=no
25399 fi
25400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25401 fi
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25403 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25404 if test $ac_cv_header_sys_wait_h = yes; then
25405
25406 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25407
25408 fi
25409
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25411 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25412 if test "${ac_cv_header_time+set}" = set; then :
25413   $as_echo_n "(cached) " >&6
25414 else
25415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25416 /* end confdefs.h.  */
25417 #include <sys/types.h>
25418 #include <sys/time.h>
25419 #include <time.h>
25420
25421 int
25422 main ()
25423 {
25424 if ((struct tm *) 0)
25425 return 0;
25426   ;
25427   return 0;
25428 }
25429 _ACEOF
25430 if ac_fn_c_try_compile "$LINENO"; then :
25431   ac_cv_header_time=yes
25432 else
25433   ac_cv_header_time=no
25434 fi
25435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25436 fi
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25438 $as_echo "$ac_cv_header_time" >&6; }
25439 if test $ac_cv_header_time = yes; then
25440
25441 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25442
25443 fi
25444
25445 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25446 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25447
25448 cat >>confdefs.h <<_ACEOF
25449 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25450 _ACEOF
25451
25452
25453 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25454
25455 fi
25456
25457
25458 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25459 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25460
25461 cat >>confdefs.h <<_ACEOF
25462 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25463 _ACEOF
25464
25465
25466 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25467
25468 else
25469   case " $LIBOBJS " in
25470   *" fileblocks.$ac_objext "* ) ;;
25471   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25472  ;;
25473 esac
25474
25475 fi
25476
25477
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25479 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25480 if test "${ac_cv_struct_tm+set}" = set; then :
25481   $as_echo_n "(cached) " >&6
25482 else
25483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25484 /* end confdefs.h.  */
25485 #include <sys/types.h>
25486 #include <time.h>
25487
25488 int
25489 main ()
25490 {
25491 struct tm tm;
25492                                      int *p = &tm.tm_sec;
25493                                      return !p;
25494   ;
25495   return 0;
25496 }
25497 _ACEOF
25498 if ac_fn_c_try_compile "$LINENO"; then :
25499   ac_cv_struct_tm=time.h
25500 else
25501   ac_cv_struct_tm=sys/time.h
25502 fi
25503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25504 fi
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25506 $as_echo "$ac_cv_struct_tm" >&6; }
25507 if test $ac_cv_struct_tm = sys/time.h; then
25508
25509 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25510
25511 fi
25512
25513 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25514 #include <$ac_cv_struct_tm>
25515
25516 "
25517 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25518
25519 cat >>confdefs.h <<_ACEOF
25520 #define HAVE_STRUCT_TM_TM_ZONE 1
25521 _ACEOF
25522
25523
25524 fi
25525
25526 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25527
25528 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25529
25530 else
25531   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25532 "
25533 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25534   ac_have_decl=1
25535 else
25536   ac_have_decl=0
25537 fi
25538
25539 cat >>confdefs.h <<_ACEOF
25540 #define HAVE_DECL_TZNAME $ac_have_decl
25541 _ACEOF
25542
25543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25544 $as_echo_n "checking for tzname... " >&6; }
25545 if test "${ac_cv_var_tzname+set}" = set; then :
25546   $as_echo_n "(cached) " >&6
25547 else
25548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25549 /* end confdefs.h.  */
25550 #include <time.h>
25551 #if !HAVE_DECL_TZNAME
25552 extern char *tzname[];
25553 #endif
25554
25555 int
25556 main ()
25557 {
25558 return tzname[0][0];
25559   ;
25560   return 0;
25561 }
25562 _ACEOF
25563 if ac_fn_c_try_link "$LINENO"; then :
25564   ac_cv_var_tzname=yes
25565 else
25566   ac_cv_var_tzname=no
25567 fi
25568 rm -f core conftest.err conftest.$ac_objext \
25569     conftest$ac_exeext conftest.$ac_ext
25570 fi
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25572 $as_echo "$ac_cv_var_tzname" >&6; }
25573   if test $ac_cv_var_tzname = yes; then
25574
25575 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25576
25577   fi
25578 fi
25579
25580
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25582 $as_echo_n "checking for utime.h... " >&6; }
25583 if test "${ba_cv_header_utime_h+set}" = set; then :
25584   $as_echo_n "(cached) " >&6
25585 else
25586
25587        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25588 /* end confdefs.h.  */
25589
25590               #include <sys/types.h>
25591               #include <utime.h>
25592
25593 int
25594 main ()
25595 {
25596
25597               struct utimbuf foo
25598
25599   ;
25600   return 0;
25601 }
25602 _ACEOF
25603 if ac_fn_c_try_compile "$LINENO"; then :
25604
25605               ba_cv_header_utime_h=yes
25606
25607 else
25608
25609               ba_cv_header_utime_h=no
25610
25611
25612 fi
25613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25614
25615
25616 fi
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25618 $as_echo "$ba_cv_header_utime_h" >&6; }
25619 test $ba_cv_header_utime_h = yes &&
25620 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25621
25622
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25624 $as_echo_n "checking for socklen_t... " >&6; }
25625 if test "${ba_cv_header_socklen_t+set}" = set; then :
25626   $as_echo_n "(cached) " >&6
25627 else
25628
25629        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25630 /* end confdefs.h.  */
25631
25632               #include <sys/types.h>
25633               #include <sys/socket.h>
25634
25635 int
25636 main ()
25637 {
25638
25639               socklen_t x
25640
25641   ;
25642   return 0;
25643 }
25644 _ACEOF
25645 if ac_fn_c_try_compile "$LINENO"; then :
25646
25647              ba_cv_header_socklen_t=yes
25648
25649 else
25650
25651              ba_cv_header_socklen_t=no
25652
25653
25654 fi
25655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656
25657
25658 fi
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25660 $as_echo "$ba_cv_header_socklen_t" >&6; }
25661 test $ba_cv_header_socklen_t = yes &&
25662 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25663
25664
25665 ac_ext=cpp
25666 ac_cpp='$CXXCPP $CPPFLAGS'
25667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25670
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25672 $as_echo_n "checking for ioctl_req_t... " >&6; }
25673 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25674   $as_echo_n "(cached) " >&6
25675 else
25676
25677        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25678 /* end confdefs.h.  */
25679
25680               #include <unistd.h>
25681               #include <sys/types.h>
25682               #include <sys/ioctl.h>
25683
25684 int
25685 main ()
25686 {
25687
25688               int (*d_ioctl)(int fd, unsigned long int request, ...);
25689               d_ioctl = ::ioctl;
25690
25691   ;
25692   return 0;
25693 }
25694 _ACEOF
25695 if ac_fn_cxx_try_compile "$LINENO"; then :
25696
25697              ba_cv_header_ioctl_req_t=yes
25698
25699 else
25700
25701              ba_cv_header_ioctl_req_t=no
25702
25703
25704 fi
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25706
25707
25708 fi
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25710 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25711 test $ba_cv_header_ioctl_req_t = yes &&
25712 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25713
25714
25715 ac_ext=c
25716 ac_cpp='$CPP $CPPFLAGS'
25717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25720
25721
25722 ac_ext=cpp
25723 ac_cpp='$CXXCPP $CPPFLAGS'
25724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25727
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25729 $as_echo_n "checking for typeof... " >&6; }
25730 if test "${ba_cv_have_typeof+set}" = set; then :
25731   $as_echo_n "(cached) " >&6
25732 else
25733
25734        if test "$cross_compiling" = yes; then :
25735
25736               ba_cv_have_typeof=no
25737
25738
25739 else
25740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25741 /* end confdefs.h.  */
25742
25743               main(){char *a = 0; a = (typeof a)a;}
25744
25745 _ACEOF
25746 if ac_fn_cxx_try_run "$LINENO"; then :
25747
25748               ba_cv_have_typeof=yes
25749
25750 else
25751
25752               ba_cv_have_typeof=no
25753
25754 fi
25755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25756   conftest.$ac_objext conftest.beam conftest.$ac_ext
25757 fi
25758
25759
25760
25761 fi
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25763 $as_echo "$ba_cv_have_typeof" >&6; }
25764 test $ba_cv_have_typeof = yes &&
25765 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25766
25767 ac_ext=c
25768 ac_cpp='$CPP $CPPFLAGS'
25769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25772
25773
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25775 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25776 if test "${ac_cv_c_const+set}" = set; then :
25777   $as_echo_n "(cached) " >&6
25778 else
25779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25780 /* end confdefs.h.  */
25781
25782 int
25783 main ()
25784 {
25785 /* FIXME: Include the comments suggested by Paul. */
25786 #ifndef __cplusplus
25787   /* Ultrix mips cc rejects this.  */
25788   typedef int charset[2];
25789   const charset cs;
25790   /* SunOS 4.1.1 cc rejects this.  */
25791   char const *const *pcpcc;
25792   char **ppc;
25793   /* NEC SVR4.0.2 mips cc rejects this.  */
25794   struct point {int x, y;};
25795   static struct point const zero = {0,0};
25796   /* AIX XL C 1.02.0.0 rejects this.
25797      It does not let you subtract one const X* pointer from another in
25798      an arm of an if-expression whose if-part is not a constant
25799      expression */
25800   const char *g = "string";
25801   pcpcc = &g + (g ? g-g : 0);
25802   /* HPUX 7.0 cc rejects these. */
25803   ++pcpcc;
25804   ppc = (char**) pcpcc;
25805   pcpcc = (char const *const *) ppc;
25806   { /* SCO 3.2v4 cc rejects this.  */
25807     char *t;
25808     char const *s = 0 ? (char *) 0 : (char const *) 0;
25809
25810     *t++ = 0;
25811     if (s) return 0;
25812   }
25813   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25814     int x[] = {25, 17};
25815     const int *foo = &x[0];
25816     ++foo;
25817   }
25818   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25819     typedef const int *iptr;
25820     iptr p = 0;
25821     ++p;
25822   }
25823   { /* AIX XL C 1.02.0.0 rejects this saying
25824        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25825     struct s { int j; const int *ap[3]; };
25826     struct s *b; b->j = 5;
25827   }
25828   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25829     const int foo = 10;
25830     if (!foo) return 0;
25831   }
25832   return !cs[0] && !zero.x;
25833 #endif
25834
25835   ;
25836   return 0;
25837 }
25838 _ACEOF
25839 if ac_fn_c_try_compile "$LINENO"; then :
25840   ac_cv_c_const=yes
25841 else
25842   ac_cv_c_const=no
25843 fi
25844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25845 fi
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25847 $as_echo "$ac_cv_c_const" >&6; }
25848 if test $ac_cv_c_const = no; then
25849
25850 $as_echo "#define const /**/" >>confdefs.h
25851
25852 fi
25853
25854
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25856 $as_echo_n "checking how to get filesystem type... " >&6; }
25857 fstype=no
25858 # The order of these tests is important.
25859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25860 /* end confdefs.h.  */
25861
25862        #include <sys/statvfs.h>
25863        #include <sys/fstyp.h>
25864
25865 _ACEOF
25866 if ac_fn_c_try_cpp "$LINENO"; then :
25867   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25868  fstype=SVR4
25869
25870 fi
25871 rm -f conftest.err conftest.$ac_ext
25872 if test $fstype = no; then
25873    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25874 /* end confdefs.h.  */
25875
25876           #include <sys/statfs.h>
25877           #include <sys/fstyp.h>
25878
25879 _ACEOF
25880 if ac_fn_c_try_cpp "$LINENO"; then :
25881   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25882  fstype=SVR3
25883
25884 fi
25885 rm -f conftest.err conftest.$ac_ext
25886 fi
25887 if test $fstype = no; then
25888    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25889 /* end confdefs.h.  */
25890
25891           #include <sys/statfs.h>
25892           #include <sys/vmount.h>
25893
25894 _ACEOF
25895 if ac_fn_c_try_cpp "$LINENO"; then :
25896   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25897  fstype=AIX
25898
25899 fi
25900 rm -f conftest.err conftest.$ac_ext
25901 fi
25902 if test $fstype = no; then
25903    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25904 /* end confdefs.h.  */
25905
25906           #include <mntent.h>
25907
25908 _ACEOF
25909 if ac_fn_c_try_cpp "$LINENO"; then :
25910   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25911  fstype=4.3BSD
25912
25913 fi
25914 rm -f conftest.err conftest.$ac_ext
25915 fi
25916 if test $fstype = no; then
25917    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25918 /* end confdefs.h.  */
25919 #include <sys/mount.h>
25920
25921 _ACEOF
25922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25923   $EGREP "f_type;" >/dev/null 2>&1; then :
25924   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25925  fstype=4.4BSD/OSF1
25926 fi
25927 rm -f conftest*
25928
25929 fi
25930 if test $fstype = no; then
25931    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25932 /* end confdefs.h.  */
25933
25934           #include <sys/mount.h>
25935           #include <sys/fs_types.h>
25936
25937 _ACEOF
25938 if ac_fn_c_try_cpp "$LINENO"; then :
25939   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25940  fstype=Ultrix
25941
25942 fi
25943 rm -f conftest.err conftest.$ac_ext
25944 fi
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25946 $as_echo "$fstype" >&6; }
25947
25948 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25949 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25950
25951 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25952
25953 fi
25954
25955
25956
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25958 $as_echo_n "checking return type of signal handlers... " >&6; }
25959 if test "${ac_cv_type_signal+set}" = set; then :
25960   $as_echo_n "(cached) " >&6
25961 else
25962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25963 /* end confdefs.h.  */
25964 #include <sys/types.h>
25965 #include <signal.h>
25966
25967 int
25968 main ()
25969 {
25970 return *(signal (0, 0)) (0) == 1;
25971   ;
25972   return 0;
25973 }
25974 _ACEOF
25975 if ac_fn_c_try_compile "$LINENO"; then :
25976   ac_cv_type_signal=int
25977 else
25978   ac_cv_type_signal=void
25979 fi
25980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25981 fi
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25983 $as_echo "$ac_cv_type_signal" >&6; }
25984
25985 cat >>confdefs.h <<_ACEOF
25986 #define RETSIGTYPE $ac_cv_type_signal
25987 _ACEOF
25988
25989
25990
25991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25992 $as_echo_n "checking for type of signal functions... " >&6; }
25993   if test "${bash_cv_signal_vintage+set}" = set; then :
25994   $as_echo_n "(cached) " >&6
25995 else
25996
25997     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25998 /* end confdefs.h.  */
25999 #include <signal.h>
26000 int
26001 main ()
26002 {
26003
26004       sigset_t ss;
26005       struct sigaction sa;
26006       sigemptyset(&ss); sigsuspend(&ss);
26007       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26008       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26009
26010   ;
26011   return 0;
26012 }
26013 _ACEOF
26014 if ac_fn_c_try_link "$LINENO"; then :
26015   bash_cv_signal_vintage="posix"
26016 else
26017
26018       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26019 /* end confdefs.h.  */
26020 #include <signal.h>
26021 int
26022 main ()
26023 {
26024
26025           int mask = sigmask(SIGINT);
26026           sigsetmask(mask); sigblock(mask); sigpause(mask);
26027
26028   ;
26029   return 0;
26030 }
26031 _ACEOF
26032 if ac_fn_c_try_link "$LINENO"; then :
26033   bash_cv_signal_vintage="4.2bsd"
26034 else
26035
26036         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26037 /* end confdefs.h.  */
26038
26039           #include <signal.h>
26040           RETSIGTYPE foo() { }
26041 int
26042 main ()
26043 {
26044
26045                   int mask = sigmask(SIGINT);
26046                   sigset(SIGINT, foo); sigrelse(SIGINT);
26047                   sighold(SIGINT); sigpause(SIGINT);
26048
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 if ac_fn_c_try_link "$LINENO"; then :
26054   bash_cv_signal_vintage="svr3"
26055 else
26056   bash_cv_signal_vintage="v7"
26057
26058 fi
26059 rm -f core conftest.err conftest.$ac_objext \
26060     conftest$ac_exeext conftest.$ac_ext
26061
26062 fi
26063 rm -f core conftest.err conftest.$ac_objext \
26064     conftest$ac_exeext conftest.$ac_ext
26065
26066 fi
26067 rm -f core conftest.err conftest.$ac_objext \
26068     conftest$ac_exeext conftest.$ac_ext
26069
26070 fi
26071
26072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26073 $as_echo "$bash_cv_signal_vintage" >&6; }
26074   if test "$bash_cv_signal_vintage" = "posix"; then
26075     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26076
26077   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26078     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26079
26080   elif test "$bash_cv_signal_vintage" = "svr3"; then
26081     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26082
26083   fi
26084
26085 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26086 if test "x$ac_cv_type_mode_t" = x""yes; then :
26087
26088 else
26089
26090 cat >>confdefs.h <<_ACEOF
26091 #define mode_t int
26092 _ACEOF
26093
26094 fi
26095
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26097 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26098 if test "${ac_cv_type_uid_t+set}" = set; then :
26099   $as_echo_n "(cached) " >&6
26100 else
26101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26102 /* end confdefs.h.  */
26103 #include <sys/types.h>
26104
26105 _ACEOF
26106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26107   $EGREP "uid_t" >/dev/null 2>&1; then :
26108   ac_cv_type_uid_t=yes
26109 else
26110   ac_cv_type_uid_t=no
26111 fi
26112 rm -f conftest*
26113
26114 fi
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26116 $as_echo "$ac_cv_type_uid_t" >&6; }
26117 if test $ac_cv_type_uid_t = no; then
26118
26119 $as_echo "#define uid_t int" >>confdefs.h
26120
26121
26122 $as_echo "#define gid_t int" >>confdefs.h
26123
26124 fi
26125
26126 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26127 if test "x$ac_cv_type_size_t" = x""yes; then :
26128
26129 else
26130
26131 cat >>confdefs.h <<_ACEOF
26132 #define size_t unsigned int
26133 _ACEOF
26134
26135 fi
26136
26137 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26138 if test "x$ac_cv_type_pid_t" = x""yes; then :
26139
26140 else
26141
26142 cat >>confdefs.h <<_ACEOF
26143 #define pid_t int
26144 _ACEOF
26145
26146 fi
26147
26148 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26149 if test "x$ac_cv_type_off_t" = x""yes; then :
26150
26151 else
26152
26153 cat >>confdefs.h <<_ACEOF
26154 #define off_t long int
26155 _ACEOF
26156
26157 fi
26158
26159
26160   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26161 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26162
26163 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26164
26165 else
26166   for ac_type in 'int' 'long int' 'long long int'; do
26167        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26168 /* end confdefs.h.  */
26169 $ac_includes_default
26170 int
26171 main ()
26172 {
26173 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26174 test_array [0] = 0
26175
26176   ;
26177   return 0;
26178 }
26179 _ACEOF
26180 if ac_fn_c_try_compile "$LINENO"; then :
26181
26182 cat >>confdefs.h <<_ACEOF
26183 #define intptr_t $ac_type
26184 _ACEOF
26185
26186           ac_type=
26187 fi
26188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26189        test -z "$ac_type" && break
26190      done
26191 fi
26192
26193
26194
26195   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26196 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26197
26198 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26199
26200 else
26201   for ac_type in 'unsigned int' 'unsigned long int' \
26202         'unsigned long long int'; do
26203        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26204 /* end confdefs.h.  */
26205 $ac_includes_default
26206 int
26207 main ()
26208 {
26209 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26210 test_array [0] = 0
26211
26212   ;
26213   return 0;
26214 }
26215 _ACEOF
26216 if ac_fn_c_try_compile "$LINENO"; then :
26217
26218 cat >>confdefs.h <<_ACEOF
26219 #define uintptr_t $ac_type
26220 _ACEOF
26221
26222           ac_type=
26223 fi
26224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26225        test -z "$ac_type" && break
26226      done
26227 fi
26228
26229
26230 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26231 if test "x$ac_cv_type_ino_t" = x""yes; then :
26232
26233 else
26234
26235 cat >>confdefs.h <<_ACEOF
26236 #define ino_t unsigned long
26237 _ACEOF
26238
26239 fi
26240
26241 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26242 if test "x$ac_cv_type_dev_t" = x""yes; then :
26243
26244 else
26245
26246 cat >>confdefs.h <<_ACEOF
26247 #define dev_t unsigned long
26248 _ACEOF
26249
26250 fi
26251
26252 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26253 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26254
26255 else
26256
26257 cat >>confdefs.h <<_ACEOF
26258 #define daddr_t long
26259 _ACEOF
26260
26261 fi
26262
26263 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26264 if test "x$ac_cv_type_major_t" = x""yes; then :
26265
26266 else
26267
26268 cat >>confdefs.h <<_ACEOF
26269 #define major_t int
26270 _ACEOF
26271
26272 fi
26273
26274 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26275 if test "x$ac_cv_type_minor_t" = x""yes; then :
26276
26277 else
26278
26279 cat >>confdefs.h <<_ACEOF
26280 #define minor_t int
26281 _ACEOF
26282
26283 fi
26284
26285 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26286 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26287
26288 else
26289
26290 cat >>confdefs.h <<_ACEOF
26291 #define ssize_t int
26292 _ACEOF
26293
26294 fi
26295
26296 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26297 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26298
26299 cat >>confdefs.h <<_ACEOF
26300 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26301 _ACEOF
26302
26303
26304 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26305
26306 else
26307   case " $LIBOBJS " in
26308   *" fileblocks.$ac_objext "* ) ;;
26309   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26310  ;;
26311 esac
26312
26313 fi
26314
26315
26316 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26317 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26318
26319 cat >>confdefs.h <<_ACEOF
26320 #define HAVE_STRUCT_STAT_ST_RDEV 1
26321 _ACEOF
26322
26323
26324 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26325
26326 fi
26327
26328
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26330 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26331 if test "${ac_cv_struct_tm+set}" = set; then :
26332   $as_echo_n "(cached) " >&6
26333 else
26334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26335 /* end confdefs.h.  */
26336 #include <sys/types.h>
26337 #include <time.h>
26338
26339 int
26340 main ()
26341 {
26342 struct tm tm;
26343                                      int *p = &tm.tm_sec;
26344                                      return !p;
26345   ;
26346   return 0;
26347 }
26348 _ACEOF
26349 if ac_fn_c_try_compile "$LINENO"; then :
26350   ac_cv_struct_tm=time.h
26351 else
26352   ac_cv_struct_tm=sys/time.h
26353 fi
26354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26355 fi
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26357 $as_echo "$ac_cv_struct_tm" >&6; }
26358 if test $ac_cv_struct_tm = sys/time.h; then
26359
26360 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26361
26362 fi
26363
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26365 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26366 if test "${ac_cv_c_const+set}" = set; then :
26367   $as_echo_n "(cached) " >&6
26368 else
26369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26370 /* end confdefs.h.  */
26371
26372 int
26373 main ()
26374 {
26375 /* FIXME: Include the comments suggested by Paul. */
26376 #ifndef __cplusplus
26377   /* Ultrix mips cc rejects this.  */
26378   typedef int charset[2];
26379   const charset cs;
26380   /* SunOS 4.1.1 cc rejects this.  */
26381   char const *const *pcpcc;
26382   char **ppc;
26383   /* NEC SVR4.0.2 mips cc rejects this.  */
26384   struct point {int x, y;};
26385   static struct point const zero = {0,0};
26386   /* AIX XL C 1.02.0.0 rejects this.
26387      It does not let you subtract one const X* pointer from another in
26388      an arm of an if-expression whose if-part is not a constant
26389      expression */
26390   const char *g = "string";
26391   pcpcc = &g + (g ? g-g : 0);
26392   /* HPUX 7.0 cc rejects these. */
26393   ++pcpcc;
26394   ppc = (char**) pcpcc;
26395   pcpcc = (char const *const *) ppc;
26396   { /* SCO 3.2v4 cc rejects this.  */
26397     char *t;
26398     char const *s = 0 ? (char *) 0 : (char const *) 0;
26399
26400     *t++ = 0;
26401     if (s) return 0;
26402   }
26403   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26404     int x[] = {25, 17};
26405     const int *foo = &x[0];
26406     ++foo;
26407   }
26408   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26409     typedef const int *iptr;
26410     iptr p = 0;
26411     ++p;
26412   }
26413   { /* AIX XL C 1.02.0.0 rejects this saying
26414        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26415     struct s { int j; const int *ap[3]; };
26416     struct s *b; b->j = 5;
26417   }
26418   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26419     const int foo = 10;
26420     if (!foo) return 0;
26421   }
26422   return !cs[0] && !zero.x;
26423 #endif
26424
26425   ;
26426   return 0;
26427 }
26428 _ACEOF
26429 if ac_fn_c_try_compile "$LINENO"; then :
26430   ac_cv_c_const=yes
26431 else
26432   ac_cv_c_const=no
26433 fi
26434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26435 fi
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26437 $as_echo "$ac_cv_c_const" >&6; }
26438 if test $ac_cv_c_const = no; then
26439
26440 $as_echo "#define const /**/" >>confdefs.h
26441
26442 fi
26443
26444
26445 # The cast to long int works around a bug in the HP C Compiler
26446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26448 # This bug is HP SR number 8606223364.
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26450 $as_echo_n "checking size of char... " >&6; }
26451 if test "${ac_cv_sizeof_char+set}" = set; then :
26452   $as_echo_n "(cached) " >&6
26453 else
26454   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26455
26456 else
26457   if test "$ac_cv_type_char" = yes; then
26458      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26460 as_fn_error 77 "cannot compute sizeof (char)
26461 See \`config.log' for more details" "$LINENO" 5; }
26462    else
26463      ac_cv_sizeof_char=0
26464    fi
26465 fi
26466
26467 fi
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26469 $as_echo "$ac_cv_sizeof_char" >&6; }
26470
26471
26472
26473 cat >>confdefs.h <<_ACEOF
26474 #define SIZEOF_CHAR $ac_cv_sizeof_char
26475 _ACEOF
26476
26477
26478 # The cast to long int works around a bug in the HP C Compiler
26479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26481 # This bug is HP SR number 8606223364.
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26483 $as_echo_n "checking size of short int... " >&6; }
26484 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26485   $as_echo_n "(cached) " >&6
26486 else
26487   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26488
26489 else
26490   if test "$ac_cv_type_short_int" = yes; then
26491      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26493 as_fn_error 77 "cannot compute sizeof (short int)
26494 See \`config.log' for more details" "$LINENO" 5; }
26495    else
26496      ac_cv_sizeof_short_int=0
26497    fi
26498 fi
26499
26500 fi
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26502 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26503
26504
26505
26506 cat >>confdefs.h <<_ACEOF
26507 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26508 _ACEOF
26509
26510
26511 # The cast to long int works around a bug in the HP C Compiler
26512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26514 # This bug is HP SR number 8606223364.
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26516 $as_echo_n "checking size of int... " >&6; }
26517 if test "${ac_cv_sizeof_int+set}" = set; then :
26518   $as_echo_n "(cached) " >&6
26519 else
26520   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26521
26522 else
26523   if test "$ac_cv_type_int" = yes; then
26524      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26526 as_fn_error 77 "cannot compute sizeof (int)
26527 See \`config.log' for more details" "$LINENO" 5; }
26528    else
26529      ac_cv_sizeof_int=0
26530    fi
26531 fi
26532
26533 fi
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26535 $as_echo "$ac_cv_sizeof_int" >&6; }
26536
26537
26538
26539 cat >>confdefs.h <<_ACEOF
26540 #define SIZEOF_INT $ac_cv_sizeof_int
26541 _ACEOF
26542
26543
26544 # The cast to long int works around a bug in the HP C Compiler
26545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26547 # This bug is HP SR number 8606223364.
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26549 $as_echo_n "checking size of long int... " >&6; }
26550 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26551   $as_echo_n "(cached) " >&6
26552 else
26553   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26554
26555 else
26556   if test "$ac_cv_type_long_int" = yes; then
26557      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26559 as_fn_error 77 "cannot compute sizeof (long int)
26560 See \`config.log' for more details" "$LINENO" 5; }
26561    else
26562      ac_cv_sizeof_long_int=0
26563    fi
26564 fi
26565
26566 fi
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26568 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26569
26570
26571
26572 cat >>confdefs.h <<_ACEOF
26573 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26574 _ACEOF
26575
26576
26577 # The cast to long int works around a bug in the HP C Compiler
26578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26580 # This bug is HP SR number 8606223364.
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26582 $as_echo_n "checking size of long long int... " >&6; }
26583 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26584   $as_echo_n "(cached) " >&6
26585 else
26586   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26587
26588 else
26589   if test "$ac_cv_type_long_long_int" = yes; then
26590      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26592 as_fn_error 77 "cannot compute sizeof (long long int)
26593 See \`config.log' for more details" "$LINENO" 5; }
26594    else
26595      ac_cv_sizeof_long_long_int=0
26596    fi
26597 fi
26598
26599 fi
26600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26601 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26602
26603
26604
26605 cat >>confdefs.h <<_ACEOF
26606 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26607 _ACEOF
26608
26609
26610 # The cast to long int works around a bug in the HP C Compiler
26611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26613 # This bug is HP SR number 8606223364.
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26615 $as_echo_n "checking size of int *... " >&6; }
26616 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26617   $as_echo_n "(cached) " >&6
26618 else
26619   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26620
26621 else
26622   if test "$ac_cv_type_int_p" = yes; then
26623      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26625 as_fn_error 77 "cannot compute sizeof (int *)
26626 See \`config.log' for more details" "$LINENO" 5; }
26627    else
26628      ac_cv_sizeof_int_p=0
26629    fi
26630 fi
26631
26632 fi
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26634 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26635
26636
26637
26638 cat >>confdefs.h <<_ACEOF
26639 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26640 _ACEOF
26641
26642
26643
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26645 $as_echo_n "checking for u_int type... " >&6; }
26646 if test "${ac_cv_have_u_int+set}" = set; then :
26647   $as_echo_n "(cached) " >&6
26648 else
26649
26650        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26651 /* end confdefs.h.  */
26652
26653               #include <sys/types.h>
26654
26655 int
26656 main ()
26657 {
26658
26659               u_int a; a = 1;
26660
26661   ;
26662   return 0;
26663 }
26664 _ACEOF
26665 if ac_fn_c_try_compile "$LINENO"; then :
26666
26667               ac_cv_have_u_int="yes"
26668
26669 else
26670
26671               ac_cv_have_u_int="no"
26672
26673
26674 fi
26675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26676
26677
26678 fi
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26680 $as_echo "$ac_cv_have_u_int" >&6; }
26681 if test "x$ac_cv_have_u_int" = "xyes" ; then
26682    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26683
26684    have_u_int=1
26685 fi
26686
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26688 $as_echo_n "checking for intmax_t type... " >&6; }
26689 if test "${ac_cv_have_intmax_t+set}" = set; then :
26690   $as_echo_n "(cached) " >&6
26691 else
26692
26693        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h.  */
26695
26696               #include <sys/types.h>
26697
26698 int
26699 main ()
26700 {
26701
26702               intmax_t a; a = 1;
26703
26704   ;
26705   return 0;
26706 }
26707 _ACEOF
26708 if ac_fn_c_try_compile "$LINENO"; then :
26709
26710               ac_cv_have_intmax_t="yes"
26711
26712 else
26713
26714               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26715 /* end confdefs.h.  */
26716
26717                      #include <stdint.h>
26718
26719 int
26720 main ()
26721 {
26722
26723                      intmax_t a; a = 1;
26724
26725   ;
26726   return 0;
26727 }
26728 _ACEOF
26729 if ac_fn_c_try_compile "$LINENO"; then :
26730
26731                      ac_cv_have_intmax_t="yes"
26732
26733 else
26734
26735                      ac_cv_have_intmax_t="no"
26736
26737
26738 fi
26739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26740
26741
26742 fi
26743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26744
26745
26746 fi
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26748 $as_echo "$ac_cv_have_intmax_t" >&6; }
26749 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26750    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26751
26752    have_intmax_t=1
26753 fi
26754
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26756 $as_echo_n "checking for u_intmax_t type... " >&6; }
26757 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26758   $as_echo_n "(cached) " >&6
26759 else
26760
26761        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26762 /* end confdefs.h.  */
26763
26764               #include <sys/types.h>
26765
26766 int
26767 main ()
26768 {
26769
26770               u_intmax_t a; a = 1;
26771
26772   ;
26773   return 0;
26774 }
26775 _ACEOF
26776 if ac_fn_c_try_compile "$LINENO"; then :
26777
26778               ac_cv_have_u_intmax_t="yes"
26779
26780 else
26781
26782               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26783 /* end confdefs.h.  */
26784
26785                      #include <stdint.h>
26786
26787 int
26788 main ()
26789 {
26790
26791                     u_intmax_t a; a = 1;
26792
26793   ;
26794   return 0;
26795 }
26796 _ACEOF
26797 if ac_fn_c_try_compile "$LINENO"; then :
26798
26799                     ac_cv_have_u_intmax_t="yes"
26800
26801 else
26802
26803                     ac_cv_have_u_intmax_t="no"
26804
26805
26806 fi
26807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26808
26809
26810 fi
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26812
26813
26814 fi
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26816 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26817 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26818    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26819
26820    have_u_intmax_t=1
26821 fi
26822
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26824 $as_echo_n "checking for intXX_t types... " >&6; }
26825 if test "${ac_cv_have_intxx_t+set}" = set; then :
26826   $as_echo_n "(cached) " >&6
26827 else
26828
26829        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h.  */
26831
26832               #include <sys/types.h>
26833
26834 int
26835 main ()
26836 {
26837
26838               int8_t a; int16_t b; int32_t c; a = b = c = 1;
26839
26840   ;
26841   return 0;
26842 }
26843 _ACEOF
26844 if ac_fn_c_try_compile "$LINENO"; then :
26845
26846               ac_cv_have_intxx_t="yes"
26847
26848 else
26849
26850               ac_cv_have_intxx_t="no"
26851
26852
26853 fi
26854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26855
26856
26857 fi
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26859 $as_echo "$ac_cv_have_intxx_t" >&6; }
26860 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26861    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26862
26863    have_intxx_t=1
26864 fi
26865
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26867 $as_echo_n "checking for int64_t type... " >&6; }
26868 if test "${ac_cv_have_int64_t+set}" = set; then :
26869   $as_echo_n "(cached) " >&6
26870 else
26871
26872        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26873 /* end confdefs.h.  */
26874
26875               #include <sys/types.h>
26876
26877 int
26878 main ()
26879 {
26880
26881               int64_t a; a = 1;
26882
26883   ;
26884   return 0;
26885 }
26886 _ACEOF
26887 if ac_fn_c_try_compile "$LINENO"; then :
26888
26889               ac_cv_have_int64_t="yes"
26890
26891 else
26892
26893               ac_cv_have_int64_t="no"
26894
26895
26896 fi
26897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26898
26899
26900 fi
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26902 $as_echo "$ac_cv_have_int64_t" >&6; }
26903 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26904    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26905
26906    have_int64_t=1
26907 fi
26908
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26910 $as_echo_n "checking for u_intXX_t types... " >&6; }
26911 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26912   $as_echo_n "(cached) " >&6
26913 else
26914
26915        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26916 /* end confdefs.h.  */
26917
26918               #include <sys/types.h>
26919
26920 int
26921 main ()
26922 {
26923
26924               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26925
26926   ;
26927   return 0;
26928 }
26929 _ACEOF
26930 if ac_fn_c_try_compile "$LINENO"; then :
26931
26932              ac_cv_have_u_intxx_t="yes"
26933
26934 else
26935
26936              ac_cv_have_u_intxx_t="no"
26937
26938
26939 fi
26940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26941
26942
26943 fi
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26945 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26946 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26947    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26948
26949    have_u_intxx_t=1
26950 fi
26951
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26953 $as_echo_n "checking for u_int64_t types... " >&6; }
26954 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26955   $as_echo_n "(cached) " >&6
26956 else
26957
26958        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h.  */
26960
26961               #include <sys/types.h>
26962
26963 int
26964 main ()
26965 {
26966
26967               u_int64_t a; a = 1;
26968
26969   ;
26970   return 0;
26971 }
26972 _ACEOF
26973 if ac_fn_c_try_compile "$LINENO"; then :
26974
26975              ac_cv_have_u_int64_t="yes"
26976
26977 else
26978
26979              ac_cv_have_u_int64_t="no"
26980
26981
26982 fi
26983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26984
26985
26986 fi
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26988 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26989 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26990    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26991
26992    have_u_int64_t=1
26993 fi
26994
26995 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26996     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26997 then
26998    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26999 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27000    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27001 /* end confdefs.h.  */
27002
27003           #include <sys/bitypes.h>
27004
27005 int
27006 main ()
27007 {
27008
27009           int8_t a; int16_t b; int32_t c;
27010           u_int8_t e; u_int16_t f; u_int32_t g;
27011           a = b = c = e = f = g = 1;
27012
27013   ;
27014   return 0;
27015 }
27016 _ACEOF
27017 if ac_fn_c_try_compile "$LINENO"; then :
27018
27019           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27020
27021           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27022
27023           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27024
27025           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27026 $as_echo "yes" >&6; }
27027
27028 else
27029
27030           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27031 $as_echo "no" >&6; }
27032
27033
27034 fi
27035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27036 fi
27037
27038 if test -z "$have_u_intxx_t" ; then
27039    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27040 $as_echo_n "checking for uintXX_t types... " >&6; }
27041 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27042   $as_echo_n "(cached) " >&6
27043 else
27044
27045           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27046 /* end confdefs.h.  */
27047
27048                  #include <sys/types.h>
27049
27050 int
27051 main ()
27052 {
27053
27054                  uint8_t a; uint16_t b;
27055                  uint32_t c; a = b = c = 1;
27056
27057   ;
27058   return 0;
27059 }
27060 _ACEOF
27061 if ac_fn_c_try_compile "$LINENO"; then :
27062
27063                 ac_cv_have_uintxx_t="yes"
27064
27065 else
27066
27067                 ac_cv_have_uintxx_t="no"
27068
27069
27070 fi
27071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27072
27073
27074 fi
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27076 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27077    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27078       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27079
27080    fi
27081 fi
27082
27083 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27084     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27085 then
27086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27087 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27089 /* end confdefs.h.  */
27090
27091           #include <sys/bitypes.h>
27092
27093 int
27094 main ()
27095 {
27096
27097           int64_t a; u_int64_t b;
27098           a = b = 1;
27099
27100   ;
27101   return 0;
27102 }
27103 _ACEOF
27104 if ac_fn_c_try_compile "$LINENO"; then :
27105
27106           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27107
27108           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27109
27110           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27111 $as_echo "yes" >&6; }
27112
27113 else
27114
27115           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27116 $as_echo "no" >&6; }
27117
27118
27119 fi
27120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27121 fi
27122
27123 if (test -z "$have_uintxx_t" && \
27124     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27125 then
27126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27127 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27128    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27129 /* end confdefs.h.  */
27130
27131           #include <sys/bitypes.h>
27132
27133 int
27134 main ()
27135 {
27136
27137           uint8_t a; uint16_t b;
27138           uint32_t c; a = b = c = 1;
27139
27140   ;
27141   return 0;
27142 }
27143 _ACEOF
27144 if ac_fn_c_try_compile "$LINENO"; then :
27145
27146           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27147
27148           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27149 $as_echo "yes" >&6; }
27150
27151 else
27152
27153           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27154 $as_echo "no" >&6; }
27155
27156
27157 fi
27158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27159 fi
27160
27161 for ac_func in \
27162    fork \
27163    getcwd \
27164    gethostname \
27165    getpid \
27166    gettimeofday \
27167    setpgid \
27168    setpgrp \
27169    setsid \
27170    signal \
27171    strerror \
27172    strncmp \
27173    strncpy \
27174    vfprintf \
27175
27176 do :
27177   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27178 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27179 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27180   cat >>confdefs.h <<_ACEOF
27181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27182 _ACEOF
27183
27184 else
27185   echo 'configure: cannot find needed function.'; exit 1
27186
27187 fi
27188 done
27189
27190
27191 for ac_func in fchdir
27192 do :
27193   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27194 if test "x$ac_cv_func_fchdir" = x""yes; then :
27195   cat >>confdefs.h <<_ACEOF
27196 #define HAVE_FCHDIR 1
27197 _ACEOF
27198  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27199
27200 fi
27201 done
27202
27203 for ac_func in strtoll
27204 do :
27205   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27206 if test "x$ac_cv_func_strtoll" = x""yes; then :
27207   cat >>confdefs.h <<_ACEOF
27208 #define HAVE_STRTOLL 1
27209 _ACEOF
27210  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27211
27212 fi
27213 done
27214
27215 for ac_func in posix_fadvise
27216 do :
27217   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27218 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27219   cat >>confdefs.h <<_ACEOF
27220 #define HAVE_POSIX_FADVISE 1
27221 _ACEOF
27222
27223 fi
27224 done
27225
27226 for ac_func in fdatasync
27227 do :
27228   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27229 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27230   cat >>confdefs.h <<_ACEOF
27231 #define HAVE_FDATASYNC 1
27232 _ACEOF
27233
27234 fi
27235 done
27236
27237
27238 for ac_func in chflags
27239 do :
27240   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27241 if test "x$ac_cv_func_chflags" = x""yes; then :
27242   cat >>confdefs.h <<_ACEOF
27243 #define HAVE_CHFLAGS 1
27244 _ACEOF
27245
27246 fi
27247 done
27248
27249
27250 for ac_func in snprintf vsnprintf gethostid fseeko
27251 do :
27252   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27254 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27255   cat >>confdefs.h <<_ACEOF
27256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27257 _ACEOF
27258
27259 fi
27260 done
27261
27262
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27264 $as_echo_n "checking for va_copy... " >&6; }
27265 if test "${ba_cv_va_copy+set}" = set; then :
27266   $as_echo_n "(cached) " >&6
27267 else
27268
27269        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27270 /* end confdefs.h.  */
27271
27272               #include <stdarg.h>
27273               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27274               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27275
27276 int
27277 main ()
27278 {
27279
27280               call_use_va_copy(1,2,3)
27281
27282   ;
27283   return 0;
27284 }
27285 _ACEOF
27286 if ac_fn_c_try_link "$LINENO"; then :
27287
27288               ba_cv_va_copy=yes,
27289
27290 else
27291
27292               ba_cv_va_copy=no
27293
27294
27295 fi
27296 rm -f core conftest.err conftest.$ac_objext \
27297     conftest$ac_exeext conftest.$ac_ext
27298
27299
27300 fi
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27302 $as_echo "$ba_cv_va_copy" >&6; }
27303 test $ba_cv_va_copy = yes &&
27304 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27305
27306
27307 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27308 do :
27309   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27310 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27311 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27312   cat >>confdefs.h <<_ACEOF
27313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27314 _ACEOF
27315
27316 fi
27317 done
27318
27319
27320 # If resolver functions are not in libc check for -lnsl or -lresolv.
27321 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27322 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27324 $as_echo "using libc's resolver" >&6; }
27325 else
27326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27327 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27328 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27329   $as_echo_n "(cached) " >&6
27330 else
27331   ac_check_lib_save_LIBS=$LIBS
27332 LIBS="-lnsl  $LIBS"
27333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27334 /* end confdefs.h.  */
27335
27336 /* Override any GCC internal prototype to avoid an error.
27337    Use char because int might match the return type of a GCC
27338    builtin and then its argument prototype would still apply.  */
27339 #ifdef __cplusplus
27340 extern "C"
27341 #endif
27342 char gethostbyname_r ();
27343 int
27344 main ()
27345 {
27346 return gethostbyname_r ();
27347   ;
27348   return 0;
27349 }
27350 _ACEOF
27351 if ac_fn_c_try_link "$LINENO"; then :
27352   ac_cv_lib_nsl_gethostbyname_r=yes
27353 else
27354   ac_cv_lib_nsl_gethostbyname_r=no
27355 fi
27356 rm -f core conftest.err conftest.$ac_objext \
27357     conftest$ac_exeext conftest.$ac_ext
27358 LIBS=$ac_check_lib_save_LIBS
27359 fi
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27361 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27362 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27363   cat >>confdefs.h <<_ACEOF
27364 #define HAVE_LIBNSL 1
27365 _ACEOF
27366
27367   LIBS="-lnsl $LIBS"
27368
27369 fi
27370
27371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27372 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27373 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27374   $as_echo_n "(cached) " >&6
27375 else
27376   ac_check_lib_save_LIBS=$LIBS
27377 LIBS="-lresolv  $LIBS"
27378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27379 /* end confdefs.h.  */
27380
27381 /* Override any GCC internal prototype to avoid an error.
27382    Use char because int might match the return type of a GCC
27383    builtin and then its argument prototype would still apply.  */
27384 #ifdef __cplusplus
27385 extern "C"
27386 #endif
27387 char gethostbyname_r ();
27388 int
27389 main ()
27390 {
27391 return gethostbyname_r ();
27392   ;
27393   return 0;
27394 }
27395 _ACEOF
27396 if ac_fn_c_try_link "$LINENO"; then :
27397   ac_cv_lib_resolv_gethostbyname_r=yes
27398 else
27399   ac_cv_lib_resolv_gethostbyname_r=no
27400 fi
27401 rm -f core conftest.err conftest.$ac_objext \
27402     conftest$ac_exeext conftest.$ac_ext
27403 LIBS=$ac_check_lib_save_LIBS
27404 fi
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27406 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27407 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27408   cat >>confdefs.h <<_ACEOF
27409 #define HAVE_LIBRESOLV 1
27410 _ACEOF
27411
27412   LIBS="-lresolv $LIBS"
27413
27414 fi
27415
27416 fi
27417
27418
27419 for ac_func in inet_pton
27420 do :
27421   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27422 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27423   cat >>confdefs.h <<_ACEOF
27424 #define HAVE_INET_PTON 1
27425 _ACEOF
27426  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27427
27428 fi
27429 done
27430
27431 for ac_func in inet_ntop
27432 do :
27433   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27434 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27435   cat >>confdefs.h <<_ACEOF
27436 #define HAVE_INET_NTOP 1
27437 _ACEOF
27438  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27439
27440 fi
27441 done
27442
27443 for ac_func in gethostbyname2
27444 do :
27445   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27446 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27447   cat >>confdefs.h <<_ACEOF
27448 #define HAVE_GETHOSTBYNAME2 1
27449 _ACEOF
27450  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27451
27452 fi
27453 done
27454
27455
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27457 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27458 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27459   $as_echo_n "(cached) " >&6
27460 else
27461
27462        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27463 /* end confdefs.h.  */
27464
27465               #include <sys/socket.h>
27466
27467 int
27468 main ()
27469 {
27470
27471               struct sockaddr s; s.sa_len;
27472
27473   ;
27474   return 0;
27475 }
27476 _ACEOF
27477 if ac_fn_c_try_compile "$LINENO"; then :
27478
27479              ac_cv_struct_sockaddr_sa_len=yes
27480
27481 else
27482   ac_cv_struct_sockaddr_sa_len=no
27483
27484
27485 fi
27486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27487
27488
27489 fi
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27491 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27492
27493 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27494
27495 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27496
27497 fi
27498
27499 for ac_func in strftime
27500 do :
27501   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27502 if test "x$ac_cv_func_strftime" = x""yes; then :
27503   cat >>confdefs.h <<_ACEOF
27504 #define HAVE_STRFTIME 1
27505 _ACEOF
27506
27507 else
27508   # strftime is in -lintl on SCO UNIX.
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27510 $as_echo_n "checking for strftime in -lintl... " >&6; }
27511 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27512   $as_echo_n "(cached) " >&6
27513 else
27514   ac_check_lib_save_LIBS=$LIBS
27515 LIBS="-lintl  $LIBS"
27516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27517 /* end confdefs.h.  */
27518
27519 /* Override any GCC internal prototype to avoid an error.
27520    Use char because int might match the return type of a GCC
27521    builtin and then its argument prototype would still apply.  */
27522 #ifdef __cplusplus
27523 extern "C"
27524 #endif
27525 char strftime ();
27526 int
27527 main ()
27528 {
27529 return strftime ();
27530   ;
27531   return 0;
27532 }
27533 _ACEOF
27534 if ac_fn_c_try_link "$LINENO"; then :
27535   ac_cv_lib_intl_strftime=yes
27536 else
27537   ac_cv_lib_intl_strftime=no
27538 fi
27539 rm -f core conftest.err conftest.$ac_objext \
27540     conftest$ac_exeext conftest.$ac_ext
27541 LIBS=$ac_check_lib_save_LIBS
27542 fi
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27544 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27545 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27546   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27547
27548 LIBS="-lintl $LIBS"
27549 fi
27550
27551 fi
27552 done
27553
27554 for ac_func in vprintf
27555 do :
27556   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27557 if test "x$ac_cv_func_vprintf" = x""yes; then :
27558   cat >>confdefs.h <<_ACEOF
27559 #define HAVE_VPRINTF 1
27560 _ACEOF
27561
27562 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27563 if test "x$ac_cv_func__doprnt" = x""yes; then :
27564
27565 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27566
27567 fi
27568
27569 fi
27570 done
27571
27572
27573 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27574 # for constant arguments.  Useless!
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27576 $as_echo_n "checking for working alloca.h... " >&6; }
27577 if test "${ac_cv_working_alloca_h+set}" = set; then :
27578   $as_echo_n "(cached) " >&6
27579 else
27580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27581 /* end confdefs.h.  */
27582 #include <alloca.h>
27583 int
27584 main ()
27585 {
27586 char *p = (char *) alloca (2 * sizeof (int));
27587                           if (p) return 0;
27588   ;
27589   return 0;
27590 }
27591 _ACEOF
27592 if ac_fn_c_try_link "$LINENO"; then :
27593   ac_cv_working_alloca_h=yes
27594 else
27595   ac_cv_working_alloca_h=no
27596 fi
27597 rm -f core conftest.err conftest.$ac_objext \
27598     conftest$ac_exeext conftest.$ac_ext
27599 fi
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27601 $as_echo "$ac_cv_working_alloca_h" >&6; }
27602 if test $ac_cv_working_alloca_h = yes; then
27603
27604 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27605
27606 fi
27607
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27609 $as_echo_n "checking for alloca... " >&6; }
27610 if test "${ac_cv_func_alloca_works+set}" = set; then :
27611   $as_echo_n "(cached) " >&6
27612 else
27613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27614 /* end confdefs.h.  */
27615 #ifdef __GNUC__
27616 # define alloca __builtin_alloca
27617 #else
27618 # ifdef _MSC_VER
27619 #  include <malloc.h>
27620 #  define alloca _alloca
27621 # else
27622 #  ifdef HAVE_ALLOCA_H
27623 #   include <alloca.h>
27624 #  else
27625 #   ifdef _AIX
27626  #pragma alloca
27627 #   else
27628 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27629 char *alloca ();
27630 #    endif
27631 #   endif
27632 #  endif
27633 # endif
27634 #endif
27635
27636 int
27637 main ()
27638 {
27639 char *p = (char *) alloca (1);
27640                                     if (p) return 0;
27641   ;
27642   return 0;
27643 }
27644 _ACEOF
27645 if ac_fn_c_try_link "$LINENO"; then :
27646   ac_cv_func_alloca_works=yes
27647 else
27648   ac_cv_func_alloca_works=no
27649 fi
27650 rm -f core conftest.err conftest.$ac_objext \
27651     conftest$ac_exeext conftest.$ac_ext
27652 fi
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27654 $as_echo "$ac_cv_func_alloca_works" >&6; }
27655
27656 if test $ac_cv_func_alloca_works = yes; then
27657
27658 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27659
27660 else
27661   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27662 # that cause trouble.  Some versions do not even contain alloca or
27663 # contain a buggy version.  If you still want to use their alloca,
27664 # use ar to extract alloca.o from them instead of compiling alloca.c.
27665
27666 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27667
27668 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27669
27670
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27672 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27673 if test "${ac_cv_os_cray+set}" = set; then :
27674   $as_echo_n "(cached) " >&6
27675 else
27676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27677 /* end confdefs.h.  */
27678 #if defined CRAY && ! defined CRAY2
27679 webecray
27680 #else
27681 wenotbecray
27682 #endif
27683
27684 _ACEOF
27685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27686   $EGREP "webecray" >/dev/null 2>&1; then :
27687   ac_cv_os_cray=yes
27688 else
27689   ac_cv_os_cray=no
27690 fi
27691 rm -f conftest*
27692
27693 fi
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27695 $as_echo "$ac_cv_os_cray" >&6; }
27696 if test $ac_cv_os_cray = yes; then
27697   for ac_func in _getb67 GETB67 getb67; do
27698     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27699 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27700 if eval test \"x\$"$as_ac_var"\" = 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 for ac_func in getmntinfo
27827 do :
27828   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27829 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
27830   cat >>confdefs.h <<_ACEOF
27831 #define HAVE_GETMNTINFO 1
27832 _ACEOF
27833  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27834
27835 fi
27836 done
27837
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27839 $as_echo_n "checking whether closedir returns void... " >&6; }
27840 if test "${ac_cv_func_closedir_void+set}" = set; then :
27841   $as_echo_n "(cached) " >&6
27842 else
27843   if test "$cross_compiling" = yes; then :
27844   ac_cv_func_closedir_void=yes
27845 else
27846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27847 /* end confdefs.h.  */
27848 $ac_includes_default
27849 #include <$ac_header_dirent>
27850 #ifndef __cplusplus
27851 int closedir ();
27852 #endif
27853
27854 int
27855 main ()
27856 {
27857 return closedir (opendir (".")) != 0;
27858   ;
27859   return 0;
27860 }
27861 _ACEOF
27862 if ac_fn_c_try_run "$LINENO"; then :
27863   ac_cv_func_closedir_void=no
27864 else
27865   ac_cv_func_closedir_void=yes
27866 fi
27867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27868   conftest.$ac_objext conftest.beam conftest.$ac_ext
27869 fi
27870
27871 fi
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27873 $as_echo "$ac_cv_func_closedir_void" >&6; }
27874 if test $ac_cv_func_closedir_void = yes; then
27875
27876 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27877
27878 fi
27879
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27881 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27882 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27883   $as_echo_n "(cached) " >&6
27884 else
27885   if test "$cross_compiling" = yes; then :
27886   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
27887 else
27888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27889 /* end confdefs.h.  */
27890 $ac_includes_default
27891 int
27892 main ()
27893 {
27894 /* If this system has a BSD-style setpgrp which takes arguments,
27895   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27896   exit successfully. */
27897   return setpgrp (1,1) != -1;
27898   ;
27899   return 0;
27900 }
27901 _ACEOF
27902 if ac_fn_c_try_run "$LINENO"; then :
27903   ac_cv_func_setpgrp_void=no
27904 else
27905   ac_cv_func_setpgrp_void=yes
27906 fi
27907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27908   conftest.$ac_objext conftest.beam conftest.$ac_ext
27909 fi
27910
27911 fi
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27913 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27914 if test $ac_cv_func_setpgrp_void = yes; then
27915
27916 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27917
27918 fi
27919             # AC_FUNC_FNMATCH    dnl use local version
27920
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27922 $as_echo_n "checking for gettext in -lintl... " >&6; }
27923 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27924   $as_echo_n "(cached) " >&6
27925 else
27926   ac_check_lib_save_LIBS=$LIBS
27927 LIBS="-lintl  $LIBS"
27928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27929 /* end confdefs.h.  */
27930
27931 /* Override any GCC internal prototype to avoid an error.
27932    Use char because int might match the return type of a GCC
27933    builtin and then its argument prototype would still apply.  */
27934 #ifdef __cplusplus
27935 extern "C"
27936 #endif
27937 char gettext ();
27938 int
27939 main ()
27940 {
27941 return gettext ();
27942   ;
27943   return 0;
27944 }
27945 _ACEOF
27946 if ac_fn_c_try_link "$LINENO"; then :
27947   ac_cv_lib_intl_gettext=yes
27948 else
27949   ac_cv_lib_intl_gettext=no
27950 fi
27951 rm -f core conftest.err conftest.$ac_objext \
27952     conftest$ac_exeext conftest.$ac_ext
27953 LIBS=$ac_check_lib_save_LIBS
27954 fi
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27956 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27957 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27958   LIBS="$LIBS -lintl"
27959 fi
27960
27961
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27963 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27964 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27965   $as_echo_n "(cached) " >&6
27966 else
27967   ac_check_lib_save_LIBS=$LIBS
27968 LIBS="-lsun  $LIBS"
27969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27970 /* end confdefs.h.  */
27971
27972 /* Override any GCC internal prototype to avoid an error.
27973    Use char because int might match the return type of a GCC
27974    builtin and then its argument prototype would still apply.  */
27975 #ifdef __cplusplus
27976 extern "C"
27977 #endif
27978 char getpwnam ();
27979 int
27980 main ()
27981 {
27982 return getpwnam ();
27983   ;
27984   return 0;
27985 }
27986 _ACEOF
27987 if ac_fn_c_try_link "$LINENO"; then :
27988   ac_cv_lib_sun_getpwnam=yes
27989 else
27990   ac_cv_lib_sun_getpwnam=no
27991 fi
27992 rm -f core conftest.err conftest.$ac_objext \
27993     conftest$ac_exeext conftest.$ac_ext
27994 LIBS=$ac_check_lib_save_LIBS
27995 fi
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
27997 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
27998 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
27999   cat >>confdefs.h <<_ACEOF
28000 #define HAVE_LIBSUN 1
28001 _ACEOF
28002
28003   LIBS="-lsun $LIBS"
28004
28005 fi
28006
28007
28008 for ac_header in zlib.h
28009 do :
28010   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28011 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28012   cat >>confdefs.h <<_ACEOF
28013 #define HAVE_ZLIB_H 1
28014 _ACEOF
28015
28016 fi
28017
28018 done
28019
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28021 $as_echo_n "checking for deflate in -lz... " >&6; }
28022 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28023   $as_echo_n "(cached) " >&6
28024 else
28025   ac_check_lib_save_LIBS=$LIBS
28026 LIBS="-lz  $LIBS"
28027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28028 /* end confdefs.h.  */
28029
28030 /* Override any GCC internal prototype to avoid an error.
28031    Use char because int might match the return type of a GCC
28032    builtin and then its argument prototype would still apply.  */
28033 #ifdef __cplusplus
28034 extern "C"
28035 #endif
28036 char deflate ();
28037 int
28038 main ()
28039 {
28040 return deflate ();
28041   ;
28042   return 0;
28043 }
28044 _ACEOF
28045 if ac_fn_c_try_link "$LINENO"; then :
28046   ac_cv_lib_z_deflate=yes
28047 else
28048   ac_cv_lib_z_deflate=no
28049 fi
28050 rm -f core conftest.err conftest.$ac_objext \
28051     conftest$ac_exeext conftest.$ac_ext
28052 LIBS=$ac_check_lib_save_LIBS
28053 fi
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28055 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28056 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28057   ZLIBS="-lz"
28058 fi
28059
28060 have_zlib=no
28061 if test x$ZLIBS = x-lz; then
28062    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28063
28064    have_zlib=yes
28065 fi
28066
28067
28068 AFS_CFLAGS=""
28069 AFS_LIBS=""
28070 support_afs=auto
28071 # Check whether --enable-afs was given.
28072 if test "${enable_afs+set}" = set; then :
28073   enableval=$enable_afs;
28074        if test x$enableval = xyes; then
28075           support_afs=yes
28076        elif test x$enableval = xno; then
28077           support_afs=no
28078        fi
28079
28080
28081 fi
28082
28083
28084 have_afs=no
28085 if test x$support_afs = xyes -o x$support_afs = xauto; then
28086
28087 # Check whether --with-afsdir was given.
28088 if test "${with_afsdir+set}" = set; then :
28089   withval=$with_afsdir; with_afsdir=$withval
28090
28091 fi
28092
28093
28094             if test x$with_afsdir = x; then
28095       for root in /usr /usr/local; do
28096          if test -d ${root}/include/afs/ ; then
28097             with_afsdir=${root}
28098             break
28099          fi
28100       done
28101    fi
28102
28103    AFS_CFLAGS="-I${with_afsdir}/include"
28104
28105    saved_CFLAGS="${CFLAGS}"
28106    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28107
28108    for ac_header in afs/stds.h
28109 do :
28110   ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28111 if test "x$ac_cv_header_afs_stds_h" = x""yes; then :
28112   cat >>confdefs.h <<_ACEOF
28113 #define HAVE_AFS_STDS_H 1
28114 _ACEOF
28115
28116 fi
28117
28118 done
28119
28120
28121    CFLAGS="${saved_CFLAGS}"
28122
28123             for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28124    do
28125       for arch_type in .a .so
28126       do
28127          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28128          pkg=$?
28129          if test $pkg = 0; then
28130             have_afs=yes
28131             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28132             break
28133          fi
28134       done
28135    done
28136
28137    if test x$support_afs = xyes -a $have_afs != yes; then
28138       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
28139   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28140    else
28141       if test $have_afs = yes; then
28142
28143 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28144
28145
28146 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28147
28148       fi
28149    fi
28150 fi
28151
28152
28153
28154
28155 support_acl=auto
28156 # Check whether --enable-acl was given.
28157 if test "${enable_acl+set}" = set; then :
28158   enableval=$enable_acl;
28159        if test x$enableval = xyes; then
28160           support_acl=yes
28161        elif test x$enableval = xno; then
28162           support_acl=no
28163        fi
28164
28165
28166 fi
28167
28168
28169 have_acl=no
28170 have_extended_acl=no
28171 if test x$support_acl = xyes -o x$support_acl = xauto; then
28172    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28173 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28174
28175 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28176
28177 fi
28178
28179
28180    ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28181 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28182
28183           have_acl=yes
28184
28185 else
28186
28187           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28188 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28189 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28190   $as_echo_n "(cached) " >&6
28191 else
28192   ac_check_lib_save_LIBS=$LIBS
28193 LIBS="-lacl  $LIBS"
28194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28195 /* end confdefs.h.  */
28196
28197 /* Override any GCC internal prototype to avoid an error.
28198    Use char because int might match the return type of a GCC
28199    builtin and then its argument prototype would still apply.  */
28200 #ifdef __cplusplus
28201 extern "C"
28202 #endif
28203 char acl_get_file ();
28204 int
28205 main ()
28206 {
28207 return acl_get_file ();
28208   ;
28209   return 0;
28210 }
28211 _ACEOF
28212 if ac_fn_c_try_link "$LINENO"; then :
28213   ac_cv_lib_acl_acl_get_file=yes
28214 else
28215   ac_cv_lib_acl_acl_get_file=no
28216 fi
28217 rm -f core conftest.err conftest.$ac_objext \
28218     conftest$ac_exeext conftest.$ac_ext
28219 LIBS=$ac_check_lib_save_LIBS
28220 fi
28221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28222 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28223 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28224
28225                  have_acl=yes;
28226                  if test $have_afs = yes; then
28227                                                                     if test -d /usr/lib64/; then
28228                        FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28229                     else
28230                        FDLIBS="-L/usr/lib -lacl $FDLIBS"
28231                     fi
28232                  else
28233                     FDLIBS="-lacl $FDLIBS"
28234                  fi
28235
28236 else
28237
28238                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28239 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28240 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28241   $as_echo_n "(cached) " >&6
28242 else
28243   ac_check_lib_save_LIBS=$LIBS
28244 LIBS="-lpacl  $LIBS"
28245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28246 /* end confdefs.h.  */
28247
28248 /* Override any GCC internal prototype to avoid an error.
28249    Use char because int might match the return type of a GCC
28250    builtin and then its argument prototype would still apply.  */
28251 #ifdef __cplusplus
28252 extern "C"
28253 #endif
28254 char acl_get_file ();
28255 int
28256 main ()
28257 {
28258 return acl_get_file ();
28259   ;
28260   return 0;
28261 }
28262 _ACEOF
28263 if ac_fn_c_try_link "$LINENO"; then :
28264   ac_cv_lib_pacl_acl_get_file=yes
28265 else
28266   ac_cv_lib_pacl_acl_get_file=no
28267 fi
28268 rm -f core conftest.err conftest.$ac_objext \
28269     conftest$ac_exeext conftest.$ac_ext
28270 LIBS=$ac_check_lib_save_LIBS
28271 fi
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28273 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28274 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28275
28276                         have_acl=yes;
28277                         FDLIBS="-lpacl $FDLIBS"
28278
28279 else
28280
28281                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28282 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28283 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28284   $as_echo_n "(cached) " >&6
28285 else
28286   ac_check_lib_save_LIBS=$LIBS
28287 LIBS="-lsec  $LIBS"
28288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h.  */
28290
28291 /* Override any GCC internal prototype to avoid an error.
28292    Use char because int might match the return type of a GCC
28293    builtin and then its argument prototype would still apply.  */
28294 #ifdef __cplusplus
28295 extern "C"
28296 #endif
28297 char acltotext ();
28298 int
28299 main ()
28300 {
28301 return acltotext ();
28302   ;
28303   return 0;
28304 }
28305 _ACEOF
28306 if ac_fn_c_try_link "$LINENO"; then :
28307   ac_cv_lib_sec_acltotext=yes
28308 else
28309   ac_cv_lib_sec_acltotext=no
28310 fi
28311 rm -f core conftest.err conftest.$ac_objext \
28312     conftest$ac_exeext conftest.$ac_ext
28313 LIBS=$ac_check_lib_save_LIBS
28314 fi
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28316 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28317 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28318
28319                                have_acl=yes;
28320                                FDLIBS="-lsec $FDLIBS"
28321
28322                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28323 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28324 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28325   $as_echo_n "(cached) " >&6
28326 else
28327   ac_check_lib_save_LIBS=$LIBS
28328 LIBS="-lsec  $LIBS"
28329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28330 /* end confdefs.h.  */
28331
28332 /* Override any GCC internal prototype to avoid an error.
28333    Use char because int might match the return type of a GCC
28334    builtin and then its argument prototype would still apply.  */
28335 #ifdef __cplusplus
28336 extern "C"
28337 #endif
28338 char acl_totext ();
28339 int
28340 main ()
28341 {
28342 return acl_totext ();
28343   ;
28344   return 0;
28345 }
28346 _ACEOF
28347 if ac_fn_c_try_link "$LINENO"; then :
28348   ac_cv_lib_sec_acl_totext=yes
28349 else
28350   ac_cv_lib_sec_acl_totext=no
28351 fi
28352 rm -f core conftest.err conftest.$ac_objext \
28353     conftest$ac_exeext conftest.$ac_ext
28354 LIBS=$ac_check_lib_save_LIBS
28355 fi
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28357 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28358 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28359
28360                                       have_extended_acl=yes
28361
28362
28363 fi
28364
28365
28366
28367 fi
28368
28369
28370
28371 fi
28372
28373
28374
28375 fi
28376
28377
28378
28379 fi
28380
28381
28382    if test x$support_acl = xyes -a $have_acl != yes; then
28383       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28384   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28385    else
28386       if test $have_acl = yes; then
28387
28388 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28389
28390       fi
28391
28392       if test $have_extended_acl = yes; then
28393
28394 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28395
28396       fi
28397    fi
28398 fi
28399
28400 support_xattr=auto
28401 # Check whether --enable-xattr was given.
28402 if test "${enable_xattr+set}" = set; then :
28403   enableval=$enable_xattr;
28404        if test x$enableval = xyes; then
28405           support_xattr=yes
28406        elif test x$enableval = xno; then
28407           support_xattr=no
28408        fi
28409
28410
28411 fi
28412
28413
28414 have_xattr=no
28415 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28416             ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28417 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28418
28419 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28420
28421 fi
28422
28423
28424    ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28425 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28426
28427 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28428
28429 fi
28430
28431
28432    for ac_func in extattr_get_link extattr_set_link extattr_list_link
28433 do :
28434   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28435 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28436 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28437   cat >>confdefs.h <<_ACEOF
28438 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28439 _ACEOF
28440
28441           have_xattr=yes
28442
28443 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28444
28445
28446 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28447
28448
28449 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28450
28451
28452
28453 fi
28454 done
28455
28456
28457    if test $have_xattr = no; then
28458       for ac_func in extattr_get_file extattr_set_file extattr_list_file
28459 do :
28460   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28461 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28462 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28463   cat >>confdefs.h <<_ACEOF
28464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28465 _ACEOF
28466
28467              have_xattr=yes
28468
28469 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28470
28471
28472 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28473
28474
28475 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28476
28477
28478
28479 fi
28480 done
28481
28482    fi
28483
28484    if test $have_xattr = yes; then
28485       have_extattr_string_in_libc=no
28486       for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28487 do :
28488   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28490 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28491   cat >>confdefs.h <<_ACEOF
28492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28493 _ACEOF
28494
28495              have_extattr_string_in_libc=yes
28496
28497 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28498
28499
28500 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28501
28502
28503
28504 fi
28505 done
28506
28507
28508                         if test $have_extattr_string_in_libc = no; then
28509          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28510 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28511 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28512   $as_echo_n "(cached) " >&6
28513 else
28514   ac_check_lib_save_LIBS=$LIBS
28515 LIBS="-lutil  $LIBS"
28516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28517 /* end confdefs.h.  */
28518
28519 /* Override any GCC internal prototype to avoid an error.
28520    Use char because int might match the return type of a GCC
28521    builtin and then its argument prototype would still apply.  */
28522 #ifdef __cplusplus
28523 extern "C"
28524 #endif
28525 char extattr_namespace_to_string extattr_string_to_namespace ();
28526 int
28527 main ()
28528 {
28529 return extattr_namespace_to_string extattr_string_to_namespace ();
28530   ;
28531   return 0;
28532 }
28533 _ACEOF
28534 if ac_fn_c_try_link "$LINENO"; then :
28535   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28536 else
28537   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28538 fi
28539 rm -f core conftest.err conftest.$ac_objext \
28540     conftest$ac_exeext conftest.$ac_ext
28541 LIBS=$ac_check_lib_save_LIBS
28542 fi
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28544 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28545 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28546
28547
28548 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28549
28550
28551 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28552
28553                 FDLIBS="-lutil $FDLIBS"
28554
28555
28556 fi
28557
28558       fi
28559    fi
28560
28561             if test $have_xattr = no; then
28562       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28563 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28564
28565 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28566
28567 fi
28568
28569
28570       for ac_func in llistxattr lgetxattr lsetxattr
28571 do :
28572   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28573 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28574 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28575   cat >>confdefs.h <<_ACEOF
28576 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28577 _ACEOF
28578
28579              have_xattr=yes
28580
28581 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28582
28583
28584 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28585
28586
28587 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28588
28589
28590
28591 fi
28592 done
28593
28594
28595       if test $have_xattr = no; then
28596          for ac_func in listxattr getxattr setxattr
28597 do :
28598   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28600 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28601   cat >>confdefs.h <<_ACEOF
28602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28603 _ACEOF
28604
28605                 have_xattr=yes
28606
28607 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28608
28609
28610 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28611
28612
28613 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28614
28615
28616
28617 fi
28618 done
28619
28620       fi
28621    fi
28622
28623             if test $have_xattr = no; then
28624       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28625 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28626
28627 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28628
28629 fi
28630
28631
28632       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28633 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28634
28635 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28636
28637 fi
28638
28639
28640       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28641 if test "x$ac_cv_header_attr_h" = x""yes; then :
28642
28643 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28644
28645 fi
28646
28647
28648
28649       for ac_func in openat fstatat unlinkat fchownat futimesat
28650 do :
28651   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28653 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28654   cat >>confdefs.h <<_ACEOF
28655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28656 _ACEOF
28657
28658              have_xattr=yes
28659
28660 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28661
28662
28663 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28664
28665
28666 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28667
28668
28669 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28670
28671
28672 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28673
28674
28675
28676 fi
28677 done
28678
28679
28680       if test $have_xattr = yes; then
28681          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28682 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28683 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28684   $as_echo_n "(cached) " >&6
28685 else
28686   ac_check_lib_save_LIBS=$LIBS
28687 LIBS="-lnvpair  $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 nvlist_next_nvpair ();
28698 int
28699 main ()
28700 {
28701 return nvlist_next_nvpair ();
28702   ;
28703   return 0;
28704 }
28705 _ACEOF
28706 if ac_fn_c_try_link "$LINENO"; then :
28707   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28708 else
28709   ac_cv_lib_nvpair_nvlist_next_nvpair=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_nvpair_nvlist_next_nvpair" >&5
28716 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28717 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28718
28719
28720 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28721
28722                 FDLIBS="-lnvpair $FDLIBS"
28723
28724
28725 fi
28726
28727       fi
28728    fi
28729
28730    if test x$support_xattr = xyes -a $have_xattr != yes; then
28731       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
28732   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28733    else
28734       if test $have_xattr = yes; then
28735
28736 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28737
28738       fi
28739    fi
28740 fi
28741
28742 PTHREAD_LIB=""
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28744 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28745 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28746   $as_echo_n "(cached) " >&6
28747 else
28748   ac_check_lib_save_LIBS=$LIBS
28749 LIBS="-lpthread  $LIBS"
28750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28751 /* end confdefs.h.  */
28752
28753 /* Override any GCC internal prototype to avoid an error.
28754    Use char because int might match the return type of a GCC
28755    builtin and then its argument prototype would still apply.  */
28756 #ifdef __cplusplus
28757 extern "C"
28758 #endif
28759 char pthread_create ();
28760 int
28761 main ()
28762 {
28763 return pthread_create ();
28764   ;
28765   return 0;
28766 }
28767 _ACEOF
28768 if ac_fn_c_try_link "$LINENO"; then :
28769   ac_cv_lib_pthread_pthread_create=yes
28770 else
28771   ac_cv_lib_pthread_pthread_create=no
28772 fi
28773 rm -f core conftest.err conftest.$ac_objext \
28774     conftest$ac_exeext conftest.$ac_ext
28775 LIBS=$ac_check_lib_save_LIBS
28776 fi
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28778 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28779 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28780   PTHREAD_LIB="-lpthread"
28781 else
28782
28783        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28784 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28785 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28786   $as_echo_n "(cached) " >&6
28787 else
28788   ac_check_lib_save_LIBS=$LIBS
28789 LIBS="-lpthreads  $LIBS"
28790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28791 /* end confdefs.h.  */
28792
28793 /* Override any GCC internal prototype to avoid an error.
28794    Use char because int might match the return type of a GCC
28795    builtin and then its argument prototype would still apply.  */
28796 #ifdef __cplusplus
28797 extern "C"
28798 #endif
28799 char pthread_create ();
28800 int
28801 main ()
28802 {
28803 return pthread_create ();
28804   ;
28805   return 0;
28806 }
28807 _ACEOF
28808 if ac_fn_c_try_link "$LINENO"; then :
28809   ac_cv_lib_pthreads_pthread_create=yes
28810 else
28811   ac_cv_lib_pthreads_pthread_create=no
28812 fi
28813 rm -f core conftest.err conftest.$ac_objext \
28814     conftest$ac_exeext conftest.$ac_ext
28815 LIBS=$ac_check_lib_save_LIBS
28816 fi
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28818 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28819 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28820   PTHREAD_LIB="-lpthreads"
28821 else
28822
28823               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28824 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28825 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28826   $as_echo_n "(cached) " >&6
28827 else
28828   ac_check_lib_save_LIBS=$LIBS
28829 LIBS="-lc_r  $LIBS"
28830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28831 /* end confdefs.h.  */
28832
28833 /* Override any GCC internal prototype to avoid an error.
28834    Use char because int might match the return type of a GCC
28835    builtin and then its argument prototype would still apply.  */
28836 #ifdef __cplusplus
28837 extern "C"
28838 #endif
28839 char pthread_create ();
28840 int
28841 main ()
28842 {
28843 return pthread_create ();
28844   ;
28845   return 0;
28846 }
28847 _ACEOF
28848 if ac_fn_c_try_link "$LINENO"; then :
28849   ac_cv_lib_c_r_pthread_create=yes
28850 else
28851   ac_cv_lib_c_r_pthread_create=no
28852 fi
28853 rm -f core conftest.err conftest.$ac_objext \
28854     conftest$ac_exeext conftest.$ac_ext
28855 LIBS=$ac_check_lib_save_LIBS
28856 fi
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28858 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28859 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28860   PTHREAD_LIB="-lc_r"
28861 else
28862
28863                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28864 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28865
28866 fi
28867
28868
28869
28870 fi
28871
28872
28873
28874 fi
28875
28876
28877
28878 fi
28879
28880
28881 for ac_header in sys/prctl.h sys/capability.h
28882 do :
28883   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28884 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28885 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28886   cat >>confdefs.h <<_ACEOF
28887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28888 _ACEOF
28889
28890 fi
28891
28892 done
28893
28894 for ac_func in prctl setreuid
28895 do :
28896   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28897 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28898 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28899   cat >>confdefs.h <<_ACEOF
28900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28901 _ACEOF
28902
28903 fi
28904 done
28905
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28907 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28908 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28909   $as_echo_n "(cached) " >&6
28910 else
28911   ac_check_lib_save_LIBS=$LIBS
28912 LIBS="-lcap  $LIBS"
28913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28914 /* end confdefs.h.  */
28915
28916 /* Override any GCC internal prototype to avoid an error.
28917    Use char because int might match the return type of a GCC
28918    builtin and then its argument prototype would still apply.  */
28919 #ifdef __cplusplus
28920 extern "C"
28921 #endif
28922 char cap_set_proc ();
28923 int
28924 main ()
28925 {
28926 return cap_set_proc ();
28927   ;
28928   return 0;
28929 }
28930 _ACEOF
28931 if ac_fn_c_try_link "$LINENO"; then :
28932   ac_cv_lib_cap_cap_set_proc=yes
28933 else
28934   ac_cv_lib_cap_cap_set_proc=no
28935 fi
28936 rm -f core conftest.err conftest.$ac_objext \
28937     conftest$ac_exeext conftest.$ac_ext
28938 LIBS=$ac_check_lib_save_LIBS
28939 fi
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28941 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28942 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28943   CAP_LIBS="-lcap"
28944 else
28945   CAP_LIBS=
28946 fi
28947
28948 if test x$CAP_LIBS = x-lcap; then
28949
28950 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28951
28952 fi
28953
28954
28955
28956 $as_echo "#define FDLIBS 1" >>confdefs.h
28957
28958
28959 CFLAGS=${CFLAGS--O}
28960
28961 if test x$have_gcc = xyes ; then
28962    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28963    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28964 fi
28965 LDFLAGS=${LDFLAGS--O}
28966 DB_LIBS="${SQL_LFLAGS}"
28967 CPPFLAGS="$CPPFLAGS"
28968 CFLAGS="$CFLAGS"
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985 OBJLIST=
28986
28987
28988 lld="lld"
28989 llu="llu"
28990
28991 WCFLAGS=
28992 WLDFLAGS=
28993
28994 PFILES="platforms/Makefile"
28995 PSCMD="ps -e"
28996 WIN32=
28997 MACOSX=
28998
28999 hostname=`uname -n | cut -d '.' -f 1`
29000 if test x${hostname} = x ; then
29001    hostname="localhost"
29002 fi
29003 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29004 if test ! $? = 0; then
29005   hostname="localhost"
29006 fi
29007
29008 case "$DISTNAME" in
29009 aix)
29010    DISTVER=`uname -r`
29011    PSCMD="ps -e -o pid,comm"
29012    PFILES="${PFILES} \
29013       platforms/aix/Makefile"
29014    TAPEDRIVE="/dev/rmt0.1"
29015   ;;
29016 alpha)
29017    DISTVER=`uname -r`
29018    PTHREAD_LIB="-lpthread -lexc"
29019    if test "${CC}" = "gcc" ; then
29020       lld="lld"
29021       llu="llu"
29022    else
29023       lld="ld"
29024       llu="lu"
29025    fi
29026    TAPEDRIVE="/dev/nrmt0"
29027   ;;
29028 bsdi)
29029    DISTVER=`uname -a |awk '{print $3}'`
29030    TAPEDRIVE="/dev/nrmt0"
29031    PTHREAD_LIB="-pthread"
29032    CFLAGS="${CFLAGS} -pthread"
29033    PSCMD="ps -ax -o pid,command"
29034    lld="qd"
29035    llu="qu"
29036    PFILES="${PFILES} \
29037        platforms/bsdi/Makefile \
29038        platforms/bsdi/bacula-fd \
29039        platforms/bsdi/bacula-sd \
29040        platforms/bsdi/bacula-dir"
29041    largefile_support="yes"
29042   ;;
29043 cygwin)
29044    DISTVER=`uname -a |awk '{print $3}'`
29045    TAPEDRIVE="/dev/nrst0"
29046    WIN32=win32
29047    WCFLAGS="-mwindows"
29048    WLDFLAGS="-mwindows"
29049   ;;
29050 darwin)
29051    DISTVER=`uname -r`
29052    TAPEDRIVE="/dev/nst0"
29053    PSCMD="ps -e -o pid,command"
29054    MACOSX=macosx
29055    PFILES="${PFILES} \
29056       platforms/darwin/Makefile"
29057   ;;
29058 osx)
29059    DISTVER=`uname -r`
29060    TAPEDRIVE="/dev/nst0"
29061    PSCMD="ps -e -o pid,command"
29062    MACOSX=macosx
29063    PFILES="${PFILES} \
29064       platforms/osx/Makefile"
29065   ;;
29066 debian)
29067    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29068       DISTNAME="ubuntu"
29069    fi
29070    DISTVER=`cat /etc/debian_version`
29071    if test -f /etc/lsb-release ; then
29072       . /etc/lsb-release
29073       if test "x$DISTRIB_ID" != "x" ; then
29074          DISTNAME=$DISTRIB_ID
29075       fi
29076       if test "x$DISTRIB_RELEASE" != "x" ; then
29077          DISTVER=$DISTRIB_RELEASE
29078       fi
29079    fi
29080    if test "$DISTNAME" = "Ubuntu" ; then
29081       DISTNAME="ubuntu"
29082    fi
29083    TAPEDRIVE="/dev/nst0"
29084    PSCMD="ps -e -o pid,command"
29085    if test "$DISTNAME" = "ubuntu" ; then
29086       PFILES="${PFILES} \
29087          platforms/ubuntu/Makefile \
29088          platforms/ubuntu/bacula-fd \
29089          platforms/ubuntu/bacula-sd \
29090          platforms/ubuntu/bacula-dir"
29091    else
29092       PFILES="${PFILES} \
29093          platforms/debian/Makefile \
29094          platforms/debian/bacula-fd \
29095          platforms/debian/bacula-sd \
29096          platforms/debian/bacula-dir"
29097    fi
29098   ;;
29099 freebsd)
29100    DISTVER=`uname -a |awk '{print $3}'`
29101    VER=`echo $DISTVER | cut -c 1`
29102    if test x$VER = x4 ; then
29103       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29104       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29105    fi
29106    lld="qd"
29107    llu="qu"
29108    TAPEDRIVE="/dev/nrsa0"
29109    PSCMD="ps -ax -o pid,command"
29110    PFILES="${PFILES} \
29111        platforms/freebsd/Makefile \
29112        platforms/freebsd/bacula-fd \
29113        platforms/freebsd/bacula-sd \
29114        platforms/freebsd/bacula-dir"
29115    largefile_support="yes"
29116   ;;
29117 hpux)
29118    PSCMD="UNIX95=1; ps -e -o pid,comm"
29119    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29120    DISTVER=`uname -r`
29121    TAPEDRIVE="/dev/rmt/0hnb"
29122    PTHREAD_LIB="-lpthread"
29123    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29124
29125   ;;
29126 irix)
29127    DISTVER=`uname -r`
29128    TAPEDRIVE="/dev/rmt/0cbn"
29129    PSCMD="ps -e -o pid,comm"
29130    PFILES="${PFILES} \
29131        platforms/irix/Makefile \
29132        platforms/irix/bacula-fd \
29133        platforms/irix/bacula-sd \
29134        platforms/irix/bacula-dir"
29135   ;;
29136 netbsd)
29137    DISTVER=`uname -a |awk '{print $3}'`
29138    lld="qd"
29139    llu="qu"
29140    TAPEDRIVE="/dev/nrst0"
29141    PSCMD="ps -ax -o pid,command"
29142    PTHREAD_LIB="-pthread"
29143    CFLAGS="${CFLAGS} -pthread"
29144   ;;
29145 openbsd)
29146    DISTVER=`uname -a |awk '{print $3}'`
29147    lld="qd"
29148    llu="qu"
29149    TAPEDRIVE="/dev/nrst0"
29150    PSCMD="ps -ax -o pid,command"
29151    PTHREAD_LIB="-pthread"
29152    CFLAGS="${CFLAGS} -pthread"
29153    PFILES="${PFILES} \
29154        platforms/openbsd/Makefile \
29155        platforms/openbsd/bacula-fd \
29156        platforms/openbsd/bacula-sd \
29157        platforms/openbsd/bacula-dir"
29158   ;;
29159 redhat)
29160    if test -f /etc/whitebox-release ; then
29161       f=/etc/whitebox-release
29162    else
29163       f=/etc/redhat-release
29164    fi
29165    if test `cat $f | grep release |\
29166          cut -f 3 -d ' '`x = "Enterprise"x ; then
29167       DISTVER="Enterprise "`cat $f | grep release |\
29168           cut -f 6 -d ' '`
29169    else
29170        DISTVER=`cat /etc/redhat-release | grep release |\
29171            cut -f 5 -d ' '`
29172    fi
29173    TAPEDRIVE="/dev/nst0"
29174    PSCMD="ps -e -o pid,command"
29175    PFILES="${PFILES} \
29176        platforms/redhat/Makefile \
29177        platforms/redhat/bacula-fd \
29178        platforms/redhat/bacula-sd \
29179        platforms/redhat/bacula-dir
29180        "
29181   ;;
29182 mandrake)
29183    DISTVER=`cat /etc/mandrake-release | grep release |\
29184       cut -f 5 -d ' '`
29185    TAPEDRIVE="/dev/nst0"
29186    PSCMD="ps -e -o pid,command"
29187    PFILES="${PFILES} \
29188        platforms/mandrake/Makefile \
29189        platforms/mandrake/bacula-fd \
29190        platforms/mandrake/bacula-sd \
29191        platforms/mandrake/bacula-dir \
29192        "
29193   ;;
29194 gentoo)
29195    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29196    TAPEDRIVE="/dev/nst0"
29197    PSCMD="ps -e -o pid,command"
29198    PFILES="${PFILES} \
29199        platforms/gentoo/Makefile \
29200     platforms/gentoo/bacula-init \
29201        platforms/gentoo/bacula-fd \
29202        platforms/gentoo/bacula-sd \
29203        platforms/gentoo/bacula-dir"
29204   ;;
29205 slackware)
29206    DISTVER=`cat /etc/slackware-version`
29207    TAPEDRIVE="/dev/nst0"
29208    PSCMD="ps -e -o pid,command"
29209    PFILES="${PFILES} \
29210        platforms/slackware/Makefile \
29211        platforms/slackware/rc.bacula-fd \
29212        platforms/slackware/rc.bacula-sd \
29213        platforms/slackware/rc.bacula-dir\
29214        platforms/slackware/functions.bacula"
29215   ;;
29216 solaris)
29217    DISTVER=`uname -r`
29218    TAPEDRIVE="/dev/rmt/0cbn"
29219    PSCMD="ps -e -o pid,comm"
29220    PFILES="${PFILES} \
29221        platforms/solaris/Makefile \
29222        platforms/solaris/bacula-fd \
29223        platforms/solaris/bacula-sd \
29224        platforms/solaris/bacula-dir"
29225    if test x$DISTVER = x5.6 ; then
29226        $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29227
29228    fi
29229    LIBS="$LIBS -lresolv -lrt"
29230   ;;
29231 suse)
29232    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29233        cut -f 3 -d ' '`
29234    TAPEDRIVE="/dev/nst0"
29235    PSCMD="ps -e -o pid,command"
29236    PFILES="${PFILES} \
29237        platforms/suse/Makefile \
29238        platforms/suse/bacula-fd \
29239        platforms/suse/bacula-sd \
29240        platforms/suse/bacula-dir \
29241        platforms/suse/bacula"
29242   ;;
29243 suse5)
29244    DISTNAME=suse
29245    DISTVER=5.x
29246    TAPEDRIVE="/dev/nst0"
29247    PSCMD="ps -e -o pid,command"
29248    PFILES="${PFILES} \
29249        platforms/suse/Makefile \
29250        platforms/suse/bacula-fd \
29251        platforms/suse/bacula-sd \
29252        platforms/suse/bacula-dir"
29253   ;;
29254 unknown)
29255    DISTVER=unknown
29256    TAPEDRIVE="/dev/nst0"
29257   ;;
29258 *)
29259   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29260   ;;
29261 esac
29262
29263
29264
29265 LIBS="$PTHREAD_LIB $LIBS"
29266
29267 cat >>confdefs.h <<_ACEOF
29268 #define lld "$lld"
29269 _ACEOF
29270
29271 cat >>confdefs.h <<_ACEOF
29272 #define llu "$llu"
29273 _ACEOF
29274
29275
29276
29277
29278
29279
29280
29281
29282 MCOMMON=./autoconf/Make.common
29283
29284
29285 if test "x${subsysdir}" = "x${sbindir}" ; then
29286    echo " "
29287    echo " "
29288    echo "You have set both --sbindir and --with-subsys-dir"
29289    echo "  equal to: ${subsysdir} "
29290    echo "This is not permitted. Please reconfigure."
29291    echo " "
29292    echo "Aborting configuration ..."
29293    echo " "
29294    echo " "
29295    exit 1
29296 fi
29297
29298 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
29299
29300 ac_config_commands="$ac_config_commands default"
29301
29302 cat >confcache <<\_ACEOF
29303 # This file is a shell script that caches the results of configure
29304 # tests run on this system so they can be shared between configure
29305 # scripts and configure runs, see configure's option --config-cache.
29306 # It is not useful on other systems.  If it contains results you don't
29307 # want to keep, you may remove or edit it.
29308 #
29309 # config.status only pays attention to the cache file if you give it
29310 # the --recheck option to rerun configure.
29311 #
29312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29314 # following values.
29315
29316 _ACEOF
29317
29318 # The following way of writing the cache mishandles newlines in values,
29319 # but we know of no workaround that is simple, portable, and efficient.
29320 # So, we kill variables containing newlines.
29321 # Ultrix sh set writes to stderr and can't be redirected directly,
29322 # and sets the high bit in the cache file unless we assign to the vars.
29323 (
29324   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29325     eval ac_val=\$$ac_var
29326     case $ac_val in #(
29327     *${as_nl}*)
29328       case $ac_var in #(
29329       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29331       esac
29332       case $ac_var in #(
29333       _ | IFS | as_nl) ;; #(
29334       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29335       *) { eval $ac_var=; unset $ac_var;} ;;
29336       esac ;;
29337     esac
29338   done
29339
29340   (set) 2>&1 |
29341     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29342     *${as_nl}ac_space=\ *)
29343       # `set' does not quote correctly, so add quotes: double-quote
29344       # substitution turns \\\\ into \\, and sed turns \\ into \.
29345       sed -n \
29346         "s/'/'\\\\''/g;
29347           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29348       ;; #(
29349     *)
29350       # `set' quotes correctly as required by POSIX, so do not add quotes.
29351       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29352       ;;
29353     esac |
29354     sort
29355 ) |
29356   sed '
29357      /^ac_cv_env_/b end
29358      t clear
29359      :clear
29360      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29361      t end
29362      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29363      :end' >>confcache
29364 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29365   if test -w "$cache_file"; then
29366     test "x$cache_file" != "x/dev/null" &&
29367       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29368 $as_echo "$as_me: updating cache $cache_file" >&6;}
29369     cat confcache >$cache_file
29370   else
29371     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29372 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29373   fi
29374 fi
29375 rm -f confcache
29376
29377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29378 # Let make expand exec_prefix.
29379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29380
29381 DEFS=-DHAVE_CONFIG_H
29382
29383 ac_libobjs=
29384 ac_ltlibobjs=
29385 U=
29386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29387   # 1. Remove the extension, and $U if already installed.
29388   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29389   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29390   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29391   #    will be set to the directory where LIBOBJS objects are built.
29392   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29393   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29394 done
29395 LIBOBJS=$ac_libobjs
29396
29397 LTLIBOBJS=$ac_ltlibobjs
29398
29399
29400
29401 : ${CONFIG_STATUS=./config.status}
29402 ac_write_fail=0
29403 ac_clean_files_save=$ac_clean_files
29404 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29407 as_write_fail=0
29408 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29409 #! $SHELL
29410 # Generated by $as_me.
29411 # Run this file to recreate the current configuration.
29412 # Compiler output produced by configure, useful for debugging
29413 # configure, is in config.log if it exists.
29414
29415 debug=false
29416 ac_cs_recheck=false
29417 ac_cs_silent=false
29418
29419 SHELL=\${CONFIG_SHELL-$SHELL}
29420 export SHELL
29421 _ASEOF
29422 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29423 ## -------------------- ##
29424 ## M4sh Initialization. ##
29425 ## -------------------- ##
29426
29427 # Be more Bourne compatible
29428 DUALCASE=1; export DUALCASE # for MKS sh
29429 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29430   emulate sh
29431   NULLCMD=:
29432   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29433   # is contrary to our usage.  Disable this feature.
29434   alias -g '${1+"$@"}'='"$@"'
29435   setopt NO_GLOB_SUBST
29436 else
29437   case `(set -o) 2>/dev/null` in #(
29438   *posix*) :
29439     set -o posix ;; #(
29440   *) :
29441      ;;
29442 esac
29443 fi
29444
29445
29446 as_nl='
29447 '
29448 export as_nl
29449 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29450 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29453 # Prefer a ksh shell builtin over an external printf program on Solaris,
29454 # but without wasting forks for bash or zsh.
29455 if test -z "$BASH_VERSION$ZSH_VERSION" \
29456     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29457   as_echo='print -r --'
29458   as_echo_n='print -rn --'
29459 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29460   as_echo='printf %s\n'
29461   as_echo_n='printf %s'
29462 else
29463   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29464     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29465     as_echo_n='/usr/ucb/echo -n'
29466   else
29467     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29468     as_echo_n_body='eval
29469       arg=$1;
29470       case $arg in #(
29471       *"$as_nl"*)
29472         expr "X$arg" : "X\\(.*\\)$as_nl";
29473         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29474       esac;
29475       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29476     '
29477     export as_echo_n_body
29478     as_echo_n='sh -c $as_echo_n_body as_echo'
29479   fi
29480   export as_echo_body
29481   as_echo='sh -c $as_echo_body as_echo'
29482 fi
29483
29484 # The user is always right.
29485 if test "${PATH_SEPARATOR+set}" != set; then
29486   PATH_SEPARATOR=:
29487   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29488     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29489       PATH_SEPARATOR=';'
29490   }
29491 fi
29492
29493
29494 # IFS
29495 # We need space, tab and new line, in precisely that order.  Quoting is
29496 # there to prevent editors from complaining about space-tab.
29497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29498 # splitting by setting IFS to empty value.)
29499 IFS=" ""        $as_nl"
29500
29501 # Find who we are.  Look in the path if we contain no directory separator.
29502 case $0 in #((
29503   *[\\/]* ) as_myself=$0 ;;
29504   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29505 for as_dir in $PATH
29506 do
29507   IFS=$as_save_IFS
29508   test -z "$as_dir" && as_dir=.
29509     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29510   done
29511 IFS=$as_save_IFS
29512
29513      ;;
29514 esac
29515 # We did not find ourselves, most probably we were run as `sh COMMAND'
29516 # in which case we are not to be found in the path.
29517 if test "x$as_myself" = x; then
29518   as_myself=$0
29519 fi
29520 if test ! -f "$as_myself"; then
29521   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29522   exit 1
29523 fi
29524
29525 # Unset variables that we do not need and which cause bugs (e.g. in
29526 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29527 # suppresses any "Segmentation fault" message there.  '((' could
29528 # trigger a bug in pdksh 5.2.14.
29529 for as_var in BASH_ENV ENV MAIL MAILPATH
29530 do eval test x\${$as_var+set} = xset \
29531   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29532 done
29533 PS1='$ '
29534 PS2='> '
29535 PS4='+ '
29536
29537 # NLS nuisances.
29538 LC_ALL=C
29539 export LC_ALL
29540 LANGUAGE=C
29541 export LANGUAGE
29542
29543 # CDPATH.
29544 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29545
29546
29547 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29548 # ----------------------------------------
29549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29551 # script with STATUS, using 1 if that was 0.
29552 as_fn_error ()
29553 {
29554   as_status=$1; test $as_status -eq 0 && as_status=1
29555   if test "$4"; then
29556     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29557     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29558   fi
29559   $as_echo "$as_me: error: $2" >&2
29560   as_fn_exit $as_status
29561 } # as_fn_error
29562
29563
29564 # as_fn_set_status STATUS
29565 # -----------------------
29566 # Set $? to STATUS, without forking.
29567 as_fn_set_status ()
29568 {
29569   return $1
29570 } # as_fn_set_status
29571
29572 # as_fn_exit STATUS
29573 # -----------------
29574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29575 as_fn_exit ()
29576 {
29577   set +e
29578   as_fn_set_status $1
29579   exit $1
29580 } # as_fn_exit
29581
29582 # as_fn_unset VAR
29583 # ---------------
29584 # Portably unset VAR.
29585 as_fn_unset ()
29586 {
29587   { eval $1=; unset $1;}
29588 }
29589 as_unset=as_fn_unset
29590 # as_fn_append VAR VALUE
29591 # ----------------------
29592 # Append the text in VALUE to the end of the definition contained in VAR. Take
29593 # advantage of any shell optimizations that allow amortized linear growth over
29594 # repeated appends, instead of the typical quadratic growth present in naive
29595 # implementations.
29596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29597   eval 'as_fn_append ()
29598   {
29599     eval $1+=\$2
29600   }'
29601 else
29602   as_fn_append ()
29603   {
29604     eval $1=\$$1\$2
29605   }
29606 fi # as_fn_append
29607
29608 # as_fn_arith ARG...
29609 # ------------------
29610 # Perform arithmetic evaluation on the ARGs, and store the result in the
29611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29612 # must be portable across $(()) and expr.
29613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29614   eval 'as_fn_arith ()
29615   {
29616     as_val=$(( $* ))
29617   }'
29618 else
29619   as_fn_arith ()
29620   {
29621     as_val=`expr "$@" || test $? -eq 1`
29622   }
29623 fi # as_fn_arith
29624
29625
29626 if expr a : '\(a\)' >/dev/null 2>&1 &&
29627    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29628   as_expr=expr
29629 else
29630   as_expr=false
29631 fi
29632
29633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29634   as_basename=basename
29635 else
29636   as_basename=false
29637 fi
29638
29639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29640   as_dirname=dirname
29641 else
29642   as_dirname=false
29643 fi
29644
29645 as_me=`$as_basename -- "$0" ||
29646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29647          X"$0" : 'X\(//\)$' \| \
29648          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29649 $as_echo X/"$0" |
29650     sed '/^.*\/\([^/][^/]*\)\/*$/{
29651             s//\1/
29652             q
29653           }
29654           /^X\/\(\/\/\)$/{
29655             s//\1/
29656             q
29657           }
29658           /^X\/\(\/\).*/{
29659             s//\1/
29660             q
29661           }
29662           s/.*/./; q'`
29663
29664 # Avoid depending upon Character Ranges.
29665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29668 as_cr_digits='0123456789'
29669 as_cr_alnum=$as_cr_Letters$as_cr_digits
29670
29671 ECHO_C= ECHO_N= ECHO_T=
29672 case `echo -n x` in #(((((
29673 -n*)
29674   case `echo 'xy\c'` in
29675   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29676   xy)  ECHO_C='\c';;
29677   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29678        ECHO_T=' ';;
29679   esac;;
29680 *)
29681   ECHO_N='-n';;
29682 esac
29683
29684 rm -f conf$$ conf$$.exe conf$$.file
29685 if test -d conf$$.dir; then
29686   rm -f conf$$.dir/conf$$.file
29687 else
29688   rm -f conf$$.dir
29689   mkdir conf$$.dir 2>/dev/null
29690 fi
29691 if (echo >conf$$.file) 2>/dev/null; then
29692   if ln -s conf$$.file conf$$ 2>/dev/null; then
29693     as_ln_s='ln -s'
29694     # ... but there are two gotchas:
29695     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29696     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29697     # In both cases, we have to default to `cp -p'.
29698     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29699       as_ln_s='cp -p'
29700   elif ln conf$$.file conf$$ 2>/dev/null; then
29701     as_ln_s=ln
29702   else
29703     as_ln_s='cp -p'
29704   fi
29705 else
29706   as_ln_s='cp -p'
29707 fi
29708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29709 rmdir conf$$.dir 2>/dev/null
29710
29711
29712 # as_fn_mkdir_p
29713 # -------------
29714 # Create "$as_dir" as a directory, including parents if necessary.
29715 as_fn_mkdir_p ()
29716 {
29717
29718   case $as_dir in #(
29719   -*) as_dir=./$as_dir;;
29720   esac
29721   test -d "$as_dir" || eval $as_mkdir_p || {
29722     as_dirs=
29723     while :; do
29724       case $as_dir in #(
29725       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29726       *) as_qdir=$as_dir;;
29727       esac
29728       as_dirs="'$as_qdir' $as_dirs"
29729       as_dir=`$as_dirname -- "$as_dir" ||
29730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29731          X"$as_dir" : 'X\(//\)[^/]' \| \
29732          X"$as_dir" : 'X\(//\)$' \| \
29733          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29734 $as_echo X"$as_dir" |
29735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29736             s//\1/
29737             q
29738           }
29739           /^X\(\/\/\)[^/].*/{
29740             s//\1/
29741             q
29742           }
29743           /^X\(\/\/\)$/{
29744             s//\1/
29745             q
29746           }
29747           /^X\(\/\).*/{
29748             s//\1/
29749             q
29750           }
29751           s/.*/./; q'`
29752       test -d "$as_dir" && break
29753     done
29754     test -z "$as_dirs" || eval "mkdir $as_dirs"
29755   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29756
29757
29758 } # as_fn_mkdir_p
29759 if mkdir -p . 2>/dev/null; then
29760   as_mkdir_p='mkdir -p "$as_dir"'
29761 else
29762   test -d ./-p && rmdir ./-p
29763   as_mkdir_p=false
29764 fi
29765
29766 if test -x / >/dev/null 2>&1; then
29767   as_test_x='test -x'
29768 else
29769   if ls -dL / >/dev/null 2>&1; then
29770     as_ls_L_option=L
29771   else
29772     as_ls_L_option=
29773   fi
29774   as_test_x='
29775     eval sh -c '\''
29776       if test -d "$1"; then
29777         test -d "$1/.";
29778       else
29779         case $1 in #(
29780         -*)set "./$1";;
29781         esac;
29782         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29783         ???[sx]*):;;*)false;;esac;fi
29784     '\'' sh
29785   '
29786 fi
29787 as_executable_p=$as_test_x
29788
29789 # Sed expression to map a string onto a valid CPP name.
29790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29791
29792 # Sed expression to map a string onto a valid variable name.
29793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29794
29795
29796 exec 6>&1
29797 ## ----------------------------------- ##
29798 ## Main body of $CONFIG_STATUS script. ##
29799 ## ----------------------------------- ##
29800 _ASEOF
29801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29802
29803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29804 # Save the log message, to keep $0 and so on meaningful, and to
29805 # report actual input values of CONFIG_FILES etc. instead of their
29806 # values after options handling.
29807 ac_log="
29808 This file was extended by $as_me, which was
29809 generated by GNU Autoconf 2.66.  Invocation command line was
29810
29811   CONFIG_FILES    = $CONFIG_FILES
29812   CONFIG_HEADERS  = $CONFIG_HEADERS
29813   CONFIG_LINKS    = $CONFIG_LINKS
29814   CONFIG_COMMANDS = $CONFIG_COMMANDS
29815   $ $0 $@
29816
29817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29818 "
29819
29820 _ACEOF
29821
29822 case $ac_config_files in *"
29823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29824 esac
29825
29826 case $ac_config_headers in *"
29827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29828 esac
29829
29830
29831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29832 # Files that config.status was made for.
29833 config_files="$ac_config_files"
29834 config_headers="$ac_config_headers"
29835 config_commands="$ac_config_commands"
29836
29837 _ACEOF
29838
29839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29840 ac_cs_usage="\
29841 \`$as_me' instantiates files and other configuration actions
29842 from templates according to the current configuration.  Unless the files
29843 and actions are specified as TAGs, all are instantiated by default.
29844
29845 Usage: $0 [OPTION]... [TAG]...
29846
29847   -h, --help       print this help, then exit
29848   -V, --version    print version number and configuration settings, then exit
29849       --config     print configuration, then exit
29850   -q, --quiet, --silent
29851                    do not print progress messages
29852   -d, --debug      don't remove temporary files
29853       --recheck    update $as_me by reconfiguring in the same conditions
29854       --file=FILE[:TEMPLATE]
29855                    instantiate the configuration file FILE
29856       --header=FILE[:TEMPLATE]
29857                    instantiate the configuration header FILE
29858
29859 Configuration files:
29860 $config_files
29861
29862 Configuration headers:
29863 $config_headers
29864
29865 Configuration commands:
29866 $config_commands
29867
29868 Report bugs to the package provider."
29869
29870 _ACEOF
29871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29873 ac_cs_version="\\
29874 config.status
29875 configured by $0, generated by GNU Autoconf 2.66,
29876   with options \\"\$ac_cs_config\\"
29877
29878 Copyright (C) 2010 Free Software Foundation, Inc.
29879 This config.status script is free software; the Free Software Foundation
29880 gives unlimited permission to copy, distribute and modify it."
29881
29882 ac_pwd='$ac_pwd'
29883 srcdir='$srcdir'
29884 INSTALL='$INSTALL'
29885 AWK='$AWK'
29886 test -n "\$AWK" || AWK=awk
29887 _ACEOF
29888
29889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29890 # The default lists apply if the user does not specify any file.
29891 ac_need_defaults=:
29892 while test $# != 0
29893 do
29894   case $1 in
29895   --*=*)
29896     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29897     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29898     ac_shift=:
29899     ;;
29900   *)
29901     ac_option=$1
29902     ac_optarg=$2
29903     ac_shift=shift
29904     ;;
29905   esac
29906
29907   case $ac_option in
29908   # Handling of the options.
29909   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29910     ac_cs_recheck=: ;;
29911   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29912     $as_echo "$ac_cs_version"; exit ;;
29913   --config | --confi | --conf | --con | --co | --c )
29914     $as_echo "$ac_cs_config"; exit ;;
29915   --debug | --debu | --deb | --de | --d | -d )
29916     debug=: ;;
29917   --file | --fil | --fi | --f )
29918     $ac_shift
29919     case $ac_optarg in
29920     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29921     esac
29922     as_fn_append CONFIG_FILES " '$ac_optarg'"
29923     ac_need_defaults=false;;
29924   --header | --heade | --head | --hea )
29925     $ac_shift
29926     case $ac_optarg in
29927     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29928     esac
29929     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29930     ac_need_defaults=false;;
29931   --he | --h)
29932     # Conflict between --help and --header
29933     as_fn_error $? "ambiguous option: \`$1'
29934 Try \`$0 --help' for more information.";;
29935   --help | --hel | -h )
29936     $as_echo "$ac_cs_usage"; exit ;;
29937   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29938   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29939     ac_cs_silent=: ;;
29940
29941   # This is an error.
29942   -*) as_fn_error $? "unrecognized option: \`$1'
29943 Try \`$0 --help' for more information." ;;
29944
29945   *) as_fn_append ac_config_targets " $1"
29946      ac_need_defaults=false ;;
29947
29948   esac
29949   shift
29950 done
29951
29952 ac_configure_extra_args=
29953
29954 if $ac_cs_silent; then
29955   exec 6>/dev/null
29956   ac_configure_extra_args="$ac_configure_extra_args --silent"
29957 fi
29958
29959 _ACEOF
29960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29961 if \$ac_cs_recheck; then
29962   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29963   shift
29964   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29965   CONFIG_SHELL='$SHELL'
29966   export CONFIG_SHELL
29967   exec "\$@"
29968 fi
29969
29970 _ACEOF
29971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29972 exec 5>>config.log
29973 {
29974   echo
29975   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29976 ## Running $as_me. ##
29977 _ASBOX
29978   $as_echo "$ac_log"
29979 } >&5
29980
29981 _ACEOF
29982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29983 #
29984 # INIT-COMMANDS
29985 #
29986
29987
29988 # The HP-UX ksh and POSIX shell print the target directory to stdout
29989 # if CDPATH is set.
29990 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29991
29992 sed_quote_subst='$sed_quote_subst'
29993 double_quote_subst='$double_quote_subst'
29994 delay_variable_subst='$delay_variable_subst'
29995 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29996 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29997 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29998 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29999 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30000 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30001 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30002 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30003 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30004 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30005 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30006 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30007 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30008 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30009 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30010 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30011 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30012 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30013 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30014 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30015 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30016 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30017 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30018 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30019 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30020 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30021 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30022 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30023 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30024 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30025 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30026 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30027 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30028 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30029 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30030 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30031 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30032 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30033 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30034 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30035 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30036 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30037 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30038 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30039 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"`'
30040 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"`'
30041 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30042 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30043 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30044 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30045 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30046 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30047 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30048 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30049 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30050 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30051 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30052 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30053 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30054 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30055 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30056 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30057 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30058 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30059 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30060 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30061 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30062 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30063 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30064 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30065 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30066 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30067 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30068 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30069 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30070 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30071 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30072 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30073 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30074 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30075 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30076 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30077 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30078 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30079 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30080 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30081 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30082 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30083 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30084 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30085 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30086 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30087 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30088 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30089 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30090 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30091 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30092 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30093 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30094 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30095 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30096 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30097 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30098 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30099 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30100 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30101 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30102 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30103 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30104 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30105 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30106 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30107 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30108 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30109 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30110 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30111 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30112 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30113 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30114 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30115 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30116 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30117 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30118 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30119 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30120 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30121 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30122 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30123 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30124 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30125 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30126 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30127 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30128 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30129 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30130 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30131 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30132 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30133 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30134 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30135 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30136 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30137 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30138 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30139 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30140 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30141 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30142 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30143 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30144 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30145 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30146 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30147 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30148 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30149 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30150 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30151 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30152 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30153 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30154 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30155 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30156 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30157 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30158 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30159 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30160 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30161 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30162 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30163 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30164 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30165 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30166
30167 LTCC='$LTCC'
30168 LTCFLAGS='$LTCFLAGS'
30169 compiler='$compiler_DEFAULT'
30170
30171 # Quote evaled strings.
30172 for var in SED \
30173 GREP \
30174 EGREP \
30175 FGREP \
30176 LD \
30177 NM \
30178 LN_S \
30179 lt_SP2NL \
30180 lt_NL2SP \
30181 reload_flag \
30182 OBJDUMP \
30183 deplibs_check_method \
30184 file_magic_cmd \
30185 AR \
30186 AR_FLAGS \
30187 STRIP \
30188 RANLIB \
30189 CC \
30190 CFLAGS \
30191 compiler \
30192 lt_cv_sys_global_symbol_pipe \
30193 lt_cv_sys_global_symbol_to_cdecl \
30194 lt_cv_sys_global_symbol_to_c_name_address \
30195 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30196 SHELL \
30197 ECHO \
30198 lt_prog_compiler_no_builtin_flag \
30199 lt_prog_compiler_wl \
30200 lt_prog_compiler_pic \
30201 lt_prog_compiler_static \
30202 lt_cv_prog_compiler_c_o \
30203 need_locks \
30204 DSYMUTIL \
30205 NMEDIT \
30206 LIPO \
30207 OTOOL \
30208 OTOOL64 \
30209 shrext_cmds \
30210 export_dynamic_flag_spec \
30211 whole_archive_flag_spec \
30212 compiler_needs_object \
30213 with_gnu_ld \
30214 allow_undefined_flag \
30215 no_undefined_flag \
30216 hardcode_libdir_flag_spec \
30217 hardcode_libdir_flag_spec_ld \
30218 hardcode_libdir_separator \
30219 fix_srcfile_path \
30220 exclude_expsyms \
30221 include_expsyms \
30222 file_list_spec \
30223 variables_saved_for_relink \
30224 libname_spec \
30225 library_names_spec \
30226 soname_spec \
30227 finish_eval \
30228 old_striplib \
30229 striplib \
30230 compiler_lib_search_dirs \
30231 predep_objects \
30232 postdep_objects \
30233 predeps \
30234 postdeps \
30235 compiler_lib_search_path \
30236 LD_CXX \
30237 compiler_CXX \
30238 lt_prog_compiler_no_builtin_flag_CXX \
30239 lt_prog_compiler_wl_CXX \
30240 lt_prog_compiler_pic_CXX \
30241 lt_prog_compiler_static_CXX \
30242 lt_cv_prog_compiler_c_o_CXX \
30243 export_dynamic_flag_spec_CXX \
30244 whole_archive_flag_spec_CXX \
30245 compiler_needs_object_CXX \
30246 with_gnu_ld_CXX \
30247 allow_undefined_flag_CXX \
30248 no_undefined_flag_CXX \
30249 hardcode_libdir_flag_spec_CXX \
30250 hardcode_libdir_flag_spec_ld_CXX \
30251 hardcode_libdir_separator_CXX \
30252 fix_srcfile_path_CXX \
30253 exclude_expsyms_CXX \
30254 include_expsyms_CXX \
30255 file_list_spec_CXX \
30256 compiler_lib_search_dirs_CXX \
30257 predep_objects_CXX \
30258 postdep_objects_CXX \
30259 predeps_CXX \
30260 postdeps_CXX \
30261 compiler_lib_search_path_CXX; do
30262     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30263     *[\\\\\\\`\\"\\\$]*)
30264       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30265       ;;
30266     *)
30267       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30268       ;;
30269     esac
30270 done
30271
30272 # Double-quote double-evaled strings.
30273 for var in reload_cmds \
30274 old_postinstall_cmds \
30275 old_postuninstall_cmds \
30276 old_archive_cmds \
30277 extract_expsyms_cmds \
30278 old_archive_from_new_cmds \
30279 old_archive_from_expsyms_cmds \
30280 archive_cmds \
30281 archive_expsym_cmds \
30282 module_cmds \
30283 module_expsym_cmds \
30284 export_symbols_cmds \
30285 prelink_cmds \
30286 postinstall_cmds \
30287 postuninstall_cmds \
30288 finish_cmds \
30289 sys_lib_search_path_spec \
30290 sys_lib_dlsearch_path_spec \
30291 old_archive_cmds_CXX \
30292 old_archive_from_new_cmds_CXX \
30293 old_archive_from_expsyms_cmds_CXX \
30294 archive_cmds_CXX \
30295 archive_expsym_cmds_CXX \
30296 module_cmds_CXX \
30297 module_expsym_cmds_CXX \
30298 export_symbols_cmds_CXX \
30299 prelink_cmds_CXX; do
30300     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30301     *[\\\\\\\`\\"\\\$]*)
30302       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30303       ;;
30304     *)
30305       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30306       ;;
30307     esac
30308 done
30309
30310 # Fix-up fallback echo if it was mangled by the above quoting rules.
30311 case \$lt_ECHO in
30312 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30313   ;;
30314 esac
30315
30316 ac_aux_dir='$ac_aux_dir'
30317 xsi_shell='$xsi_shell'
30318 lt_shell_append='$lt_shell_append'
30319
30320 # See if we are running on zsh, and set the options which allow our
30321 # commands through without removal of \ escapes INIT.
30322 if test -n "\${ZSH_VERSION+set}" ; then
30323    setopt NO_GLOB_SUBST
30324 fi
30325
30326
30327     PACKAGE='$PACKAGE'
30328     VERSION='$VERSION'
30329     TIMESTAMP='$TIMESTAMP'
30330     RM='$RM'
30331     ofile='$ofile'
30332
30333
30334
30335
30336
30337 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30338     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30339     # from automake.
30340     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30341     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30342     LINGUAS="${LINGUAS-%UNSET%}"
30343
30344
30345 _ACEOF
30346
30347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30348
30349 # Handling of arguments.
30350 for ac_config_target in $ac_config_targets
30351 do
30352   case $ac_config_target in
30353     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30354     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30355     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30356     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30357     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30358     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30359     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30360     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30361     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30362     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30363     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30364     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30365     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30366     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30367     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30368     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30369     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30370     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30371     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30372     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30373     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30374     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30375     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30376     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30377     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30378     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30379     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30380     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30381     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30382     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30383     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30384     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30385     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30386     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30387     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30388     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30389     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30390     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30391     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30392     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30393     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30394     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30395     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30396     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30397     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30398     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30399     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30400     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30401     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30402     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30403     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30404     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30405     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30406     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30407     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30408     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30409     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30410     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30411     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30412     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30413     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30414     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30415     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30416     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30417     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30418     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30419     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30420     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30421     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30422     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30423     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30424     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30425     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30426     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30427     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30428     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30429     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30430     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30431     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30432     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30433     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30434     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30435     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30436     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30437     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30438     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30439     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30440     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30441     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30442     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30443     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30444     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30445     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30446     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30447     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30448     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30449     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30450     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30451     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30452     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30453     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30454     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30455     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30456     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30457     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30458     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30459     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30460     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30461     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30462     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30463     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30464     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30465     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30466     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30467     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30468
30469   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30470   esac
30471 done
30472
30473
30474 # If the user did not use the arguments to specify the items to instantiate,
30475 # then the envvar interface is used.  Set only those that are not.
30476 # We use the long form for the default assignment because of an extremely
30477 # bizarre bug on SunOS 4.1.3.
30478 if $ac_need_defaults; then
30479   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30480   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30481   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30482 fi
30483
30484 # Have a temporary directory for convenience.  Make it in the build tree
30485 # simply because there is no reason against having it here, and in addition,
30486 # creating and moving files from /tmp can sometimes cause problems.
30487 # Hook for its removal unless debugging.
30488 # Note that there is a small window in which the directory will not be cleaned:
30489 # after its creation but before its name has been assigned to `$tmp'.
30490 $debug ||
30491 {
30492   tmp=
30493   trap 'exit_status=$?
30494   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30495 ' 0
30496   trap 'as_fn_exit 1' 1 2 13 15
30497 }
30498 # Create a (secure) tmp directory for tmp files.
30499
30500 {
30501   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30502   test -n "$tmp" && test -d "$tmp"
30503 }  ||
30504 {
30505   tmp=./conf$$-$RANDOM
30506   (umask 077 && mkdir "$tmp")
30507 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30508
30509 # Set up the scripts for CONFIG_FILES section.
30510 # No need to generate them if there are no CONFIG_FILES.
30511 # This happens for instance with `./config.status config.h'.
30512 if test -n "$CONFIG_FILES"; then
30513
30514 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30515   ac_cs_awk_getline=:
30516   ac_cs_awk_pipe_init=
30517   ac_cs_awk_read_file='
30518       while ((getline aline < (F[key])) > 0)
30519         print(aline)
30520       close(F[key])'
30521   ac_cs_awk_pipe_fini=
30522 else
30523   ac_cs_awk_getline=false
30524   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30525   ac_cs_awk_read_file='
30526       print "|#_!!_#|"
30527       print "cat " F[key] " &&"
30528       '$ac_cs_awk_pipe_init
30529   # The final `:' finishes the AND list.
30530   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30531 fi
30532 ac_cr=`echo X | tr X '\015'`
30533 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30534 # But we know of no other shell where ac_cr would be empty at this
30535 # point, so we can use a bashism as a fallback.
30536 if test "x$ac_cr" = x; then
30537   eval ac_cr=\$\'\\r\'
30538 fi
30539 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30541   ac_cs_awk_cr='\\r'
30542 else
30543   ac_cs_awk_cr=$ac_cr
30544 fi
30545
30546 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30547 _ACEOF
30548
30549 # Create commands to substitute file output variables.
30550 {
30551   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30552   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30553   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30554   echo "_ACAWK" &&
30555   echo "_ACEOF"
30556 } >conf$$files.sh &&
30557 . ./conf$$files.sh ||
30558   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30559 rm -f conf$$files.sh
30560
30561 {
30562   echo "cat >conf$$subs.awk <<_ACEOF" &&
30563   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30564   echo "_ACEOF"
30565 } >conf$$subs.sh ||
30566   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30567 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30568 ac_delim='%!_!# '
30569 for ac_last_try in false false false false false :; do
30570   . ./conf$$subs.sh ||
30571     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30572
30573   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30574   if test $ac_delim_n = $ac_delim_num; then
30575     break
30576   elif $ac_last_try; then
30577     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30578   else
30579     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30580   fi
30581 done
30582 rm -f conf$$subs.sh
30583
30584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30585 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30586 _ACEOF
30587 sed -n '
30588 h
30589 s/^/S["/; s/!.*/"]=/
30590 p
30591 g
30592 s/^[^!]*!//
30593 :repl
30594 t repl
30595 s/'"$ac_delim"'$//
30596 t delim
30597 :nl
30598 h
30599 s/\(.\{148\}\)..*/\1/
30600 t more1
30601 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30602 p
30603 n
30604 b repl
30605 :more1
30606 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30607 p
30608 g
30609 s/.\{148\}//
30610 t nl
30611 :delim
30612 h
30613 s/\(.\{148\}\)..*/\1/
30614 t more2
30615 s/["\\]/\\&/g; s/^/"/; s/$/"/
30616 p
30617 b
30618 :more2
30619 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30620 p
30621 g
30622 s/.\{148\}//
30623 t delim
30624 ' <conf$$subs.awk | sed '
30625 /^[^""]/{
30626   N
30627   s/\n//
30628 }
30629 ' >>$CONFIG_STATUS || ac_write_fail=1
30630 rm -f conf$$subs.awk
30631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30632 _ACAWK
30633 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30634   for (key in S) S_is_set[key] = 1
30635   FS = "\a"
30636   \$ac_cs_awk_pipe_init
30637 }
30638 {
30639   line = $ 0
30640   nfields = split(line, field, "@")
30641   substed = 0
30642   len = length(field[1])
30643   for (i = 2; i < nfields; i++) {
30644     key = field[i]
30645     keylen = length(key)
30646     if (S_is_set[key]) {
30647       value = S[key]
30648       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30649       len += length(value) + length(field[++i])
30650       substed = 1
30651     } else
30652       len += 1 + keylen
30653   }
30654   if (nfields == 3 && !substed) {
30655     key = field[2]
30656     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30657       \$ac_cs_awk_read_file
30658       next
30659     }
30660   }
30661   print line
30662 }
30663 \$ac_cs_awk_pipe_fini
30664 _ACAWK
30665 _ACEOF
30666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30667 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30668   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30669 else
30670   cat
30671 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30672   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30673 _ACEOF
30674
30675 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30676 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30677 # trailing colons and then remove the whole line if VPATH becomes empty
30678 # (actually we leave an empty line to preserve line numbers).
30679 if test "x$srcdir" = x.; then
30680   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
30681 h
30682 s///
30683 s/^/:/
30684 s/[      ]*$/:/
30685 s/:\$(srcdir):/:/g
30686 s/:\${srcdir}:/:/g
30687 s/:@srcdir@:/:/g
30688 s/^:*//
30689 s/:*$//
30690 x
30691 s/\(=[   ]*\).*/\1/
30692 G
30693 s/\n//
30694 s/^[^=]*=[       ]*$//
30695 }'
30696 fi
30697
30698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30699 fi # test -n "$CONFIG_FILES"
30700
30701 # Set up the scripts for CONFIG_HEADERS section.
30702 # No need to generate them if there are no CONFIG_HEADERS.
30703 # This happens for instance with `./config.status Makefile'.
30704 if test -n "$CONFIG_HEADERS"; then
30705 cat >"$tmp/defines.awk" <<\_ACAWK ||
30706 BEGIN {
30707 _ACEOF
30708
30709 # Transform confdefs.h into an awk script `defines.awk', embedded as
30710 # here-document in config.status, that substitutes the proper values into
30711 # config.h.in to produce config.h.
30712
30713 # Create a delimiter string that does not exist in confdefs.h, to ease
30714 # handling of long lines.
30715 ac_delim='%!_!# '
30716 for ac_last_try in false false :; do
30717   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30718   if test -z "$ac_t"; then
30719     break
30720   elif $ac_last_try; then
30721     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30722   else
30723     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30724   fi
30725 done
30726
30727 # For the awk script, D is an array of macro values keyed by name,
30728 # likewise P contains macro parameters if any.  Preserve backslash
30729 # newline sequences.
30730
30731 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30732 sed -n '
30733 s/.\{148\}/&'"$ac_delim"'/g
30734 t rset
30735 :rset
30736 s/^[     ]*#[    ]*define[       ][      ]*/ /
30737 t def
30738 d
30739 :def
30740 s/\\$//
30741 t bsnl
30742 s/["\\]/\\&/g
30743 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30744 D["\1"]=" \3"/p
30745 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30746 d
30747 :bsnl
30748 s/["\\]/\\&/g
30749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30750 D["\1"]=" \3\\\\\\n"\\/p
30751 t cont
30752 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30753 t cont
30754 d
30755 :cont
30756 n
30757 s/.\{148\}/&'"$ac_delim"'/g
30758 t clear
30759 :clear
30760 s/\\$//
30761 t bsnlc
30762 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30763 d
30764 :bsnlc
30765 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30766 b cont
30767 ' <confdefs.h | sed '
30768 s/'"$ac_delim"'/"\\\
30769 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30770
30771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30772   for (key in D) D_is_set[key] = 1
30773   FS = "\a"
30774 }
30775 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30776   line = \$ 0
30777   split(line, arg, " ")
30778   if (arg[1] == "#") {
30779     defundef = arg[2]
30780     mac1 = arg[3]
30781   } else {
30782     defundef = substr(arg[1], 2)
30783     mac1 = arg[2]
30784   }
30785   split(mac1, mac2, "(") #)
30786   macro = mac2[1]
30787   prefix = substr(line, 1, index(line, defundef) - 1)
30788   if (D_is_set[macro]) {
30789     # Preserve the white space surrounding the "#".
30790     print prefix "define", macro P[macro] D[macro]
30791     next
30792   } else {
30793     # Replace #undef with comments.  This is necessary, for example,
30794     # in the case of _POSIX_SOURCE, which is predefined and required
30795     # on some systems where configure will not decide to define it.
30796     if (defundef == "undef") {
30797       print "/*", prefix defundef, macro, "*/"
30798       next
30799     }
30800   }
30801 }
30802 { print }
30803 _ACAWK
30804 _ACEOF
30805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30806   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
30807 fi # test -n "$CONFIG_HEADERS"
30808
30809
30810 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30811 shift
30812 for ac_tag
30813 do
30814   case $ac_tag in
30815   :[FHLC]) ac_mode=$ac_tag; continue;;
30816   esac
30817   case $ac_mode$ac_tag in
30818   :[FHL]*:*);;
30819   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
30820   :[FH]-) ac_tag=-:-;;
30821   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30822   esac
30823   ac_save_IFS=$IFS
30824   IFS=:
30825   set x $ac_tag
30826   IFS=$ac_save_IFS
30827   shift
30828   ac_file=$1
30829   shift
30830
30831   case $ac_mode in
30832   :L) ac_source=$1;;
30833   :[FH])
30834     ac_file_inputs=
30835     for ac_f
30836     do
30837       case $ac_f in
30838       -) ac_f="$tmp/stdin";;
30839       *) # Look for the file first in the build tree, then in the source tree
30840          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30841          # because $ac_f cannot contain `:'.
30842          test -f "$ac_f" ||
30843            case $ac_f in
30844            [\\/$]*) false;;
30845            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30846            esac ||
30847            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30848       esac
30849       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30850       as_fn_append ac_file_inputs " '$ac_f'"
30851     done
30852
30853     # Let's still pretend it is `configure' which instantiates (i.e., don't
30854     # use $as_me), people would be surprised to read:
30855     #    /* config.h.  Generated by config.status.  */
30856     configure_input='Generated from '`
30857           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30858         `' by configure.'
30859     if test x"$ac_file" != x-; then
30860       configure_input="$ac_file.  $configure_input"
30861       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30862 $as_echo "$as_me: creating $ac_file" >&6;}
30863     fi
30864     # Neutralize special characters interpreted by sed in replacement strings.
30865     case $configure_input in #(
30866     *\&* | *\|* | *\\* )
30867        ac_sed_conf_input=`$as_echo "$configure_input" |
30868        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30869     *) ac_sed_conf_input=$configure_input;;
30870     esac
30871
30872     case $ac_tag in
30873     *:-:* | *:-) cat >"$tmp/stdin" \
30874       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30875     esac
30876     ;;
30877   esac
30878
30879   ac_dir=`$as_dirname -- "$ac_file" ||
30880 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30881          X"$ac_file" : 'X\(//\)[^/]' \| \
30882          X"$ac_file" : 'X\(//\)$' \| \
30883          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30884 $as_echo X"$ac_file" |
30885     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30886             s//\1/
30887             q
30888           }
30889           /^X\(\/\/\)[^/].*/{
30890             s//\1/
30891             q
30892           }
30893           /^X\(\/\/\)$/{
30894             s//\1/
30895             q
30896           }
30897           /^X\(\/\).*/{
30898             s//\1/
30899             q
30900           }
30901           s/.*/./; q'`
30902   as_dir="$ac_dir"; as_fn_mkdir_p
30903   ac_builddir=.
30904
30905 case "$ac_dir" in
30906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30907 *)
30908   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30909   # A ".." for each directory in $ac_dir_suffix.
30910   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30911   case $ac_top_builddir_sub in
30912   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30913   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30914   esac ;;
30915 esac
30916 ac_abs_top_builddir=$ac_pwd
30917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30918 # for backward compatibility:
30919 ac_top_builddir=$ac_top_build_prefix
30920
30921 case $srcdir in
30922   .)  # We are building in place.
30923     ac_srcdir=.
30924     ac_top_srcdir=$ac_top_builddir_sub
30925     ac_abs_top_srcdir=$ac_pwd ;;
30926   [\\/]* | ?:[\\/]* )  # Absolute name.
30927     ac_srcdir=$srcdir$ac_dir_suffix;
30928     ac_top_srcdir=$srcdir
30929     ac_abs_top_srcdir=$srcdir ;;
30930   *) # Relative name.
30931     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30932     ac_top_srcdir=$ac_top_build_prefix$srcdir
30933     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30934 esac
30935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30936
30937
30938   case $ac_mode in
30939   :F)
30940   #
30941   # CONFIG_FILE
30942   #
30943
30944   case $INSTALL in
30945   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30946   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30947   esac
30948 _ACEOF
30949
30950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30951 # If the template does not know about datarootdir, expand it.
30952 # FIXME: This hack should be removed a few years after 2.60.
30953 ac_datarootdir_hack=; ac_datarootdir_seen=
30954 ac_sed_dataroot='
30955 /datarootdir/ {
30956   p
30957   q
30958 }
30959 /@datadir@/p
30960 /@docdir@/p
30961 /@infodir@/p
30962 /@localedir@/p
30963 /@mandir@/p'
30964 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30965 *datarootdir*) ac_datarootdir_seen=yes;;
30966 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30967   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30968 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30969 _ACEOF
30970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30971   ac_datarootdir_hack='
30972   s&@datadir@&$datadir&g
30973   s&@docdir@&$docdir&g
30974   s&@infodir@&$infodir&g
30975   s&@localedir@&$localedir&g
30976   s&@mandir@&$mandir&g
30977   s&\\\${datarootdir}&$datarootdir&g' ;;
30978 esac
30979 _ACEOF
30980
30981 # Neutralize VPATH when `$srcdir' = `.'.
30982 # Shell code in configure.ac might set extrasub.
30983 # FIXME: do we really want to maintain this feature?
30984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30985 ac_sed_extra="$ac_vpsub
30986 $extrasub
30987 _ACEOF
30988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30989 :t
30990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30991 s|@configure_input@|$ac_sed_conf_input|;t t
30992 s&@top_builddir@&$ac_top_builddir_sub&;t t
30993 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30994 s&@srcdir@&$ac_srcdir&;t t
30995 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30996 s&@top_srcdir@&$ac_top_srcdir&;t t
30997 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30998 s&@builddir@&$ac_builddir&;t t
30999 s&@abs_builddir@&$ac_abs_builddir&;t t
31000 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31001 s&@INSTALL@&$ac_INSTALL&;t t
31002 $ac_datarootdir_hack
31003 "
31004 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31005 if $ac_cs_awk_getline; then
31006   $AWK -f "$tmp/subs.awk"
31007 else
31008   $AWK -f "$tmp/subs.awk" | $SHELL
31009 fi >$tmp/out \
31010   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31011
31012 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31013   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31014   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31015   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31016 which seems to be undefined.  Please make sure it is defined" >&5
31017 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31018 which seems to be undefined.  Please make sure it is defined" >&2;}
31019
31020   rm -f "$tmp/stdin"
31021   case $ac_file in
31022   -) cat "$tmp/out" && rm -f "$tmp/out";;
31023   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31024   esac \
31025   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31026  ;;
31027   :H)
31028   #
31029   # CONFIG_HEADER
31030   #
31031   if test x"$ac_file" != x-; then
31032     {
31033       $as_echo "/* $configure_input  */" \
31034       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31035     } >"$tmp/config.h" \
31036       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31037     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31038       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31039 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31040     else
31041       rm -f "$ac_file"
31042       mv "$tmp/config.h" "$ac_file" \
31043         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31044     fi
31045   else
31046     $as_echo "/* $configure_input  */" \
31047       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31048       || as_fn_error $? "could not create -" "$LINENO" 5
31049   fi
31050  ;;
31051
31052   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31053 $as_echo "$as_me: executing $ac_file commands" >&6;}
31054  ;;
31055   esac
31056
31057
31058   case $ac_file$ac_mode in
31059     "libtool":C)
31060
31061     # See if we are running on zsh, and set the options which allow our
31062     # commands through without removal of \ escapes.
31063     if test -n "${ZSH_VERSION+set}" ; then
31064       setopt NO_GLOB_SUBST
31065     fi
31066
31067     cfgfile="${ofile}T"
31068     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31069     $RM "$cfgfile"
31070
31071     cat <<_LT_EOF >> "$cfgfile"
31072 #! $SHELL
31073
31074 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31075 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31076 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31077 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31078 #
31079 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31080 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31081 #   Written by Gordon Matzigkeit, 1996
31082 #
31083 #   This file is part of GNU Libtool.
31084 #
31085 # GNU Libtool is free software; you can redistribute it and/or
31086 # modify it under the terms of the GNU General Public License as
31087 # published by the Free Software Foundation; either version 2 of
31088 # the License, or (at your option) any later version.
31089 #
31090 # As a special exception to the GNU General Public License,
31091 # if you distribute this file as part of a program or library that
31092 # is built using GNU Libtool, you may include this file under the
31093 # same distribution terms that you use for the rest of that program.
31094 #
31095 # GNU Libtool is distributed in the hope that it will be useful,
31096 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31097 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31098 # GNU General Public License for more details.
31099 #
31100 # You should have received a copy of the GNU General Public License
31101 # along with GNU Libtool; see the file COPYING.  If not, a copy
31102 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31103 # obtained by writing to the Free Software Foundation, Inc.,
31104 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31105
31106
31107 # The names of the tagged configurations supported by this script.
31108 available_tags="CXX "
31109
31110 # ### BEGIN LIBTOOL CONFIG
31111
31112 # Which release of libtool.m4 was used?
31113 macro_version=$macro_version
31114 macro_revision=$macro_revision
31115
31116 # Whether or not to build shared libraries.
31117 build_libtool_libs=$enable_shared
31118
31119 # Whether or not to build static libraries.
31120 build_old_libs=$enable_static
31121
31122 # What type of objects to build.
31123 pic_mode=$pic_mode
31124
31125 # Whether or not to optimize for fast installation.
31126 fast_install=$enable_fast_install
31127
31128 # The host system.
31129 host_alias=$host_alias
31130 host=$host
31131 host_os=$host_os
31132
31133 # The build system.
31134 build_alias=$build_alias
31135 build=$build
31136 build_os=$build_os
31137
31138 # A sed program that does not truncate output.
31139 SED=$lt_SED
31140
31141 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31142 Xsed="\$SED -e 1s/^X//"
31143
31144 # A grep program that handles long lines.
31145 GREP=$lt_GREP
31146
31147 # An ERE matcher.
31148 EGREP=$lt_EGREP
31149
31150 # A literal string matcher.
31151 FGREP=$lt_FGREP
31152
31153 # A BSD- or MS-compatible name lister.
31154 NM=$lt_NM
31155
31156 # Whether we need soft or hard links.
31157 LN_S=$lt_LN_S
31158
31159 # What is the maximum length of a command?
31160 max_cmd_len=$max_cmd_len
31161
31162 # Object file suffix (normally "o").
31163 objext=$ac_objext
31164
31165 # Executable file suffix (normally "").
31166 exeext=$exeext
31167
31168 # whether the shell understands "unset".
31169 lt_unset=$lt_unset
31170
31171 # turn spaces into newlines.
31172 SP2NL=$lt_lt_SP2NL
31173
31174 # turn newlines into spaces.
31175 NL2SP=$lt_lt_NL2SP
31176
31177 # How to create reloadable object files.
31178 reload_flag=$lt_reload_flag
31179 reload_cmds=$lt_reload_cmds
31180
31181 # An object symbol dumper.
31182 OBJDUMP=$lt_OBJDUMP
31183
31184 # Method to check whether dependent libraries are shared objects.
31185 deplibs_check_method=$lt_deplibs_check_method
31186
31187 # Command to use when deplibs_check_method == "file_magic".
31188 file_magic_cmd=$lt_file_magic_cmd
31189
31190 # The archiver.
31191 AR=$lt_AR
31192 AR_FLAGS=$lt_AR_FLAGS
31193
31194 # A symbol stripping program.
31195 STRIP=$lt_STRIP
31196
31197 # Commands used to install an old-style archive.
31198 RANLIB=$lt_RANLIB
31199 old_postinstall_cmds=$lt_old_postinstall_cmds
31200 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31201
31202 # A C compiler.
31203 LTCC=$lt_CC
31204
31205 # LTCC compiler flags.
31206 LTCFLAGS=$lt_CFLAGS
31207
31208 # Take the output of nm and produce a listing of raw symbols and C names.
31209 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31210
31211 # Transform the output of nm in a proper C declaration.
31212 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31213
31214 # Transform the output of nm in a C name address pair.
31215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31216
31217 # Transform the output of nm in a C name address pair when lib prefix is needed.
31218 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31219
31220 # The name of the directory that contains temporary libtool files.
31221 objdir=$objdir
31222
31223 # Shell to use when invoking shell scripts.
31224 SHELL=$lt_SHELL
31225
31226 # An echo program that does not interpret backslashes.
31227 ECHO=$lt_ECHO
31228
31229 # Used to examine libraries when file_magic_cmd begins with "file".
31230 MAGIC_CMD=$MAGIC_CMD
31231
31232 # Must we lock files when doing compilation?
31233 need_locks=$lt_need_locks
31234
31235 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31236 DSYMUTIL=$lt_DSYMUTIL
31237
31238 # Tool to change global to local symbols on Mac OS X.
31239 NMEDIT=$lt_NMEDIT
31240
31241 # Tool to manipulate fat objects and archives on Mac OS X.
31242 LIPO=$lt_LIPO
31243
31244 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31245 OTOOL=$lt_OTOOL
31246
31247 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31248 OTOOL64=$lt_OTOOL64
31249
31250 # Old archive suffix (normally "a").
31251 libext=$libext
31252
31253 # Shared library suffix (normally ".so").
31254 shrext_cmds=$lt_shrext_cmds
31255
31256 # The commands to extract the exported symbol list from a shared archive.
31257 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31258
31259 # Variables whose values should be saved in libtool wrapper scripts and
31260 # restored at link time.
31261 variables_saved_for_relink=$lt_variables_saved_for_relink
31262
31263 # Do we need the "lib" prefix for modules?
31264 need_lib_prefix=$need_lib_prefix
31265
31266 # Do we need a version for libraries?
31267 need_version=$need_version
31268
31269 # Library versioning type.
31270 version_type=$version_type
31271
31272 # Shared library runtime path variable.
31273 runpath_var=$runpath_var
31274
31275 # Shared library path variable.
31276 shlibpath_var=$shlibpath_var
31277
31278 # Is shlibpath searched before the hard-coded library search path?
31279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31280
31281 # Format of library name prefix.
31282 libname_spec=$lt_libname_spec
31283
31284 # List of archive names.  First name is the real one, the rest are links.
31285 # The last name is the one that the linker finds with -lNAME
31286 library_names_spec=$lt_library_names_spec
31287
31288 # The coded name of the library, if different from the real name.
31289 soname_spec=$lt_soname_spec
31290
31291 # Command to use after installation of a shared archive.
31292 postinstall_cmds=$lt_postinstall_cmds
31293
31294 # Command to use after uninstallation of a shared archive.
31295 postuninstall_cmds=$lt_postuninstall_cmds
31296
31297 # Commands used to finish a libtool library installation in a directory.
31298 finish_cmds=$lt_finish_cmds
31299
31300 # As "finish_cmds", except a single script fragment to be evaled but
31301 # not shown.
31302 finish_eval=$lt_finish_eval
31303
31304 # Whether we should hardcode library paths into libraries.
31305 hardcode_into_libs=$hardcode_into_libs
31306
31307 # Compile-time system search path for libraries.
31308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31309
31310 # Run-time system search path for libraries.
31311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31312
31313 # Whether dlopen is supported.
31314 dlopen_support=$enable_dlopen
31315
31316 # Whether dlopen of programs is supported.
31317 dlopen_self=$enable_dlopen_self
31318
31319 # Whether dlopen of statically linked programs is supported.
31320 dlopen_self_static=$enable_dlopen_self_static
31321
31322 # Commands to strip libraries.
31323 old_striplib=$lt_old_striplib
31324 striplib=$lt_striplib
31325
31326
31327 # The linker used to build libraries.
31328 LD=$lt_LD
31329
31330 # Commands used to build an old-style archive.
31331 old_archive_cmds=$lt_old_archive_cmds
31332
31333 # A language specific compiler.
31334 CC=$lt_compiler
31335
31336 # Is the compiler the GNU compiler?
31337 with_gcc=$GCC
31338
31339 # Compiler flag to turn off builtin functions.
31340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31341
31342 # How to pass a linker flag through the compiler.
31343 wl=$lt_lt_prog_compiler_wl
31344
31345 # Additional compiler flags for building library objects.
31346 pic_flag=$lt_lt_prog_compiler_pic
31347
31348 # Compiler flag to prevent dynamic linking.
31349 link_static_flag=$lt_lt_prog_compiler_static
31350
31351 # Does compiler simultaneously support -c and -o options?
31352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31353
31354 # Whether or not to add -lc for building shared libraries.
31355 build_libtool_need_lc=$archive_cmds_need_lc
31356
31357 # Whether or not to disallow shared libs when runtime libs are static.
31358 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31359
31360 # Compiler flag to allow reflexive dlopens.
31361 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31362
31363 # Compiler flag to generate shared objects directly from archives.
31364 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31365
31366 # Whether the compiler copes with passing no objects directly.
31367 compiler_needs_object=$lt_compiler_needs_object
31368
31369 # Create an old-style archive from a shared archive.
31370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31371
31372 # Create a temporary old-style archive to link instead of a shared archive.
31373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31374
31375 # Commands used to build a shared archive.
31376 archive_cmds=$lt_archive_cmds
31377 archive_expsym_cmds=$lt_archive_expsym_cmds
31378
31379 # Commands used to build a loadable module if different from building
31380 # a shared archive.
31381 module_cmds=$lt_module_cmds
31382 module_expsym_cmds=$lt_module_expsym_cmds
31383
31384 # Whether we are building with GNU ld or not.
31385 with_gnu_ld=$lt_with_gnu_ld
31386
31387 # Flag that allows shared libraries with undefined symbols to be built.
31388 allow_undefined_flag=$lt_allow_undefined_flag
31389
31390 # Flag that enforces no undefined symbols.
31391 no_undefined_flag=$lt_no_undefined_flag
31392
31393 # Flag to hardcode \$libdir into a binary during linking.
31394 # This must work even if \$libdir does not exist
31395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31396
31397 # If ld is used when linking, flag to hardcode \$libdir into a binary
31398 # during linking.  This must work even if \$libdir does not exist.
31399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31400
31401 # Whether we need a single "-rpath" flag with a separated argument.
31402 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31403
31404 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31405 # DIR into the resulting binary.
31406 hardcode_direct=$hardcode_direct
31407
31408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31409 # DIR into the resulting binary and the resulting library dependency is
31410 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31411 # library is relocated.
31412 hardcode_direct_absolute=$hardcode_direct_absolute
31413
31414 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31415 # into the resulting binary.
31416 hardcode_minus_L=$hardcode_minus_L
31417
31418 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31419 # into the resulting binary.
31420 hardcode_shlibpath_var=$hardcode_shlibpath_var
31421
31422 # Set to "yes" if building a shared library automatically hardcodes DIR
31423 # into the library and all subsequent libraries and executables linked
31424 # against it.
31425 hardcode_automatic=$hardcode_automatic
31426
31427 # Set to yes if linker adds runtime paths of dependent libraries
31428 # to runtime path list.
31429 inherit_rpath=$inherit_rpath
31430
31431 # Whether libtool must link a program against all its dependency libraries.
31432 link_all_deplibs=$link_all_deplibs
31433
31434 # Fix the shell variable \$srcfile for the compiler.
31435 fix_srcfile_path=$lt_fix_srcfile_path
31436
31437 # Set to "yes" if exported symbols are required.
31438 always_export_symbols=$always_export_symbols
31439
31440 # The commands to list exported symbols.
31441 export_symbols_cmds=$lt_export_symbols_cmds
31442
31443 # Symbols that should not be listed in the preloaded symbols.
31444 exclude_expsyms=$lt_exclude_expsyms
31445
31446 # Symbols that must always be exported.
31447 include_expsyms=$lt_include_expsyms
31448
31449 # Commands necessary for linking programs (against libraries) with templates.
31450 prelink_cmds=$lt_prelink_cmds
31451
31452 # Specify filename containing input files.
31453 file_list_spec=$lt_file_list_spec
31454
31455 # How to hardcode a shared library path into an executable.
31456 hardcode_action=$hardcode_action
31457
31458 # The directories searched by this compiler when creating a shared library.
31459 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31460
31461 # Dependencies to place before and after the objects being linked to
31462 # create a shared library.
31463 predep_objects=$lt_predep_objects
31464 postdep_objects=$lt_postdep_objects
31465 predeps=$lt_predeps
31466 postdeps=$lt_postdeps
31467
31468 # The library search path used internally by the compiler when linking
31469 # a shared library.
31470 compiler_lib_search_path=$lt_compiler_lib_search_path
31471
31472 # ### END LIBTOOL CONFIG
31473
31474 _LT_EOF
31475
31476   case $host_os in
31477   aix3*)
31478     cat <<\_LT_EOF >> "$cfgfile"
31479 # AIX sometimes has problems with the GCC collect2 program.  For some
31480 # reason, if we set the COLLECT_NAMES environment variable, the problems
31481 # vanish in a puff of smoke.
31482 if test "X${COLLECT_NAMES+set}" != Xset; then
31483   COLLECT_NAMES=
31484   export COLLECT_NAMES
31485 fi
31486 _LT_EOF
31487     ;;
31488   esac
31489
31490
31491 ltmain="$ac_aux_dir/ltmain.sh"
31492
31493
31494   # We use sed instead of cat because bash on DJGPP gets confused if
31495   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31496   # text mode, it properly converts lines to CR/LF.  This bash problem
31497   # is reportedly fixed, but why not run on old versions too?
31498   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31499     || (rm -f "$cfgfile"; exit 1)
31500
31501   case $xsi_shell in
31502   yes)
31503     cat << \_LT_EOF >> "$cfgfile"
31504
31505 # func_dirname file append nondir_replacement
31506 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31507 # otherwise set result to NONDIR_REPLACEMENT.
31508 func_dirname ()
31509 {
31510   case ${1} in
31511     */*) func_dirname_result="${1%/*}${2}" ;;
31512     *  ) func_dirname_result="${3}" ;;
31513   esac
31514 }
31515
31516 # func_basename file
31517 func_basename ()
31518 {
31519   func_basename_result="${1##*/}"
31520 }
31521
31522 # func_dirname_and_basename file append nondir_replacement
31523 # perform func_basename and func_dirname in a single function
31524 # call:
31525 #   dirname:  Compute the dirname of FILE.  If nonempty,
31526 #             add APPEND to the result, otherwise set result
31527 #             to NONDIR_REPLACEMENT.
31528 #             value returned in "$func_dirname_result"
31529 #   basename: Compute filename of FILE.
31530 #             value retuned in "$func_basename_result"
31531 # Implementation must be kept synchronized with func_dirname
31532 # and func_basename. For efficiency, we do not delegate to
31533 # those functions but instead duplicate the functionality here.
31534 func_dirname_and_basename ()
31535 {
31536   case ${1} in
31537     */*) func_dirname_result="${1%/*}${2}" ;;
31538     *  ) func_dirname_result="${3}" ;;
31539   esac
31540   func_basename_result="${1##*/}"
31541 }
31542
31543 # func_stripname prefix suffix name
31544 # strip PREFIX and SUFFIX off of NAME.
31545 # PREFIX and SUFFIX must not contain globbing or regex special
31546 # characters, hashes, percent signs, but SUFFIX may contain a leading
31547 # dot (in which case that matches only a dot).
31548 func_stripname ()
31549 {
31550   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31551   # positional parameters, so assign one to ordinary parameter first.
31552   func_stripname_result=${3}
31553   func_stripname_result=${func_stripname_result#"${1}"}
31554   func_stripname_result=${func_stripname_result%"${2}"}
31555 }
31556
31557 # func_opt_split
31558 func_opt_split ()
31559 {
31560   func_opt_split_opt=${1%%=*}
31561   func_opt_split_arg=${1#*=}
31562 }
31563
31564 # func_lo2o object
31565 func_lo2o ()
31566 {
31567   case ${1} in
31568     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31569     *)    func_lo2o_result=${1} ;;
31570   esac
31571 }
31572
31573 # func_xform libobj-or-source
31574 func_xform ()
31575 {
31576   func_xform_result=${1%.*}.lo
31577 }
31578
31579 # func_arith arithmetic-term...
31580 func_arith ()
31581 {
31582   func_arith_result=$(( $* ))
31583 }
31584
31585 # func_len string
31586 # STRING may not start with a hyphen.
31587 func_len ()
31588 {
31589   func_len_result=${#1}
31590 }
31591
31592 _LT_EOF
31593     ;;
31594   *) # Bourne compatible functions.
31595     cat << \_LT_EOF >> "$cfgfile"
31596
31597 # func_dirname file append nondir_replacement
31598 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31599 # otherwise set result to NONDIR_REPLACEMENT.
31600 func_dirname ()
31601 {
31602   # Extract subdirectory from the argument.
31603   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31604   if test "X$func_dirname_result" = "X${1}"; then
31605     func_dirname_result="${3}"
31606   else
31607     func_dirname_result="$func_dirname_result${2}"
31608   fi
31609 }
31610
31611 # func_basename file
31612 func_basename ()
31613 {
31614   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31615 }
31616
31617
31618 # func_stripname prefix suffix name
31619 # strip PREFIX and SUFFIX off of NAME.
31620 # PREFIX and SUFFIX must not contain globbing or regex special
31621 # characters, hashes, percent signs, but SUFFIX may contain a leading
31622 # dot (in which case that matches only a dot).
31623 # func_strip_suffix prefix name
31624 func_stripname ()
31625 {
31626   case ${2} in
31627     .*) func_stripname_result=`$ECHO "X${3}" \
31628            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31629     *)  func_stripname_result=`$ECHO "X${3}" \
31630            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31631   esac
31632 }
31633
31634 # sed scripts:
31635 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31636 my_sed_long_arg='1s/^-[^=]*=//'
31637
31638 # func_opt_split
31639 func_opt_split ()
31640 {
31641   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31642   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31643 }
31644
31645 # func_lo2o object
31646 func_lo2o ()
31647 {
31648   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31649 }
31650
31651 # func_xform libobj-or-source
31652 func_xform ()
31653 {
31654   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31655 }
31656
31657 # func_arith arithmetic-term...
31658 func_arith ()
31659 {
31660   func_arith_result=`expr "$@"`
31661 }
31662
31663 # func_len string
31664 # STRING may not start with a hyphen.
31665 func_len ()
31666 {
31667   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31668 }
31669
31670 _LT_EOF
31671 esac
31672
31673 case $lt_shell_append in
31674   yes)
31675     cat << \_LT_EOF >> "$cfgfile"
31676
31677 # func_append var value
31678 # Append VALUE to the end of shell variable VAR.
31679 func_append ()
31680 {
31681   eval "$1+=\$2"
31682 }
31683 _LT_EOF
31684     ;;
31685   *)
31686     cat << \_LT_EOF >> "$cfgfile"
31687
31688 # func_append var value
31689 # Append VALUE to the end of shell variable VAR.
31690 func_append ()
31691 {
31692   eval "$1=\$$1\$2"
31693 }
31694
31695 _LT_EOF
31696     ;;
31697   esac
31698
31699
31700   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31701     || (rm -f "$cfgfile"; exit 1)
31702
31703   mv -f "$cfgfile" "$ofile" ||
31704     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31705   chmod +x "$ofile"
31706
31707
31708     cat <<_LT_EOF >> "$ofile"
31709
31710 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31711
31712 # The linker used to build libraries.
31713 LD=$lt_LD_CXX
31714
31715 # Commands used to build an old-style archive.
31716 old_archive_cmds=$lt_old_archive_cmds_CXX
31717
31718 # A language specific compiler.
31719 CC=$lt_compiler_CXX
31720
31721 # Is the compiler the GNU compiler?
31722 with_gcc=$GCC_CXX
31723
31724 # Compiler flag to turn off builtin functions.
31725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31726
31727 # How to pass a linker flag through the compiler.
31728 wl=$lt_lt_prog_compiler_wl_CXX
31729
31730 # Additional compiler flags for building library objects.
31731 pic_flag=$lt_lt_prog_compiler_pic_CXX
31732
31733 # Compiler flag to prevent dynamic linking.
31734 link_static_flag=$lt_lt_prog_compiler_static_CXX
31735
31736 # Does compiler simultaneously support -c and -o options?
31737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31738
31739 # Whether or not to add -lc for building shared libraries.
31740 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31741
31742 # Whether or not to disallow shared libs when runtime libs are static.
31743 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31744
31745 # Compiler flag to allow reflexive dlopens.
31746 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31747
31748 # Compiler flag to generate shared objects directly from archives.
31749 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31750
31751 # Whether the compiler copes with passing no objects directly.
31752 compiler_needs_object=$lt_compiler_needs_object_CXX
31753
31754 # Create an old-style archive from a shared archive.
31755 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31756
31757 # Create a temporary old-style archive to link instead of a shared archive.
31758 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31759
31760 # Commands used to build a shared archive.
31761 archive_cmds=$lt_archive_cmds_CXX
31762 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31763
31764 # Commands used to build a loadable module if different from building
31765 # a shared archive.
31766 module_cmds=$lt_module_cmds_CXX
31767 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31768
31769 # Whether we are building with GNU ld or not.
31770 with_gnu_ld=$lt_with_gnu_ld_CXX
31771
31772 # Flag that allows shared libraries with undefined symbols to be built.
31773 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31774
31775 # Flag that enforces no undefined symbols.
31776 no_undefined_flag=$lt_no_undefined_flag_CXX
31777
31778 # Flag to hardcode \$libdir into a binary during linking.
31779 # This must work even if \$libdir does not exist
31780 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31781
31782 # If ld is used when linking, flag to hardcode \$libdir into a binary
31783 # during linking.  This must work even if \$libdir does not exist.
31784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31785
31786 # Whether we need a single "-rpath" flag with a separated argument.
31787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31788
31789 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31790 # DIR into the resulting binary.
31791 hardcode_direct=$hardcode_direct_CXX
31792
31793 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31794 # DIR into the resulting binary and the resulting library dependency is
31795 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31796 # library is relocated.
31797 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31798
31799 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31800 # into the resulting binary.
31801 hardcode_minus_L=$hardcode_minus_L_CXX
31802
31803 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31804 # into the resulting binary.
31805 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31806
31807 # Set to "yes" if building a shared library automatically hardcodes DIR
31808 # into the library and all subsequent libraries and executables linked
31809 # against it.
31810 hardcode_automatic=$hardcode_automatic_CXX
31811
31812 # Set to yes if linker adds runtime paths of dependent libraries
31813 # to runtime path list.
31814 inherit_rpath=$inherit_rpath_CXX
31815
31816 # Whether libtool must link a program against all its dependency libraries.
31817 link_all_deplibs=$link_all_deplibs_CXX
31818
31819 # Fix the shell variable \$srcfile for the compiler.
31820 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31821
31822 # Set to "yes" if exported symbols are required.
31823 always_export_symbols=$always_export_symbols_CXX
31824
31825 # The commands to list exported symbols.
31826 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31827
31828 # Symbols that should not be listed in the preloaded symbols.
31829 exclude_expsyms=$lt_exclude_expsyms_CXX
31830
31831 # Symbols that must always be exported.
31832 include_expsyms=$lt_include_expsyms_CXX
31833
31834 # Commands necessary for linking programs (against libraries) with templates.
31835 prelink_cmds=$lt_prelink_cmds_CXX
31836
31837 # Specify filename containing input files.
31838 file_list_spec=$lt_file_list_spec_CXX
31839
31840 # How to hardcode a shared library path into an executable.
31841 hardcode_action=$hardcode_action_CXX
31842
31843 # The directories searched by this compiler when creating a shared library.
31844 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31845
31846 # Dependencies to place before and after the objects being linked to
31847 # create a shared library.
31848 predep_objects=$lt_predep_objects_CXX
31849 postdep_objects=$lt_postdep_objects_CXX
31850 predeps=$lt_predeps_CXX
31851 postdeps=$lt_postdeps_CXX
31852
31853 # The library search path used internally by the compiler when linking
31854 # a shared library.
31855 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31856
31857 # ### END LIBTOOL TAG CONFIG: CXX
31858 _LT_EOF
31859
31860  ;;
31861     "default-1":C)
31862     for ac_file in $CONFIG_FILES; do
31863       # Support "outfile[:infile[:infile...]]"
31864       case "$ac_file" in
31865         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31866       esac
31867       # PO directories have a Makefile.in generated from Makefile.in.in.
31868       case "$ac_file" in */Makefile.in)
31869         # Adjust a relative srcdir.
31870         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31871         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31872         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31873         # In autoconf-2.13 it is called $ac_given_srcdir.
31874         # In autoconf-2.50 it is called $srcdir.
31875         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31876         case "$ac_given_srcdir" in
31877           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31878           /*) top_srcdir="$ac_given_srcdir" ;;
31879           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31880         esac
31881         # Treat a directory as a PO directory if and only if it has a
31882         # POTFILES.in file. This allows packages to have multiple PO
31883         # directories under different names or in different locations.
31884         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31885           rm -f "$ac_dir/POTFILES"
31886           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31887           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31888           POMAKEFILEDEPS="POTFILES.in"
31889           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31890           # on $ac_dir but don't depend on user-specified configuration
31891           # parameters.
31892           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31893             # The LINGUAS file contains the set of available languages.
31894             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31895               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31896             fi
31897             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31898             # Hide the ALL_LINGUAS assigment from automake.
31899             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31900             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31901           else
31902             # The set of available languages was given in configure.in.
31903             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31904           fi
31905           # Compute POFILES
31906           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31907           # Compute UPDATEPOFILES
31908           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31909           # Compute DUMMYPOFILES
31910           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31911           # Compute GMOFILES
31912           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31913           case "$ac_given_srcdir" in
31914             .) srcdirpre= ;;
31915             *) srcdirpre='$(srcdir)/' ;;
31916           esac
31917           POFILES=
31918           UPDATEPOFILES=
31919           DUMMYPOFILES=
31920           GMOFILES=
31921           for lang in $ALL_LINGUAS; do
31922             POFILES="$POFILES $srcdirpre$lang.po"
31923             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31924             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31925             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31926           done
31927           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31928           # environment variable.
31929           INST_LINGUAS=
31930           if test -n "$ALL_LINGUAS"; then
31931             for presentlang in $ALL_LINGUAS; do
31932               useit=no
31933               if test "%UNSET%" != "$LINGUAS"; then
31934                 desiredlanguages="$LINGUAS"
31935               else
31936                 desiredlanguages="$ALL_LINGUAS"
31937               fi
31938               for desiredlang in $desiredlanguages; do
31939                 # Use the presentlang catalog if desiredlang is
31940                 #   a. equal to presentlang, or
31941                 #   b. a variant of presentlang (because in this case,
31942                 #      presentlang can be used as a fallback for messages
31943                 #      which are not translated in the desiredlang catalog).
31944                 case "$desiredlang" in
31945                   "$presentlang"*) useit=yes;;
31946                 esac
31947               done
31948               if test $useit = yes; then
31949                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31950               fi
31951             done
31952           fi
31953           CATALOGS=
31954           if test -n "$INST_LINGUAS"; then
31955             for lang in $INST_LINGUAS; do
31956               CATALOGS="$CATALOGS $lang.gmo"
31957             done
31958           fi
31959           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31960           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"
31961           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31962             if test -f "$f"; then
31963               case "$f" in
31964                 *.orig | *.bak | *~) ;;
31965                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31966               esac
31967             fi
31968           done
31969         fi
31970         ;;
31971       esac
31972     done ;;
31973     "default":C)
31974  ;;
31975
31976   esac
31977 done # for ac_tag
31978
31979
31980 as_fn_exit 0
31981 _ACEOF
31982 ac_clean_files=$ac_clean_files_save
31983
31984 test $ac_write_fail = 0 ||
31985   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31986
31987
31988 # configure is writing to config.log, and then calls config.status.
31989 # config.status does its own redirection, appending to config.log.
31990 # Unfortunately, on DOS this fails, as config.log is still kept open
31991 # by configure, so config.status won't be able to write to it; its
31992 # output is simply discarded.  So we exec the FD to /dev/null,
31993 # effectively closing config.log, so it can be properly (re)opened and
31994 # appended to by config.status.  When coming back to configure, we
31995 # need to make the FD available again.
31996 if test "$no_create" != yes; then
31997   ac_cs_success=:
31998   ac_config_status_args=
31999   test "$silent" = yes &&
32000     ac_config_status_args="$ac_config_status_args --quiet"
32001   exec 5>/dev/null
32002   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32003   exec 5>>config.log
32004   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32005   # would make configure fail if this is the last instruction.
32006   $ac_cs_success || as_fn_exit 1
32007 fi
32008 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32009   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32010 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32011 fi
32012
32013
32014 if test "${support_bat}" = "yes" ; then
32015    if test "x$QMAKE" = "xnone"; then
32016       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32017    fi
32018
32019    QMAKEBIN="qmake"
32020    cd src/qt-console
32021    echo "Creating bat Makefile"
32022    touch bat
32023    chmod 755 bat
32024    rm -f Makefile
32025    $QMAKEBIN
32026    ${MAKE:-make} clean
32027    cd ${BUILD_DIR}
32028 fi
32029
32030 if test X"$GCC" = "Xyes" ; then
32031   echo "Doing make of dependencies"
32032   ${MAKE:-make} depend
32033 fi
32034
32035 cd src/qt-console
32036 chmod 755 install_conf_file build-depkgs-qt-console
32037 cd ${BUILD_DIR}
32038
32039 cd scripts
32040 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32041 chmod 755 dvd-handler dvd-simulator
32042 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32043 cd ..
32044
32045 c=updatedb
32046 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
32047 chmod 755 $c/update_postgresql_tables_10_to_11
32048 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
32049 chmod 755 $c/update_postgresql_tables_11_to_12
32050
32051
32052 c=src/cats
32053
32054 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32055 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32056
32057 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32058 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32059
32060 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32061 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32062
32063 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32064 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32065
32066 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
32067 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
32068
32069
32070 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
32071 chmod 755 $c/sqlite
32072 chmod 755 $c/mysql
32073
32074 chmod 755 src/win32/build-depkgs-mingw32
32075
32076 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32077    largefile_support="yes"
32078 fi
32079
32080 if test X"$GCC" = "Xyes" ; then
32081                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32082    if test "x${CCVERSION}" = "x" ; then
32083       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32084    fi
32085    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32086    if test x"${CXXVERSION}" = x ; then
32087       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32088    fi
32089 fi
32090
32091 # clean up any old junk
32092 echo " "
32093 echo "Cleaning up"
32094 echo " "
32095 ${MAKE:-make} clean
32096
32097 if test "x${db_type}" = "xInternal" ; then
32098    echo " "
32099    echo " "
32100    echo "You have not specified either --enable-client-only or one of the"
32101    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
32102    echo "  This is not permitted. Please reconfigure."
32103    echo " "
32104    echo "Aborting the configuration ..."
32105    echo " "
32106    echo " "
32107    exit 1
32108 fi
32109
32110 echo "
32111 Configuration on `date`:
32112
32113    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32114    Bacula version:          ${BACULA} ${VERSION} (${DATE})
32115    Source code location:    ${srcdir}
32116    Install binaries:        ${sbindir}
32117    Install libraries:       ${libdir}
32118    Install config files:    ${sysconfdir}
32119    Scripts directory:       ${scriptdir}
32120    Archive directory:       ${archivedir}
32121    Working directory:       ${working_dir}
32122    PID directory:           ${piddir}
32123    Subsys directory:        ${subsysdir}
32124    Man directory:           ${mandir}
32125    Data directory:          ${datarootdir}
32126    Plugin directory:        ${plugindir}
32127    C Compiler:              ${CC} ${CCVERSION}
32128    C++ Compiler:            ${CXX} ${CXXVERSION}
32129    Compiler flags:          ${WCFLAGS} ${CFLAGS}
32130    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
32131    Libraries:               ${LIBS}
32132    Statically Linked Tools: ${support_static_tools}
32133    Statically Linked FD:    ${support_static_fd}
32134    Statically Linked SD:    ${support_static_sd}
32135    Statically Linked DIR:   ${support_static_dir}
32136    Statically Linked CONS:  ${support_static_cons}
32137    Database type:           ${db_type}
32138    Database port:           ${db_port}
32139    Database lib:            ${DB_LIBS}
32140    Database name:           ${db_name}
32141    Database user:           ${db_user}
32142
32143    Job Output Email:        ${job_email}
32144    Traceback Email:         ${dump_email}
32145    SMTP Host Address:       ${smtp_host}
32146
32147    Director Port:           ${dir_port}
32148    File daemon Port:        ${fd_port}
32149    Storage daemon Port:     ${sd_port}
32150
32151    Director User:           ${dir_user}
32152    Director Group:          ${dir_group}
32153    Storage Daemon User:     ${sd_user}
32154    Storage DaemonGroup:     ${sd_group}
32155    File Daemon User:        ${fd_user}
32156    File Daemon Group:       ${fd_group}
32157
32158    SQL binaries Directory   ${SQL_BINDIR}
32159
32160    Large file support:      $largefile_support
32161    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32162    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32163    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32164    TLS support:             ${support_tls}
32165    Encryption support:      ${support_crypto}
32166    ZLIB support:            ${have_zlib}
32167    enable-smartalloc:       ${support_smartalloc}
32168    enable-lockmgr:          ${support_lockmgr}
32169    bat support:             ${support_bat}
32170    enable-gnome:            ${support_gnome} ${gnome_version}
32171    enable-bwx-console:      ${support_wx_console} ${wx_version}
32172    enable-tray-monitor:     ${support_tray_monitor}
32173    client-only:             ${build_client_only}
32174    build-dird:              ${build_dird}
32175    build-stored:            ${build_stored}
32176    Plugin support:          ${have_plugins}
32177    AFS support:             ${have_afs}
32178    ACL support:             ${have_acl}
32179    XATTR support:           ${have_xattr}
32180    Python support:          ${support_python} ${PYTHON_LIBS}
32181    Batch insert enabled:    ${support_batch_insert}
32182
32183   " > config.out
32184
32185 # create a small shell script useful for support with
32186 # configure options and config.out info
32187 cat > scripts/bacula_config << EOF
32188 #!/bin/sh
32189 cat << __EOC__
32190 $ $0 $ac_configure_args
32191 EOF
32192 cat config.out >> scripts/bacula_config
32193 echo __EOC__ >> scripts/bacula_config
32194 chmod 755 scripts/bacula_config
32195
32196 cat config.out
32197
32198 # Display a warning message if postgresql client lib is <= 8.1
32199 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
32200         -a x$support_batch_insert = xyes
32201 then
32202         echo "WARNING: Your PostgreSQL client library is too old to detect "
32203         echo " if it was compiled with --enable-thread-safety, consider to"
32204         echo " upgrade it in order to avoid problems with Batch insert mode"
32205         echo
32206 fi